function getLeftContent_postLog ( ) { $oU = $_SESSION["oU"]; $left_menu = read_template($GLOBALS["_TPL_PATH"] . "postlogmenublog.tpl"); // Update sysDate to current date + Reset sysDate0 to original format. $_SESSION["sysDate"] = date("d/m/Y"); $_SESSION["sysDate0"] = $_SESSION["sysDSave"]; $info_extended = getLeftExtendedMenu(); bind_content(array("USERLOGIN" => $_SESSION["oU"]->userLogin, "USERINFO" => $_SESSION["oU"]->userName, "USERDEPT" => $_SESSION["oU"]->deptName, "MISNDATE" => GetSysDate(time()), "EXTENDED_MENU" => $info_extended), $left_menu); return $left_menu; }
<?php include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.main_cf.inc'); $usersmenus=new usersMenus(); if($usersmenus->AsArticaAdministrator==false){header('location:users.index.php');exit;} if(isset($_GET["clocks"])){echo GetSysDate();exit;} if(isset($_GET["hard"])){echo HARD();exit;} if(isset($_GET["disk"])){echo disk();exit;} if(isset($_GET["env"])){echo env();exit;} if(isset($_GET["changeClock"])){changeClock();exit;} if(isset($_GET["ConvertSystemToHard"])){ConvertSystemToHard();exit;} if(isset($_GET["popup-index"])){popup();exit;} js(); function js(){ $page=CurrentPageName(); $prefix=str_replace(".","_",$page); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body('{hardware_info}'); $users=new usersMenus(); if(!$users->AsAnAdministratorGeneric){ $error=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}"); echo "alert('$error')"; die();
<?php include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; $usersmenus = new usersMenus(); if ($usersmenus->AsArticaAdministrator == false) { header('location:users.index.php'); exit; } if (isset($_GET["clocks"])) { echo GetSysDate(); exit; } if (isset($_GET["hard"])) { echo HARD(); exit; } if (isset($_GET["disk"])) { echo disk(); exit; } if (isset($_GET["env"])) { echo env(); exit; } if (isset($_GET["changeClock"])) { changeClock(); exit; } if (isset($_GET["ConvertSystemToHard"])) {
function getLeftAddinContent ( ) { global $oU; $left_content = read_template($GLOBALS["_TPL_PATH"] . "postlogmenublog.tpl"); $mission_date = isset($_SESSION["sysDate"]) ? $_SESSION["sysDate"] : GetSysDate(time()); $system_id = 0; $extended_menu = getLeftExtendedMenu(); bind_content(array("USERLOGIN" => $_SESSION["oU"]->userLogin, "USERINFO" => $_SESSION["oU"]->userName, "USERDEPT" => $oU->deptName, "MISNDATE" => $mission_date, "EXTENDED_MENU" => $extended_menu), $left_content); return $left_content; }