Example #1
0
$usersprivs = new usersMenus();
if (!$usersprivs->AsSystemAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text('{ERROR_NO_PRIVS}') . "');";
    die;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_POST["per_thread_buffers"])) {
    per_thread_buffers();
    exit;
}
if (isset($_POST["server_buffers"])) {
    server_buffers();
    exit;
}
if (isset($_POST["total_memory"])) {
    total_memory();
    exit;
}
if (isset($_POST["instance-id"])) {
    save_settings();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $prefix = str_replace(".", "_", $page);
Example #2
0
	
	$user=new usersMenus();
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}	
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_GET["title"])){tables_title();exit;}
	if(isset($_GET["schedules"])){schedules();exit;}
	if(isset($_POST["ListenPort"])){SaveParams();exit;}
	if(isset($_POST["per_thread_buffers"])){per_thread_buffers();exit;}
	if(isset($_POST["server_buffers"])){server_buffers();exit;}
	if(isset($_POST["total_memory"])){total_memory();exit;}
	if(isset($_GET["squid-db-status"])){status_service();exit;}
	if(isset($_GET["squid-db-mysql"])){status_mysql();exit;}
	if(isset($_POST["SquidStatsDatabasePath"])){SquidStatsDatabasePath();exit;}
js();

function js(){
	header("content-type: application/x-javascript");
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{mysql_statistics_engine}");
	$html="YahooWin('900','$page?tabs=yes','$title');";
	echo $html;	
	
}