Example #1
0
	
	
	if(posix_getuid()==0){die();}
	
	$user=new usersMenus();
	if($user->AsSystemAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_GET["kav4fs-status"])){service_status();exit;}
	if(isset($_GET["license"])){popup_license();exit;}
	if(isset($_GET["InstallLicenseFile"])){license_add();exit;}
	if(isset($_GET["update"])){update();exit;}
			
	js();
	
	
function js(){

	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{APP_KAV4FS}");
	$page=CurrentPageName();
	
	$html="
		function kav4fs_start(){
			YahooWin2('700','$page?popup=yes','$title');
		
Example #2
0
    exit;
}
if (isset($_GET["status"])) {
    status();
    exit;
}
if (isset($_GET["kav4fs-status"])) {
    service_status();
    exit;
}
if (isset($_GET["license"])) {
    popup_license();
    exit;
}
if (isset($_GET["InstallLicenseFile"])) {
    license_add();
    exit;
}
if (isset($_GET["update"])) {
    update();
    exit;
}
js();
function js()
{
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body("{APP_KAV4FS}");
    $page = CurrentPageName();
    $html = "\n\t\tfunction kav4fs_start(){\n\t\t\tYahooWin2('700','{$page}?popup=yes','{$title}');\n\t\t\n\t\t}\n\t\t\n\t\t\n\tvar x_enable_massmailing_save= function (obj) {\n\t\t\tvar tempvalue=obj.responseText;\n\t\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\t\tdocument.getElementById('enable_massmailing_id').innerHTML='<center style=\"margin:20px;padding:20px\"><img src=\"img/mass-mailing-128.png\"></center>';\n\t\t\tYahooWin2Hide();\t\n\t\t}\t\t\n\t\t\n\t\t\n\t\tfunction enable_massmailing_save(){\n\t\t\t\tvar XHR = new XHRConnection();\n\t\t\t\tXHR.appendData('EnableInterfaceMailCampaigns',document.getElementById('EnableInterfaceMailCampaigns').value);\n\t\t\t\tdocument.getElementById('enable_massmailing_id').innerHTML='<center style=\"margin:20px;padding:20px\"><img src=\"img/wait_verybig.gif\"></center>';\n\t\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_enable_massmailing_save);\n\t\t\t\n\t\t}\t\t\n\t\n\tkav4fs_start()";
    echo $html;
}