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


PHP applysettings函数代码示例

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


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

示例1: page

function page(){
$usersmenus=new usersMenus();
$page=CurrentPageName();
if($usersmenus->AsPostfixAdministrator==true){}else{header('location:users.index.php');exit;}	
$html="<table style='width:600px' align=center>
<tr>
<td width=50% valign='top' class='caption' style='text-align:justify'>
<img src='img/bg_fetchmail.jpg'><p>
{fetchmail_about}</p></td>
<td valign='top'>
	<table>";
//folder-fetchmail-64.jpg
if($usersmenus->AsPostfixAdministrator==true){
		$html=$html . "<tr><td valign='top' ><div id=status></div><br>" . applysettings("fetch")  . "<br></td></tr>
		<tr><td valign='top' >".Paragraphe('folder-tools-64.jpg','{daemon_settings}','{daemon_settings_text}','fetchmail.daemon.settings.php') ."</td></tr>
		<tr><td valign='top'>  ".Paragraphe('folder-logs-64.jpeg','{events}','{events_text}','fetchmail.daemon.events.php') ."</td></tr>";
		}

		

		
$html=$html . "</table>
</td>
</tr>
</table>
<script>LoadAjax('status','$page?status=yes');</script>
";
$tpl=new template_users('Fetchmail',$html);
echo $tpl->web_page;
	
	
	
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:33,代码来源:fetchmail.index.php

示例2: page

function page()
{
    $page = CurrentPageName();
    //mailman-add.png
    $gb = bouton_globalsettings();
    $html = "\n<input type='hidden' id='ou' value='{$_GET["ou"]}'>\n<input type='hidden' id='add_mailman_prompt' value='{add_mailman_prompt}'>\n<input type='hidden' id='MailManListAdminPassword_text' value='{MailManListAdminPassword_text}'>\n<input type='hidden' id='MailManListAdministrator_text' value='{MailManListAdministrator_text}'>\n<input type='hidden' id='are_you_sure_to_delete' value='{are_you_sure_to_delete}'>\n<table style=width:100%'>\n<tr>\n\t\n\t<td valign='top' width=60%>\n\t\t<H5>{mailman_lists}</H5>\n\t\t\t<div id=mailman_lists></div>\n\t\t\t<div style='text-align:right'>" . imgtootltip('20-refresh.png', '{refresh}', "LoadAjax('mailman_lists','{$page}?LoadLists=yes');") . "</div>\n\t</td>\n\t<td valign='top'>" . bouton_add() . applysettings("mailman") . $gb . bouton_gourl() . "</td>\n\t\n</tr>\n\n</table>\n\n\n\n\n<script>LoadAjax('mailman_lists','{$page}?LoadLists=yes&ou={$_GET[ou]}');</script>\n";
    $JS["JS"][] = "js/mailman.js";
    $tpl = new template_users('{manage_mailman_lists} (in construction don\'t use)', $html, 0, 0, 0, 0, $JS);
    echo $tpl->web_page;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:10,代码来源:mailman.lists.php

示例3: main_page

function main_page()
{
    if ($_GET["hostname"] == null) {
        $user = new usersMenus();
        $_GET["hostname"] = $user->hostname;
    }
    $html = "<table style='width:100%'>\n\t<tr>\n\t<td width=1% valign='top'><img src='img/bg_sqlgrey.jpg'>\t<p class=caption>{about}</p></td>\n\t<td>\n\t" . applysettings("sqlgrey") . "<br>" . main_status() . "</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 valign='top'><br>\n\t\t\t<div id='main_config'></div>\n\t\t</td>\n\t</tr>\n\t</table>\n\t<script>LoadAjax('main_config','{$page}?main=yes');</script>\n\t\n\t";
    $cfg["JS"][] = 'js/sqlgrey.js';
    $tpl = new template_users('{APP_SQLGREY}', $html, 0, 0, 0, 0, $cfg);
    echo $tpl->web_page;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:11,代码来源:sqlgrey.index.php

示例4: main_page

function main_page()
{
    if ($_GET["hostname"] == null) {
        $user = new usersMenus();
        $_GET["hostname"] = $user->hostname;
    }
    $html = "<table style='width:100%'>\n\t<tr>\n\t<td width=1% valign='top'>\n\t\t<img src='img/pure-ftpd.png' style='margin-right:50px;margin-left:50px'><br><br>\n\t\t" . applysettings("pure-ftpd") . "\n\t</td>\n\t<td valign='top'>\n\t " . main_status() . "</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 valign='top'>\n\t\t\t<div id='main_config_pureftpd'></div>\n\t\t</td>\n\t</tr>\n\t</table>\n\t<script>LoadAjax('main_config_pureftpd','{$page}?main=yes');</script>\n\t\n\t";
    $cfg["JS"][] = 'js/pureftpd.js';
    $tpl = new template_users('{APP_PUREFTPD}', $html, 0, 0, 0, 0, $cfg);
    echo $tpl->web_page;
}
开发者ID:brucewu16899,项目名称:artica,代码行数:11,代码来源:pureftp.index.php

示例5: Page

function Page()
{
    $main = new main_cf();
    $page = CurrentPageName();
    $intro = RoundedLightGreen('<img src="img/infowarn-64.png" align=left style="margin:3px">{send_isp_relay_text3}');
    $form = "" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td>\n\t\t<H5>{servername}</H5>\n\t\t<br>\n\t\t{send_isp_relay_text2}\n\t</td>\n\t</tr>\n\t<tr>\n\t\t\t<td colspan=2>" . Field_text('isp_server_ip', $main->main_array["relayhost"]) . "</td>\n\t\t</tr>\t\n\t<tr>\n\t\t<td align='right' colspan=2><input type='button' OnClick=\"javascript:EditRelayhost();\" value='{edit}&nbsp;&raquo;'></td>\n\t</tr>\n\t</table>") . "\n\t<br>";
    $html = "\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' style='width:50%'>\n\n\t{$form}</td>\n\t<td valign='top'>\n\t\t" . RoundedLightGreen("<table style='width:100%'>\n\t<tr><td width=1%>" . imgtootltip('restore-on.png', '{go_back}', "MyHref('artica.wizard.php')") . "</td>\n\t<td><H5>{return_to} {artica_wizard}</H5></td>\n\t</tr></table>") . "<br>" . applysettings("postfix") . "<br>{$intro}</td>\n\t</tr>\n\t</table>";
    $cfg["LANG_FILE"] = "artica.wizard.php";
    $cfg["JS"][] = "js/postfix-sasl.js";
    $tpl = new template_users('{send_isp_relay}', $html, 0, 0, 0, 0, $cfg);
    echo $tpl->web_page;
}
开发者ID:brucewu16899,项目名称:artica,代码行数:12,代码来源:artica.wizard.isprelay.php

示例6: Page

function Page()
{
    $main = new main_cf();
    $smtp_sasl_auth_enable = $main->main_array["smtp_sasl_auth_enable"];
    $page = CurrentPageName();
    $intro = applysettings("postfix") . RoundedLightBlue('<p style="text-align:justify;"><img src="img/infowarn-64.png" align=left style="margin:3px">{smtp_sasl_auth_enable_text}</p>');
    $intro = $intro . "<br>" . "" . "<script>LoadAjax('sasllist','{$page}?loadsaslList=yes');</script>";
    $form = "" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'>" . Field_yesno_checkbox_img('smtp_sasl_auth_enable', $smtp_sasl_auth_enable, '{enable_disable}') . "</td>\n\t<td>\n\t\t<H5>{smtp_sasl_auth_enable}</H5>\n\t\t<br>\n\t\t{smtp_sasl_auth_enable_text2}\n\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align='right' colspan=2><input type='button' OnClick=\"javascript:EditSasl();\" value='{apply}&nbsp;&raquo;'></td>\n\t</tr>\n\t</table>") . "\n\t<br>\n\t" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'><img src='img/klakcon_285.png'></td>\n\t<td>\n\t\t<H5>{add_credentials}</H5>\n\t<br>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td colspan=2><strong>{isp_server_name}:</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=2>" . Field_text('isp_server_name', null) . "</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t\t<td width=1% nowrap align='right'><strong>{username}:</strong></td>\n\t\t\t<td>" . Field_text('username', null) . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td align='right'><strong>{password}:</strong></td>\n\t\t\t<td>" . Field_text('password', null) . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td colspan=2 align='right'><input type='button' value='{add}&nbsp;&raquo;' OnClick=\"javascript:sasl_add_isp_relay();\">\n\t\t</tr>\t\t\t\n\t\t</table>\n\t</td>\n\t</tr>\n\t</table>") . "<br>" . RoundedLightGrey("<H5>{table}</H5><div id='sasllist'></div>");
    $html = "\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' width=50%>\t\n\t{$form}</td>\n\t<td valign='top'  width=50%>" . RoundedLightGreen("<table style='width:100%'>\n\t<tr><td width=1%>" . imgtootltip('restore-on.png', '{go_back}', "MyHref('artica.wizard.php')") . "</td>\n\t<td><H5>{return_to} {artica_wizard}</H5></td>\n\t</tr></table>") . "<br>{$intro}</td>\n\t</tr>\n\t</table>";
    $cfg["LANG_FILE"] = "artica.wizard.php";
    $cfg["JS"][] = "js/postfix-sasl.js";
    $tpl = new template_users('{send_to_isp}', $html, 0, 0, 0, 0, $cfg);
    echo $tpl->web_page;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:14,代码来源:artica.wizard.ispout.php

示例7: RightInfos

function RightInfos()
{
    $kas = new kas_filter();
    $st = RoundedLightGrey($kas->KasStatus() . "</table>");
    $html = applysettings("kas") . "<br>{$st}";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:8,代码来源:kas.engine.settings.php

示例8: main_page

function main_page(){
	
	switch ($_GET["main"]) {
			case "network":main_network();exit;break;
			case "Safe_ports":main_Safe_ports();exit;break;
			case "config":main_configfile();exit;break;
			case "Safe_ports_list":echo main_Safe_ports_list();exit;break;
			case "deny_ext":main_denyext();exit;break;
			case "deny_ext_list":echo main_denyext_list();exit;break;
			case "kavav":echo main_kav4proxy();exit;break;
			case "info":echo main_infos();exit;break;			
			default:
				break;
		}	
		
		

	if($_GET["hostname"]==null){$user=new usersMenus();$hostname=$user->hostname;$_GET["hostname"]=$hostname;}else{$hostname=$_GET["hostname"];}
$apply=applysettings("squid","SQUID_APPLY('{$_GET["hostname"]}')");
	
	
	$html=
	"
<script language=\"JavaScript\">       
var timerID  = null;
var timerID1  = null;
var tant=0;
var reste=0;

function demarre(){
   tant = tant+1;
   reste=10-tant;
	if (tant < 10 ) {                           
      timerID = setTimeout(\"demarre()\",5000);
      } else {
               tant = 0;
               //document.getElementById('wait').innerHTML='<img src=img/wait.gif>';
               ChargeLogs();
               demarre();                                //la boucle demarre !
   }
}


function ChargeLogs(){
	var status='status';
	
	if(document.getElementById('statusid')){
		status=document.getElementById('statusid').value;
	}
	LoadAjax('services_status','squid.index.php?status='+ status+'&hostname={$_GET["hostname"]}');
	}
</script>		
	<table style='width:100%'>
	<tr>
	<td width=1% valign='top'><img src='img/bg_squid.jpg'><p class=caption>{squid_simple_intro}</p></td>
	<td valign='top'>
	<div id='services_status'></div>
	</td>
	</tr>
	<tr>
		<td colspan=2 valign='top'>
			<div id='squid_main_config'></div>
		</td>
	</tr>
	</table>
	<script>LoadAjax('squid_main_config','$page?main=network');</script>
	<script>demarre();</script>
	<script>ChargeLogs();</script>
	";
	
	
	$cfg["JS"][]='js/squid.js';
	$cfg["JS"][]='js/icap.js';
	
	
	
	$tpl=new template_users('Squid',$html,0,0,0,0,$cfg);
	
	echo $tpl->web_page;
	
	
	
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:83,代码来源:squid.simple.php

示例9: main_services

function main_services()
{
    $html = main_tabs() . "<br>\n\t<H5>{services}</H5>\n\t<table style='width:100%'>\n\t<tr>\n\t<td width=50%></td>\n\t<td width=50% valing='top'>" . applysettings("kav4proxy") . "</td>\n\t</tr>\n\t</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, 'milter.index.php');
}
开发者ID:brucewu16899,项目名称:artica,代码行数:6,代码来源:kav4proxy.index.php

示例10: RightInfos

function RightInfos()
{
    $kas = new kas_filter();
    $st = RoundedLightGrey($kas->KasStatus() . "</table>");
    $perf = Paragraphe('proxy-64.png', '{update_now}', '{update_now}', "javascript:KasUpdates();");
    $pref_force = Paragraphe('proxy-delete-64.png', '{clean_update}', '{clean_update}', "javascript:KasforceUpdates();");
    $perf = RoundedLightGrey($perf);
    $pref_force = RoundedLightGrey($pref_force);
    $html = applysettings("kas") . "{$perf}<br>{$pref_force}<br>{$st}";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:12,代码来源:kas.keepupd2date.settings.php


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