예제 #1
0
    exit;
}
if (isset($_GET["popup"])) {
    main_tabs();
    exit;
}
if (isset($_GET["ACTION_SPAM_MODE"])) {
    SAVE();
    exit;
}
if (isset($_GET["OPT_FILTRATION_ON"])) {
    SAVE();
    exit;
}
if (isset($_GET["OPT_SPAM_RATE_LIMIT"])) {
    SAVE();
    exit;
}
if (isset($_GET["apply-config"])) {
    APPLY();
    exit;
}
js();
function js()
{
    $ou = base64_decode($_GET["ou"]);
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body('{APP_KAS3}:: => ' . $ou, "user.kas.php");
    $html = "\n\t\tfunction OU_KASMILTER(){\n\t\t\tYahooWin4('650','{$page}?popup=yes&ou={$ou}','{$title}');\n\t\t\n\t\t}\n\t\t\nvar x_ACTION_SPAM_MODE_SAVE= function (obj) {\n\tvar tempvalue=obj.responseText;\n\tif(tempvalue.length>3){alert(tempvalue);}\n\tRefreshTab('main_rule_kas3');\n}\n\t\n\tfunction ACTION_SPAM_MODE_SAVE(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('ACTION_SPAM_MODE',document.getElementById('ACTION_SPAM_MODE').value);\n\t\t\tXHR.appendData('ACTION_SPAM_EMAIL',document.getElementById('ACTION_SPAM_EMAIL').value);\n\t\t\tXHR.appendData('ACTION_SPAM_SUBJECT_PREFIX',document.getElementById('ACTION_SPAM_SUBJECT_PREFIX').value);\n\t\t\tXHR.appendData('ACTION_SPAM_USERINFO',document.getElementById('ACTION_SPAM_USERINFO').value);\n\t\t\t\n\t\t\tXHR.appendData('ACTION_PROBABLE_MODE',document.getElementById('ACTION_PROBABLE_MODE').value);\n\t\t\tXHR.appendData('ACTION_PROBABLE_EMAIL',document.getElementById('ACTION_PROBABLE_EMAIL').value);\n\t\t\tXHR.appendData('ACTION_PROBABLE_SUBJECT_PREFIX',document.getElementById('ACTION_PROBABLE_SUBJECT_PREFIX').value);\n\t\t\tXHR.appendData('ACTION_PROBABLE_USERINFO',document.getElementById('ACTION_PROBABLE_USERINFO').value);\n\t\t\t\n\t\t\tXHR.appendData('ACTION_BLACKLISTED_MODE',document.getElementById('ACTION_BLACKLISTED_MODE').value);\n\t\t\tXHR.appendData('ACTION_BLACKLISTED_EMAIL',document.getElementById('ACTION_BLACKLISTED_EMAIL').value);\n\t\t\tXHR.appendData('ACTION_BLACKLISTED_SUBJECT_PREFIX',document.getElementById('ACTION_BLACKLISTED_SUBJECT_PREFIX').value);\n\t\t\tXHR.appendData('ACTION_BLACKLISTED_USERINFO',document.getElementById('ACTION_BLACKLISTED_USERINFO').value);\t\t\t\n\t\t\t\n\t\t\tXHR.appendData('ACTION_FORMAL_EMAIL',document.getElementById('ACTION_FORMAL_EMAIL').value);\n\t\t\tXHR.appendData('ACTION_FORMAL_SUBJECT_PREFIX',document.getElementById('ACTION_FORMAL_SUBJECT_PREFIX').value);\n\t\t\tXHR.appendData('ACTION_FORMAL_USERINFO',document.getElementById('ACTION_FORMAL_USERINFO').value);\n\t\t\tXHR.appendData('ACTION_FORMAL_MODE',document.getElementById('ACTION_FORMAL_MODE').value);\t\t\t\t  \n\t\t\t\n\t\t\t   \n\t\t\t\n\t\t\tXHR.appendData('ou','{$ou}');\n\t\t\tdocument.getElementById('ACTION_SPAM_MODE_ID').innerHTML='<center><img src=img/wait_verybig.gif></center>';\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_ACTION_SPAM_MODE_SAVE);\n\t\t\n\t}\n\t\n\t   \n\t\n\n\n\t\n\t\n\tfunction OURBLDEL(ID){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('OURBLDEL',ID);\n\t\tXHR.appendData('ou','{$ou}');\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_OURBLADD);\n\t\n\t}\t\t\n\t\n\tOU_KASMILTER();";
    echo $html;
예제 #2
0
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.status.inc');
	include_once('ressources/class.artica.graphs.inc');
	
	$users=new usersMenus();
	if(!$users->AsProxyMonitor){die();}
	if(isset($_GET["SWAP"])){SWAP_PAGE();exit;}
	if(isset($_GET["PING"])){PING_PAGE();exit;}
	if(isset($_GET["DNS"])){DNS_PAGE();exit;}
	if(isset($_GET["external-page"])){EXTERNAL_PAGE();exit;}
	if(isset($_GET["performance"])){PERFORMANCE_PAGE();exit;}
	if(isset($_GET["settings"])){SETTINGS_PAGE();exit;}
	if(isset($_GET["smtp"])){SMTP_PAGE();exit;}
	if(isset($_POST["SAVEGLOBAL"])){SAVE();exit;}
	if(isset($_POST["SAVESMTP"])){SAVE_SMTP();exit;}
	if(isset($_GET["tabs"])){tabs();exit;}
	
js();

function js(){
	$tpl=new templates();
	$title=$tpl->javascript_parse_text("{watchdog_settings}");
	$page=CurrentPageName();
	header("content-type: application/x-javascript");
	echo "YahooWin4('850','$page?tabs=yes','$title')";
	
	
}
예제 #3
0
	}

	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["maintenance"])){maintenance_settings();exit;}
	
	if(isset($_GET["remote-users"])){remote_users();exit;}
	if(isset($_GET["local-users"])){local_users();exit;}
	if(isset($_GET["member-add"])){members_add();exit;}
	if(isset($_GET["member-delete"])){members_delete();exit;}		
	
	if(isset($_GET["tools"])){tools();exit;}
	if(isset($_GET["run-compile"])){task_run_sarg();exit;}
	
	if(isset($_GET["events"])){events();exit;}
	if(isset($_GET["squidMaxTableDays"])){SAVE();exit;}
	
js();


function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	
	$title=$tpl->_ENGINE_parse_body("{ARTICA_DATABASE_MAINTENANCE}");
	$html="YahooWin2('650','$page?popup=yes','$title');";
	
	echo $html;
	
	
	
예제 #4
0
	}

	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["maintenance"])){maintenance_settings();exit;}
	
	if(isset($_GET["remote-users"])){remote_users();exit;}
	if(isset($_GET["local-users"])){local_users();exit;}
	if(isset($_GET["member-add"])){members_add();exit;}
	if(isset($_GET["member-delete"])){members_delete();exit;}		
	
	if(isset($_GET["tools"])){tools();exit;}
	if(isset($_GET["run-compile"])){task_run_sarg();exit;}
	
	if(isset($_GET["events"])){events();exit;}
	if(isset($_POST["EnableSquidRemoteMySQL"])){SAVE();exit;}
	if(isset($_GET["cnx-status"])){squid_mysql_status();exit;}
	if(isset($_GET["migrate-localdata-js"])){migrate_local_datas_js();exit;}
	if(isset($_POST["migratelocal"])){migrate_local_datas_perform();exit;}
	if(isset($_GET["migr-logs"])){migrlogs();exit;}
	if(isset($_POST["migr-rlogs"])){migrrlogs();exit;}
js();


function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	
	$title=$tpl->_ENGINE_parse_body("{remote_mysql_server}");
	header("content-type: application/x-javascript");
	$html="YahooWin2('850','$page?popup=yes','$title');";
예제 #5
0
	
	
	$user=new usersMenus();
	if($user->AsMailBoxAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_POST["ZarafaApacheEnable"])){zarafa_settings_webmail_save();exit;}
	if(isset($_POST["ZarafaEnableServer"])){zarafa_settings_server_save();exit;}
	if(isset($_POST["ZarafaIMAPsEnable"])){zarafa_settings_imap_save();exit;}
	
	if(isset($_GET["ZarafaApachePort"])){SAVE();exit;}
	if(isset($_GET["DbAttachConverter-popup"])){DbAttachConverter_popup();exit;}
	if(isset($_GET["DbAttachConverterPerform"])){DbAttachConverter_Perform();exit;}
	
	if(isset($_GET["popup-server"])){zarafa_settings_server();exit;}
	if(isset($_GET["popup-imap"])){zarafa_settings_imap();exit;}
	
	
	js();
	
	
function js(){
$page=CurrentPageName();
$users=new usersMenus();
$tpl=new templates();
$start="APP_ZARAFA_WEB()";
예제 #6
0
	
	
	
	
$users=new usersMenus();
$tpl=new templates();
if(!$users->AsOrgPostfixAdministrator){
		echo $tpl->javascript_parse_text("alert('{ERROR_NO_PRIVS}');");
		die();
	}
	
	if(isset($_GET["main"])){main_switch();exit;}
	if(isset($_GET["popup"])){main_tabs();exit;}
	if(isset($_GET["ACTION_SPAM_MODE"])){SAVE();exit;}
	if(isset($_GET["OPT_FILTRATION_ON"])){SAVE();exit;}
	if(isset($_GET["OPT_SPAM_RATE_LIMIT"])){SAVE();exit;}
	if(isset($_GET["apply-config"])){APPLY();exit;}
	
	
js();

function js(){
		
	$ou=base64_decode($_GET["ou"]);
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body('{APP_KAS3}:: => '.$ou,"user.kas.php");
	
	
	$html="
		function OU_KASMILTER(){
예제 #7
0
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.user.inc');
	include_once('ressources/class.ini.inc');	
	
	if((isset($_GET["uid"])) && (!isset($_GET["userid"]))){$_GET["userid"]=$_GET["uid"];}
	
	if(!GetRights_aliases2()){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	
	}
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["RecipientToAdd"])){SAVE();exit;}
	if(isset($_GET["usermap"])){usermap();exit;}
	if(isset($_GET["RedirectDelete"])){REDIRECT_DELETE();exit;}
	
js();


function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{inbound_parameters}");
	
	$html="
	function USER_RECIPT_LOAD(){
		YahooWin3(650,'$page?userid={$_GET["userid"]}&popup=yes','$title');
	}
예제 #8
0
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.cron.inc');
	
	
	
	$user=new usersMenus();
	if(!$user->AllowEditOuSecurity){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["lastdays"])){SAVE();exit;}
	js();
	
	
	
function js(){
$page=CurrentPageName();
$users=new usersMenus();
$tpl=new templates();
$title=$tpl->_ENGINE_parse_body('{global_director_report}');
$ou_decrypted=base64_decode($_GET["ou"]);
$html="

function DIRECTOR_REPORT(){
	YahooWin3('600','$page?popup=yes&ou={$_GET["ou"]}','$title');