include_once 'ressources/class.ini.inc'; include_once 'ressources/class.os.system.inc'; include_once dirname(__FILE__) . "/ressources/class.monit.inc"; $users = new usersMenus(); if ($users->AsArticaAdministrator == true or $users->AsPostfixAdministrator or $user->AsSquidAdministrator) { } else { $tpl = new templates(); echo $tpl->javascript_parse_text("alert('{ERROR_NO_PRIVS}');"); die; } if (isset($_GET["disable-nfs"])) { disable_nfs_js(); exit; } if (isset($_GET["DISABLE_NFS"])) { disable_nfs_perform(); exit; } if ($_GET["filterby"] == null) { $_GET["filterby"] = "1;1;0;0"; } if (isset($_GET["status"])) { SERVICES_STATUS(); exit; } if (isset($_GET["mem"])) { echo memory(); exit; } if (isset($_GET["svc"])) { SERVICES_SVC();
include_once('ressources/charts.php'); include_once('ressources/class.mysql.inc'); include_once('ressources/class.ini.inc'); include_once('ressources/class.os.system.inc'); include_once(dirname(__FILE__)."/ressources/class.monit.inc"); $users=new usersMenus(); if($users->AsArticaAdministrator==true or $users->AsPostfixAdministrator or $user->AsSquidAdministrator){}else{ $tpl=new templates(); echo $tpl->javascript_parse_text("alert('{ERROR_NO_PRIVS}');"); die(); } if(isset($_GET["disable-nfs"])){disable_nfs_js();exit;} if(isset($_GET["DISABLE_NFS"])){disable_nfs_perform();exit;} if($_GET["filterby"]==null){$_GET["filterby"]="1;1;0;0";} if(isset($_GET["status"])){SERVICES_STATUS();exit;} if(isset($_GET["mem"])){echo memory();exit;} if(isset($_GET["svc"])){SERVICES_SVC();exit;} if(isset($_GET["myfilter"])){filter();exit;} if(isset($_GET["SERVICE_OPTIONS_JS"])){SERVICE_OPTIONS_JS();exit;} if(isset($_GET["SERVICE_OPTIONS_POPUP"])){SERVICE_OPTIONS_POPUP();exit;} if(isset($_GET["js"])){js();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["MONIT"])){MONIT_JS();exit;} if(isset($_GET["MONIT-POPUP"])){MONIT_POPUP();exit;} if(isset($_GET["MONIT-SAVE"])){MONIT_SAVE();exit;} if(isset($_GET["ARTICA-WATCHDOG-SAVE"])){WATCHDOG_SAVE();exit;}