setHTMLTitle("Kein Zugriff"); $HTML->importHTML("style/default/dashboard.html"); $HTML->ReplaceLayoutInhalt("%%USERNAME%%", $_SESSION['DISPLAYNAME']); $HTML->SetSeitenInhalt("Dazu hast du keine Rechte!"); $HTML->build(); echo $HTML->ausgabe(); die(); }else{ $HTML = new HTML(); $HTML->setHTMLTitle("Benutzer"); $HTML->importHTML("style/default/dashboard.html"); $HTML->ReplaceLayoutInhalt("%%USERNAME%%", $_SESSION['DISPLAYNAME']); $HTML->importSeitenInhalt("pages/HTML/deine-regionen.html"); $table = '%%ENTRY%%
VornameNachnameStatusAktionen
'; $statement = $RUNTIME['PDO']->prepare("SELECT * FROM UserAccounts ORDER BY Created ASC"); $statement->execute(); while($row = $statement->fetch()) { $entry = ''.$row['FirstName'].''.$row['LastName'].''.$row['UserLevel'].'PASSWORT Ă„NDERN | SPERREN | UMBENENNEN'; $table = str_replace("%%ENTRY%%", $entry."%%ENTRY%%", $table); } $table = str_replace("%%ENTRY%%", "", $table); $HTML->ReplaceSeitenInhalt("%%REGION-LIST%%", $table); $HTML->build(); echo $HTML->ausgabe(); } ?>