2020-06-03 15:31:18 +00:00
|
|
|
<?php
|
2023-08-23 16:16:35 +00:00
|
|
|
include 'app/OpenSim.php';
|
2023-08-23 16:16:35 +00:00
|
|
|
$opensim = new OpenSim();
|
|
|
|
|
2020-06-03 15:31:18 +00:00
|
|
|
$HTML = new HTML();
|
|
|
|
$HTML->setHTMLTitle("Spalsh");
|
2023-08-23 16:16:35 +00:00
|
|
|
$HTML->importHTML("templates/viewerWelcomeImages.html");
|
2020-06-03 15:31:18 +00:00
|
|
|
|
|
|
|
$IMAGES = array();
|
|
|
|
if ($handle = opendir('./data/viewerWelcomeImages'))
|
|
|
|
{
|
|
|
|
while (false !== ($entry = readdir($handle)))
|
|
|
|
{
|
|
|
|
if ($entry != "." && $entry != "..")
|
|
|
|
{
|
|
|
|
$IMAGES = array_merge($IMAGES, array("./data/viewerWelcomeImages/".$entry));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
closedir($handle);
|
|
|
|
}
|
|
|
|
|
|
|
|
shuffle($IMAGES);
|
|
|
|
|
|
|
|
$HTML->ReplaceSeitenInhalt("%%JSONIMAGEARRAY%%", json_encode($IMAGES));
|
|
|
|
$HTML->ReplaceSeitenInhalt("%%GRIDNAME%%", $RUNTIME['GRID']['NAME']);
|
|
|
|
$HTML->ReplaceSeitenInhalt("%%SHOWNEWS%%", $RUNTIME['GRID']['MAIN_NEWS']);
|
|
|
|
|
|
|
|
|
2023-08-23 16:16:35 +00:00
|
|
|
$HTML->ReplaceSeitenInhalt("%%SHOWSTATS%%", "Registrierte User: ".$opensim->getUserCount()."<br>Regionen: ".$opensim->getRegionCount()."<br>Aktuell Online: ".($opensim->getOnlineCount()-1));
|
2020-06-03 15:31:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
$HTML->build();
|
|
|
|
echo $HTML->ausgabe();
|
|
|
|
?>
|