Beispiel #1
0
    exit;
}
if (isset($_GET["js"])) {
    js();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_POST["sslproxy_version"])) {
    Save();
    exit;
}
if (isset($_GET["SSL_CERTIF_DOWN"])) {
    SSL_CERTIF_DOWN();
    exit;
}
tabs();
function js()
{
    header("content-type: application/x-javascript");
    $tpl = new templates();
    $page = CurrentPageName();
    $title = $tpl->javascript_parse_text("{UseSSL}");
    echo "YahooWin2('950','{$page}?popup=yes','{$title}');";
}
function tabs()
{
    $tpl = new templates();
    $users = new usersMenus();
	include_once('ressources/class.mysql.inc');
	if(!isset($_GET["t"])){$_GET["t"]=time();}
	if(!is_numeric($_GET["t"])){$_GET["t"]=time();}
	
	$user=new usersMenus();
	if(($user->AsSquidAdministrator==false)) {
		$tpl=new templates();
		$text=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
		$text=replace_accents(html_entity_decode($text));
		echo "<script>alert('$text');</script>";
		exit;
	}
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_POST["SSL_BUMP_WHITE_LIST"])){Save();exit;}
	if(isset($_GET["SSL_CERTIF_DOWN"])){SSL_CERTIF_DOWN();exit;}
tabs();

function tabs(){

	$tpl=new templates();
	$users=new usersMenus();
	$page=CurrentPageName();
	$squid=new squidbee();
	
	$fontsize=20;
	
	$sock=new sockets();
	$compilefile="ressources/logs/squid.compilation.params";
	if(!is_file($compilefile)){$sock->getFrameWork("squid.php?compil-params=yes");}
	$COMPILATION_PARAMS=unserialize(base64_decode(file_get_contents($compilefile)));