35 lines
		
	
	
		
			956 B
		
	
	
	
		
			PHP
		
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			956 B
		
	
	
	
		
			PHP
		
	
	
| <?php
 | |
| 	include '../app/OpenSim.php';
 | |
| 	$opensim = new OpenSim();
 | |
| 
 | |
| 	$HTML = new HTML();
 | |
| 	$HTML->setHTMLTitle("Spalsh");
 | |
| 	$HTML->importHTML("pages/HTML/viewerWelcomeImages.html");
 | |
| 
 | |
| 	$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']); 
 | |
| 	
 | |
| 
 | |
| 	$HTML->ReplaceSeitenInhalt("%%SHOWSTATS%%", "Registrierte User: ".$opensim->getUserCount()."<br>Regionen: ".$opensim->getRegionCount()."<br>Aktuell Online: ".($opensim->getOnlineCount()-1)); 
 | |
| 
 | |
| 
 | |
| 	$HTML->build();
 | |
| 	echo $HTML->ausgabe();
 | |
| ?>
 |