Example #1
0
    die;
}
if (isset($_GET["js"])) {
    js();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_POST["ZarafaSoftDelete"])) {
    ZarafaSoftDeleteSave();
    exit;
}
if (isset($_POST["ZarafaSoftPerformNow"])) {
    ZarafaSoftPerformNow();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->javascript_parse_text("{softdelete_option}");
    $html = "YahooWin5('650','{$page}?popup=yes','{$title}');";
    echo $html;
}
function popup()
{
    $page = CurrentPageName();
    $sock = new sockets();
Example #2
0
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.user.inc');
	include_once('ressources/class.cron.inc');
	
	$users=new usersMenus();
	if(!$users->AsPostfixAdministrator){
		$tpl=new templates();
		$error=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
		echo "alert('$error')";
		die();
	}	

	if(isset($_GET["js"])){js();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_POST["ZarafaSoftDelete"])){ZarafaSoftDeleteSave();exit;}
	if(isset($_POST["ZarafaSoftPerformNow"])){ZarafaSoftPerformNow();exit;}
	
	
	
js();


function js(){
	$page=CurrentPageName();
	$tpl=new templates();	
	$title=$tpl->javascript_parse_text("{softdelete_option}");
	$html="YahooWin5('650','$page?popup=yes','$title');";
	echo $html;
}

function popup(){