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


PHP Field_button_table_autonome函数代码示例

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


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

示例1: wizard_certificate_1

function wizard_certificate_1()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $hostname = $sock->GET_INFO("myhostname");
    $t = time();
    $ENC[1024] = 1024;
    $ENC[2048] = 2048;
    $ENC[4096] = 4096;
    if ($hostname == null) {
        $hostname = $sock->getFrameWork("system.php?hostname-g=yes");
        $sock->SET_INFO($hostname, "myhostname");
    }
    $title = $tpl->_ENGINE_parse_body("{new_certificate}");
    $html[] = "<div class=text-info style='font-size:18px'>{wizard_certificate_1}<br><i>{CSR_MULTIPLE_EXPLAIN}</i></div>";
    $html[] = "<div style='width:98%' class=form>";
    $html[] = "<table style='width:100%'>";
    $html[] = Field_text_table("wizard-certificate-commonname", "{CommonName}", $hostname, 22, null, 400);
    $html[] = Field_list_table("wizard-certificate-levelenc", "{level_encryption}", 2048, 22, $ENC);
    $html[] = Field_password_table("wizard-certificate-password", "{password}", "secret", 22, null, 300);
    $html[] = Field_button_table_autonome("{add}", "Submit{$t}", 30);
    $html[] = "</table>";
    $html[] = "</div>\n<script>\nvar xSubmit{$t}= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>3){alert(results);}\n\t\$('#flexRT{$_GET["t"]}').flexReload();\n\tYahooWin6Hide();\n}\n\t\n\t\nfunction Submit{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('wizard-certificate-commonname',encodeURIComponent(document.getElementById('wizard-certificate-commonname').value));\n\tXHR.appendData('wizard-certificate-levelenc',document.getElementById('wizard-certificate-levelenc').value);\n\tXHR.appendData('wizard-certificate-password',encodeURIComponent(document.getElementById('wizard-certificate-password').value));\n\tXHR.sendAndLoad('{$page}', 'POST',xSubmit{$t});\n}\n</script>\n\t\t\n\t";
    echo $tpl->_ENGINE_parse_body(@implode("\n", $html));
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:26,代码来源:certificates.center.wizard.php

示例2: popup

function popup()
{
    $page = CurrentPageName();
    $sock = new sockets();
    $users = new usersMenus();
    $t = time();
    $SquidGuardIPWeb = $sock->GET_INFO("SquidGuardIPWeb");
    $fulluri = $sock->GET_INFO("SquidGuardIPWeb");
    $SquidGuardServerName = $sock->GET_INFO("SquidGuardServerName");
    if (preg_match("#\\/(.+?):([0-9]+)\\/#", $SquidGuardIPWeb, $re)) {
        $SquidGuardIPWeb = "{$re[1]}:{$re[2]}";
    }
    if (preg_match("#(.+?):([0-9]+)#", $SquidGuardIPWeb, $re)) {
        $SquidGuardServerName = $re[1];
        $SquidGuardApachePort = $re[2];
    }
    if ($SquidGuardServerName == "/") {
        $SquidGuardServerName = null;
    }
    if (preg_match("#(.+?)\\/#", $SquidGuardServerName)) {
        $SquidGuardServerName = $re[1];
    }
    if (preg_match("#^\\/(.+)#", $SquidGuardServerName)) {
        $SquidGuardServerName = $re[1];
    }
    $SquidGuardServerName = str_replace("/", "", $SquidGuardServerName);
    $html = "<div style='width:98%' class=form>\n\t<div class=explain style='font-size:18px'>{servername_squidguard_explain}</div>\n\t<table style='width:100%'>\n\t" . Field_text_table("servername_squidguard-{$t}", "{hostname}", $SquidGuardServerName, 35, null, 450) . Field_button_table_autonome("{apply}", "Save{$t}()", 35) . "</table>\t\n\t</div>\n<script>\nvar xSave{$t}=function(obj){\n\t\tYahooWin5Hide();\n\t\tRefreshTab('main_dansguardian_mainrules');\n\t \tLoadjs('dansguardian2.compile.php');\n}\n\nfunction Save{$t}(){\n     var XHR = new XHRConnection();\n\t XHR.appendData('servername_squidguard',document.getElementById('servername_squidguard-{$t}').value);\n     XHR.sendAndLoad('{$page}', 'POST',xSave{$t});     \t\n}\n</script>\t\t\t\n";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:30,代码来源:ufdbguard.urichange.php

示例3: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $t = time();
    $SquidEnableParentNTLM = intval($sock->GET_INFO("SquidEnableParentNTLM"));
    $SquidParentNTLMPort = intval($sock->GET_INFO("SquidParentNTLMPort"));
    $SquidParentNTLMProxy = $sock->GET_INFO("SquidParentNTLMProxy");
    $SquidParentNTLMProxyPort = intval($sock->GET_INFO("SquidParentNTLMProxyPort"));
    $SquidParentNTLMUsername = intval($sock->GET_INFO("SquidParentNTLMUsername"));
    $SquidParentNTLMPassword = intval($sock->GET_INFO("SquidParentNTLMPassword"));
    $SquidParentSayHostname = $sock->GET_INFO("SquidParentSayHostname");
    if ($SquidParentNTLMProxyPort == 0) {
        $SquidParentNTLMProxyPort = 8080;
    }
    if ($SquidParentNTLMPort == 0) {
        $SquidParentNTLMPort = rand(8080, 9090);
    }
    if ($SquidParentSayHostname == null) {
        $SquidParentSayHostname = $sock->getFrameWork("cmd.php?full-hostname=yes");
    }
    $p = Paragraphe_switch_img("{SquidEnableParentNTLM}", "{SquidEnableParentNTLM_text}", "SquidEnableParentNTLM-{$t}", $SquidEnableParentNTLM, null, 750);
    $html = "<table style='width:100%' class=form>\n<tr>\n\t<td valign='top' style=width:240px'><div id='parent-ntlm-status'></div>\n\t" . imgtootltip("refresh-32.png", null, "RefreshServ{$t}()", null) . "\n\t\n\t</td>\n\t<td valign='top' style='width:90%'>\n\t{$p}\n\t<table style='width:100%'>\n\t" . Field_text_table("SquidParentNTLMPort", "{local_listen_port}", $SquidParentNTLMPort, 22, null, 150) . Field_text_table("SquidParentSayHostname", "{hostname}", $SquidParentSayHostname, 22, null, 450) . Field_text_table("SquidParentNTLMProxy", "{remote_proxy}", $SquidParentNTLMProxy, 22, null, 450) . Field_text_table("SquidParentNTLMProxyPort", "{remote_port}", $SquidParentNTLMProxyPort, 22, null, 150) . Field_button_table_autonome("{apply}", "Save{$t}()", 36) . "</table>\n\t</td>\n</tr>\n</table>\n<script>\n\nfunction RefreshServ{$t}(){\n\tLoadAjax('parent-ntlm-status','{$page}?parent-ntlm-status=yes');\n}\n\nvar xSave{$t}= function (obj) {\n\tLoadjs('squid.restart.php?onlySquid=yes&onlyreload=yes&ApplyConfToo=yes&ask=yes',true);\n\tRefreshTab('main_squid_prents_tabs');\n}\t\t\t\n\t\t\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('SquidEnableParentNTLM',document.getElementById('SquidEnableParentNTLM-{$t}').value);\n\tXHR.appendData('SquidParentNTLMPort',document.getElementById('SquidParentNTLMPort').value);\n\tXHR.appendData('SquidParentNTLMProxy',document.getElementById('SquidParentNTLMProxy').value);\n\tXHR.appendData('SquidParentNTLMProxyPort',document.getElementById('SquidParentNTLMProxyPort').value);\n\tXHR.appendData('SquidParentSayHostname',document.getElementById('SquidParentSayHostname').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\t\n}\nRefreshServ{$t}();\n</script>\t   \t\t\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:26,代码来源:squid.master-ntlm.php

示例4: page

function page()
{
    $ID = intval($_GET["ID"]);
    $tpl = new templates();
    $page = CurrentPageName();
    $fields_size = 22;
    $rv = new squid_reverse();
    $q = new mysql_squid_builder();
    $sock = new sockets();
    $t = time();
    $servername = $_GET["servername"];
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM reverse_www WHERE servername='{$servername}'"));
    $cache_peer_id = $ligne["cache_peer_id"];
    $ligne2 = mysql_fetch_array($q->QUERY_SQL("SELECT cacheid FROM reverse_sources WHERE ID='{$cache_peer_id}'"));
    if (intval($ligne2) == 0) {
        echo FATAL_ERROR_SHOW_128("{nginx_error_no_cache_defined}");
        return;
    }
    $html[] = "<div style='width:98%' class=form>";
    $html[] = "<table style='width:100%'>";
    $html[] = "<tr><td colspan=2 style='font-size:40px;padding-bottom:20px'>{caching}</td></tr>";
    $html[] = Field_checkbox_table("proxy_buffering-{$t}", "{proxy_buffering}", $ligne["proxy_buffering"], $fields_size, "{proxy_buffering_text}");
    $html[] = Field_text_table("proxy_cache_min_uses-{$t}", "{proxy_cache_min_uses}", $ligne["proxy_cache_min_uses"], $fields_size, "{proxy_cache_min_uses_text}", 120);
    $html[] = Field_text_table("proxy_cache_valid-{$t}", "{proxy_cache_valid} ({minutes})", $ligne["proxy_cache_valid"], $fields_size, "{proxy_cache_valid_text}", 120);
    $html[] = Field_ipv4_table("proxy_buffers-{$t}", "{proxy_buffers}", $ligne["proxy_buffers"], $fields_size, "{proxy_buffers_text}", 120);
    $html[] = Field_text_table("proxy_buffer_size-{$t}", "{proxy_buffer_size} (k)", $ligne["proxy_buffer_size"], $fields_size, "{proxy_buffer_size_text}", 110);
    $html[] = Field_text_table("proxy_temp_file_write_size-{$t}", "{proxy_temp_file_write_size} (k)", $ligne["proxy_temp_file_write_size"], $fields_size, "{proxy_temp_file_write_size_text}", 110);
    $html[] = Field_text_table("proxy_max_temp_file_size-{$t}", "{proxy_max_temp_file_size} (MB)", $ligne["proxy_max_temp_file_size"], $fields_size, "{proxy_max_temp_file_size_text}", 110);
    $html[] = Field_button_table_autonome("{apply}", "Submit{$t}", 40);
    $html[] = "</table>";
    $html[] = "</div>\n\t<script>\n\tvar xSubmit{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);}\n\t\tRefreshTab('main_nginx_server');\n\t\t\$('#NGINX_MAIN_TABLE').flexReload();\n\t\t\$('#NGINX_DESTINATION_MAIN_TABLE').flexReload();\n\t\tvar ID={$ID}\n\t\tif(ID==0){ YahooWin2Hide();}\n\t\n\t}\n\t\n\t\n\tfunction Submit{$t}(){\n\t\tvar proxy_buffering=0\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('general-settings','{$servername}');\n\t\tif(document.getElementById('proxy_buffering-{$t}').checked){proxy_buffering=1;}\n\t\tXHR.appendData('proxy_cache_min_uses',document.getElementById('proxy_cache_min_uses-{$t}').value);\n\t\tXHR.appendData('proxy_buffering',proxy_buffering);\n\t\tXHR.appendData('proxy_cache_valid',document.getElementById('proxy_cache_valid-{$t}').value);\n\t\tXHR.appendData('proxy_buffers',document.getElementById('proxy_buffers-{$t}').value);\n\t\tXHR.appendData('proxy_buffer_size',document.getElementById('proxy_buffer_size-{$t}').value);\n\t\t\n\t\tXHR.appendData('proxy_max_temp_file_size',document.getElementById('proxy_max_temp_file_size-{$t}').value);\n\t\tXHR.appendData('proxy_temp_file_write_size',document.getElementById('proxy_temp_file_write_size-{$t}').value);\n\t\t\n\t\tXHR.sendAndLoad('{$page}', 'POST',xSubmit{$t});\n\t}\n\t</script>\n\t\t\n\t";
    echo $tpl->_ENGINE_parse_body(@implode("\n", $html));
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:33,代码来源:nginx.site.cache.php

示例5: new_member

function new_member()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $t = time();
    $html = "<div style='width:98%' class=form>\n\t<div class=explain style='font-size:16px'>{sshd_AllowUsers_explain}</div>\n\t<table style='width:100%'>\n\t\t\t\n\t" . Field_text_table("username-{$t}", "{user2}", null, 22, null, 450) . Field_text_table("domain-{$t}", "{domain}", null, 22, null, 450) . Field_button_table_autonome("{add}", "Save{$t}", 26) . "</table>\n\t<script>\n\tvar xSave{$t}= function (obj) {\n\t\tvar res=obj.responseText;\n\t\t\n\t\tif (res.length>3){\n\t\t\talert(res);\n\t\t\treturn;\n\t\t}\n\t\t\$('#SSHD_ALLOW_TABLE').flexReload();\n\t\tYahooWinHide();\n\t\t\n\t}\t\n\n\tfunction Save{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('username',encodeURIComponent(document.getElementById('username-{$t}').value));\n\t\tXHR.appendData('domain',encodeURIComponent(document.getElementById('domain-{$t}').value));\n\t\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\t\n\t}\n</script>\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:8,代码来源:sshd.AllowUsers.php

示例6: login

function login()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $failed = $tpl->javascript_parse_text("{failed}");
    $t = time();
    $html = "<div style='width:98%' class=form>\n\t<table style='width:100%'>\n\t" . Field_text_table("username-{$t}", "{username}", null, 26, "script:SaveCheck{$t}(event)", 400) . Field_password_table("password-{$t}", "{password}", null, 26, "script:SaveCheck{$t}(event)", 400) . Field_button_table_autonome("{submit}", "Save{$t}", 32) . "\n\t\t\t\n\t\t\t\n\t</div>\n<script>\nvar xSave{$t}= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length==0){alert('FATAL ERROR');return;};\n\tif(results=='FALSE'){\n\t\talert('{$failed}');\n\t\treturn;\n\t}\n\tAjaxTopMenu('template-top-menus','admin.top.menus.php');\n\tYahooWinBrowseHide();\n}\n\nfunction SaveCheck{$t}(e){\n\tif(!checkEnter(e)){return;}\n\tSave{$t}();\n}\n\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tvar pp=encodeURIComponent(document.getElementById('password-{$t}').value);\n\tXHR.appendData('artica_password',pp);\n\tXHR.appendData('artica_username',document.getElementById('username-{$t}').value);\n\tXHR.appendData('VIA_API','1');\n\tXHR.sendAndLoad('logon.php', 'POST',xSave{$t});\n}\n</script>\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:9,代码来源:public.logon.php

示例7: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $squid_reverse = new squid_reverse();
    $sslcertificates = $squid_reverse->ssl_certificates_list();
    $you_need_to_compile = $tpl->javascript_parse_text("{you_need_to_compile}");
    $servername = $_GET["servername"];
    $q = new mysql_squid_builder();
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM reverse_www WHERE servername='{$servername}'"));
    if (!is_numeric($ligne["ssl_backend_port"])) {
        $ligne["ssl_backend_port"] = 443;
    }
    $t = time();
    $ssl_use_rcert = 0;
    $to = null;
    $AS_PEER_CERTIFICATE = 0;
    $AS_PEER_CERTIFICATE_EXPLAIN = null;
    $cache_peer_id = $ligne["cache_peer_id"];
    if ($cache_peer_id > 0) {
        if (!$q->FIELD_EXISTS("reverse_sources", "ssl_remotecert")) {
            $q->QUERY_SQL("ALTER TABLE `reverse_sources` ADD `ssl_remotecert` smallint(1) NOT NULL DEFAULT '0'");
            if (!$q->ok) {
                echo $q->mysql_error_html();
            }
        }
        $ligne2 = mysql_fetch_array($q->QUERY_SQL("SELECT servername,ssl_remotecert FROM reverse_sources WHERE ID='{$cache_peer_id}'"));
        if (!$q->ok) {
            echo $q->mysql_error_html();
        }
        $to = " {to} &laquo;{$ligne2["servername"]}&raquo;";
    }
    if (intval($cache_peer_id) > 0) {
        $ligne2 = mysql_fetch_array($q->QUERY_SQL("SELECT certificate FROM reverse_sources WHERE ID='{$cache_peer_id}'"));
        if (trim($ligne2["certificate"] != null)) {
            $ligne["certificate"] = $ligne2["certificate"];
            $AS_PEER_CERTIFICATE = 1;
        }
    }
    if ($AS_PEER_CERTIFICATE == 1) {
        $AS_PEER_CERTIFICATE_EXPLAIN = "<div class=text-info>{reverse_proxy_use_destination_server_certificate}</div>";
    }
    $html[] = "<div style='width:98%' class=form>{$AS_PEER_CERTIFICATE_EXPLAIN}";
    $html[] = "<table style='width:100%'>";
    $html[] = "<tr><td colspan=2 style='font-size:28px;padding-bottom:20px'>{port}:{$ligne["port"]} &laquo;{$servername}&raquo;{$to}</td></tr>";
    $html[] = "<tr><td colspan=2>" . Paragraphe_switch_img("{reverse_proxy_ssl}", "{NGINX_USE_SSL_EXPLAIN}", "ssl-{$t}", $ligne["ssl"], null, 700, "SwitchOffCertificate{$t}") . "</td></tr>";
    $html[] = Field_list_table("certificate-{$t}", "{certificate}", $ligne["certificate"], 22, $sslcertificates, null, 450);
    if ($cache_peer_id > 0) {
        $html[] = "<tr><td colspan=2>" . Paragraphe_switch_img("{destination_use_ssl}", "{NGINX_USE_SSL_EXPLAIN2}", "ssl_backend-{$t}", $ligne["ssl_backend"], null, 700) . "</td></tr>";
        $html[] = "<tr><td colspan=2>" . Paragraphe_switch_img("{SSL_CLIENT_VERIFICATION}", "{SSL_CLIENT_VERIFICATION_EXPLAIN}", "ssl_client_certificate-{$t}", $ligne["ssl_client_certificate"], null, 700) . "</td></tr>";
    }
    $html[] = Field_button_table_autonome("{apply}", "Submit{$t}", 30);
    $html[] = "</table>";
    $html[] = "</div>\n<script>\nvar xSubmit{$t}= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>3){alert(results);return;}\n\t\$('#NGINX_MAIN_TABLE').flexReload();\n\talert('{$you_need_to_compile}');\n}\n\t\n\t\nfunction Submit{$t}(){\n\tvar XHR = new XHRConnection();\n\tvar AS_PEER_CERTIFICATE={$AS_PEER_CERTIFICATE};\n\tXHR.appendData('servername','{$servername}');\n\tXHR.appendData('cache_peer_id','{$cache_peer_id}');\n\tXHR.appendData('ssl',document.getElementById('ssl-{$t}').value);\n\tif(document.getElementById('ssl_backend-{$t}')){\n\t\tXHR.appendData('ssl_backend',document.getElementById('ssl_backend-{$t}').value);\n\t}\n\tif(document.getElementById('ssl_client_certificate-{$t}')){\n\t\tXHR.appendData('ssl_client_certificate',document.getElementById('ssl_client_certificate-{$t}').value);\n\t}\t\n\t\n\t\n\t\n\tXHR.appendData('certificate',document.getElementById('certificate-{$t}').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSubmit{$t});\n}\n\nfunction SwitchOffCertificate{$t}(){\n\tvar ssl=document.getElementById('ssl-{$t}').value;\n\t\n}\n\nfunction Check{$t}(){\n\tvar AS_PEER_CERTIFICATE={$AS_PEER_CERTIFICATE};\n\tif( AS_PEER_CERTIFICATE==1){\n\t\tdocument.getElementById('certificate-{$t}').disabled=true;\n\t}\n\tSwitchOffCertificate{$t}();\n}\nCheck{$t}();\n</script>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body(@implode("\n", $html));
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:56,代码来源:nginx.site.ssl.php

示例8: popup

function popup(){
	$page=CurrentPageName();
	$sock=new sockets();
	$users=new usersMenus();
	$t=time();
	$SquidGuardIPWeb=$sock->GET_INFO("SquidGuardIPWeb");
	$fulluri=$sock->GET_INFO("SquidGuardIPWeb");
	$SquidGuardServerName=$sock->GET_INFO("SquidGuardServerName");
	
	if(preg_match("#\/(.+?):([0-9]+)\/#",$SquidGuardIPWeb,$re)){$SquidGuardIPWeb="{$re[1]}:{$re[2]}";}
	
	if(preg_match("#(.+?):([0-9]+)#",$SquidGuardIPWeb,$re)){
		$SquidGuardServerName=$re[1];
		$SquidGuardApachePort=$re[2];
	}
	
	if($SquidGuardServerName=="/"){$SquidGuardServerName=null;}
	$html="<div style='width:98%' class=form>
	<table style='width:100%'>
	". Field_ipv4_table("servername_squidguard-$t", "{ipaddr}",$SquidGuardServerName,35).
	Field_button_table_autonome("{apply}", "Save$t()",35)."</table>	
	</div>
<script>
var xSave$t=function(obj){
		YahooWin5Hide();
		RefreshTab('main_dansguardian_mainrules');
	 	Loadjs('dansguardian2.compile.php');
}

function Save$t(){
     var XHR = new XHRConnection();
	 XHR.appendData('servername_squidguard',document.getElementById('servername_squidguard-$t').value);
     XHR.sendAndLoad('$page', 'POST',xSave$t);     	
}
</script>			
";
	
$tpl=new templates();
	echo $tpl->_ENGINE_parse_body($html);
	
	
	
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:43,代码来源:ufdbguard.urichange.php

示例9: new_member

function new_member(){
	$tpl=new templates();
	$page=CurrentPageName();
	$t=time();
	$html="<div style='width:98%' class=form>
	<div class=text-info style='font-size:16px'>{sshd_AllowUsers_explain}</div>
	<table style='width:100%'>
			
	".Field_text_table("username-$t", "{user2}",null,22,null,450).
	Field_text_table("domain-$t", "{domain}",null,22,null,450).
	Field_button_table_autonome("{add}", "Save$t",26).
	"</table>
	<script>
	var xSave$t= function (obj) {
		var res=obj.responseText;
		
		if (res.length>3){
			alert(res);
			return;
		}
		$('#SSHD_ALLOW_TABLE').flexReload();
		YahooWinHide();
		
	}	

	function Save$t(){
		var XHR = new XHRConnection();
		XHR.appendData('username',encodeURIComponent(document.getElementById('username-$t').value));
		XHR.appendData('domain',encodeURIComponent(document.getElementById('domain-$t').value));
		XHR.sendAndLoad('$page', 'POST',xSave$t);	
	}
</script>	
	";
	
echo $tpl->_ENGINE_parse_body($html);
	
	
	
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:39,代码来源:sshd.AllowUsers.php

示例10: websites_popup_webserver_replace_popup

function websites_popup_webserver_replace_popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $servername = $_GET["servername"];
    $q = new mysql_squid_builder();
    $title = "{new_rule}";
    $bt = "{add}";
    $ID = intval($_GET["replaceid"]);
    $boot = new boostrap_form();
    $sock = new sockets();
    $servername = $_GET["servername"];
    $t = time();
    $fields_size = 22;
    if ($ID > 0) {
        $q = new mysql_squid_builder();
        $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM nginx_replace_www WHERE ID='{$ID}'"));
        $bt = "{apply}";
        $title = "{$ligne["rulename"]}";
        $ligne["stringtosearch"] = stripslashes($ligne["stringtosearch"]);
        $ligne["replaceby"] = stripslashes($ligne["replaceby"]);
        $servername = $ligne["servername"];
    }
    if ($ligne["tokens"] == null) {
        $ligne["tokens"] = "gir";
    }
    if ($ligne["rulename"] == null) {
        $ligne["rulename"] = time();
    }
    $html[] = "<div style='width:98%' class=form><div style='font-size:30px;margin-bottom:20px'>{$title}</div>\n\t<div class=explain style='font-size:18px'>{nginx_subst_explain}</div>";
    $html[] = "<table style='width:100%'>";
    $html[] = Field_text_table("rulename-{$t}", "{rulename}", $ligne["rulename"], $fields_size, null, 450);
    $html[] = Field_text_table("zorder-{$t}", "{order}", intval($ligne["zorder"]), $fields_size, null, 110);
    $html[] = Field_area_table("stringtosearch-{$t}", "{search}", $ligne["stringtosearch"], $fields_size, null, 145);
    $html[] = Field_checkbox_table("AsRegex-{$t}", "{regex}", $ligne["AsRegex"], $fields_size, "{replace_regex_explain}");
    $html[] = Field_area_table("replaceby-{$t}", "{replace}", $ligne["replaceby"], $fields_size, null, 145);
    $html[] = Field_text_table("tokens-{$t}", "{flags}", $ligne["tokens"], $fields_size, null);
    $html[] = Field_button_table_autonome($bt, "Submit{$t}", 30);
    $html[] = "</table>";
    $html[] = "</div>\n<script>\n\tvar xSubmit{$t}= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>3){alert(results);}\n\t\$('#NGINX_MAIN_TABLE').flexReload();\n\t\$('#NGINX_REPLACE_RULES').flexReload();\n\tvar ID={$ID}\n\tif(ID==0){ YahooWin3Hide();}\n\t\n}\n\t\n\t\nfunction Submit{$t}(){\n\tvar AsRegex=0\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('replaceid','{$ID}');\n\tif(document.getElementById('AsRegex-{$t}').checked){AsRegex=1;}\n\tXHR.appendData('servername','{$servername}');\n\tXHR.appendData('rulename',encodeURIComponent(document.getElementById('rulename-{$t}').value));\n\tXHR.appendData('zorder',document.getElementById('zorder-{$t}').value);\n\tXHR.appendData('stringtosearch',encodeURIComponent(document.getElementById('stringtosearch-{$t}').value));\n\tXHR.appendData('replaceby',encodeURIComponent(document.getElementById('replaceby-{$t}').value));\n\tXHR.appendData('AsRegex',AsRegex);\n\tXHR.appendData('tokens',document.getElementById('tokens-{$t}').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSubmit{$t});\n}\n</script>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body(@implode("\n", $html));
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:42,代码来源:nginx.replace.rules.php

示例11: rule_popup

function rule_popup()
{
    $ID = intval($_GET["ID"]);
    $tpl = new templates();
    $page = CurrentPageName();
    $fields_size = 22;
    $q = new mysql_squid_builder();
    $sock = new sockets();
    $t = time();
    $bt = "{add}";
    if ($ID > 0) {
        $bt = "{apply}";
    }
    $Timez[1] = "{by_hour}";
    $Timez[2] = "{by_day}";
    $Timez[3] = "{by_week}";
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM webfilter_quotas WHERE ID='{$ID}'"));
    if (!$q->ok) {
        echo FATAL_ERROR_SHOW_128($q->mysql_error);
        return;
    }
    $Timez[0] = "{by_hour}";
    if (!is_numeric($ligne["quotasize"])) {
        $ligne["quotasize"] = 250;
    }
    if (!is_numeric($ligne["quotaPeriod"])) {
        $ligne["quotaPeriod"] = 1;
    }
    if ($ligne["groupname"] == null) {
        $ligne["groupname"] = $tpl->javascript_parse_text("{new_rule}");
        $ligne["enabled"] = 1;
        $ligne["zOrder"] = 0;
    }
    $html[] = "<div style='width:98%;font-size:28px;margin-bottom:20px'>{rule}: ({$ID}) {$ligne["groupname"]}</div>";
    $html[] = "<div style='width:98%' class=form>";
    $html[] = "<table style='width:100%'>";
    $html[] = Field_text_table("groupname-{$t}", "{rulename}", $ligne["groupname"], $fields_size, null, 450);
    $html[] = Field_checkbox_table("enabled-{$t}", "{enabled}", $ligne["enabled"], $fields_size, null, "CheckEnabled{$t}()");
    $html[] = Field_text_table("zorder-{$t}", "{order}", $ligne["zOrder"], $fields_size, null, 110);
    $html[] = Field_text_table("quotasize-{$t}", "{max_size} MB", $ligne["quotasize"], $fields_size, null, 110);
    $html[] = Field_list_table("quotaPeriod-{$t}", "{period}", $ligne["quotaPeriod"], $fields_size, $Timez, null, 450);
    $html[] = Field_checkbox_table("AllSystems-{$t}", "{AllSystems}", $ligne["AllSystems"], $fields_size, null, "blur()");
    $html[] = Field_checkbox_table("UseExternalWebPage-{$t}", "{UseExternalWebPage}", $ligne["UseExternalWebPage"], $fields_size, null, "UnCheckUseExternalWebPage{$t}()");
    $html[] = Field_text_table("ExternalWebPage-{$t}", "{ExternalWebPage}", $ligne["ExternalWebPage"], $fields_size, null, 450);
    $html[] = Field_button_table_autonome($bt, "Submit{$t}", 30);
    $html[] = "</table>";
    $html[] = "</div>\n<script>\nvar xSubmit{$t}= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>3){alert(results);return;}\n\t\$('#SQUID_ARTICA_QUOTA_RULES').flexReload();\n\tvar ID='{$ID}';\n\tif(ID==0){ YahooWin3Hide();return;}\n\tRefreshTab('main_quota_rule_{$ID}');\n}\n\t\n\n\t\nfunction UnCheckUseExternalWebPage{$t}(){\n\tif(!document.getElementById('enabled-{$t}').checked){return;}\n\tif(document.getElementById('UseExternalWebPage-{$t}').checked){\n\t\tdocument.getElementById('ExternalWebPage-{$t}').disabled=false;\n\t}else{\n\t\tdocument.getElementById('ExternalWebPage-{$t}').disabled=true;\n\t}\n}\n\nfunction CheckEnabled{$t}(){\n\tdocument.getElementById('ExternalWebPage-{$t}').disabled=true;\n\tdocument.getElementById('UseExternalWebPage-{$t}').disabled=true;\n\tdocument.getElementById('groupname-{$t}').disabled=true;\n\tdocument.getElementById('zorder-{$t}').disabled=true;\n\tdocument.getElementById('quotasize-{$t}').disabled=true;\n\tdocument.getElementById('quotaPeriod-{$t}').disabled=true;\n\tdocument.getElementById('AllSystems-{$t}').disabled=true;\n\tif(document.getElementById('enabled-{$t}').checked){\n\t\tdocument.getElementById('ExternalWebPage-{$t}').disabled=false;\n\t\tdocument.getElementById('UseExternalWebPage-{$t}').disabled=false;\n\t\tdocument.getElementById('groupname-{$t}').disabled=false;\n\t\tdocument.getElementById('quotasize-{$t}').disabled=false;\n\t\tdocument.getElementById('quotaPeriod-{$t}').disabled=false;\n\t\tdocument.getElementById('AllSystems-{$t}').disabled=false;\n\t\tdocument.getElementById('zorder-{$t}').disabled=false;\n\t}\n}\n\t\n\t\nfunction Submit{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('ID','{$ID}');\n\tXHR.appendData('groupname',encodeURIComponent(document.getElementById('groupname-{$t}').value));\n\tXHR.appendData('quotasize',document.getElementById('quotasize-{$t}').value);\n\tXHR.appendData('quotaPeriod',document.getElementById('quotaPeriod-{$t}').value);\n\tXHR.appendData('ExternalWebPage',encodeURIComponent(document.getElementById('ExternalWebPage-{$t}').value));\n\tXHR.appendData('zorder',document.getElementById('zorder-{$t}').value);\n\tif(document.getElementById('AllSystems-{$t}').checked){XHR.appendData('AllSystems','1');}else{XHR.appendData('AllSystems','0');}\n\tif(document.getElementById('enabled-{$t}').checked){XHR.appendData('enabled','1');}else{XHR.appendData('enabled','0');}\n\tif(document.getElementById('UseExternalWebPage-{$t}').checked){XHR.appendData('UseExternalWebPage','1');}else{XHR.appendData('UseExternalWebPage','0');}\n\tXHR.sendAndLoad('{$page}', 'POST',xSubmit{$t});\n\t}\n\t\n\t\n\tUnCheckUseExternalWebPage{$t}();\n\tCheckEnabled{$t}();\n</script>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body(@implode("\n", $html));
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:49,代码来源:squid.artica-quotas.php

示例12: group_popup

function group_popup()
{
    $ID = $_GET["ID"];
    $q = new mysql_squid_builder();
    $page = CurrentPageName();
    $tpl = new templates();
    $title = "{new_group}";
    $bt = "{add}";
    $t = time();
    if (!$q->TABLE_EXISTS("nginx_exploits_groups")) {
        $sql = "CREATE TABLE IF NOT EXISTS `nginx_exploits_groups` (\n\t\t\t  `ID` INT NOT NULL AUTO_INCREMENT,\n\t\t\t  `groupname` CHAR(255)  NOT NULL,\n\t\t\t  PRIMARY KEY (`ID`),\n\t\t\t  KEY `groupname` (`groupname`)\n\t\t\t)  ENGINE = MYISAM;";
        if (!$q->QUERY_SQL($sql)) {
            echo $q->mysql_error_html();
        }
    }
    $sock = new sockets();
    if ($ID > 0) {
        $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM nginx_exploits_groups WHERE ID='{$ID}'"));
        $bt = "{apply}";
        $title = utf8_encode("{$ligne["groupname"]}");
    }
    $html[] = "<div style='width:98%' class=form>";
    $html[] = "<table style='width:100%'>";
    $html[] = "<tr style='height:75px'><td colspan=2 style='font-size:36px;margin-bottom:40px'>{$title}</td></tr>";
    $html[] = Field_checkbox_table("addef-{$t}", "{add_defaults}", 0, 26);
    $html[] = Field_text_table("groupname-{$t}", "{groupname}", $ligne["groupname"], 26, null, 450);
    $html[] = Field_button_table_autonome($bt, "Submit{$t}", 30);
    $html[] = "</table>";
    $html[] = "</div>\n<script>\n\tvar xSubmit{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);}\n\t\t\$('#NGINX_ANTI_EXPLOITS').flexReload();\n\t\tvar ID={$ID};\n\t\tif(ID==0){ YahooWin5Hide();}\n\t\t\n\t}\n\n\n\tfunction Submit{$t}(){\n\t\tvar XHR = new XHRConnection();\t\n\t\tXHR.appendData('editgroupid','{$ID}');\n\t\tXHR.appendData('servername','{$_GET["servername"]}');\n\t\tXHR.appendData('groupname',encodeURIComponent(document.getElementById('groupname-{$t}').value));\n\t\tif(document.getElementById('addef-{$t}').checked){ XHR.appendData('addef',1); }else{ XHR.appendData('addef',0); }\n\t\tXHR.sendAndLoad('{$page}', 'POST',xSubmit{$t});\t\n\t}\n</script>";
    echo $tpl->_ENGINE_parse_body(@implode("\n", $html));
}
开发者ID:articatech,项目名称:artica,代码行数:31,代码来源:nginx.anti-exploits.php

示例13: rule_parameters

function rule_parameters()
{
    $ID = $_GET["ID"];
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql_squid_builder();
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM artica_caches WHERE ID='{$ID}'", "artica_backup"));
    $t = time();
    if ($ligne["MaxSizeBytes"] == 0) {
        $ligne["MaxSizeBytes"] = 3145728000;
    }
    $ligne["MaxSizeBytes"] = $ligne["MaxSizeBytes"] / 1024;
    $ligne["MaxSizeBytes"] = $ligne["MaxSizeBytes"] / 1024;
    $html = "<div style='width:98%' class=form>\n\t<table style='width:100%'>" . Field_checkbox_table("enabled-{$t}", "{enabled}", $ligne["enabled"]) . Field_text_table("rulename-{$t}", "{rulename}", $ligne["rulename"], 18, null, 250) . Field_text_table("sitename-{$t}", "{sitename}", $ligne["sitename"], 18, null, 250) . Field_text_table("MaxSizeBytes-{$t}", "{max_size} MB", $ligne["MaxSizeBytes"], 18, null, 250) . Field_button_table_autonome("{apply}", "Save{$t}", 26) . "\n\t</table>\n</div>\t\t\n<script>\nvar xSave{$t}=function (obj) {\n\tvar tempvalue=obj.responseText;\n\tif(tempvalue.length>3){alert(tempvalue);}\n\t\$('#squid_enforce_rules_table').flexReload();\n}\n\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tvar EnableSquidCacheBoosters=0;\n\tif(document.getElementById('enabled-{$t}').checked){\n\tXHR.appendData('enabled',1);\n\t}else{XHR.appendData('enabled',0);}\n\t\n\tXHR.appendData('ID','{$_GET["ID"]}');\n\tXHR.appendData('MaxSizeBytes',document.getElementById('MaxSizeBytes-{$t}').value)\n\tXHR.appendData('rulename',encodeURIComponent(document.getElementById('rulename-{$t}').value));\n\tXHR.appendData('sitename',encodeURIComponent(document.getElementById('rulename-{$t}').value));\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\t\t\t\t\t\t\n}\n</script>\t\t\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:16,代码来源:squid.artica-rules.whitelist.php

示例14: cache_popup

function cache_popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $servername = $_GET["servername"];
    $q = new mysql_squid_builder();
    $title = "{new_cache}";
    $bt = "{add}";
    $ID = $_GET["ID"];
    $sock = new sockets();
    $t = time();
    if (!is_numeric($ID)) {
        $ID = 0;
    }
    $NginxProxyStorePath = $sock->GET_INFO("NginxProxyStorePath");
    if ($NginxProxyStorePath == null) {
        $NginxProxyStorePath = "/home/nginx";
    }
    if ($ID > 0) {
        $q = new mysql_squid_builder();
        $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM nginx_caches WHERE ID='{$ID}'"));
        $bt = "{apply}";
        $title = "{$ligne["keys_zone"]}";
    }
    if ($ligne["keys_zone"] == null) {
        $ligne["keys_zone"] = time();
    }
    if (trim($ligne["directory"]) == null) {
        $ligne["directory"] = $NginxProxyStorePath . "/{$ligne["keys_zone"]}";
    }
    if ($ligne["levels"] == null) {
        $ligne["levels"] = "1:2";
    }
    if (!is_numeric($ligne["keys_zone_size"])) {
        $ligne["keys_zone_size"] = 1;
    }
    if (!is_numeric($ligne["max_size"])) {
        $ligne["max_size"] = 2;
    }
    if (!is_numeric($ligne["inactive"])) {
        $ligne["inactive"] = 10;
    }
    if (!is_numeric($ligne["loader_files"])) {
        $ligne["loader_files"] = 100;
    }
    if (!is_numeric($ligne["loader_sleep"])) {
        $ligne["loader_sleep"] = 10;
    }
    if (!is_numeric($ligne["loader_threshold"])) {
        $ligne["loader_threshold"] = 100;
    }
    $fontsize = 22;
    $html[] = "<div style='width:100%;font-size:28px;margin-bottom:20px'>{$title}</div>";
    $html[] = "<div style='width:98%' class=form>";
    $html[] = "<table style='width:100%'>";
    $html[] = Field_text_table("keys_zone-{$t}", "{name}", $ligne["keys_zone"], $fontsize, null, 450);
    $html[] = Field_text_table("directory-{$t}", "{directory}", $ligne["directory"], $fontsize, null, 450);
    $html[] = Field_text_table("levels-{$t}", "{levels}", $ligne["levels"], $fontsize, null, 110);
    $html[] = Field_text_table("keys_zone_size-{$t}", "{memory_size} (MB)", $ligne["keys_zone_size"], $fontsize, null, 110);
    $html[] = Field_text_table("max_size-{$t}", "{max_size} (GB)", $ligne["max_size"], $fontsize, null, 110);
    $html[] = Field_text_table("inactive-{$t}", "{inactive} ({minutes})", $ligne["inactive"], $fontsize, "{nginx_inactive_explain}", 110);
    $html[] = Field_text_table("loader_files-{$t}", "{loader_files}", $ligne["loader_files"], $fontsize, null, 110);
    $html[] = Field_text_table("loader_sleep-{$t}", "{loader_sleep} {milliseconds}", $ligne["loader_sleep"], $fontsize, null, 110);
    $html[] = Field_text_table("loader_threshold-{$t}", "{loader_threshold} {milliseconds}", $ligne["loader_threshold"], $fontsize, null, 110);
    $html[] = Field_button_table_autonome($bt, "Submit{$t}", 30);
    $html[] = "</table>";
    $html[] = "</div>\n<script>\nvar xSubmit{$t}= function (obj) {\n\tvar results=obj.responseText;\n\tvar ID={$ID};\n\tif(results.length>3){alert(results);}\n\t\$('#NGINX_CACHE_TABLE').flexReload();\n\tif(ID==0){ YahooWin4Hide();}\n}\n\t\n\t\nfunction Submit{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('save-cache','{$ID}');\n\tXHR.appendData('ID','{$ID}');\n\tXHR.appendData('keys_zone',document.getElementById('keys_zone-{$t}').value);\n\tXHR.appendData('directory',document.getElementById('directory-{$t}').value);\n\tXHR.appendData('levels',document.getElementById('levels-{$t}').value);\n\tXHR.appendData('keys_zone_size',document.getElementById('keys_zone_size-{$t}').value);\n\tXHR.appendData('max_size',document.getElementById('max_size-{$t}').value);\n\tXHR.appendData('inactive',document.getElementById('inactive-{$t}').value);\n\tXHR.appendData('loader_files',document.getElementById('loader_files-{$t}').value);\n\tXHR.appendData('loader_sleep',document.getElementById('loader_sleep-{$t}').value);\n\tXHR.appendData('loader_threshold',document.getElementById('loader_threshold-{$t}').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSubmit{$t});\n}\n</script>\n";
    echo $tpl->_ENGINE_parse_body(@implode("\n", $html));
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:69,代码来源:nginx.caches.php

示例15: general_settings

function general_settings()
{
    $ID = $_GET["ID"];
    $tpl = new templates();
    $page = CurrentPageName();
    $fields_size = 22;
    $rv = new squid_reverse();
    $q = new mysql_squid_builder();
    $sock = new sockets();
    $t = time();
    $sslcertificates = $rv->ssl_certificates_list();
    $sslcertificates[null] = "{none}";
    $results = $q->QUERY_SQL("SELECT ID,keys_zone FROM nginx_caches ORDER BY keys_zone LIMIT 0,250");
    $nginx_caches[0] = "{none}";
    while ($ligne2 = mysql_fetch_array($results, MYSQL_ASSOC)) {
        $nginx_caches[$ligne2["ID"]] = $ligne2["keys_zone"];
    }
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM reverse_sources WHERE ID='{$ID}'"));
    if (!$q->ok) {
        echo FATAL_ERROR_SHOW_128($q->mysql_error);
        return;
    }
    $html[] = "<div style='width:98%' class=form>";
    $html[] = "<table style='width:100%'>";
    $html[] = "<tr><td colspan=2 style='font-size:28px;padding-bottom:20px'>{main_parameters} {$ligne["ipaddr"]}:{$ligne["port"]}</td></tr>";
    $html[] = Field_text_table("servername-{$t}", "{name}", $ligne["servername"], $fields_size, null, 450);
    $html[] = Field_ipv4_table("ipaddr-{$t}", "{ipaddr}", $ligne["ipaddr"], $fields_size, null, 110);
    $html[] = Field_text_table("port-{$t}", "{inbound_port}", $ligne["port"], $fields_size, null, 110);
    $html[] = Field_text_table("forceddomain-{$t}", "{forceddomain}", $ligne["forceddomain"], $fields_size, null, 450);
    $html[] = Field_text_table("remote_path-{$t}", "{root_directory}", $ligne["remote_path"], $fields_size, null, 450);
    $html[] = Field_list_table("cacheid-{$t}", "{cache_directory}", $ligne["cacheid"], $fields_size, $nginx_caches, null, 450);
    $html[] = Field_list_table("certificate-{$t}", "{certificate}", $ligne["certificate"], $fields_size, $sslcertificates, null, 450);
    $html[] = Field_button_table_autonome("{apply}", "Submit{$t}", 30);
    $html[] = "</table>";
    $html[] = "</div>\n\t<script>\n\tvar xSubmit{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);}\n\t\t\$('#NGINX_MAIN_TABLE').flexReload();\n\t\n\t}\n\t\n\t\n\tfunction Submit{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('general-settings','{$ID}');\n\t\tXHR.appendData('servername',document.getElementById('servername-{$t}').value);\n\t\tXHR.appendData('ipaddr',document.getElementById('ipaddr-{$t}').value);\n\t\tXHR.appendData('port',document.getElementById('port-{$t}').value);\n\t\tXHR.appendData('forceddomain',document.getElementById('forceddomain-{$t}').value);\n\t\tvar pp=encodeURIComponent(document.getElementById('remote_path-{$t}').value);\n\t\tXHR.appendData('remote_path',document.getElementById('remote_path-{$t}').value);\n\t\tXHR.appendData('cacheid',document.getElementById('cacheid-{$t}').value);\n\t\tXHR.appendData('certificate',document.getElementById('certificate-{$t}').value);\n\t\tXHR.sendAndLoad('{$page}', 'POST',xSubmit{$t});\n\t}\n\t</script>\n\t\t\n\t";
    echo $tpl->_ENGINE_parse_body(@implode("\n", $html));
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:37,代码来源:nginx.peer.php


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