Ejemplo n.º 1
0
    exit;
}
if (isset($_GET["rotate-tabs"])) {
    rotate_tab();
    exit;
}
if (isset($_POST["PurgeToNas"])) {
    PurgeToNas();
    exit;
}
if (isset($_POST["BackupToNas"])) {
    BackupToNas();
    exit;
}
if (isset($_POST["BackupSquidLogsUseNas"])) {
    remote_nas_save();
    exit;
}
if (isset($_GET["syslog"])) {
    syslog_tab();
    exit;
}
if (isset($_GET["in-front-ajax"])) {
    js_start();
    exit;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["schedules"])) {
Ejemplo n.º 2
0
	include_once('ressources/class.users.menus.inc');
	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"];