} if (isset($_COOKIE['userid'])) { $SAMSConf->USERID = $_COOKIE['userid']; } if (isset($_COOKIE['webaccess'])) { $SAMSConf->USERWEBACCESS = $_COOKIE['webaccess']; } if (isset($_COOKIE['samsadmin'])) { $samsadmin = $_COOKIE['samsadmin']; } if ($username != "0") { $SAMSConf->AddLog("webinterface", "user {$username} logged in web interface", $DATE->today, $DATE->thistime); } } if ($samsadmin == 1) { $USERConf->sams_admin(); } else { if ($samsadmin == 2) { $USERConf->sams_auditor(); } else { if ($SAMSConf->USERID > 0) { $USERConf->sams_user($SAMSConf->USERID); } } } if ($gb != 1) { header("Content-type: text/html; charset={$CHARSET}"); header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: THU, 01 Jan 1970 00:00:01 GMT"); // Date in the past