Пример #1
0
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header("Cache-Control: no-cache, must-revalidate");	
	$user=new usersMenus();
	if(!$user->AsSquidAdministrator){
		$tpl=new templates();
		echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}").");";
		exit;
		
	}
	
	if(isset($_GET["scripts"])){echo scripts();exit;}
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["databases"])){databases_status();exit;}
	if(isset($_GET["ufdbg-community"])){community_status();exit;}
	if(isset($_GET["maintenance"])){maintenance_status();exit;}
	if(isset($_GET["CompileMissingdb"])){CompileMissingdb();exit;}
	if(isset($_GET["MaintenanceReCompileDB"])){maintenance_status_list_compile();exit;}
	if(isset($_GET["CompileAlldbs"])){CompileAlldbs();exit;}
	if(isset($_GET["schedule"])){schedule();exit;}
	if(isset($_GET["EnableSchedule"])){schedule_save();exit;}
	if(isset($_GET["maintenance-status-list"])){maintenance_status_list();exit;}
	if(isset($_GET["config-file"])){config_file();exit;}
	
	if(isset($_GET["events"])){events();exit;}
	popup();
	
function popup(){
	$page=CurrentPageName();
	$html="<div id='ufdbguard-tabs'></div>
	<script>LoadAjax('ufdbguard-tabs','$page?tabs=yes');</script>";echo $html;
}
Пример #2
0
    exit;
}
if (isset($_GET["databases"])) {
    databases_status();
    exit;
}
if (isset($_GET["ufdbg-community"])) {
    community_status();
    exit;
}
if (isset($_GET["maintenance"])) {
    maintenance_status();
    exit;
}
if (isset($_GET["CompileMissingdb"])) {
    CompileMissingdb();
    exit;
}
if (isset($_GET["MaintenanceReCompileDB"])) {
    maintenance_status_list_compile();
    exit;
}
if (isset($_GET["CompileAlldbs"])) {
    CompileAlldbs();
    exit;
}
if (isset($_GET["schedule"])) {
    schedule();
    exit;
}
if (isset($_GET["EnableSchedule"])) {