当前位置: 首页>>代码示例>>PHP>>正文


PHP SaveConf函数代码示例

本文整理汇总了PHP中SaveConf函数的典型用法代码示例。如果您正苦于以下问题:PHP SaveConf函数的具体用法?PHP SaveConf怎么用?PHP SaveConf使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了SaveConf函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: gmdate

<?php
	header("Pragma: no-cache");	
	header("Expires: 0");
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header("Cache-Control: no-cache, must-revalidate");
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.mysql.inc');
	$usersmenus=new usersMenus();
	if($usersmenus->AsArticaAdministrator==false){header('location:users.index.php');exit;}	
	if(isset($_GET["main"])){main_switch();exit;}
	if(isset($_GET["status"])){main_status();exit;}
	if(isset($_GET["CheckEveryMinutes"])){SaveConf();exit;}
	if(isset($_GET["ArticaUpdateInstallPackage"])){ArticaUpdateInstallPackage();exit;}
	if(isset($_GET["auto_update_perform"])){auto_update_perform();exit;}
	if(isset($_GET["PackageUninstall"])){uninstall_package();exit;}
	if(isset($_GET["PackageUninstallRoolback"])){uninstall_rollback_package();exit;}
	if(isset($_GET["apply_uninstall"])){uninstall_to_system();exit;}
	if(isset($_GET["PackageInstall"])){install_package();exit;}
	if(isset($_GET["PackageInstallRoolback"])){install_rollback_package();exit;}
	if(isset($_GET["DeleteEvent"])){main_event_delete();exit;}
	if(isset($_GET["apply_upgrade"])){upgrade_to_system();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	//main_page();
	
	main_js();
	
	
function main_js(){
开发者ID:rsd,项目名称:artica-1.5,代码行数:31,代码来源:artica.repositories.php

示例2: TrustedNetworks

if ($argv[1] == '--trusted') {
    TrustedNetworks();
    amavis_reload();
    die;
}
if ($argv[1] == '--whitelist') {
    SaveConf();
    amavis_reload();
    die;
}
if ($argv[1] == '--spam-tests') {
    SpamTests($argv[2]);
    die;
}
echo "Starting......: " . date("H:i:s") . " spamassassin starting building configuration\n";
SaveConf();
echo "Starting......: " . date("H:i:s") . " Check Relay Country plugin\n";
RelayCountryPlugin();
echo "Starting......: " . date("H:i:s") . " Check Decode Short urls\n";
DecodeShortURLs();
echo "Starting......: " . date("H:i:s") . " Check Trusted networks\n";
TrustedNetworks();
WrongMX();
FuzzyOcr();
CheckSecuritiesFolders();
function amavis_reload()
{
    $sock = new sockets();
    $unix = new unix();
    $EnableAmavisDaemon = intval($sock->GET_INFO("EnableAmavisDaemon"));
    $SpamAssMilterEnabled = intval($sock->GET_INFO("SpamAssMilterEnabled"));
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:31,代码来源:exec.spamassassin.php

示例3: usersMenus

	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.spamassassin.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["popup"])){popup();exit;}
	if(isset($_GET["main"])){main_switch();exit;}
	if(isset($_GET["SaveGeneralSettings"])){SaveConf();exit;}
	if(isset($_GET["rewrite_headers"])){rewrite_headers();exit;}
	if(isset($_GET["add_headers"])){add_headers();exit;}
	if(isset($_GET["status"])){echo main_status();exit;}
	if(isset($_GET["SpamassAddTrustedNetwork"])){Save_Trusted_Networks();exit;}
	if(isset($_GET["SpamassDelTrustedNetwork"])){Delete_Trusted_Networks();exit;}
	if(isset($_GET["salearn-schedule-js"])){salearn_schedule_js();exit;}
	if(isset($_GET["salearn-schedule-popup"])){salearn_schedule_popup();exit;}
	if(isset($_GET["SalearnSchedule"])){salearn_schedule_save();exit;}
	
	if(isset($_GET["popup-spamass-scores-behavior"])){scores_behavior();exit;}
	if(isset($_GET["popup-spamass-rewrite-headers"])){rewrite_headers_form();exit;}
	if(isset($_GET["popup-spamass-add-headers"])){add_headers_form();exit;}
	
	if(isset($_GET["popup-spamass-check"])){popup_spamass_check();exit;}
	if(isset($_GET["popup-spamass-check-perform"])){popup_spamass_check_perform();exit;}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:31,代码来源:spamassassin.index.php


注:本文中的SaveConf函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。