header("Pragma: no-cache"); header("Expires: 0"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); if (!function_exists("session_start")) { echo "<div style='margin:200px;padding:10px;border:2px solid red'><center><H1><error>session module is not properly loaded<BR>please restart artica-postfix web daemon using <br> <code>/etc/init.d/artica-postfix restart apache</code></error><div style='color:red;font-size:13px'>Unable to stat session_start function</div></H1></div>"; exit; } if (function_exists("session_start")) { session_start(); } $GLOBALS["DEBUG_INCLUDES"] = false; unset($_SESSION["LANG_FILES"]); if (isset($_POST["php5-ldap-restart"])) { restart_phpldap(); exit; } if (isset($_POST["Changelang"])) { applyLang(); exit; } if (isset($_SESSION["uid"])) { header("location:users.index.php"); exit; } ini_set('display_errors', 1); ini_set('error_reporting', E_ALL); include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.user.inc';
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); if(!function_exists("session_start")){echo "<div style='margin:200px;padding:10px;border:2px solid red'><center><H1><error>session module is not properly loaded<BR>please restart artica-postfix web daemon using <br> <code>/etc/init.d/artica-postfix restart apache</code></error><div style='color:red;font-size:13px'>Unable to stat session_start function</div></H1></div>";exit;} if(function_exists("session_start")){ if($GLOBALS["DEBUG_TEMPLATE"]){error_log("[{$_SESSION["uid"]}]::START:LANG:[{$_SESSION["detected_lang"]}] => language: _COOKIE=`{$_COOKIE["artica-language"]}` _SESSION=`{$_SESSION["detected_lang"]}` function:".__FUNCTION__." in " . basename(__FILE__). " line ".__LINE__);} session_start(); } $GLOBALS["DEBUG_INCLUDES"]=false; $GLOBALS["EXECUTED_AS_ROOT"]=false; if($GLOBALS["DEBUG_TEMPLATE"]){error_log("[{$_SESSION["uid"]}]::START:LANG:[{$_SESSION["detected_lang"]}] => language: _COOKIE=`{$_COOKIE["artica-language"]}` _SESSION=`{$_SESSION["detected_lang"]}` function:".__FUNCTION__." in " . basename(__FILE__). " line ".__LINE__);} unset($_SESSION["LANG_FILES"]); if(isset($_POST["php5-ldap-restart"])){restart_phpldap();exit;} if(isset($_POST["Changelang"])){applyLang();exit;} if(isset($_SESSION["uid"])){ error_log("[{$_SESSION["uid"]}]::Redirecto squid.users.index.php".__FUNCTION__." file " .basename(__FILE__)." line ".__LINE__); header("location:squid.users.index.php"); die(); } ini_set('display_errors', 1); ini_set('error_reporting', E_ALL); include_once(dirname(__FILE__)."/ressources/class.langages.inc"); include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc');