本文整理汇总了PHP中networking类的典型用法代码示例。如果您正苦于以下问题:PHP networking类的具体用法?PHP networking怎么用?PHP networking使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了networking类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: SAVE_SERVER
function SAVE_SERVER()
{
$tpl = new templates();
if (trim($vpn->main_array["GLOBAL"]["IP_START"]) == null) {
$vpn->main_array["GLOBAL"]["IP_START"] = "10.8.0.0";
}
if (preg_match("#^([0-9]+)\\.([0-9]+)\\.([0-9]+)\\.#", $vpn->main_array["GLOBAL"]["IP_START"], $re)) {
$IP_START_CONFIG = "{$re[1]}.{$re[2]}.{$re[3]}";
}
if (isset($_POST["IP_START"])) {
preg_match("#^([0-9]+)\\.([0-9]+)\\.([0-9]+)\\.#", $_POST["IP_START"], $re);
$startip = "{$re[1]}.{$re[2]}.{$re[3]}";
$ips = new networking();
$ipsArray = $ips->ALL_IPS_GET_ARRAY();
while (list($localip, $ligne) = each($ipsArray)) {
preg_match("#^([0-9]+)\\.([0-9]+)\\.([0-9]+)\\.#", $localip, $re);
$currentIP = "{$re[1]}.{$re[2]}.{$re[3]}";
if ($currentIP == $IP_START_CONFIG) {
continue;
}
if ($currentIP == $startip) {
echo $tpl->javascript_parse_text("{ERROR_OPENVPN_CLIENTISSAMEIPSERVER}\n`{$currentIP}` = `{$startip}`");
$_POST["IP_START"] = "10.8.0.0";
return;
}
}
}
$vpn = new openvpn();
while (list($num, $ligne) = each($_POST)) {
$vpn->main_array["GLOBAL"][$num] = $ligne;
}
$vpn->Save();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:33,代码来源:index.openvpn.server.php
示例2: popup
function popup()
{
$page = CurrentPageName();
$tpl = new templates();
$sock = new sockets();
$tcp = new networking();
$EnableDNSLinker = $sock->GET_INFO("EnableDNSLinker");
$EnableDNSLinkerCreds = unserialize(base64_decode($sock->GET_INFO("EnableDNSLinkerCreds")));
if (preg_match("#^(.+?):#", $EnableDNSLinkerCreds["CREDS"], $re)) {
$SuperAdmin = $re[1];
}
$hostname = $EnableDNSLinkerCreds["hostname"];
$listen_port = $EnableDNSLinkerCreds["listen_port"];
$listen_ip = $EnableDNSLinkerCreds["listen_addr"];
$send_listen_ip = $EnableDNSLinkerCreds["send_listen_ip"];
if (!is_numeric($EnableDNSLinker)) {
$EnableDNSLinker = 0;
}
if (!is_numeric($listen_port)) {
$listen_port = 9000;
}
$t = time();
$p = Paragraphe_switch_img("{activate_dns_linker}", "{activate_dns_linker_text}", "EnableDNSLinker", $EnableDNSLinker, null, 500);
$ips = $tcp->ALL_IPS_GET_ARRAY();
$html = "<table style='width:100%' class=form>\n\t<tr>\n\t\t<td colspan=2>{$p}</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{hostname}:</td>\n\t\t<td>" . Field_text("hostname-{$t}", $hostname, "font-size:16px;width:99%") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{listen_port}:</td>\n\t\t<td>" . Field_text("listen_port-{$t}", $listen_port, "font-size:16px;width:90px") . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{SuperAdmin}:</td>\n\t\t<td>" . Field_text("SuperAdmin", $SuperAdmin, "font-size:16px;width:99%") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{password}:</td>\n\t\t<td>" . Field_password("SuperAdminPass", null, "font-size:16px;width:70%") . "</td>\n\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:16px'>{listen_ip}:</td>\n\t\t\t<td>" . Field_array_Hash($ips, "listen_addr-{$t}", $listen_ip, "style:font-size:16px;padding:3px") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:16px'>{send_listen_ip}:</td>\n\t\t\t<td>" . Field_array_Hash($ips, "send_listen_ip-{$t}", $send_listen_ip, "style:font-size:16px;padding:3px") . "</td>\n\t\t</tr>\t\t\t\t\t\t\t\t\t\t\t\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "Save{$t}()", "18") . "</td>\n\t</tr>\t\t\t\t\t\t\t\t\n\t</table>\t\t\n\t<script>\n\t\n\tvar x_Save{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);}\n\t\tYahooWin3Hide();\n\t}\t\n\t\t\n\t\tfunction Save{$t}(){\n\t\t\tvar SuperAdminPass=document.getElementById('SuperAdminPass').value;\n\t\t\tif(SuperAdminPass.length==0){\n\t\t\t\talert('Please, define the password...\\n');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar pp=encodeURIComponent(document.getElementById('SuperAdminPass').value);\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('EnableDNSLinker',document.getElementById('EnableDNSLinker').value);\n\t\t\tXHR.appendData('SuperAdmin',document.getElementById('SuperAdmin').value);\n\t\t\tXHR.appendData('hostname',document.getElementById('hostname-{$t}').value);\n\t\t\tXHR.appendData('listen_port',document.getElementById('listen_port-{$t}').value);\n\t\t\tXHR.appendData('listen_addr',document.getElementById('listen_addr-{$t}').value);\n\t\t\tXHR.appendData('send_listen_ip',document.getElementById('send_listen_ip-{$t}').value);\n\t\t\tXHR.appendData('SuperAdminPass',pp);\n\t\t\tAnimateDiv('EnableDNSLinker_img');\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_Save{$t});\t\t\t\n\t\t\n\t\t}\n\t</script>\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:27,代码来源:dns.linker.php
示例3: popup
function popup()
{
$mysql = new mysqlserver();
$net = new networking();
$array = $net->ALL_IPS_GET_ARRAY();
$sock = new sockets();
$EnableZarafaTuning = $sock->GET_INFO("EnableZarafaTuning");
if (!is_numeric($EnableZarafaTuning)) {
$EnableZarafaTuning = 0;
}
$users = new usersMenus();
if (!$users->ZARAFA_INSTALLED) {
$EnableZarafaTuning = 0;
}
$array[null] = "{loopback}";
$bind = Field_array_Hash($array, "bind-address", $mysql->main_array["bind-address"], null, null, 0, "font-size:13px;padding:3px");
$chars = Charsets();
$charsets = Field_array_Hash($chars, "default-character-set", $mysql->main_array["default-character-set"], null, null, 0, "font-size:13px;padding:3px");
//Les devs de mysql conseillent un key_buffer de la taille de la somme de tous les fichiers .MYI dans le repertoire mysql.
$hover = CellRollOver();
$form = "\t<table style='width:100%' class=form>\n\t<tr {$hover}>\n\t\t<td class=legend>{skip-external-locking}:</td>\n\t\t<td>" . Field_yesno_checkbox('skip-external-locking', $mysql->main_array["skip_external_locking"]) . "</td>\n\t\t<td><code>skip-external-locking</code></td>\n\t\t<td>" . help_icon('{skip-external-locking_text}') . "</td>\n\t</tr>\n\t<tr {$hover}>\n\t\t<td class=legend>{skip-character-set-client-handshake}:</td>\n\t\t<td>" . Field_yesno_checkbox('skip-character-set-client-handshake', $mysql->main_array["skip-character-set-client-handshake"]) . "</td>\n\t\t<td><code>skip-character-set-client-handshake</code></td>\n\t\t<td>" . help_icon('{skip-character-set-client-handshake_text}') . "</td>\n\t</tr>\t\n\t<tr {$hover}>\n\t\t<td class=legend>Default charset:</td>\n\t\t<td colspan=3>{$charsets}</td>\n\t</tr>\t\n\t<tr {$hover}>\n\t\t<td class=legend>{bind-address}:</td>\n\t\t<td>{$bind}</td>\n\t\t<td><code>bind-address</code></td>\n\t\t<td> </td>\n\t</tr>\t\n\t<tr {$hover}>\n\t\t<td class=legend>{key_buffer}:</td>\n\t\t<td>" . Field_text("key_buffer", $mysql->main_array["key_buffer"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>key_buffer</code></td>\n\t\t<td>" . help_icon('{key_buffer_text}') . "</td>\n\t</tr>\n\t<tr {$hover}>\n\t\t<td class=legend>{key_buffer_size}:</td>\n\t\t<td>" . Field_text("key_buffer_size", $mysql->main_array["key_buffer_size"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>key_buffer_size</code></td>\n\t\t<td>" . help_icon('{key_buffer_size_text}') . "</td>\n\t</tr>\t\t\n\t<tr {$hover}>\n\t\t<td class=legend>{innodb_buffer_pool_size}:</td>\n\t\t<td>" . Field_text("innodb_buffer_pool_size", $mysql->main_array["innodb_buffer_pool_size"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>innodb_buffer_pool_size</code></td>\n\t\t<td>" . help_icon('{innodb_buffer_pool_size_text}') . "</td>\n\t</tr>\n\t\n\t<tr {$hover}>\n\t\t<td class=legend>{innodb_additional_mem_pool_size}:</td>\n\t\t<td>" . Field_text("innodb_additional_mem_pool_size", $mysql->main_array["innodb_additional_mem_pool_size"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>innodb_additional_mem_pool_size</code></td>\n\t\t<td>" . help_icon('{innodb_additional_mem_pool_size_text}') . "</td>\n\t</tr>\t\t\n\t\n\t<tr {$hover}>\n\t\t<td class=legend>{myisam_sort_buffer_size}:</td>\n\t\t<td>" . Field_text("myisam_sort_buffer_size", $mysql->main_array["myisam_sort_buffer_size"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>myisam_sort_buffer_size</code></td>\n\t\t<td>" . help_icon('{myisam_sort_buffer_size_text}') . "</td>\n\t</tr>\n\t<tr {$hover}>\n\t\t<td class=legend>{sort_buffer_size}:</td>\n\t\t<td>" . Field_text("sort_buffer_size", $mysql->main_array["sort_buffer_size"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>sort_buffer_size</code></td>\n\t\t<td>" . help_icon('{sort_buffer_size_text}') . "</td>\n\t</tr>\t\n\t<tr {$hover}>\n\t\t<td class=legend>{join_buffer_size}:</td>\n\t\t<td>" . Field_text("join_buffer_size", $mysql->main_array["join_buffer_size"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>join_buffer_size</code></td>\n\t\t<td>" . help_icon('{join_buffer_size_text}') . "</td>\n\t</tr>\t\t\n\t<tr {$hover}>\n\t\t<td class=legend>{read_buffer_size}:</td>\n\t\t<td>" . Field_text("read_buffer_size", $mysql->main_array["read_buffer_size"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>read_buffer_size</code></td>\n\t\t<td>" . help_icon('{read_buffer_size_text}') . "</td>\n\t</tr>\t\t\n\t\t<td class=legend>{query_cache_size}:</td>\n\t\t<td>" . Field_text("query_cache_size", $mysql->main_array["query_cache_size"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>query_cache_size</code></td>\n\t\t<td>" . help_icon('{query_cache_size_text}') . "</td>\n\t</tr>\t\t\n\t\n\t\n\t<tr {$hover}>\n\t\t<td class=legend>{query_cache_limit}:</td>\n\t\t<td>" . Field_text("query_cache_limit", $mysql->main_array["query_cache_limit"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>query_cache_limit</code></td>\n\t\t<td>" . help_icon('{query_cache_limit_text}') . "</td>\n\t</tr>\t\n\t\n\t\n\n\t\n\t\n\t\n\t\n\t\n\t<tr {$hover}>\n\t\t<td class=legend>{read_rnd_buffer_size}:</td>\n\t\t<td>" . Field_text("read_rnd_buffer_size", $mysql->main_array["read_rnd_buffer_size"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>read_rnd_buffer_size</code></td>\n\t\t<td>" . help_icon('{read_rnd_buffer_size_text}') . "</td>\n\t</tr>\n\t<tr {$hover}>\n\t\t<td class=legend>{table_cache}:</td>\n\t\t<td>" . Field_text("table_cache", $mysql->main_array["table_cache"], "font-size:13px;width:60px;padding:3px") . " table(s)</td>\n\t\t<td><code>table_cache</code></td>\n\t\t<td>" . help_icon('{table_cache}') . "</td>\n\t</tr>\n\t\n\t<tr {$hover}>\n\t\t<td class=legend>{tmp_table_size}:</td>\n\t\t<td>" . Field_text("tmp_table_size", $mysql->main_array["tmp_table_size"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>tmp_table_size</code></td>\n\t\t<td>" . help_icon('{tmp_table_size}') . "</td>\n\t</tr>\t\n\t<tr {$hover}>\n\t\t<td class=legend>{max_allowed_packet}:</td>\n\t\t<td>" . Field_text("max_allowed_packet", $mysql->main_array["max_allowed_packet"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>max_allowed_packet</code></td>\n\t\t<td>" . help_icon('{max_allowed_packet}') . "</td>\n\t</tr>\t\n\t<tr {$hover}>\n\t\t<td class=legend>{max_connections}:</td>\n\t\t<td>" . Field_text("max_connections", $mysql->main_array["max_connections"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>max_connections</code></td>\n\t\t<td>" . help_icon('{max_connections}') . "</td>\n\t</tr>\t\n\t<tr {$hover}>\n\t\t<td class=legend>{net_buffer_length}:</td>\n\t\t<td>" . Field_text("net_buffer_length", $mysql->main_array["net_buffer_length"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>net_buffer_length</code></td>\n\t\t<td>" . help_icon('{net_buffer_length_text}') . "</td>\n\t</tr>\n\t<tr {$hover}>\n\t\t<td class=legend>{thread_cache_size}:</td>\n\t\t<td>" . Field_text("thread_cache_size", $mysql->main_array["thread_cache_size"], "font-size:13px;width:60px;padding:3px") . " M</td>\n\t\t<td><code>thread_cache_size</code></td>\n\t\t<td>" . help_icon('{thread_cache_size_text}') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=4 align='right'>\n\t\t<hr>" . button("{apply}", "SaveUMysqlParameters()") . "\n\t\t\n\t\t</td>\n\t</tr>\n\t</table>";
$html = "<div style='font-size:16px'>{mysql_settings} v. {$mysql->mysql_version_string} ({$mysql->mysqlvbin})</H1>\n\t<div id='mysqlsettings'>{$form}</div>\n\t\n\t\n\t<script>\nfunction EnableZarafaTuningCheck(){\n\tvar EnableZarafaTuning={$EnableZarafaTuning};\n\tif(EnableZarafaTuning==0){return;}\n\tif(document.getElementById('innodb_buffer_pool_size')){document.getElementById('innodb_buffer_pool_size').disabled=true;}\n\tif(document.getElementById('query_cache_size')){document.getElementById('query_cache_size').disabled=true;}\n\tif(document.getElementById('innodb_log_file_size')){document.getElementById('innodb_log_file_size').disabled=true;}\n\tif(document.getElementById('innodb_log_buffer_size')){document.getElementById('innodb_log_buffer_size').disabled=true;}\n\tif(document.getElementById('max_allowed_packet')){document.getElementById('max_allowed_packet').disabled=true;}\n\tif(document.getElementById('max_connections')){document.getElementById('max_connections').disabled=true;}\n}\nEnableZarafaTuningCheck();\n</script>\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:,项目名称:,代码行数:25,代码来源:
示例4: popup_settings
function popup_settings()
{
$sock = new sockets();
$tpl = new templates();
$page = CurrentPageName();
$sabnzbdplusDir = $sock->GET_INFO("sabnzbdplusDir");
$sabnzbdplusPort = $sock->GET_INFO("sabnzbdplusPort");
$sabnzbdplusIpAddr = $sock->GET_INFO("sabnzbdplusIpAddr");
if ($sabnzbdplusDir == null) {
$sabnzbdplusDir = "/home/sabnzbdplus";
}
if (!is_numeric($sabnzbdplusPort)) {
$sabnzbdplusPort = "9666";
}
if ($sabnzbdplusIpAddr == null) {
$sabnzbdplusIpAddr = "0.0.0.0";
}
$ip = new networking();
$ips = $ip->ALL_IPS_GET_ARRAY();
while (list($num, $ligne) = each($ips)) {
$wbconsole[] = "<li><a href='http://{$num}:{$sabnzbdplusPort}' style='font-size:13px;text-decoration:underline'>http://{$num}:{$sabnzbdplusPort}</a></li>";
}
reset($ips);
$ips["0.0.0.0"] = "{all}";
$nets = Field_array_Hash($ips, "sabnzbdplusIpAddr", $sabnzbdplusIpAddr, "style:font-size:13px;padding:3px");
$html = "\n\t<div id='sabnzbdplus-id'>\n\t<table style='width:99.5%' class=form>\n\t<tr>\n\t\t<td class=legend>{enable_sabnzbdplus}:</td>\n\t\t<td>" . Field_checkbox("EnableSabnZbdPlus", 1, $sock->GET_INFO("EnableSabnZbdPlus")) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{working_directory}:</td>\n\t\t<td>" . Field_text("sabnzbdplusDir", $sabnzbdplusDir, "font-size:13px;padding:3px") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{listen_http_port}:</td>\n\t\t<td>" . Field_text("sabnzbdplusPort", $sabnzbdplusPort, "font-size:13px;padding:3px;width:40px") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{listen_ip}:</td>\n\t\t<td>{$nets}</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "sabnzbdplusSave()") . "</td>\n\t</tr>\t\n\t</table>\n\t<hr>\n\t<H3>{web_console_access}:</H3><br>" . @implode("\n", $wbconsole) . "\n\t\n\t<script>\n\t\n\tvar x_sabnzbdplusSave= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);}\n\t\tRefreshTab('TAB_APP_SABNZBDPLUS');\n\t\t\n\t}\t\n\t\n\t\tfunction sabnzbdplusSave(){\n\t\t\tvar XHR=XHRParseElements('sabnzbdplus-id');\n\t\t\tdocument.getElementById('sabnzbdplus-id').innerHTML='<center><img src=img/wait_verybig.gif></center>';\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_sabnzbdplusSave);\n\t\t}\n\t\n\t</script>";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:28,代码来源:sabnzbdplus.php
示例5: popup
function popup()
{
$squid = new squidbee();
$page = CurrentPageName();
$tpl = new templates();
$sock = new sockets();
$WCCP = 1;
$arrayParams = unserialize(base64_decode($sock->getFrameWork("squid.php?compile-list=yes")));
$t = time();
$ip = new networking();
$ipsH = $ip->ALL_IPS_GET_ARRAY();
$SquidWCCPEnabled = $sock->GET_INFO("SquidWCCPEnabled");
if (!is_numeric($SquidWCCPEnabled)) {
$SquidWCCPEnabled = 0;
}
if (!isset($arrayParams["--enable-wccpv2"])) {
$WCCP = 0;
}
$WCCPHash = unserialize(base64_decode($sock->GET_INFO("WCCPHash")));
$wccp2_forwarding_method_hash = array(1 => "{wccp2_forwarding_method_hash_1}", 2 => "{wccp2_forwarding_method_hash_2}");
$wccp2_return_method_hash = array("gre" => "GRE encapsulation");
$wccp2_assignment_method_hash = array("hash" => "Hash assignment", "mask" => "Mask assignment");
$html = "\n<div style='font-size:22px'>{WCCP_NAME}</div>\n<div class=explain style='font-size:14px'>{WCCP_HOWTO}</div>\n<div id='SquidAVParamWCCP' style='width:98%' class=form>\n<table style='width:100%'>\n\t<tr>\n\t<td style='font-size:16px;' class=legend>{wccp2_enabled}:</td>\n\t<td>" . Field_checkbox("wccp2_enabled", 1, $squid->wccp2_enabled, "wccp2_enabled()") . "</td>\n\t<td> </td>\n\t</tr>\n\n\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{wccp2_routers}:</td>\n\t\t<td>" . Field_text("wccp2_router", $WCCPHash["wccp2_router"], "font-size:16px;padding:3px;width:320px") . "</td>\n\t\t<td>" . help_icon("{wccp2_routers_explain}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{listen_address}:</td>\n\t\t<td>" . Field_array_Hash($ipsH, "listen_address-{$t}", $WCCPHash["listen_address"], "style:font-size:16px") . "</td>\n\t\t<td></td>\n\t</tr>\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{wccp2_forwarding_method}:</td>\n\t\t<td>" . Field_array_Hash($wccp2_forwarding_method_hash, "wccp2_forwarding_method", $WCCPHash["wccp2_forwarding_method"], "style:font-size:16px") . "</td>\n\t\t<td> </td>\n\t</tr>\n\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{wccp2_return_method}:</td>\n\t\t<td>" . Field_array_Hash($wccp2_return_method_hash, "wccp2_return_method", $WCCPHash["wccp2_return_method"], "style:font-size:16px") . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{wccp2_assignment_method}:</td>\n\t\t<td>" . Field_array_Hash($wccp2_assignment_method_hash, "wccp2_assignment_method", $WCCPHash["wccp2_assignment_method"], "style:font-size:16px") . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=3 align='right'>\n\t\t\t<hr>\n\t\t\t\t" . button("{apply}", "SquidWccp2ParamSave()", 18) . "\n\t\t</td>\n\t</tr>\n\t</table>\n</div>\n<script>\nvar X_SquidWccp2ParamSave= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>3){alert(results);}\n\tLoadjs('squid.restart.php?prepare-js=yes');\n\t\n}\n\nfunction SquidWccp2ParamSave(){\n\tvar XHR = new XHRConnection();\n\tif(document.getElementById('wccp2_enabled').checked){\n\t\tXHR.appendData('wccp2_enabled',1);\n\t}else{\n\t\tXHR.appendData('wccp2_enabled',0);\n\t}\n\tXHR.appendData('wccp2_router',\n\tdocument.getElementById('wccp2_router').value);\n\n\tXHR.appendData('wccp2_forwarding_method',\n\tdocument.getElementById('wccp2_forwarding_method').value);\n\n\tXHR.appendData('wccp2_return_method',\n\tdocument.getElementById('wccp2_return_method').value);\n\n\tXHR.appendData('wccp2_assignment_method',\n\tdocument.getElementById('wccp2_assignment_method').value);\n\t\n\tXHR.appendData('listen_address',\n\tdocument.getElementById('listen_address-{$t}').value);\n\n\tXHR.sendAndLoad('{$page}', 'POST',X_SquidWccp2ParamSave);\n}\n\n\nfunction wccp2_disable_all(){\n\tdocument.getElementById('wccp2_forwarding_method').disabled=true;\n\tdocument.getElementById('wccp2_router').disabled=true;\n\tdocument.getElementById('wccp2_forwarding_method').disabled=true;\n\tdocument.getElementById('wccp2_return_method').disabled=true;\n\tdocument.getElementById('wccp2_assignment_method').disabled=true;\n\tdocument.getElementById('listen_address-{$t}').disabled=true;\n\t\n}\nfunction wccp2_enable_all(){\n\tdocument.getElementById('wccp2_forwarding_method').disabled=false;\n\tdocument.getElementById('wccp2_router').disabled=false;\n\tdocument.getElementById('wccp2_forwarding_method').disabled=false;\n\tdocument.getElementById('wccp2_return_method').disabled=false;\n\tdocument.getElementById('wccp2_assignment_method').disabled=false;\n\tdocument.getElementById('listen_address-{$t}').disabled=false;\n}\n\nfunction wccp2_enabled(){\n\twccp2_disable_all();\n\tvar wccp2={$WCCP};\n\tif(wccp2==0){\n\t\tdocument.getElementById('wccp2_enabled').disabled=true;\n\t\tdocument.getElementById('wccp2_enabled').checked=false;\n\t}\n\tif(document.getElementById('wccp2_enabled').checked){wccp2_enable_all();}\n}\n\nwccp2_enabled();\n</script>";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:squid.wccpv2.php
示例6: interface_popup
function interface_popup()
{
$tpl = new templates();
$page = CurrentPageName();
$q = new mysql_shorewall();
$bt_title = "{add}";
$ID = $_GET["ID"];
if ($ID == null) {
$title = $tpl->javascript_parse_text("{link_interface}");
}
if ($ID != null) {
$bt_title = "{apply}";
$q = new mysql_shorewall();
$ligne = mysql_fetch_array($q->QUERY_SQL("SELECT eth FROM fw_interfaces WHERE eth='{$ID}'"));
$ip = new system_nic($ID);
$title = $tpl->javascript_parse_text("{interface}: {$ip->NICNAME} - " . $ligne["eth"]);
}
$net = new networking();
$ethz = $net->Local_interfaces();
while (list($num, $ligne) = each($ethz)) {
$ip = new system_nic($num);
$ethz[$num] = "{$ip->NICNAME} ({$num})";
}
$t = time();
$html = "\n\t<div style='font-size:20px'>{$title}</div>\n\t<div style='width:98%' class=form>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{interface}:</td>\n\t\t<td>" . Field_array_Hash($ethz, "interface-{$t}", $ligne["type"], null, null, 0, "font-size:16px") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 align='right'>" . button($bt_title, "Save{$t}()", 18) . "</td>\n\t</tr>\t\t\n\t</table>\n<script>\nvar xSave{$t}= function (obj) {\n\tvar res=obj.responseText;\n\tif (res.length>3){alert(res);}\n\tvar ID='{$ID}';\n\t\$('#flexRT{$_GET["t"]}').flexReload();\n\t\$('#flexRT{$_GET["tt"]}').flexReload();\n\tExecuteByClassName('SearchFunction');\n\tif(ID.length==0){YahooWinHide();}\n}\n\nfunction SaveCHK{$t}(e){\n\tif(!checkEnter(e)){return;}\n\tSave{$t}();\n}\n\t\n\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('interface-save', encodeURIComponent(document.getElementById('interface-{$t}').value));\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n</script>\t";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:27,代码来源:shorewall.interfaces.php
示例7: popup
function popup()
{
$tpl = new templates();
$page = CurrentPageName();
$t = time();
$sock = new sockets();
$squid = new squidbee();
$EnableSS5 = intval($sock->GET_INFO("EnableSS5"));
$EnableSS5P = Paragraphe_switch_img("{EnableSS5}", "{APP_SS5_ABOUT}", "EnableSS5", $EnableSS5, null, 900);
$SS5_SOCKS_PORT = intval(@file_get_contents("/etc/artica-postfix/settings/Daemons/SS5_SOCKS_PORT"));
$SS5_SOCKS_INTERFACE = @file_get_contents("/etc/artica-postfix/settings/Daemons/SS5_SOCKS_INTERFACE");
$ip = new networking();
$interfaces = $ip->Local_interfaces();
unset($interfaces["lo"]);
$array[null] = "{all}";
if ($SS5_SOCKS_PORT == 0) {
$SS5_SOCKS_PORT = rand(1024, 63000);
}
while (list($eth, $none) = each($interfaces)) {
if (preg_match("#^gre#", $eth)) {
continue;
}
$nic = new system_nic($eth);
$array[$eth] = "{$eth} {$nic->IPADDR} - {$nic->NICNAME}";
}
$html = "\n\t<div style='font-size:32px;margin-bottom:30px'>{APP_SS5}</div>\n\t<div style=width:98% class=form>\n\t<table style='width:100%'>\n\t<tr>\n\t<td style='vertical-align:top;width:285px'><div id='services-ss5-status'></div></td>\n\t<td style='vertical-align:top;width:915px'>\n\t<div style='width:98%' class=form>\n\t{$EnableSS5P}\n\t<hr>\n\t\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend style='font-size:24px;font-wieght:bold'>{listen_interface}:</td>\n\t\t<td style='font-size:20px'>" . Field_array_Hash($array, "SS5_SOCKS_INTERFACE", $SS5_SOCKS_INTERFACE, "style:font-size:24px;font-wieght:bold") . "</td>\n\t\t\n\t</tr>\n\t\t<tr>\n\t\t<td class=legend style='font-size:24px;font-wieght:bold'>{listen_port}:</td>\n\t\t<td style='font-size:20px'>" . field_text("SS5_SOCKS_PORT", $SS5_SOCKS_PORT, "font-size:24px;width:90px;font-wieght:bold") . "</td>\n\t</tr>\n\t</table>\n\t\n\t<div style='text-align:right;margin-top:50px'>" . button("{apply}", "Save{$t}()", 40) . "</div>\n\t</div>\n\t</td>\n\t</tr>\n\t</table>\n\t<script>\nvar xSave{$t}= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>3){alert(results);return;}\n\tLoadjs('ss5.progress.php');\n}\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('EnableSS5', document.getElementById('EnableSS5').value);\n\tXHR.appendData('SS5_SOCKS_INTERFACE', document.getElementById('SS5_SOCKS_INTERFACE').value);\n\tXHR.appendData('SS5_SOCKS_PORT', document.getElementById('SS5_SOCKS_PORT').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n\tLoadAjax('services-ss5-status','{$page}?services-ss5-status=yes',false);\n</script>";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:28,代码来源:ss5.php
示例8: popup
function popup()
{
$tpl = new templates();
$page = CurrentPageName();
$ip = new networking();
$ips = $ip->ALL_IPS_GET_ARRAY();
$t = time();
$nets = Field_array_Hash($ips, "{$t}-deny", null, "style:font-size:16px;padding:3px");
$html = "\n\t<div class=text-info style='font-size:14px'>{ban_addresses_for_interfaces_text}</div>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{ipaddr}:</td>\n\t\t<tD>{$nets}</td>\n\t\t<td width=1%>" . button("{add}", "AddIpToBan()", 16) . "</td>\n\t</tr>\n\t</tbody>\n\t</table>\n\t<div id='baniplist-{$t}'></div>\n\t\n\t\n\t<script>\n\t\tfunction RefreshBanIP(){\n\t\t\tLoadAjax('baniplist-{$t}','{$page}?list=yes');\n\t\t}\n\t\t\n\tvar x_AddIpToBan= function (obj) {\n\t\tvar res=obj.responseText;\n\t\tif (res.length>3){alert(res);}\n\t\tRefreshBanIP();\n\t\t\n\t}\n\n\tfunction DeleteIpBan(ip){\n\t\tvar XHR = new XHRConnection();\t\n\t\tXHR.appendData('delete',ip);\n\t\tAnimateDiv('baniplist-{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_AddIpToBan);\t\t\n\t}\n\t\t\n\tfunction AddIpToBan(){\n\t\tvar XHR = new XHRConnection();\t\n\t\tXHR.appendData('plusdeny',document.getElementById('{$t}-deny').value);\n\t\tAnimateDiv('baniplist-{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_AddIpToBan);\t\t\t\t\n\t}\t\t\n\t\n\tRefreshBanIP();\n\t</script>\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:11,代码来源:network.artica.ban.php
示例9: popup
function popup()
{
$tpl = new templates();
$page = CurrentPageName();
$t = time();
$ip = new networking();
$ips = $ip->ALL_IPS_GET_ARRAY();
$main = new maincf_multi($_GET["hostname"]);
$ipaddr = $main->ip_addr;
$nets = Field_array_Hash($ips, "{$t}-bind", $_COOKIE["TESTS-BIND"], "style:font-size:16px;padding:3px");
$html = "\n\t<div id='{$t}'></div>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t<td class=legend style='font-size:14px'>{bind_address}:</td>\n\t<td style='font-size:16px;'> {$nets}</td>\n\t</tr>\t\n\t<tr>\n\t<td class=legend style='font-size:14px'>{destination}:</td>\n\t<td style='font-size:16px;'>{$ipaddr}</td>\n\t</tr>\t\n\t<tr>\n\t<td class=legend style='font-size:14px'>{from}:</td>\n\t<td> " . Field_text("{$t}-from", $_COOKIE["TESTS-FROM"], "font-size:16px;width:228px") . "</td>\n\t</tr>\t\n\t<tr>\n\t<td class=legend style='font-size:14px'>{to}:</td>\n\t<td> " . Field_text("{$t}-to", $_COOKIE["TESTS-TO"], "font-size:16px;width:228px") . "</td>\n\t</tr>\t\n\t<tr>\n\t<td class=legend style='font-size:14px'>{subject}:</td>\n\t<td> " . Field_text("{$t}-subject", $_COOKIE["TESTS-SUB"], "font-size:16px;width:350px") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=2 ><textarea id='{$t}-body' style='width:100%;height:150px;overflow:auto;border:1px solid black;font-size:14px'>{$_COOKIE["TESTS-BOD"]}</textarea>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "MultipleInstanceSendEmailTest()", 16) . "</td>\n\t</tr>\n\t</tbody>\n\t</table>\n\t\n\t\n\t<script>\n\t\n\tvar x_MultipleInstanceSendEmailTest= function (obj) {\n\t\tvar res=obj.responseText;\n\t\tif (res.length>3){alert(res);}\n\t\tdocument.getElementById('{$t}').innerHTML='';\n\t\t\n\t}\t\n\t\t\n\t\tfunction MultipleInstanceSendEmailTest(){\n\t\t\tSet_Cookie('TESTS-FROM', document.getElementById('{$t}-from').value, '3600', '/', '', '');\n\t\t\tSet_Cookie('TESTS-TO', document.getElementById('{$t}-to').value, '3600', '/', '', '');\n\t\t\tSet_Cookie('TESTS-SUB', document.getElementById('{$t}-subject').value, '3600', '/', '', '');\n\t\t\tSet_Cookie('TESTS-BOD', document.getElementById('{$t}-body').value, '3600', '/', '', '');\n\t\t\tSet_Cookie('TESTS-BIND', document.getElementById('{$t}-bind').value, '3600', '/', '', '');\n\t\t\t\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('TESTS-FROM',document.getElementById('{$t}-from').value);\n\t\t\tXHR.appendData('TESTS-TO',document.getElementById('{$t}-to').value);\n\t\t\tXHR.appendData('TESTS-SUB',document.getElementById('{$t}-subject').value);\n\t\t\tXHR.appendData('TESTS-BOD',document.getElementById('{$t}-body').value);\n\t\t\tXHR.appendData('TESTS-BIND',document.getElementById('{$t}-bind').value);\n\t\t\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\t\t\tXHR.appendData('ou','{$_GET["ou"]}');\t\t\t\n\t\t\tAnimateDiv('{$t}');\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_MultipleInstanceSendEmailTest);\t\t\t\t\n\t\t}\n\t</script>\n\t<p> </p>\n\t<p> </p>\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:13,代码来源:postfix.multi-tests.php
示例10: popup_form
function popup_form()
{
$ip = new networking();
$ips = $ip->ALL_IPS_GET_ARRAY();
$tpl = new templates();
$page = CurrentPageName();
$hostname = $_GET["hostname"];
$ID = $_GET["ID"];
$button_text = "{add}";
if (!is_numeric($ID)) {
$ID = 0;
}
if ($ID > 0) {
$sql = "SELECT * FROM ip_rotator_smtp WHERE ID={$ID}";
$q = new mysql();
$ligne = mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
$button_text = "{apply}";
}
while (list($ip, $none) = each($ips)) {
$main = new maincf_multi(null, null, $ip);
if ($main->myhostname != null) {
$ips[$ip] = "{$ip} ({$main->myhostname})";
}
}
reset($ips);
$ips[null] = "{select}";
$sources = Field_array_Hash($ips, "ip-src-list", $ligne["ipsource"], "FillIpSrc()", null, 0, "font-size:14px;padding:3px");
$sources2 = Field_array_Hash($ips, "ip-dest-list", $ligne["ipdest"], "FillIpDest()", null, 0, "font-size:14px;padding:3px");
$mode[null] = "{select}";
$mode["nth"] = "{counter}";
$mode["random"] = "{random}";
$tip_src_table = "<tr>\n\t\t<td class=legend>{connections_for}:</td>\n\t\t<td>{$sources}</td>\n\t\t<td>" . Field_text("ip-src", $ligne["ipsource"], "font-size:14px;width:120px") . "</td>\n\t</tr>";
if ($hostname != "master") {
$main = new maincf_multi($hostname, $_GET["ou"]);
$tip_src_table = "<tr>\n\t\t\t<td class=legend>{connections_for}:</td>\n\t\t\t<td style='font-size:14px'>{$main->ip_addr} <input type='hidden' value='{$main->ip_addr}' id='ip-src'></td>\n\t\t\t<td> </td>\n\t\t</tr>";
$sql = "SELECT ipaddr FROM nics_virtuals WHERE org='{$_GET["ou"]}'";
$q = new mysql();
$results = $q->QUERY_SQL($sql, "artica_backup");
if (!$q->ok) {
echo "<H2>{$q->mysql_error}</H2>";
}
unset($ips);
while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
$main = new maincf_multi(null, $_GET["ou"], $ligne["ipaddr"]);
$ips[$ligne["ipaddr"]] = "{$ligne["ipaddr"]} ({$main->myhostname})";
}
$sources2 = Field_array_Hash($ips, "ip-dest-list", $ligne["ipdest"], "FillIpDest()", null, 0, "font-size:14px;padding:3px");
}
$html = "\t<table style='width:100%' class=form>\n{$tip_src_table}\n\t<tr>\n\t\t<td class=legend>{switch_mode}:</td>\n\t\t<td>" . Field_array_Hash($mode, "ip-mode", $ligne["mode"], "FillFormMode()", null, 0, "font-size:14px;padding:3px") . "</td>\n\t\t<td><span id='form-rotator-mode'></span></td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{destination}:</td>\n\t\t<td>{$sources2}</td>\n\t\t<td>" . Field_text("ip-dest", $ligne["ipdest"], "font-size:14px;width:120px") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=3 align='right'>\n\t\t\t<hr>" . button($button_text, "AddNewIprotator({$ID})") . "</td>\n\t</tr>\n\t\n\t</table>\n\t\n\t<script>\n\tfunction FillFormMode(){\n\t\tLoadAjax('form-rotator-mode','{$page}?form-rotator-mode='+document.getElementById('ip-mode').value+'&ID={$ID}');\n\t\n\t}\n\tFillFormMode();\n\t</script>\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:,项目名称:,代码行数:51,代码来源:
示例11: popup
function popup(){
$sock=new sockets();
$page=CurrentPageName();
$ZarafaDeliverBind=$sock->GET_INFO("ZarafaDeliverBind");
if($ZarafaDeliverBind==null){$ZarafaDeliverBind="127.0.0.1";}
$net=new networking();
$nets=$net->ALL_IPS_GET_ARRAY();
$nets["0.0.0.0"]="{all}";
$t=time();
$html="
<div id='div-$t'></div>
<div class=text-info style='font-size:16px'>{delivery_agent_parameters_text}</div>
<div style='text-align:right'><a href=\"javascript:blur();\"
OnClick=\"javascript:s_PopUpFull('http://www.mail-appliance.org/index.php?cID=328','1024','900');\"
style='font-size:16px;text-decoration:underline'>{online_help}</a></div>
<table style='width:99%' class=form>
<tr>
<td class=legend style='font-size:16px'>{listen_ip}:</td>
<td style='font-size:16px'>". Field_array_Hash($nets, "ZarafaDeliverBind-$t",$ZarafaDeliverBind,null,null,0,"font-size:16px")." :2003</td>
</tr>
<tr>
<td align='right' colspan=2><hr>". button("{apply}","Zarafa$t()","18px")."</td>
</tr>
</table>
<script>
var x_Zarafa$t= function (obj) {
var tempvalue=obj.responseText;
if(tempvalue.length>3){alert(tempvalue)};
document.getElementById('div-$t').innerHTML='';
}
function Zarafa$t(){
var XHR = new XHRConnection();
var ZarafadAgentJunk=0;
XHR.appendData('ZarafaDeliverBind',document.getElementById('ZarafaDeliverBind-$t').value);
AnimateDiv('div-$t');
XHR.sendAndLoad('$page', 'POST',x_Zarafa$t);
}
</script>
";
$tpl=new templates();
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:51,代码来源:zarafa.dagent.php
示例12: popup
function popup()
{
$mysql = new mysqlserver();
$net = new networking();
$array = $net->ALL_IPS_GET_ARRAY();
$array[null] = "{all}";
$bind = Field_array_Hash($array, "bind-address", $mysql->main_array["bind-address"]);
//Les devs de mysql conseillent un key_buffer de la taille de la somme de tous les fichiers .MYI dans le repertoire mysql.
$hover = CellRollOver();
$form = "\t<table style='width:100%'>\n\t<tr {$hover}>\n\t\t<td class=legend>{skip-external-locking}:</td>\n\t\t<td>" . Field_yesno_checkbox('skip-external-locking', $mysql->main_array["skip_external_locking"]) . "</td>\n\t\t<td><code>skip-external-locking</code></td>\n\t\t<td>" . help_icon('{skip-external-locking_text}') . "</td>\n\t</tr>\n\t<tr {$hover}>\n\t\t<td class=legend>{bind-address}:</td>\n\t\t<td>{$bind}</td>\n\t\t<td><code>bind-address</code></td>\n\t\t<td> </td>\n\t</tr>\t\n\t<tr {$hover}>\n\t\t<td class=legend>{key_buffer}:</td>\n\t\t<td>" . Field_text("key_buffer", $mysql->main_array["key_buffer"], "width:60px") . " M</td>\n\t\t<td><code>key_buffer</code></td>\n\t\t<td>" . help_icon('{key_buffer_text}') . "</td>\n\t</tr>\n\t<tr {$hover}>\n\t\t<td class=legend>{key_buffer_size}:</td>\n\t\t<td>" . Field_text("key_buffer_size", $mysql->main_array["key_buffer_size"], "width:60px") . " M</td>\n\t\t<td><code>key_buffer_size</code></td>\n\t\t<td>" . help_icon('{key_buffer_size_text}') . "</td>\n\t</tr>\t\t\n\t<tr {$hover}>\n\t\t<td class=legend>{innodb_buffer_pool_size}:</td>\n\t\t<td>" . Field_text("innodb_buffer_pool_size", $mysql->main_array["innodb_buffer_pool_size"], "width:60px") . " M</td>\n\t\t<td><code>innodb_buffer_pool_size</code></td>\n\t\t<td>" . help_icon('{innodb_buffer_pool_size_text}') . "</td>\n\t</tr>\n\t\n\t<tr {$hover}>\n\t\t<td class=legend>{innodb_additional_mem_pool_size}:</td>\n\t\t<td>" . Field_text("innodb_additional_mem_pool_size", $mysql->main_array["innodb_additional_mem_pool_size"], "width:60px") . " M</td>\n\t\t<td><code>innodb_additional_mem_pool_size</code></td>\n\t\t<td>" . help_icon('{innodb_additional_mem_pool_size_text}') . "</td>\n\t</tr>\t\t\n\t\n\t<tr {$hover}>\n\t\t<td class=legend>{myisam_sort_buffer_size}:</td>\n\t\t<td>" . Field_text("myisam_sort_buffer_size", $mysql->main_array["myisam_sort_buffer_size"], "width:60px") . " M</td>\n\t\t<td><code>myisam_sort_buffer_size</code></td>\n\t\t<td>" . help_icon('{myisam_sort_buffer_size_text}') . "</td>\n\t</tr>\n\t<tr {$hover}>\n\t\t<td class=legend>{sort_buffer_size}:</td>\n\t\t<td>" . Field_text("sort_buffer_size", $mysql->main_array["sort_buffer_size"], "width:60px") . " M</td>\n\t\t<td><code>sort_buffer_size</code></td>\n\t\t<td>" . help_icon('{sort_buffer_size_text}') . "</td>\n\t</tr>\t\n\t<tr {$hover}>\n\t\t<td class=legend>{join_buffer_size}:</td>\n\t\t<td>" . Field_text("join_buffer_size", $mysql->main_array["join_buffer_size"], "width:60px") . " M</td>\n\t\t<td><code>join_buffer_size</code></td>\n\t\t<td>" . help_icon('{join_buffer_size_text}') . "</td>\n\t</tr>\t\t\n\t<tr {$hover}>\n\t\t<td class=legend>{read_buffer_size}:</td>\n\t\t<td>" . Field_text("read_buffer_size", $mysql->main_array["read_buffer_size"], "width:60px") . " M</td>\n\t\t<td><code>read_buffer_size</code></td>\n\t\t<td>" . help_icon('{read_buffer_size_text}') . "</td>\n\t</tr>\t\t\n\t\t<td class=legend>{query_cache_size}:</td>\n\t\t<td>" . Field_text("query_cache_size", $mysql->main_array["query_cache_size"], "width:60px") . " M</td>\n\t\t<td><code>query_cache_size</code></td>\n\t\t<td>" . help_icon('{query_cache_size_text}') . "</td>\n\t</tr>\t\t\n\t\n\t\n\t<tr {$hover}>\n\t\t<td class=legend>{query_cache_limit}:</td>\n\t\t<td>" . Field_text("query_cache_limit", $mysql->main_array["query_cache_limi
|
请发表评论