Exemplo n.º 1
0
    exit;
}
if (isset($_GET["antispam"])) {
    antispam_popup();
    exit;
}
if (isset($_GET["search-amavis"])) {
    antispam_search();
    exit;
}
if (isset($_GET["params"])) {
    parameters();
    exit;
}
if (isset($_GET["BackupMailLogPath"])) {
    BackupMailLogPathSave();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    echo "\n\t\tdocument.getElementById('BodyContent').innerHTML='<center><img src=img/wait_verybig.gif></center>';\n\t\t\$('#BodyContent').load('{$page}?tabs=yes');";
}
function search_logs()
{
    $users = new usersMenus();
    $maillog_path = $users->maillog_path;
    $sock = new sockets();
    $search = urlencode($_GET["pattern"]);
    $datas = explode("\n", $sock->getFrameWork("cmd.php?maillog-query={$search}&maillog-path={$maillog_path}"));
Exemplo n.º 2
0
	if(isset($_GET["quarantine"])){section_quarantine();exit;}
	if(isset($_GET["logs"])){section_logs();exit;}
	
	
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["search-quarantine"])){search_quarantine();exit;}
	if(isset($_GET["search-events"])){search_events();exit;}
	if(isset($_GET["search-logs"])){search_logs();exit;}
	
	
	if(isset($_GET["antispam"])){antispam_popup();exit;}
	if(isset($_GET["search-amavis"])){antispam_search();exit;}
	
	if(isset($_GET["params"])){parameters();exit;}
	if(isset($_GET["BackupMailLogPath"])){BackupMailLogPathSave();exit;}
	
	js();
	
	
function js(){
	$page=CurrentPageName();
	echo "
		document.getElementById('BodyContent').innerHTML='<center><img src=img/wait_verybig.gif></center>';
		$('#BodyContent').load('$page?tabs=yes');";	
	
}

function search_logs(){
	$users=new usersMenus();
	$maillog_path=$users->maillog_path;