Exemplo n.º 1
0
    exit;
}
if (isset($_GET["messages-list"])) {
    messages_table();
    exit;
}
if (isset($_GET["messages-search"])) {
    messages_search();
    exit;
}
if (isset($_GET["show-results"])) {
    message_results();
    exit;
}
if (isset($_GET["analyze-message"])) {
    message_analyze();
    exit;
}
if (isset($_GET["delete-message"])) {
    message_delete();
    exit;
}
tabs();
function js()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $title = $tpl->_ENGINE_parse_body("{APP_SPAMASSASSIN}::{message_analyze}");
    echo "YahooWin3('700','{$page}?tabs=yes','{$title}');";
}
function tabs()
Exemplo n.º 2
0
	include_once('ressources/class.mime.parser.inc');
	include_once(dirname(__FILE__).'/ressources/class.rfc822.addresses.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["messages"])){messages();exit;}
	if(isset($_GET["add"])){messages_add();exit;}
	if(isset($_POST["upload-message"])){message_upload();exit;}
	if(isset($_GET["messages-list"])){messages_list();exit;}
	if(isset($_GET["show-results"])){message_results();exit;}
	if(isset($_GET["analyze-message"])){message_analyze();exit;}
	if(isset($_GET["delete-message"])){message_delete();exit;}
	
	
js();


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