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


PHP maincf_multi::SET_VALUE方法代码示例

本文整理汇总了PHP中maincf_multi::SET_VALUE方法的典型用法代码示例。如果您正苦于以下问题:PHP maincf_multi::SET_VALUE方法的具体用法?PHP maincf_multi::SET_VALUE怎么用?PHP maincf_multi::SET_VALUE使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在maincf_multi的用法示例。


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

示例1: save

function save(){
	$page=CurrentPageName();
	$tpl=new templates();
	$main=new maincf_multi($_GET["hostname"],$_GET["ou"]);
	if($_GET["freeze_delivery_queue"]==1){$main->SET_VALUE("freeze_delivery_queue",0);}else{$main->SET_VALUE("freeze_delivery_queue",1);}
	$sock=new sockets();
	$sock->getFrameWork("cmd.php?postfix-freeze=yes&hostname={$_GET["hostname"]}");
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:8,代码来源:postfix.freeze.queue.php

示例2: SaveForm

function SaveForm()
{
    $main = new maincf_multi($_POST["hostname"]);
    $main->SET_VALUE("enable_original_recipient", $_POST["enable_original_recipient"]);
    $main->SET_VALUE("undisclosed_recipients_header", $_POST["undisclosed_recipients_header"]);
    $main->SET_VALUE("smtpd_discard_ehlo_keywords", $_POST["smtpd_discard_ehlo_keywords"]);
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?postfix-others-values=yes&hostname={$_POST["hostname"]}");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:9,代码来源:postfix.other.php

示例3: save

function save()
{
    $main = new maincf_multi($_POST["hostname"], $_POST["ou"]);
    $main->SET_VALUE("detect_8bit_encoding_header", $_POST["detect_8bit_encoding_header"]);
    $main->SET_VALUE("disable_mime_output_conversion", $_POST["disable_mime_output_conversion"]);
    $main->SET_VALUE("disable_mime_input_processing", $_POST["disable_mime_input_processing"]);
    $main->SET_VALUE("mime_nesting_limit", $_POST["mime_nesting_limit"]);
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?postfix-others-values=yes&hostname={$_POST["hostname"]}");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:10,代码来源:postfix.mime.php

示例4: save

function save()
{
    $main = new maincf_multi($_POST["hostname"]);
    $main->SET_VALUE("EnablePostfixHaProxy", $_POST["EnablePostfixHaProxy"]);
    $sock = new sockets();
    $sock->getFrameWork("postfix.php?happroxy=yes&hostname={$_POST["hostname"]}");
}
开发者ID:articatech,项目名称:artica,代码行数:7,代码来源:postfix.haproxy.php

示例5: save_transport

function save_transport()
{
    $main = new maincf_multi($_POST["hostname"]);
    $main->SET_VALUE("mailbox_transport", trim(strtolower($_POST["mailbox_transport"])));
    $sock = new sockets();
    $sock->getFrameWork("postfix.php?mailbox-transport=yes&hostname={$_POST["hostname"]}");
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:7,代码来源:postfix.mailbox_transport.php

示例6: save

function save(){
	$sock=new sockets();
	$main=new maincf_multi("master","master");
	$_GET["message_size_limit"]=($_GET["message_size_limit"]*1000)*1024;
	$_GET["virtual_mailbox_limit"]=($_GET["virtual_mailbox_limit"]*1000)*1024;
	$sock->SET_INFO("message_size_limit",$_GET["message_size_limit"]);
	$sock->SET_INFO("default_destination_recipient_limit",$_GET["default_destination_recipient_limit"]);
	$sock->SET_INFO("smtpd_recipient_limit",$_GET["smtpd_recipient_limit"]);
	$sock->SET_INFO("mime_nesting_limit",$_GET["mime_nesting_limit"]);
	$sock->SET_INFO("header_address_token_limit",$_GET["header_address_token_limit"]);
	$sock->SET_INFO("virtual_mailbox_limit",$_GET["virtual_mailbox_limit"]);
	$sock->SET_INFO("header_size_limit",$_GET["header_size_limit"]*1024);
	$sock->SET_INFO("SpamassassinMaxRCPTScore",$_GET["SpamassassinMaxRCPTScore"]);
	$main->SET_VALUE("max_rcpt_to",$_GET["max_rcpt_to"]);
	

		$users=new usersMenus();
		$users->LoadModulesEnabled();
		
		$EnableAmavisDaemon=$users->EnableAmavisDaemon;
		if(!$user->AMAVIS_INSTALLED){$EnableAmavisDaemon=0;}
		if(!is_numeric($EnableAmavisDaemon)){$EnableAmavisDaemon=0;}	
		$sock->getFrameWork("cmd.php?postfix-others-values=yes");
		if($EnableAmavisDaemon==1){$sock->getFrameWork("cmd.php?spamass-build=yes");}
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:25,代码来源:postfix.messages.restriction.php

示例7: save

function save()
{
    $main = new maincf_multi($_POST["hostname"], $_POST["ou"]);
    $main->SET_VALUE("smtpd_banner", $_POST["SMTP_BANNER"]);
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?postfix-others-values=yes&hostname={$_POST["hostname"]}");
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:7,代码来源:postfix.banner.php

示例8: save_enable

function save_enable()
{
    $ou = base64_decode($_GET["ou"]);
    $main = new maincf_multi($_GET["hostname"], $ou);
    $page = CurrentPageName();
    $main->SET_VALUE("PostFixEnableQueueInMemory", $_GET["PostFixEnableQueueInMemory"]);
    $main->SET_VALUE("PostFixQueueInMemory", $_GET["PostFixQueueInMemory"]);
    $sock = new sockets();
    if ($_GET["hostname"] == "master") {
        $sock->SET_INFO("PostFixEnableQueueInMemory", $_GET["PostFixEnableQueueInMemory"]);
        $sock->SET_INFO("PostFixQueueInMemory", $_GET["PostFixQueueInMemory"]);
        $sock->getFrameWork("cmd.php?restart-postfix-single=yes");
    } else {
        $sock->getFrameWork("cmd.php?postfix-multi-perform-reconfigure={$_GET["hostname"]}");
    }
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:16,代码来源:domains.postfix.memory.php

示例9: SAVE

function SAVE()
{
    $ou = base64_decode($_GET["ou"]);
    $main = new maincf_multi($_GET["hostname"], $ou);
    $main->SET_VALUE("PostfixHideClientMua", $_GET["PostfixHideClientMua"]);
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?postfix-multi-settings={$_GET["hostname"]}");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:8,代码来源:domains.postfix.hide.headers.php

示例10: save

function save()
{
    $main = new maincf_multi($_POST["hostname"]);
    if ($_POST["myorigin2"] != null) {
        $_POST["myorigin"] = $_POST["myorigin2"];
    }
    $main->SET_VALUE("myorigin", $_POST["myorigin"]);
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?postfix-multi-reconfigure={$_POST["hostname"]}");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:10,代码来源:domains.postfix.multi.myorigin.php

示例11: save_enable

function save_enable()
{
    $ou = base64_decode($_GET["ou"]);
    $main = new maincf_multi($_GET["hostname"], $ou);
    $page = CurrentPageName();
    $PostFixEnableAiguilleuse = $main->SET_VALUE("PostFixEnableAiguilleuse", $_GET["PostFixEnableAiguilleuse"]);
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?postfix-multi-mastercf={$_GET["hostname"]}");
    $sock->getFrameWork("cmd.php?postfix-multi-aiguilleuse={$_GET["hostname"]}");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:10,代码来源:domains.postfix.aiguilleuse.php

示例12: instances_duplicate_perform


//.........这里部分代码省略.........
	echo $tpl->javascript_parse_text("{error_choose_organization}");return;}
	
	
	if(trim($instance_hostname)==null){echo $tpl->javascript_parse_text("{instance_server_name}: NULL");return;}
	if(!$tcp->isValid($instance_ip)){echo $tpl->javascript_parse_text("{ipaddr}: \"$instance_ip\" Invalid");return;}
	if(!$tcp->isValid($instance_ip_src)){echo $tpl->javascript_parse_text("{ipaddr}: \"$instance_ip_src\" Invalid");return;}
	$main=new maincf_multi(null,null,$instance_ip);
	if($main->myhostname<>null){echo $tpl->javascript_parse_text("{ipaddr}: \"$instance_ip\" {already_used} -> $main->myhostname");return;}
	$main=new maincf_multi($instance_hostname,null,null);
	if($main->ip_addr<>null){echo $tpl->javascript_parse_text("{hostname}: \"$instance_hostname\" {already_used} -> $main->ip_addr");return;}
	
	$sql="SELECT ipaddr FROM nics_virtuals WHERE ipaddr='$instance_ip'";
	$ligne=mysql_fetch_array($q->QUERY_SQL($sql,"artica_backup"));
	if($ligne["ipaddr"]<>null){echo $tpl->javascript_parse_text("{ipaddr}: \"$instance_ip\" {already_used} -> {virtual_interfaces}");return;}
	
	$sql="SELECT ipaddr FROM nics_vlan WHERE ipaddr='$instance_ip'";
	$ligne=mysql_fetch_array($q->QUERY_SQL($sql,"artica_backup"));
	if($ligne["ipaddr"]<>null){
		writelogs("Associated to a vlan -> unset Contruct virtuals addresses",__FUNCTION__,__FILE__,__LINE__);
		$novirtual=true;
	}
	
	
	$PING=trim($sock->getFrameWork("cmd.php?ping=".urlencode($instance_ip)));
	if($PING=="TRUE"){
		echo $tpl->javascript_parse_text("$instance_ip:\n{ip_already_exists_in_the_network}");
		return;
	}	
	
	
	if(!$novirtual){
		writelogs("No virtual: FALSE",__FUNCTION__,__FILE__,__LINE__);
		$instance_ip_tbl=explode(".",$instance_ip);
		unset($instance_ip_tbl[count($instance_ip_tbl)-1]);
		$net=@implode(".",$instance_ip_tbl);
		writelogs("virtual: net -> $net",__FUNCTION__,__FILE__,__LINE__);
	
		$sql="SELECT * FROM nics_virtuals WHERE ipaddr LIKE '$net.%' ORDER BY ID DESC LIMIT 0,1";
		$ligne=mysql_fetch_array($q->QUERY_SQL($sql,"artica_backup"));
		if($ligne["ipaddr"]==null){echo $tpl->javascript_parse_text("{ipaddr}: \"$net*\" {no_such_interfaces} -> {virtual_interfaces}\n{you_need_to_create_virtual_ip_first}");return;}
		writelogs("$net.* {$ligne["nic"]} -> $instance_ip/{$ligne["netmask"]}",__FUNCTION__,__FILE__,__LINE__);
		
		$sql="INSERT INTO nics_virtuals (nic,org,ipaddr,netmask,cdir,gateway) 
		VALUES('{$ligne["nic"]}','$organization','$instance_ip','{$ligne["netmask"]}','{$ligne["cdir"]}','{$ligne["gateway"]}');";	
		$q=new mysql();
		$q->QUERY_SQL($sql,"artica_backup");
		
		if(!$q->ok){
			writelogs("virtual:ERROR $q->mysql_error",__FUNCTION__,__FILE__,__LINE__);
			echo $q->mysql_error;
			return;
		}
		
		
	}
		writelogs("All are OK -> starting importation",__FUNCTION__,__FILE__,__LINE__);

	$sql="SELECT `key`,`value`,`ValueTEXT`,`uuid` FROM `postfix_multi` WHERE `ip_address`='$instance_ip_src'";
	$results=$q->QUERY_SQL($sql,"artica_backup");	
	while($ligne=@mysql_fetch_array($results,MYSQL_ASSOC)){	
		$key=$ligne["key"];
		$value=$ligne["value"];
		$ValueTEXT=$ligne["ValueTEXT"];
		$uuid=$ligne["uuid"];
		if($key=="inet_interfaces"){continue;}
		if($key=="myhostname"){continue;}
		$value=addslashes($value);
		$ValueTEXT=addslashes($ValueTEXT);
		$sql="INSERT INTO `postfix_multi`
		(`key`,`value`,`ValueTEXT`,`uuid`,`ou`,`ip_address`)
		VALUES('$key','$value','$ValueTEXT','$uuid','$organization','$instance_ip')";
		writelogs($sql,__FUNCTION__,__FILE__,__LINE__);
		$q->QUERY_SQL($sql,"artica_backup");
		if(!$q->ok){
			echo $q->mysql_error;
			FailedIP($instance_ip);
			return;
		}
	}
	
$sql="INSERT INTO `postfix_multi`
		(`key`,`value`,`uuid`,`ou`,`ip_address`)
		VALUES('inet_interfaces','$instance_ip','$uuid','$organization','$instance_ip')";
	writelogs($sql,__FUNCTION__,__FILE__,__LINE__);
	$q->QUERY_SQL($sql,"artica_backup");
	
	if(!$q->ok){echo $q->mysql_error;FailedIP($instance_ip);return;}
	
$sql="INSERT INTO `postfix_multi`
		(`key`,`value`,`uuid`,`ou`,`ip_address`)
		VALUES('myhostname','$instance_hostname','$uuid','$organization','$instance_ip')";		
	writelogs($sql,__FUNCTION__,__FILE__,__LINE__);
	$q->QUERY_SQL($sql,"artica_backup");
	if(!$q->ok){echo $q->mysql_error;FailedIP($instance_ip);return;}

	$main=new maincf_multi(null,null,$instance_ip);	
	$main->SET_VALUE("VirtualHostNameToChange",$instance_hostname);		
	
	
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:101,代码来源:postfix.multiples.php

示例13: PostFixVerifyDatabaseSave

function PostFixVerifyDatabaseSave()
{
    $hostname = $_POST["hostname"];
    unset($_POST["hostname"]);
    $main = new maincf_multi($hostname);
    while (list($num, $ligne) = each($_POST)) {
        $main->SET_VALUE($num, $ligne);
    }
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?postfix-others-values=yes&hostname={$_POST["hostname"]}");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:11,代码来源:postfix.performances.verify.map.php

示例14: relayhostSave

function relayhostSave()
{
    $ou = $_GET["ou"];
    $hostname = $_GET["hostname"];
    $tpl = new templates();
    if ($_GET["relay_port"] == null) {
        $_GET["relay_port"] = 25;
    }
    if ($_GET["relay_address"] == null) {
        echo $tpl->_ENGINE_parse_body("{error_no_server_specified}");
        exit;
    }
    $tool = new DomainsTools();
    writelogs("Port={$_GET["relay_port"]} address={$_GET["relay_address"]}", __FUNCTION__, __FILE__);
    $data = $tool->transport_maps_implode($_GET["relay_address"], $_GET["relay_port"], 'smtp', $_GET["MX_lookups"]);
    writelogs("Port={$_GET["relay_port"]} address={$_GET["relay_address"]}={$data}", __FUNCTION__, __FILE__);
    $data = str_replace('smtp:', '', $data);
    //smtp_sasl_password_maps
    $main = new maincf_multi($hostname, $ou);
    if ($_GET["username"] != null) {
        $auth = "{$_GET["username"]}:{$_GET["password"]}";
        $main->SET_VALUE("relayhost_authentication", $auth);
    }
    $main->SET_VALUE("relayhost", $data);
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?postfix-multi-relayhost={$_GET["hostname"]}");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:27,代码来源:domains.postfix.multi.relayhost.php

示例15: postfix_hostname_save

function postfix_hostname_save(){
	$main=new maincf_multi($_GET["hostname"],$_GET["ou"]);
	$main->SET_VALUE("VirtualHostNameToChange",$_GET["VirtualHostNameToChange"]);
	$sock=new sockets();
	$sock->getFrameWork("cmd.php?postfix-multi-reconfigure={$_GET["hostname"]}");	
	}
开发者ID:rsd,项目名称:artica-1.5,代码行数:6,代码来源:domains.postfix.multi.config.php


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