LoGD Standardrelease steht hier zum Download zur Verfügung!
<?php
/*
2021-06-05 aragon bugfix php8
2024-05-05 aragon whitespaces
*/
require_once "common.php";
if ($session['user']['loggedin'] && $session['loggedin']) {
if (strpos($session['output'], "<!--CheckNewDay()-->") > -1) {
checkday();
}
foreach ($session['allowednavs'] as $key => $val) {
if (
trim($key) == "" ||
$key === 0 ||
substr($key, 0, 8) == "motd.php" ||
substr($key, 0, 8) == "mail.php"
) {
unset($session['allowednavs'][$key]);
}
}
if (!is_array($session['allowednavs']) || count($session['allowednavs']) == 0 || $session['output'] == "") {
$session['allowednavs'] = array();
addnav("", "village.php");
echo "<a href='village.php'>Deine erlaubten Navs waren beschädigt. Zurück zum Dorf.</a>";
}
if (strpos($session['output'], "login.php?op=logout") > -1) {
redirect("village.php");
}
echo $session['output'];
$session['debug'] = "";
//$session['user']['allowednavs']=$session['allowednavs'];
saveuser();
} else {
$session = array();
redirect("index.php");
}