60) { $_SESSION['last_access'] = time(); } if (isset($_POST['command']) && $_POST['command'] == 'Logout') { $past = time() - 3600; foreach ($_COOKIE as $key => $value) { setcookie($key, $value, $past, '/'); } $_SESSION = array(); session_destroy(); unset($_COOKIE['mail_name']); setcookie('mail_name', '', -1, '/'); $logmeout = true; } else { $logmeout = false; } include("config.inc.php"); include("newsportal.php"); $ip_pass = false; if (! isset($_SESSION['remote_address'])) { $_SESSION['remote_address'] = $_SERVER['REMOTE_ADDR']; $_SESSION['start_address'] = $_SESSION['remote_address']; $ip_pass = true; } else { if ($_SERVER['REMOTE_ADDR'] != $_SESSION['start_address']) { $ip_pass = false; } else { $ip_pass = true; } } if ($logmeout) { include "head.inc"; echo "
You have been logged out
"; echo ''; echo ''; echo ' | '; // Files button echo ''; echo ''; echo ' | '; // Configuration button echo ''; echo ''; echo ' | '; } if ((isset($_COOKIE["mail_name"]))) { // Logout button echo ''; echo ''; echo ' | '; } echo '
You are logged in as " . $_POST['username'] . "
"; echo "" . $golink . "
"; echo 'Settings for ' . $_POST['username'] . ': |