exit;
}
if (isset($_POST["bannedextensionlist-enable"])) {
    bannedextensionlist_enable();
    exit;
}
if (isset($_POST["bannedextensionlist-delete"])) {
    bannedextensionlist_delete();
    exit;
}
if (isset($_GET["bannedextensionlist-add-popup"])) {
    bannedextensionlist_add_popup();
    exit;
}
if (isset($_POST["bannedextensionlist-add"])) {
    bannedextensionlist_add();
    exit;
}
popup();
function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $html = "<div class=explain>{bannedextensionlistdomain_explain}</div>\n<div id='bannedextensionlistDoms-div'></div>\n<script>\n\tfunction RefreshBannedextensionlist(){\n\t\t\$('#bannedextensionlistDoms-table').remove();\n\t\tLoadAjax('bannedextensionlistDoms-div','{$page}?bannedextensionlist-table=yes&ID={$_GET["ID"]}');\n\t}\n\t\n\tRefreshBannedextensionlist();\n</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
function table()
{
    $ID = $_GET["ID"];
    $page = CurrentPageName();
    $tpl = new templates();
if(!$usersmenus->AsDansGuardianAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();	
}



if(isset($_GET["bannedextensionlist-table"])){table();exit;}
if(isset($_GET["list"])){listext();exit;}
if(isset($_POST["bannedextensionlist-default"])){bannedextensionlist_default();exit;}
if(isset($_POST["bannedextensionlist-enable"])){bannedextensionlist_enable();exit;}
if(isset($_POST["bannedextensionlist-delete"])){bannedextensionlist_delete();exit;}
if(isset($_GET["bannedextensionlist-add-popup"])){bannedextensionlist_add_popup();exit;}
if(isset($_POST["bannedextensionlist-add"])){bannedextensionlist_add();exit;}

popup();


function popup(){
	$page=CurrentPageName();
	$tpl=new templates();	
$html="<div class=text-info>{bannedextensionlistdomain_explain}</div>
<div id='bannedextensionlistDoms-div'></div>
<script>
	function RefreshBannedextensionlist(){
		$('#bannedextensionlistDoms-table').remove();
		LoadAjax('bannedextensionlistDoms-div','$page?bannedextensionlist-table=yes&ID={$_GET["ID"]}');
	}