exit; } if (isset($_POST["restart-cicap"])) { restart(); exit; } if (isset($_GET["rows-table"])) { events_table(); exit; } if ($_GET["main"] == "index") { echo index(); exit; } if ($_GET["main"] == "daemons") { echo daemons(); exit; } if ($_GET["main"] == "clamav") { echo clamav(); exit; } if ($_GET["main"] == "logs") { echo logs(); exit; } if ($_GET["main"] == "status") { status(); exit; } if ($_GET["main"] == "events") {
include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.groups.inc'); include_once('ressources/class.artica.inc'); include_once('ressources/class.ini.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.system.network.inc'); $user=new usersMenus(); if($user->SQUID_INSTALLED==false){die('not allowed');} if($user->AsSquidAdministrator==false){die('not allowed');} if($_GET["main"]=="index"){echo index();exit;} if($_GET["main"]=="daemons"){echo daemons();exit;} if($_GET["main"]=="clamav"){echo clamav();exit;} if($_GET["main"]=="logs"){echo logs();exit;} if(isset($_GET["MaxKeepAliveRequests"])){save_settings();exit;} if(isset($_GET["srv_clamav_SendPercentData"])){save_settings();exit;} js(); function js(){ $tpl=new templates(); $page=CurrentPageName(); $title=$tpl->_ENGINE_parse_body('{cicap_title}'); $title1=$tpl->_ENGINE_parse_body('{clamav_settings}'); $title2=$tpl->_ENGINE_parse_body('{clamav_settings}');