if(isset($_GET["rules-destination-popup"])){rules_destination_popup();exit;}
if(isset($_GET["rules-destination-form2"])){rules_destination_form2();exit;}
if(isset($_POST["rules-destination-add"])){rules_destination_create();exit;}
if(isset($_POST["rules-destination-edit"])){rules_destination_edit();exit;}
if(isset($_POST["rules-destination-move"])){rules_destination_move();exit;}
if(isset($_POST["rules-destination-delete"])){rules_destination_delete();exit;}

if(isset($_POST["new-rule"])){rules_create();exit;}
if(isset($_POST["rules-move"])){rules_move();exit;}
if(isset($_POST["rulename"])){rewrite_rule_settings_save();exit;}
if(isset($_GET["debug"])){debug_page();exit;}
if(isset($_GET["debug-search"])){debug_search();exit;}
if(isset($_GET["enable-disable-debug-js"])){debug_disable_js();exit;}
if(isset($_POST["ProxyPacDynamicDebug"])){ProxyPacDynamicDebug();exit;}
if(isset($_POST["empty-debug"])){debug_empty();exit;}
if(isset($_GET["download-debug"])){debug_download();exit;}

popup();




function tabs(){
	popup();
}


function help(){
	
	$tr[]=Paragraphe("youtube-play-64.png", "Video",
			"Proxy PAC: Dynamic Proxy PAC feature (Howto)","http://youtu.be/6H1XMZIK-S8",null,250);
    exit;
}
if (isset($_GET["enable-disable-debug-js"])) {
    debug_disable_js();
    exit;
}
if (isset($_POST["ProxyPacDynamicDebug"])) {
    ProxyPacDynamicDebug();
    exit;
}
if (isset($_POST["empty-debug"])) {
    debug_empty();
    exit;
}
if (isset($_GET["download-debug"])) {
    debug_download();
    exit;
}
popup();
function tabs()
{
    popup();
}
function help()
{
    $tr[] = Paragraphe("youtube-play-64.png", "Video", "Proxy PAC: Dynamic Proxy PAC feature (Howto)", "http://youtu.be/6H1XMZIK-S8", null, 250);
    $tr[] = Paragraphe("youtube-play-64.png", "Video", "Web Proxy Auto-Discovery Protocol (WPAD) ", "http://www.youtube.com/watch?v=iLxZZNFomdg&list=PL6GqpiBEyv4q1GqpV5QbdYWbQdyxlWKGW&index=5", null, 250);
    echo "<center style='width:80%'>" . CompileTr3($tr) . "</center>";
}
function rules_sources_link_order_js()
{