コード例 #1
0
ファイル: squid.caches32.php プロジェクト: BillTheBest/1.6.x
header("Cache-Control: no-cache, must-revalidate");
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.groups.inc';
include_once 'ressources/class.squid.inc';
$users = new usersMenus();
if (!$users->AsSquidAdministrator) {
    die("NO PRIVS");
}
if (isset($_GET["smp-js"])) {
    smp_js();
    exit;
}
if (isset($_POST["DEFAULT_CACHE_SAVE_TRUE"])) {
    squid_cache_save_default();
    exit;
}
//toujours en premier !
if (isset($_GET["squid-caches-status"])) {
    squid_cache_status();
    exit;
}
if (isset($_POST["cachesDirectory"])) {
    squid_cache_save();
    exit;
}
if (isset($_POST["rebuild-caches"])) {
    rebuild_caches();
    exit;
}
コード例 #2
0
ファイル: squid.caches32.php プロジェクト: brucewu16899/1.6.x
			ini_set('error_append_string',null);
	}
	header("Pragma: no-cache");	
	header("Expires: 0");
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header("Cache-Control: no-cache, must-revalidate");
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.groups.inc');
	include_once('ressources/class.squid.inc');
	
	$users=new usersMenus();
	if(!$users->AsSquidAdministrator){die("NO PRIVS");}
	if(isset($_GET["smp-js"])){smp_js();exit;}
	if(isset($_POST["DEFAULT_CACHE_SAVE_TRUE"])){squid_cache_save_default();exit;} //toujours en premier !
	if(isset($_GET["squid-caches-status"])){squid_cache_status();exit;}
	if(isset($_POST["cachesDirectory"])){squid_cache_save();exit;}
	if(isset($_POST["rebuild-caches"])){rebuild_caches();exit;}
	if(isset($_POST["reindex-caches"])){reindex_caches();exit;}
	if(isset($_POST["cache_directory"])){add_new_disk_save();exit;}
	
	if(isset($_POST["verify-caches"])){verify_caches();exit;}
	if(isset($_GET["add-new-disk-popup"])){add_new_disk_popup();exit;}
	if(isset($_GET["button-mode"])){button_mode();exit;}
	if(isset($_GET["add-new-disk-js"])){add_new_disk_js();exit;}
	if(isset($_GET["verify-caches-logs"])){verfiy_caches_logs();exit;}
	if(isset($_GET["verify-cache-events"])){verfiy_caches_events();exit;}
	if(isset($_POST["delete-cache"])){delete_cache();exit;}
	if(isset($_POST["DisableAnyCache"])){DisableAnyCache();exit;}
	if(isset($_GET["license-explain"])){license_explain();exit;}