if ($user->AsPostfixAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["keywords"])) {
    keywords();
    exit;
}
if (isset($_GET["keywords-popup"])) {
    keywords_add_popup();
    exit;
}
if (isset($_GET["keywords-list"])) {
    keywords_list();
    exit;
}
if (isset($_POST["keywords-save"])) {
    keywords_add();
    exit;
}
if (isset($_GET["keywords-edit"])) {
    keywords_edit();
    exit;
}
if (isset($_GET["keywords-edit-save"])) {
Esempio n. 2
0
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.spamassassin.inc');
	$user=new usersMenus();
		if($user->AsPostfixAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["keywords"])){keywords();exit;}
	if(isset($_GET["keywords-popup"])){keywords_add_popup();exit;}
	if(isset($_GET["keywords-list"])){keywords_list();exit;}
	if(isset($_POST["keywords-save"])){keywords_add();exit;}
	if(isset($_GET["keywords-edit"])){keywords_edit();exit;}
	if(isset($_GET["keywords-edit-save"])){keywords_edit_save();exit;}
	if(isset($_GET["SimpleKeywordDisable"])){SimpleKeywordDisable();exit;}
	if(isset($_GET["SimpleWordsDelete"])){SimpleWordsDelete();exit;}
	
js();

function js(){
	$tpl=new templates();
	$page=CurrentPageName();
	$title=$tpl->_ENGINE_parse_body("{APP_SPAMASSASSIN}::{block_keywords}");		
	echo "YahooWin3('700','$page?tabs=yes','$title');";