include_once('ressources/class.squid.inc'); include_once('ressources/class.squid.accesslogs.inc'); include_once('ressources/class.tcpip.inc'); $usersmenus=new usersMenus(); if(!$usersmenus->AsDansGuardianAdministrator){ $tpl=new templates(); $alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('$alert');"; die(); } if(isset($_GET["parameters"])){page();exit;} if(isset($_POST["LogRotateCompress"])){settings_save();exit;} if(isset($_POST["BackupSquidLogsUseNas"])){remote_nas_save();exit;} if(isset($_GET["BackupLogsMaxStoragePercent-info"])){BackupLogsMaxStoragePercent_info();exit;} tabs(); function BackupLogsMaxStoragePercent_info(){ $sock=new sockets(); $tpl=new templates(); $data=$sock->getFrameWork("system.php?BackupLogsMaxStoragePercent-info=yes"); $DIRPART_INFO=unserialize(base64_decode($data)); $percent=$_GET["BackupLogsMaxStoragePercent-info"]/100; $TOTAL_PART=$DIRPART_INFO["TOT"]/1024; $CURSIZE=$DIRPART_INFO["CURSIZE"];
exit; } if (isset($_GET["phpmyadmin-installed"])) { phpmyadmin_installed(); exit; } if (isset($_GET["dhcpd-progress"])) { dhcpd_progress(); exit; } if (isset($_GET["ntp-client"])) { ntp_client(); exit; } if (isset($_GET["BackupLogsMaxStoragePercent-info"])) { BackupLogsMaxStoragePercent_info(); exit; } if (isset($_GET["openldap-restart-progress"])) { restart_openldap_progress(); exit; } if (isset($_GET["TOTAL_MEM_POURCENT_USED"])) { TOTAL_MEM_POURCENT_USED(); exit; } if (isset($_GET["disable-ntopng"])) { disable_ntopng(); exit; } if (isset($_GET["syncthing-installed"])) {