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


PHP networking::ALL_IPS_GET_ARRAY方法代码示例

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


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

示例1: 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

示例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()
{
    $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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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

示例4: 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

示例5: 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>&nbsp;</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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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,代码来源:

示例6: 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

示例7: 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>&nbsp;</p>\n\t<p>&nbsp;</p>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:13,代码来源:postfix.multi-tests.php

示例8: 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>&nbsp;</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,代码来源:

示例9: 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")."&nbsp;: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

示例10: 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>&nbsp;</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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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") . "&nbsp;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"], "width:60px") . "&nbsp;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"], "width:60px") . "&nbsp;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"], "width:60px") . "&nbsp;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"], "width:60px") . "&nbsp;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"], "width:60px") . "&nbsp;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"], "width:60px") . "&nbsp;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"], "width:60px") . "&nbsp;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"], "width:60px") . "&nbsp;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 = "<H1>{mysql_settings} v. {$mysql->mysql_version_string} ({$mysql->mysqlvbin})</H1>\n\t<div id='mysqlsettings'>" . RoundedLightWhite($form) . "</div>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:artica,代码行数:14,代码来源:mysql.settings.php

示例11: popup

function popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $sock = new sockets();
    $SquidBinIpaddr = $sock->GET_INFO("SquidBinIpaddr");
    $MikrotikTransparent = intval($sock->GET_INFO('MikrotikTransparent'));
    $ip = new networking();
    $t = time();
    $pfws = $ip->ALL_IPS_GET_ARRAY();
    $pfws[null] = "{none}";
    if ($MikrotikTransparent == 0) {
        $squid = new squidbee();
        $tcp_outgoing_address = $squid->global_conf_array["tcp_outgoing_address"];
        $ips = $ip->ALL_IPS_GET_ARRAY();
        $ips["0.0.0.0"] = "{all}";
        $ff1 = "<tr>\n\t\t<td class=legend style='font-size:16px'>{forward_address}:</td>\n\t\t<td style='font-size:16px'>" . Field_array_Hash($pfws, "tcp_outgoing_address", $tcp_outgoing_address, "style:font-size:16px") . "<td>\n\t\t<td style='font-size:16px' width=1%><td>\n\t</tr>";
    } else {
        $MikrotikVirtualIP = $sock->GET_INFO('MikrotikVirtualIP');
        $ff1 = "\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:16px'>{forward_address}:</td>\n\t\t\t<td style='font-size:16px'><strong>MikroTik:{$MikrotikVirtualIP}</strong><td>\n\t\t\t<td style='font-size:16px' width=1%><td>\n\t\t</tr>";
    }
    $html = "\n\t<div id='{$t}'>\n\t<table style='width:99%' class=form>\n\t<tbody>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{listen_address}:</td>\n\t\t<td style='font-size:16px'>" . Field_array_Hash($ips, "bindip-{$t}", $SquidBinIpaddr, "style:font-size:16px") . "<td>\n\t\t<td style='font-size:16px' width=1%><td>\n\t</tr>\n\t{$ff1}\n\t<tr>\n\t\t<td colspan=3 align='right'><hr>" . button("{apply}", "SaveSquidBinIpaddr()", 16) . "</td>\n\t</tr>\n\t</tbody>\n\t</table>\n\t</div>\n<script>\n\tvar x_SaveSquidBinIpaddr=function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tYahooWin3Hide();\n\t\tLoadjs('squid.restart.php?onlySquid=yes&ask=yes');\n\t}\t\n\t\n\tfunction SaveSquidBinIpaddr(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('SquidBinIpaddr',document.getElementById('bindip-{$t}').value);\n\t\tif(document.getElementById('tcp_outgoing_address')){\n\t\t\tXHR.appendData('tcp_outgoing_address',document.getElementById('tcp_outgoing_address').value);\n\t\t\t}\n\t\t\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveSquidBinIpaddr);\t\n\t}\t\t\n</script>\t\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:24,代码来源:squid.nic.php

示例12: popup

function popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $sock = new sockets();
    $FreeRadiusListenIP = $sock->GET_INFO("FreeRadiusListenIP");
    $FreeRadiusListenPort = $sock->GET_INFO("FreeRadiusListenPort");
    if ($FreeRadiusListenIP == "0.0.0.0") {
        $FreeRadiusListenIP = null;
    }
    if (!is_numeric($FreeRadiusListenPort)) {
        $FreeRadiusListenPort = 1812;
    }
    $ip = new networking();
    $ips = $ip->ALL_IPS_GET_ARRAY();
    $ips[null] = "{all}";
    $t = time();
    $html = "\n\t<div id='{$t}'>\n\t<table style='width:99%' class=form>\n\t<tbody>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{listen_address}:</td>\n\t\t<td style='font-size:16px'>" . Field_array_Hash($ips, "FreeRadiusListenIP-{$t}", $FreeRadiusListenIP, "style:font-size:16px") . "<td>\n\t\t<td style='font-size:16px' width=1%><td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{listen_port}:</td>\n\t\t<td style='font-size:16px'>" . Field_text("FreeRadiusListenPort-{$t}", $FreeRadiusListenPort, "font-size:16px;width:90px") . "<td>\n\t\t<td style='font-size:16px' width=1%><td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=3 align='right'><hr>" . button("{apply}", "Save{$t}()", 16) . "</td>\n\t</tr>\n\t</tbody>\n\t</table>\n\t</div>\n<script>\n\tvar x_Save{$t}=function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tYahooWin3Hide();\n\t}\t\n\t\n\tfunction Save{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('FreeRadiusListenPort',document.getElementById('FreeRadiusListenPort-{$t}').value);\n\t\tXHR.appendData('FreeRadiusListenIP',document.getElementById('FreeRadiusListenIP-{$t}').value);\n\t\tAnimateDiv('{$t}'); \n\t\tXHR.sendAndLoad('{$page}', 'POST',x_Save{$t});\t\n\t}\t\t\n</script>\t\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:20,代码来源:freeradius.network.php

示例13: status

function status()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $sock = new sockets();
    $ip = new networking();
    $t = time();
    $SquidAsMasterPeer = intval($sock->GET_INFO("SquidAsMasterPeer"));
    $SquidAsMasterPeerPort = intval($sock->GET_INFO("SquidAsMasterPeerPort"));
    $SquidAsMasterPeerPortSSL = intval($sock->GET_INFO("SquidAsMasterPeerPortSSL"));
    $SquidAsMasterPeerIPAddr = $sock->GET_INFO("SquidAsMasterPeerIPAddr");
    $SquidAsMasterCacheChilds = $sock->GET_INFO("SquidAsMasterCacheChilds");
    $SquidAsMasterLogExtern = intval($sock->GET_INFO("SquidAsMasterLogExtern"));
    $SquidAsMasterFollowxForward = intval($sock->GET_INFO("SquidAsMasterFollowxForward"));
    if ($SquidAsMasterPeerIPAddr == null) {
        $SquidAsMasterPeerIPAddr = "0.0.0.0";
    }
    if ($SquidAsMasterPeerPort == 0) {
        $SquidAsMasterPeerPort = 8050;
    }
    if ($SquidAsMasterPeerPortSSL == 0) {
        $SquidAsMasterPeerPortSSL = 8051;
    }
    if (!is_numeric($SquidAsMasterCacheChilds)) {
        $SquidAsMasterCacheChilds = 1;
    }
    $SquidAsMasterLogChilds = intval($sock->GET_INFO("SquidAsMasterLogChilds"));
    $p1 = Paragraphe_switch_img("{enable_as_master_proxy}", "{enable_as_master_proxy_explain}", "SquidAsMasterPeer-{$t}", $SquidAsMasterPeer, null, 850);
    $p2 = Paragraphe_switch_img("{logging_childs_connections}", "{logging_childs_connections_explain}", "SquidAsMasterLogChilds-{$t}", $SquidAsMasterLogChilds, null, 850);
    $p21 = Paragraphe_switch_img("{logging_childs_connections2}", "{logging_childs_connections_explain2}", "SquidAsMasterLogExtern-{$t}", $SquidAsMasterLogExtern, null, 850);
    $p3 = Paragraphe_switch_img("{cache_childs_requests}", "{cache_childs_requests_explain}", "SquidAsMasterCacheChilds-{$t}", $SquidAsMasterCacheChilds, null, 850);
    $p4 = Paragraphe_switch_img("{follow_x_forwarded_for}", "{follow_x_forwarded_for_explain}", "SquidAsMasterFollowxForward-{$t}", $SquidAsMasterFollowxForward, null, 850);
    $ips = $ip->ALL_IPS_GET_ARRAY();
    $ips["0.0.0.0"] = "{all}";
    if ($SquidAsMasterFollowxForward == 1) {
        $error = "<p class=explain style='font-size:16px'>{SquidAsMasterFollowxForward_error}</p>";
    }
    $html = "\n\t<div style='width:98%' class=form>\n\t\t<table style='width:100%'>\n\t\t\t<tr> <td colspan=2>{$p1}</td> </tr>\n\t\t\t<tr> <td colspan=2>{$p2}</td> </tr>\n\t\t\t<tr> <td colspan=2>{$p21}</td> </tr>\n\t\t\t<tr> <td colspan=2>{$p3}</td> </tr>\n\t\t\t<tr> <td colspan=2>{$p4}</td> </tr>\n\t\t\t<tr>\n\t\t\t\t<td class=legend style='font-size:24px'>{listen_address}:</td>\n\t\t\t\t<td style='font-size:24px'>" . Field_array_Hash($ips, "SquidAsMasterPeerIPAddr-{$t}", $SquidAsMasterPeerIPAddr, "style:font-size:24px") . "<td>\n\t\t\t\t\n\t\t\t</tr>\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend nowrap style='font-size:24px'>{listen_port}:</td>\n\t\t\t\t<td >" . Field_text("SquidAsMasterPeerPort-{$t}", $SquidAsMasterPeerPort, "font-size:24px;width:100px") . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=legend nowrap style='font-size:24px'>{listen_port} (SSL):</td>\n\t\t\t\t<td >" . Field_text("SquidAsMasterPeerPortSSL-{$t}", $SquidAsMasterPeerPortSSL, "font-size:24px;width:100px") . "</td>\n\t\t\t</tr>\t\t\t\t\t\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "Save{$t}()", 32) . "</td>\n\t\t\t</tr>\t\n\t\t</table>\t\t\n\t</div>\n<script>\nvar xSave{$t}= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>3){ alert(results); return; }\n\tRefreshTab('main_squid_childs_tabs');\n\tLoadjs('squid.reconfigure.php');\n\t\n}\n\t\nfunction Save{$t}(){\n\tvar enabled=1;\n\tvar XHR = new XHRConnection();\n\t\n\tXHR.appendData('SquidAsMasterPeer',document.getElementById('SquidAsMasterPeer-{$t}').value);\n\tXHR.appendData('SquidAsMasterLogChilds',document.getElementById('SquidAsMasterLogChilds-{$t}').value);\n\tXHR.appendData('SquidAsMasterPeerPort',document.getElementById('SquidAsMasterPeerPort-{$t}').value);\n\tXHR.appendData('SquidAsMasterPeerPortSSL',document.getElementById('SquidAsMasterPeerPortSSL-{$t}').value);\n\tXHR.appendData('SquidAsMasterPeerIPAddr',document.getElementById('SquidAsMasterPeerIPAddr-{$t}').value);\n\tXHR.appendData('SquidAsMasterCacheChilds',document.getElementById('SquidAsMasterCacheChilds-{$t}').value);\n\tXHR.appendData('SquidAsMasterLogExtern',document.getElementById('SquidAsMasterLogExtern-{$t}').value);\n\tXHR.appendData('SquidAsMasterFollowxForward',document.getElementById('SquidAsMasterFollowxForward-{$t}').value);\n\t\n\t\n\t\n\t\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n</script>\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:40,代码来源:squid.master-proxy.php

示例14: popup

function popup()
{
    $sock = new sockets();
    $page = CurrentPageName();
    $ZarafaiCalEnable = $sock->GET_INFO("ZarafaiCalEnable");
    $ZarafaiCalPort = $sock->GET_INFO('ZarafaiCalPort');
    if (!is_numeric($ZarafaiCalPort)) {
        $ZarafaiCalPort = 8088;
    }
    $ZarafaiCalBind = $sock->GET_INFO("ZarafaiCalBind");
    if (strlen(trim($ZarafaiCalBind)) < 4) {
        $ZarafaiCalBind = "0.0.0.0";
    }
    $t = time();
    $net = new networking();
    $nets = $net->ALL_IPS_GET_ARRAY();
    $nets["0.0.0.0"] = "{all}";
    $netfield = Field_array_Hash($nets, "ZarafaiCalBind-{$t}", $ZarafaiCalBind, "style:font-size:16px;padding:3px");
    $html = "\n\t<div id='div-{$t}'></div>\n\t<div class=explain style='font-size:16px'>{ZARAFA_CALDAV_EXPLAIN}</div>\n\t\t<table style='width:99%' class=form>\n\t\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend style='font-size:16px'>{enable}:</td>\n\t\t\t\t<td>" . Field_checkbox("ZarafaiCalEnable-{$t}", 1, $ZarafaiCalEnable, "CheckZarafaiCal()") . "</td>\n\t\t\t</tr>\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend style='font-size:16px'>{listen_addr}:</td>\n\t\t\t\t<td>{$netfield}</td>\n\t\t\t</tr>\t\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend style='font-size:16px'>{listen_port}:</td>\n\t\t\t\t<td>" . Field_text("ZarafaiCalPort-{$t}", $ZarafaiCalPort, "font-size:16px;padding:3px;width:90px") . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "SaveZarafaIcal{$t}()", "16px") . "</td>\n\t\t\t</tr>\t\t\n\t\t</table>\n\t<script>\n\tvar x_SaveZarafaIcal{$t}= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\tYahooWin3Hide();\n\t}\t\n\t\t\n\t\n\tfunction SaveZarafaIcal{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tif(document.getElementById('ZarafaiCalEnable-{$t}').checked){XHR.appendData('ZarafaiCalEnable',1);}else{XHR.appendData('ZarafaiCalEnable',0);}\t\n\t\tXHR.appendData('ZarafaiCalPort',document.getElementById('ZarafaiCalPort-{$t}').value);\n\t\tXHR.appendData('ZarafaiCalBind',document.getElementById('ZarafaiCalBind-{$t}').value);\n\t\tAnimateDiv('div-{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveZarafaIcal{$t});\n\t\t}\n\t\t\n\tfunction CheckZarafaiCal(){\n\t\tdocument.getElementById('ZarafaiCalBind-{$t}').disabled=true;\n\t\tdocument.getElementById('ZarafaiCalPort-{$t}').disabled=true;\n\t\tif(document.getElementById('ZarafaiCalEnable-{$t}').checked){\n\t\t\tdocument.getElementById('ZarafaiCalBind-{$t}').disabled=false;\n\t\t\tdocument.getElementById('ZarafaiCalPort-{$t}').disabled=false;\t\t\n\t\t}\n\t}\n\t\n\tCheckZarafaiCal();\n\t\t\n\t\t\n\t</script>\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:22,代码来源:zarafa.caldav.php

示例15: params_popup

function params_popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql();
    $sql = "SELECT hostname,domainname,params FROM postfix_smtp_advrt WHERE zmd5='{$_GET["zmd5"]}'";
    $ligne = mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
    $params = unserialize(base64_decode($ligne["params"]));
    if (!is_numeric($params["max_msg_per_connection"])) {
        $params["max_msg_per_connection"] = 5;
    }
    if (!is_numeric($params["max_msg_rate"])) {
        $params["max_msg_rate"] = 600;
    }
    if (!is_numeric($params["change_timecode"])) {
        $params["change_timecode"] = 1;
    }
    if (!is_numeric($params["max_smtp_out"])) {
        $params["max_smtp_out"] = 5;
    }
    if (!is_numeric($params["max_cnt_hour"])) {
        $params["max_cnt_hour"] = 500;
    }
    if (!is_numeric($params["wait_xs_per_message"])) {
        $params["wait_xs_per_message"] = 0;
    }
    if (!is_numeric($params["max_msg_rate_timeout"])) {
        $params["max_msg_rate_timeout"] = 300;
    }
    if (!is_numeric($params["CNX_421"])) {
        $params["CNX_421"] = 30;
    }
    if (!is_numeric($params["msgs_ttl"])) {
        $params["msgs_ttl"] = 300;
    }
    if (!is_numeric($params["min_subqueue_msgs"])) {
        $params["min_subqueue_msgs"] = 5;
    }
    if (!is_numeric($params["min_subqueue_msgs_ttl"])) {
        $params["min_subqueue_msgs_ttl"] = 30;
    }
    $lockMX = 0;
    if ($params["smtp_authenticate"] == 1) {
        if ($params["AUTH-SMTP"] != null) {
            $lockMX = 1;
        }
    }
    if ($params["bounce_from"] == null) {
        $params["bounce_from"] = "MAILER-DAEMON";
    }
    $ip = new networking();
    $ips = $ip->ALL_IPS_GET_ARRAY();
    $main = new maincf_multi($_GET["hostname"]);
    $ipaddr = $main->ip_addr;
    if (!isset($params["bind_address"])) {
        $params["bind_address"] = $main->ip_addr;
    }
    $nets = Field_array_Hash($ips, "bind_address", $params["bind_address"], "style:font-size:16px;padding:3px");
    $arrayMXS = ResolveMXDomain($ligne["domainname"]);
    $arrayMXS[null] = "{automatic}";
    $ForceMX = Field_array_Hash($arrayMXS, "ForceMX", $params["ForceMX"], "style:font-size:16px;padding:3px");
    $sql = "SELECT hostname FROM postfix_smtp_advrt WHERE domainname='{$ligne["domainname"]}' ORDER BY hostname";
    $results = $q->QUERY_SQL($sql, "artica_backup");
    while ($ligne421 = mysql_fetch_assoc($results)) {
        if ($ligne421["hostname"] == $ligne["hostname"]) {
            continue;
        }
        $ligne421AR[$ligne421["hostname"]] = $ligne421["hostname"];
    }
    $ligne421AR[null] = "{select}";
    $MoveTo421Field = Field_array_Hash($ligne421AR, "CNX_421_HOST", $params["CNX_421_HOST"], "style:font-size:14px;padding:3px");
    $html = "\n\t<table style='width:99%' class=form>\n\t<tbody>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{bind_address}:</td>\n\t\t<td style='font-size:14px'>{$nets}&nbsp;{ipaddr}</td>\n\t\t<td width=1%></td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{debug}:</td>\n\t\t<td style='font-size:14px'>" . Field_checkbox("debug_parameters", 1, $params["debug_parameters"]) . "</td>\n\t\t<td>" . help_icon("{smtp_adv_debug_explain}") . "</td>\n\t</tr>\t\n\t\n\t\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{forceMX}:</td>\n\t\t<td style='font-size:14px'>{$ForceMX}</td>\n\t\t<td width=1%>" . help_icon("{smtp_adv_forcemx_explain}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{authenticate}:</td>\n\t\t<td style='font-size:14px'>" . Field_checkbox("smtp_authenticate", 1, $params["smtp_authenticate"]) . "&nbsp;\n\t\t<a href=\"javascript:blur();\" OnClick=\"javascript:Loadjs('{$page}?js-authenticate=yes&hostname={$_GET["hostname"]}&ou={$_GET["ou"]}&zmd5={$_GET["zmd5"]}')\" style=\"font-size:13px;text-decoration:underline\">{parameters}</a>\n\t\t</td>\n\t\t<td width=1%>" . help_icon("{smtpadv_authenticate_explain}") . "</td>\n\t</tr>\t\t\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{max_processes}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("max_smtp_out", $params["max_smtp_out"], "font-size:14px;width:65px") . "&nbsp;{processes}</td>\n\t\t<td width=1%></td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{min_subqueue_msgs}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("min_subqueue_msgs", $params["min_subqueue_msgs"], "font-size:14px;width:65px") . "&nbsp;{messages}</td>\n\t\t<td width=1%>" . help_icon("{min_subqueue_msgs_explain}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{min_subqueue_msgs_ttl}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("min_subqueue_msgs_ttl", $params["min_subqueue_msgs_ttl"], "font-size:14px;width:65px") . "&nbsp;{seconds}</td>\n\t\t<td width=1%>" . help_icon("{min_subqueue_msgs_ttl_explain}") . "</td>\n\t</tr>\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{max_msg_per_connection}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("max_msg_per_connection", $params["max_msg_per_connection"], "font-size:14px;width:65px") . "&nbsp;{messages}</td>\n\t\t<td width=1%></td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{wait_xs_per_message}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("wait_xs_per_message", $params["wait_xs_per_message"], "font-size:14px;width:65px") . "&nbsp;{seconds}</td>\n\t\t<td width=1%>" . help_icon("{wait_xs_per_message_explain}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{max_cnt_hour}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("max_cnt_hour", $params["max_cnt_hour"], "font-size:14px;width:65px") . "&nbsp;{connections}/{hour}</td>\n\t\t<td width=1%></td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{aiguil_max_msg_rate}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("max_msg_rate", $params["max_msg_rate"], "font-size:14px;width:65px") . "&nbsp;{seconds}</td>\n\t\t<td>" . help_icon("{aiguil_max_msg_rate_explain}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{max_msg_rate_timeout}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("max_msg_rate_timeout", $params["max_msg_rate_timeout"], "font-size:14px;width:65px") . "&nbsp;{seconds}</td>\n\t\t<td width=1%></td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{CNX_421}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("CNX_421", $params["CNX_421"], "font-size:14px;width:65px") . "&nbsp;{minutes}</td>\n\t\t<td>" . help_icon("{CNX_421_EXPLAIN}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{CNX_421_MOVE_TO}:</td>\n\t\t<td style='font-size:14px'>" . Field_checkbox("CNX_421_MOVE", 1, $params["CNX_421_MOVE"], "Check421Move()") . "</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{CNX_421_MOVE_TO_HOST}:</td>\n\t\t<td style='font-size:14px'>{$MoveTo421Field}</td>\n\t\t<td>" . help_icon("{CNX_421_MOVE_TO_HOST_EXPLAIN}") . "</td>\n\t</tr>\n\t\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{msgs_ttl}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("msgs_ttl", $params["msgs_ttl"], "font-size:14px;width:65px") . "&nbsp;{minutes}</td>\n\t\t<td>" . help_icon("{msgs_ttl_explain}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{bounce_use_instance}:</td>\n\t\t<td style='font-size:14px'>" . Field_checkbox("bounce_use_instance", 1, $params["bounce_use_instance"]) . "</td>\n\t\t<td>" . help_icon("{bounce_use_instance_explain}") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{bounce_from}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("bounce_from", $params["bounce_from"], "font-size:14px;width:220px") . "</td>\n\t\t<td>" . help_icon("{bounce_from_explain}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{bounce_to}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("bounce_to", $params["bounce_to"], "font-size:14px;width:220px") . "</td>\n\t\t<td>" . help_icon("{bounce_to_explain}") . "</td>\n\t</tr>\t\t\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{change_timecode}:</td>\n\t\t<td style='font-size:14px'>" . Field_checkbox("change_timecode", 1, $params["change_timecode"]) . "</td>\n\t\t<td>" . help_icon("{change_timecode_explain}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=3 align='right'><hr>" . button("{apply}", "SavePostfixAdvRouting()", 14) . "</td>\n\t</tr>\n\t</tbody>\n\t</table>\t\n<script>\n\tvar x_SavePostfixAdvRouting= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\tYahooWinBrowseHide();\n\t\tFlexReloadAdvPostRout();\n\t}\n\t\nfunction SavePostfixAdvRouting(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\tXHR.appendData('ou','{$_GET["ou"]}');\n\tXHR.appendData('zmd5','{$_GET["zmd5"]}');\n\tXHR.appendData('max_smtp_out',document.getElementById('max_smtp_out').value);\n\tXHR.appendData('max_msg_per_connection',document.getElementById('max_msg_per_connection').value);\n\tXHR.appendData('bind_address',document.getElementById('bind_address').value);\n\tXHR.appendData('max_cnt_hour',document.getElementById('max_cnt_hour').value);\n\tXHR.appendData('CNX_421',document.getElementById('CNX_421').value);\n\tXHR.appendData('msgs_ttl',document.getElementById('msgs_ttl').value);\n\tXHR.appendData('bounce_from',document.getElementById('bounce_from').value);\n\tXHR.appendData('bounce_to',document.getElementById('bounce_to').value);\n\tXHR.appendData('max_msg_rate',document.getElementById('max_msg_rate').value);\n\tXHR.appendData('min_subqueue_msgs_ttl',document.getElementById('min_subqueue_msgs_ttl').value);\n\tXHR.appendData('max_msg_rate_timeout',document.getElementById('max_msg_rate_timeout').value);\n\tXHR.appendData('min_subqueue_msgs',document.getElementById('min_subqueue_msgs').value);\n\tXHR.appendData('ForceMX',document.getElementById('ForceMX').value);\n\tXHR.appendData('CNX_421_HOST',document.getElementById('CNX_421_HOST').value);\n\tif(document.getElementById('change_timecode').checked){XHR.appendData('change_timecode',1);}else{XHR.appendData('change_timecode',0);}\n\tif(document.getElementById('CNX_421_MOVE').checked){XHR.appendData('CNX_421_MOVE',1);}else{XHR.appendData('CNX_421_MOVE',0);}\n\tif(document.getElementById('debug_parameters').checked){XHR.appendData('debug_parameters',1);}else{XHR.appendData('debug_parameters',0);}\n\tif(document.getElementById('bounce_use_instance').checked){XHR.appendData('bounce_use_instance',1);}else{XHR.appendData('bounce_use_instance',0);}\n\tif(document.getElementById('smtp_authenticate').checked){XHR.appendData('smtp_authenticate',1);}else{XHR.appendData('smtp_authenticate',0);}\n\t\n\t\n\t\n\t\n\tXHR.sendAndLoad('{$page}', 'POST',x_SavePostfixAdvRouting);\t\n\t}\n\t\n\tfunction Check421Move(){\n\t\tdocument.getElementById('CNX_421_HOST').disabled=true;\n\t\tif(document.getElementById('CNX_421_MOVE').checked){document.getElementById('CNX_421_HOST').disabled=false;}\n\t}\n\t\n\tfunction LockMXFields(){\n\t\tvar lock={$lockMX};\n\t\tif(lock==1){\n\t\t\tdocument.getElementById('ForceMX').disabled=true;\n\t\t}\n\t}\nLockMXFields();\t\nCheck421Move();\t\n</script>\t\t\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:74,代码来源:postfix.isp-routing.php


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