Esempio n. 1
0
    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"])) {
Esempio n. 2
0
	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;}
	
	if(isset($_POST["BackTo1CPU"])){BackTo1CPU();exit;}
	if(isset($_GET["slider-t"])){slider_t();exit;}
	if(isset($_GET["slider-results"])){slider_results();exit;}
	if(isset($_GET["Byjs"])){Byjs();exit();}