<?
/*
We are using Oreon for base code: http://www.oreon-project.org
We are using Dialup Admin for user management
and many more things: http://www.freeradius.org
We are using PHPKI for Certificates management: http://phpki.sourceforge.org/
Thanks very much!!
*/
// Bench
function microtime_float() {
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$time_start = microtime_float();
// Load configuration File
if (!isset($_SESSION["oreon"]))
header("Location: index.php");
//alias
$oreon = & $_SESSION["oreon"];
//if ($debug) echo "SERIALIZE SESSION<br>";
//$_SESSION['oreon_serialize']=serialize($oreon);
if (isset($oreon->optGen)){
$expire = $oreon->optGen->get_session_expire();
} else
$expire = 0;
$p='';
$o='';
$oreon->clean_session($expire);
if ($oreon->check_if_session_ok())
$oreon->update_current_session(session_id(), $p, $o);
else {
header("Location: index.php");
exit();
}
// Load traduction in the selected language.
include_once ("lang/" . $oreon->user->get_lang() . ".php");