'.$regionName.'
'.$regionName.'
'.$onlineUser.' Besucher Online

'.$regionBeschreibung.'

'; } $HTML = new HTML(); $HTML->setHTMLTitle("4Creative Region Guide"); $HTML->importHTML("style/default/services.html"); $statement = $RUNTIME['PDO']->prepare("SELECT * FROM Regions WHERE lastSeen > ? ORDER BY OnlineUser ASC LIMIT 0, 30"); $statement->execute(array(time() - 320)); if($statement->rowCount() == 0) { $HTML->ReplaceLayoutInhalt("%%RegionList%%", "Es sind keine Regionen Online!"); }else{ $elementNr = 0; $rawHTML = ""; while($row = $statement->fetch()) { if($elementNr == 0) { $rawHTML .= '
'; } $rawHTML .= getRegionHTML(substr($row['RegionName'], 0, 20), substr($row['GridName'], 0, 20), substr($row['RegionBeschreibung'], 0, 60), $row['RegionLink'], $row['LastSeen'], $row['ImageName'], $row['OnlineUser']); $elementNr++; if($elementNr == 6) { $rawHTML .= '
'; $elementNr = 0; } } $HTML->ReplaceLayoutInhalt("%%RegionList%%", $rawHTML); } $HTML->build(); echo $HTML->ausgabe(); ?>