Пример #1
0
    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;
}
function tabs()
{
    $q = new mysql_squid_builder();
Пример #2
0
		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;	
	
}

function tabs(){
	$q=new mysql_squid_builder();
	$page=CurrentPageName();