Beispiel #1
0
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
$user = new usersMenus();
if (!$user->AsSquidAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    exit;
}
if (isset($_GET["tasks"])) {
    tasks();
    exit;
}
if (isset($_GET["events"])) {
    events_popup();
    exit;
}
if (isset($_GET["events-list"])) {
    events_list();
    exit;
}
if (isset($_GET["re-categorize-js"])) {
    re_categorize_js();
    exit;
}
if (isset($_GET["re-categorize-popup"])) {
    re_categorize_popup();
    exit;
}
if (isset($_POST["RecategorizeProxyStats"])) {
	if(isset($_GET["popup"])){popup();exit;}
	
	
	
	if(isset($_GET["imap"])){imap();exit;}
	if(isset($_GET["imap-account-delete"])){imap_account_delete();exit;}
	if(isset($_GET["imap-account-save"])){imap_account_save();exit;}
	if(isset($_GET["imap-account-popup"])){imap_account_popup();exit;}
	if(isset($_GET["imap-account"])){imap_account_js();exit;}
	
	if(isset($_GET["database"])){database_popup();exit;}
	if(isset($_GET["database-search"])){database_search();exit;}
	if(isset($_GET["database-blacklist-delete"])){database_delete();exit;}
	if(isset($_GET["database-blacklist-add"])){database_add();exit;}
	
	if(isset($_GET["events"])){events_popup();exit;}
	if(isset($_GET["events-search"])){events_list();exit;}
	js();
	
	

	
function js(){
	$tpl=new templates();
	$page=CurrentPageName();
	$title=$tpl->_ENGINE_parse_body("{bad_mails}");
	$start="emailings_badmail_start_page();";
	$ou=$_GET["ou"];
	
	$html="
	function emailings_badmail_start_page(){