ini_set('error_reporting', E_ALL); ini_set('error_prepend_string', null); ini_set('error_append_string', null); } if (!function_exists("posix_getuid")) { echo "<H1>posix_getuid() no such function, please check your PHP installation<br>Or reboot this system</H1>"; return; } if (posix_getuid() == 0) { $array = posix_getpwuid(); echo "<center style='margin:50px'><H1>posix_getuid() return 0 has user.<br>It seems that this server run has {$array["name"]} ({$array["uid"]}),<br>operation aborted<br>It should be a library issue, try to reboot this system</H1></center>"; return; } if (isset($_GET["proxypac"])) { error_log("[{$_SESSION["uid"]}]:: ->proxypac()" . __FUNCTION__ . " file " . basename(__FILE__) . " line " . __LINE__); proxypac(); die; } 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:#d32d2d;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();
<?php $GLOBALS["DEBUG_TEMPLATE"]=true; if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);} if(!function_exists("posix_getuid")){echo "<H1>posix_getuid() no such function, please check your PHP installation<br>Or reboot this system</H1>";return;} if(posix_getuid()==0){ $array=posix_getpwuid(); echo "<center style='margin:50px'><H1>posix_getuid() return 0 has user.<br>It seems that this server run has {$array["name"]} ({$array["uid"]}),<br>operation aborted<br>It should be a library issue, try to reboot this system</H1></center>"; return; } if(isset($_GET["proxypac"])){ error_log("[{$_SESSION["uid"]}]:: ->proxypac()".__FUNCTION__." file " .basename(__FILE__)." line ".__LINE__); proxypac();die(); } 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")){ 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__);}