Exemplo n.º 1
0
if ($user->AsSquidAdministrator == false) {
    $tpl = new templates();
    echo "<script>alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');</script>";
    die;
    exit;
}
if (isset($_GET["whitelist-list"])) {
    zlist();
    exit;
}
if (isset($_GET["website_ssl_wl"])) {
    whitelist_add();
    exit;
}
if (isset($_GET["website_ssl_eble"])) {
    whitelist_enabled();
    exit;
}
if (isset($_GET["website_ssl_del"])) {
    whitelist_del();
    exit;
}
table();
function table()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $t = time();
    $new_webiste = $tpl->_ENGINE_parse_body("{new_website}");
    $email = $tpl->_ENGINE_parse_body("{email}");
    $enabled = $tpl->_ENGINE_parse_body("{enabled}");
Exemplo n.º 2
0
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["gen-certif-js"])){gen_certif_js();exit;}
	if(isset($_GET["gen-certif-popup"])){gen_certif_popup();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["certificate"])){certificate();exit;}
	if(isset($_GET["parameters"])){parameters_main();exit;}
	if(isset($_GET["popup-settings"])){parameters_main();exit;}
	if(isset($_POST["EnableSSLBump"])){parameters_enable_save();exit;}
	if(isset($_POST["EnableSquidSSLCRTD"])){parameters_certificate_save();exit;}
	if(isset($_GET["whitelist"])){whitelist_popup();exit;}
	if(isset($_GET["whitelist-list"])){whitelist_list();exit;}
	if(isset($_GET["website_ssl_wl"])){whitelist_add();exit;}
	if(isset($_GET["website_ssl_eble"])){whitelist_enabled();exit;}
	if(isset($_GET["website_ssl_del"])){whitelist_del();exit;}
	if(isset($_POST["AllowSquidSSLDropBox"])){AllowSquidSSLDropBox();exit;}
	if(isset($_POST["AllowSquidSSLSkype"])){AllowSquidSSLSkype();exit;}
	
	
	if(isset($_GET["add-params"])){parameters_main();exit;}
	if(isset($_GET["help"])){help();exit;}
	
	js();
	
	
function gen_certif_js(){
	header("content-type: application/x-javascript");
	$tpl=new templates();
	$title=$tpl->javascript_parse_text("{generate_certificate}");