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


PHP sockets::GET_INFO方法代码示例

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


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

示例1: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $ChangeLDAPSuffixFrom = base64_decode($sock->GET_INFO("ChangeLDAPSuffixFrom"));
    $ChangeLDAPSuffixTo = base64_decode($sock->GET_INFO("ChangeLDAPSuffixTo"));
    $ldap = new clladp();
    $ChangeLDAPSuffixFrom = $ldap->suffix;
    $LockLdapConfig = $sock->GET_INFO("LockLdapConfig");
    $OpenLDAPLogLevel = $sock->GET_INFO("OpenLDAPLogLevel");
    if (!is_numeric($OpenLDAPLogLevel)) {
        $OpenLDAPLogLevel = 256;
    }
    if (!is_numeric($LockLdapConfig)) {
        $LockLdapConfig = 0;
    }
    $button = button("{apply}", "ChangeLdapSuffixPerform()", "18px");
    if ($LockLdapConfig == 1) {
        $button = null;
    }
    $t = time();
    $html = "\n\t\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{ldap_suffix}:</td>\n\t\t<td><strong style='font-size:16px'>{$ChangeLDAPSuffixFrom}</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{destination}:</td>\n\t\t<td>" . Field_text("ChangeLDAPSuffixTo-{$t}", "{$ChangeLDAPSuffixTo}", "font-size:16px;width:450px", null, null, null, false, "ChangeLdapSuffixPerformCheck(event)") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>\n\t\t\t" . button("{apply}", "ChangeLdapSuffixPerform()", "18px") . "\n\t\t\t</td>\n\t</tr>\n\t</table>\n\t<div id='{$t}-div'></div>\n\t<script>\n\t\tfunction ChangeLdapSuffixPerformCheck(e){\n\t\t if(checkEnter(e)){\n\t\t \tChangeLdapSuffixPerform();\n\t\t }\n\t\t}\n\t\t\n\tfunction CheckChangeLDAPSuffixTo(){\n\t\tvar LockLdapConfig={$LockLdapConfig};\n\t\tif(LockLdapConfig==1){\n\t\t\tdocument.getElementById('ChangeLDAPSuffixTo').disabled=true;\n\t\t}\n\t}\n\t\n\tvar x_ChangeLdapSuffixPerform= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);}\n\t\tsetTimeout('TransactionChldapCheck()',3000);\n\t\t\n\t}\t\t\n\t\t\t\n\t\t\n\n\tfunction ChangeLdapSuffixPerform(){\n\t\tvar suffix=document.getElementById('ChangeLDAPSuffixTo-{$t}').value;\n\t\tif(confirm('{ask_change_suffix}: {$ChangeLDAPSuffixFrom} -> '+suffix+' ?')){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('ChangeLDAPSuffixTo',suffix);\n\t\t\tXHR.appendData('ChangeLDAPSuffixFrom','{$ChangeLDAPSuffixFrom}');\n\t\t\tAnimateDiv('{$t}-div');\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_ChangeLdapSuffixPerform);\t\t\t\n\t\t\n\t\t}\n\t\n\t}\n\t\n\tfunction TransactionChldapCheck(){\n\t\tif(!RTMMailOpen()){return;}\n\t\tLoadAjax('{$t}-div','{$page}?change-ldap-suffix-events=yes&t={$t}');\n\t}\n\t\t\t\n\t\t\n\t\n\t\n\tCheckChangeLDAPSuffixTo();\n\t</script>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:openldap.changesuffix.php

示例2: page

function page()
{
    $sock = new sockets();
    $ArticaTechNetInfluxRepo = unserialize(base64_decode($sock->GET_INFO("ArticaTechNetProFTPDRepo")));
    $tpl = new templates();
    $version = $sock->GET_INFO("ProFTPDVersion");
    $manual_update = $tpl->javascript_parse_text("{manual_update}");
    $html = "\n\t\t\t\n\t<div style='font-size:30px;margin-bottom:30px'>{available_versions} &nbsp;|&nbsp; {current}:&nbsp;{$version}\n\t&nbsp;|&nbsp;<a href=\"javascript:blur();\" OnClick=\"javascript:Loadjs('update.upload.php')\"\n\tstyle='text-decoration:underline'>{$manual_update}</a>\n\t&nbsp;|&nbsp;<a href=\"javascript:blur();\" OnClick=\"javascript:Loadjs('influx.refresh.update.php')\"\n\tstyle='text-decoration:underline'>{refresh}</a>\n\t\n\t\n\t</div>\n\t<table style='width:100%'>\n\t<tr>\n\t<th style='font-size:22px'>{version}</th>\n\t<th style='font-size:22px'>{OS}</th>\n\t<th style='font-size:22px'>{filename}</th>\n\t<th style='font-size:22px'>{filesize}</th>\n\t<th style='font-size:22px'>&nbsp;</tf>\n\t</tr>\t\t\t\t\n\t";
    $color = null;
    while (list($key, $array) = each($ArticaTechNetInfluxRepo)) {
        while (list($OS, $MAIN) = each($array)) {
            $URL = $MAIN["URL"];
            $VERSION = $MAIN["VERSION"];
            $FILESIZE = $MAIN["FILESIZE"];
            $FILENAME = $MAIN["FILENAME"];
            $FILESIZE = FormatBytes($FILESIZE / 1024);
            $button = button("{update2}", "Loadjs('proftpd.update.progress.php?key={$key}&OS={$OS}&filename={$FILENAME}');", 32);
            if ($color == null) {
                $color = "#F2F0F1";
            } else {
                $color = null;
            }
            $html = $html . "\n\t\t<tr style='background-color:{$color};height:80px'>\n\t\t\t<td style='font-size:28px;padding-left:10px'><center>{$VERSION}</center></td>\n\t\t\t<td style='font-size:28px;padding-left:10px'><center>{$OS}</center></td>\n\t\t\t<td style='font-size:28px;padding-left:10px;text-align:right'><a href=\"{$URL}\" target=_new style='text-decoration:underline'>{$FILENAME}</a></td>\t\n\t\t\t<td style='font-size:28px;padding-left:10px;text-align:right'>{$FILESIZE}</td>\t\n\t\t\t<td style='font-size:28px;padding-left:10px'><center>{$button}</center></td>\t\n\t\t</tr>\n\t\t";
        }
    }
    $html = $html . "</table>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:28,代码来源:proftpd.update.php

示例3: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $t = time();
    $EnableMacAddressFilter = $sock->GET_INFO("EnableMacAddressFilter");
    if (!is_numeric($EnableMacAddressFilter)) {
        $EnableMacAddressFilter = 1;
    }
    $EnableRemoteStatisticsAppliance = $sock->GET_INFO("EnableRemoteStatisticsAppliance");
    if (!is_numeric($EnableRemoteStatisticsAppliance)) {
        $EnableRemoteStatisticsAppliance = 0;
    }
    $UnlockWebStats = $sock->GET_INFO("UnlockWebStats");
    if (!is_numeric($UnlockWebStats)) {
        $UnlockWebStats = 0;
    }
    if ($UnlockWebStats == 1) {
        $EnableRemoteStatisticsAppliance = 0;
    }
    if ($EnableRemoteStatisticsAppliance == 1) {
        $EnableMacAddressFilterCentral = $sock->GET_INFO("EnableMacAddressFilterCentral");
        if (!is_numeric($EnableMacAddressFilterCentral)) {
            $EnableMacAddressFilterCentral = 1;
        }
        $EnableMacAddressFilter = $EnableMacAddressFilterCentral;
    }
    $p = Paragraphe_switch_img("{enable_mac_squid_filters}", "{enable_mac_squid_filters_explain}", "EnableMacAddressFilter", $EnableMacAddressFilter, null, 400);
    $html = "\n\t<div id='{$t}'></div>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t\n\t\t<td colspan=2>{$p}</td>\n\t</tr>\n\t\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "Save{$t}()", 16) . "</td>\n\t</tr>\n\t</table>\n\t\n\t<script>\n\t\tvar x_Save{$t}= function (obj) {\n\t\t\tdocument.getElementById('{$t}').innerHTML='';\n\t\t\tvar res=obj.responseText;\n\t\t\tif (res.length>3){alert(res);}\t\t\t\n\t\t\tYahooWin2Hide();\n\t\t}\n\t\n\t\n\tfunction Save{$t}(){\n\t\tvar lock={$EnableRemoteStatisticsAppliance};\n\t\tif(lock==1){Loadjs('squid.newbee.php?error-remote-appliance=yes');return;}\n\t\tvar XHR = new XHRConnection();\n\t\t\n\t\tXHR.appendData('EnableMacAddressFilter',document.getElementById('EnableMacAddressFilter').value);\n\t\tAnimateDiv('{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_Save{$t});\n\t}\n</script>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:32,代码来源:squid.macaddr.php

示例4: ArticaMeta_release

function ArticaMeta_release($source_package)
{
    $sock = new sockets();
    $EnableArticaMetaServer = intval($sock->GET_INFO("EnableArticaMetaServer"));
    if ($EnableArticaMetaServer == 0) {
        echo "Starting......: " . date("H:i:s") . " Checking Artica-meta repository - DISABLED -\n";
        return;
    }
    echo "Starting......: " . date("H:i:s") . " Checking META repository - ENABLED -\n";
    $ArticaMetaStorage = $sock->GET_INFO("ArticaMetaStorage");
    if ($ArticaMetaStorage == null) {
        $ArticaMetaStorage = "/home/artica-meta";
    }
    @mkdir("{$ArticaMetaStorage}/nightlys", 0755, true);
    @mkdir("{$ArticaMetaStorage}/releases", 0755, true);
    $basename = basename($source_package);
    if (!preg_match("#artica-[0-9\\.]+\\.tgz#", $basename)) {
        echo "Starting......: " . date("H:i:s") . " Checking Artica-meta repository - FAILED ( not an artica package) -\n";
        return;
    }
    if (is_file("{$ArticaMetaStorage}/releases/{$basename}")) {
        @unlink("{$ArticaMetaStorage}/releases/{$basename}");
    }
    @copy($source_package, "{$ArticaMetaStorage}/releases/{$basename}");
    meta_admin_mysql(2, "Added {$basename} into official repository", null, __FILE__, __LINE__);
    $unix = new unix();
    $php = $unix->LOCATE_PHP5_BIN();
    echo "Starting......: " . date("H:i:s") . " Prepare New META package for clients...\n";
    shell_exec("{$php} " . dirname(__FILE__) . "/exec.artica-meta-server.php --force");
    echo "Starting......: " . date("H:i:s") . " Prepare New META package for clients done...\n";
}
开发者ID:articatech,项目名称:artica,代码行数:31,代码来源:exec.artica.update.manu.php

示例5: popup

function popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $sock = new sockets();
    $EnableZarafaIndexer = $sock->GET_INFO("EnableZarafaIndexer");
    $ZarafaIndexerInterval = $sock->GET_INFO("ZarafaIndexerInterval");
    $ZarafaIndexerThreads = $sock->GET_INFO("ZarafaIndexerThreads");
    if (!is_numeric($ZarafaIndexerInterval)) {
        $ZarafaIndexerInterval = 60;
    }
    if (!is_numeric($ZarafaIndexerThreads)) {
        $ZarafaIndexerThreads = 2;
    }
    $ZarafaIndexerIntervals[5] = "5Mn";
    $ZarafaIndexerIntervals[15] = "15Mn";
    $ZarafaIndexerIntervals[30] = "30Mn";
    $ZarafaIndexerIntervals[60] = "1h";
    $ZarafaIndexerIntervals[120] = "2h";
    $ZarafaIndexerIntervals[180] = "3h";
    $ZarafaIndexerIntervals[360] = "6h";
    $ZarafaIndexerIntervals[720] = "12h";
    $ZarafaIndexerIntervals[720] = "12h";
    $ZarafaIndexerIntervals[1440] = "1 {day}";
    $html = "\n\t<div class=explain>{zarafa_indexer_explain}</div>\n\t<div id='zarafa-indexer-div'>\n\t<p>&nbsp;</p>\n\t<table style='width:100%' class=form>\n\t<tr>\n\t\t<td class=legend>{enable}:</td>\n\t\t<td>" . Field_checkbox("EnableZarafaIndexer", 1, $EnableZarafaIndexer, "ValidZIndexerForm()") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{indexing_interval}:</td>\n\t\t<td>" . Field_array_Hash($ZarafaIndexerIntervals, "ZarafaIndexerInterval", $ZarafaIndexerInterval, "style:font-size:13px;padding:3px") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{threads_max_number}:</td>\n\t\t<td>" . Field_text("ZarafaIndexerThreads", $ZarafaIndexerThreads, "font-size:13px;padding:3px;width:90px") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "SaveIndexerConfig()") . "</td>\n\t</tr>\n\t</table>\n\t\n\t\n\t</div>\t\n\t<script>\n\t\tfunction ValidZIndexerForm(){\n\t\t\tdocument.getElementById('ZarafaIndexerInterval').disabled=true;\n\t\t\tdocument.getElementById('ZarafaIndexerThreads').disabled=true;\n\t\t\t\n\t\t\tif(!document.getElementById('EnableZarafaIndexer').checked){return;}\n\t\t\tdocument.getElementById('ZarafaIndexerInterval').disabled=false;\n\t\t\tdocument.getElementById('ZarafaIndexerThreads').disabled=false;\n\t\t\n\t\t}\n\t\t\nvar x_SaveIndexerConfig=function(obj){\n      var tempvalue=obj.responseText;\n     RefreshTab('main_config_zarafa');\n      }\t\n\t\t\n\tfunction SaveIndexerConfig(){\n\t\tvar XHR = new XHRConnection();\n\t\tif(document.getElementById('EnableZarafaIndexer').checked){XHR.appendData('EnableZarafaIndexer',1);}else{XHR.appendData('EnableZarafaIndexer',0);}\n\t\tXHR.appendData('ZarafaIndexerInterval',document.getElementById('ZarafaIndexerInterval').value);\n\t\tXHR.appendData('ZarafaIndexerThreads',document.getElementById('ZarafaIndexerThreads').value);\n\t\tdocument.getElementById('zarafa-indexer-div').innerHTML='<center style=\"width:100%\"><img src=img/wait_verybig.gif></center>';\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_SaveIndexerConfig);\n\t}\t\t\n\tValidZIndexerForm();\n\t</script>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:,项目名称:,代码行数:27,代码来源:

示例6: restart

function restart()
{
    $sock = new sockets();
    $t = $_GET["t"];
    $users = new usersMenus();
    $EnableWebProxyStatsAppliance = $sock->GET_INFO("EnableWebProxyStatsAppliance");
    $EnableRemoteStatisticsAppliance = $sock->GET_INFO("EnableRemoteStatisticsAppliance");
    if (!is_numeric($EnableWebProxyStatsAppliance)) {
        $EnableWebProxyStatsAppliance = 0;
    }
    if (!is_numeric($EnableRemoteStatisticsAppliance)) {
        $EnableRemoteStatisticsAppliance = 0;
    }
    if ($users->WEBSTATS_APPLIANCE) {
        $EnableWebProxyStatsAppliance = 1;
    }
    if ($EnableWebProxyStatsAppliance == 1) {
        $sock->getFrameWork("squid.php?notify-remote-proxy=yes");
        $tpl = new templates();
        echo $tpl->_ENGINE_parse_body("\n\t\t<center style='font-size:18px;width:100%'><div>{proxy_clients_was_notified}</div></center>");
        return;
    }
    $sock->getFrameWork("squid.php?reconstruct-caches=yes");
    echo "\n\t<center id='animate-{$t}'>\n\t\t<img src=\"img/wait_verybig.gif\">\n\t</center>\n\t<textarea style='margin-top:5px;font-family:Courier New;\n\tfont-weight:bold;width:98%;height:446px;border:5px solid #8E8E8E;\n\toverflow:auto;font-size:11px' id='textToParseCats-{$t}'></textarea>\n\t<script>\n\t\t\tsetTimeout(\"GetLogs{$t}()\",1000);\n\t</script>";
}
开发者ID:articatech,项目名称:artica,代码行数:25,代码来源:squid.rebuildcahes.php

示例7: InstantSearch

function InstantSearch()
{
    $sock = new sockets();
    $button = Paragraphe_switch_img('{InstantSearch_enable}', "{InstantSearch_enable_text}", 'InstantSearchEnable', $sock->GET_INFO('InstantSearchEnable', "{enable_disable}", 300));
    $tt["0"] = 0;
    for ($i = 1; $i < 100; $i++) {
        if ($i < 10) {
            $t = "0{$i}";
        } else {
            $t = $i;
        }
        $tt[$t] = $i;
    }
    $hour = $sock->GET_INFO("InstantSearchCrawlPeriod");
    if ($hour == null) {
        $hour = 120;
    }
    $hour = $hour / 60;
    $save = "<div style='width:100%;text-align:right;margin-top:9px;border-top:1px solid #CCCCCC'>\n\t\t<input type='button' OnClick=\"javascript:InstantSearchSave();\" value='{save}&nbsp;&raquo'>\n\t</div>";
    $crawl = "<div style='width:100%;text-align:right;margin-top:9px;border-top:1px solid #CCCCCC'>\n\t\t<input type='button' OnClick=\"javascript:InstantCrawl();\" value='{crawl_now}&nbsp;&raquo'>\n\t</div>";
    $logs = "<div style='width:100%;text-align:right;margin-top:9px;border-top:1px solid #CCCCCC'>\n\t\t<input type='button' OnClick=\"javascript:InstantLogs();\" value='{events}&nbsp;&raquo'>\n\t</div>";
    $html = "<H1>{InstantSearch}</H1>\n\t<div id='InstantSearchDiv'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=60%>{$button}{$save}</td>\n\t\t<td valign='top'>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td valign='top' class=legend nowrap>{crawl_each}:</td>\n\t\t\t\t<td valign='top' >" . Field_array_Hash($tt, 'InstantSearchCrawlPeriod', $hour) . "</td>\n\t\t\t\t<td valign='top' >{hours}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t<td colspan=3 ><p class=caption>{crawl_each_0}</p></td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t\t{$save}\n\t\t\t<p>&nbsp;</p>\n\t\t\t{$crawl}\n\t\t\t<p>&nbsp;</p>\n\t\t\t{$logs}\n\t\t</td>\n\t</tr>\n\t</table>\n\t</div>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:instantsearch.php

示例8: amavis_popup

function amavis_popup()
{
    $t = time();
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $enable_amavisdeamon_ask = $tpl->javascript_parse_text("{enable_amavisdeamon_ask}");
    $disable_amavisdeamon_ask = $tpl->javascript_parse_text("{disable_amavisdeamon_ask}");
    $EnableAmavisDaemon = intval(trim($sock->GET_INFO("EnableAmavisDaemon", true)));
    $EnableAmavisInMasterCF = intval(trim($sock->GET_INFO("EnableAmavisInMasterCF")));
    if ($EnableAmavisDaemon == 0) {
        $EnableAmavisDaemonP = "{amavis_is_currently_disabled_text}";
    } else {
        $EnableAmavisDaemonP = "{amavis_is_currently_enabled_text}";
    }
    $prepost = Paragraphe("folder-equerre-64.png", '{postfix_hooking}', '{postfix_hooking_text}', "javascript:Loadjs('{$page}?hooking-js=yes')", 'postfix_hooking_text', 210, 100);
    $tr[] = $EnableAmavisDaemonP;
    $tr[] = Paragraphe32("watchdog", "watchdog_amavis_text", "Loadjs('amavis.daemon.watchdog.php')", "watchdog-32.png");
    $tr[] = Paragraphe32("postfix_hooking", "postfix_hooking_text", "Loadjs('amavis.index.php?hooking-js=yes')", "folder-equerre-32.png");
    $tr[] = Paragraphe32("amavis_wizard_rule_per_user", "amavis_wizard_rule_per_user_text", "Loadjs('amavis.wizard.users.php')", "32-wizard.png");
    $tr[] = Paragraphe32("reload_service", "reload_service_text", "AmavisCompileRules()", "service-restart-32.png");
    $EnableAmavisInMasterCFT = "{postfix_afterqueue}";
    $EnableAmavisInMasterCFE = "{postfix_afterqueue_text}";
    //https://192.168.1.213:9000/amavis.daemon.watchdog.php?_=1345459954124
    if ($EnableAmavisInMasterCF == 0) {
        $EnableAmavisInMasterCFT = "{postfix_beforequeue}";
        $EnableAmavisInMasterCFE = "{postfix_beforequeue_text}";
    }
    $html = "<table style='width:100%'>\n\t<tr>\n\t\t<td width=1% valign='top'>\n\t\t\t<div id='status-{$t}'></div>\n\t\t</td>\n\t\t<td valign='top' style='padding-left:20px'>\n\t\t\t<div style='font-size:32px;margin:bottom:10px;text-align:right'>{APP_AMAVIS}</div>\n\t\t\t" . Paragraphe_switch_img("{EnableAmavisDaemon}", "{AMAVIS_DEF}<br>{$EnableAmavisDaemonP}", "EnableAmavisDaemon", $EnableAmavisDaemon, null, 700) . "\n\t\t\t" . Paragraphe_switch_img("{postfix_afterqueue}", "{postfix_afterqueue_text}", "EnableAmavisInMasterCF", $EnableAmavisInMasterCF, null, 700) . "\n\t\t\t<p class=text-info style='font-size:14px'><strong style='font-size:16px'>{currently}:{$EnableAmavisInMasterCFT}</strong><br>{$EnableAmavisInMasterCFE}</p>\n\t\t\t<hr>\n\t\t\t<div style='width:100%;text-align:right'>" . button("{apply}", "SaveEnablePopupAmavis()", 26) . "</div>\n\t\t</td>\n\t</tr>\n\t</table>\n\t<script>\n\t\n\tvar x_EnablePopupAmavis= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue);}\t\n\t\tRefreshTab('main_config_amavis');\n\t}\t\n\t\n\t\tfunction EnablePopupAmavis(){\n\t\t\tif(confirm('{$enable_amavisdeamon_ask}')){\n\t\t\t\tvar XHR = new XHRConnection();\n\t\t\t\tXHR.appendData('enable-amavis','yes');\n\t\t\t\tAnimateDiv('explain-{$t}');\n\t\t\t\tXHR.sendAndLoad('amavis.daemon.status.php', 'POST',x_EnablePopupAmavis);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfunction SaveEnablePopupAmavis(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('EnableAmavisDaemon',document.getElementById('EnableAmavisDaemon').value);\n\t\t\tXHR.appendData('EnableAmavisInMasterCF',document.getElementById('EnableAmavisInMasterCF').value);\n\t\t\tXHR.sendAndLoad('amavis.daemon.status.php', 'POST',x_EnablePopupAmavis);\n\t\t}\n\t\n\t\n\t\n\t\tLoadAjax('status-{$t}','{$page}?status=yes&t={$t}');\n\t\t\n\t\t\n\t</script>\n\t\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:31,代码来源:amavis.general.status.php

示例9: MAIN_STATUS_MIDDLE

function MAIN_STATUS_MIDDLE()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $sock = new sockets();
    $t = time();
    $EnableNginx = intval($sock->GET_INFO("EnableNginx"));
    $EnableFreeWeb = intval($sock->GET_INFO("EnableFreeWeb"));
    $EnableNginxMail = intval($sock->GET_INFO("EnableNginxMail"));
    $SQUIDEnable = trim($sock->GET_INFO("SQUIDEnable"));
    $users = new usersMenus();
    if (!is_numeric($SQUIDEnable)) {
        $SQUIDEnable = 1;
    }
    $p1 = Paragraphe_switch_img("{enable_reverse_proxy_service}", "{enable_reverse_proxy_service_explain}", "EnableNginx-{$t}", $EnableNginx, null, 1072);
    $p2 = Paragraphe_switch_disable("{enable_reverse_imap_proxy_service}", "{enable_reverse_imap_proxy_service_explain}", "EnableNginxMail-{$t}", $EnableNginxMail, null, 1072);
    $p3 = Paragraphe_switch_img("{enable_freeweb}", "{enable_freeweb_text}", "EnableFreeWeb-{$t}", $EnableFreeWeb, null, 1072);
    if ($users->SQUID_INSTALLED) {
        $p4 = Paragraphe_switch_img("{enable_squid_service}", "{enable_squid_service_explain}<br>{enable_squid_service_text}", "SQUIDEnable-{$t}", $SQUIDEnable, null, 1072);
    }
    $p2 = "<br>{$p2}";
    $p2 = null;
    $html = "{$p1}<br>{$p3}<br>{$p4}{$p2}<hr>\n\t<div style='text-align:right;width:98%'>" . button("{apply}", "Save{$t}()", 40) . "</div>\n\t<script>\n\t\t\t\n\tvar xSave{$t}=function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tLoadjs('nginx.verif.progress.php');\n\t\t}\t\n\t\t\n\t\tfunction Save{$t}(){\n\t\t\tvar XHR = new XHRConnection();\n    \t\tXHR.appendData('EnableFreeWeb',document.getElementById('EnableFreeWeb-{$t}').value);\n    \t\tXHR.appendData('EnableNginx',document.getElementById('EnableNginx-{$t}').value);\n    \t\tif(document.getElementById('EnableNginxMail-{$t}')){\n    \t\t\tXHR.appendData('EnableNginxMail',document.getElementById('EnableNginxMail-{$t}').value);\n    \t\t}\n    \t\tif(document.getElementById('SQUIDEnable-{$t}')){\n    \t\t\tXHR.appendData('SQUIDEnable',document.getElementById('SQUIDEnable-{$t}').value);\n    \t\t}\n    \t\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n\t\t\t\n\t\t}\n\t</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:nginx.satus.php

示例10: page

function page()
{
    $sock = new sockets();
    $tpl = new templates();
    $page = CurrentPageName();
    $ip = new networking();
    $msftncsiBindIpAddress = $sock->GET_INFO("msftncsiBindIpAddress");
    $msftncsiSchedule = $sock->GET_INFO("msftncsiSchedule");
    $EnableMsftncsi = intval($sock->GET_INFO("EnableMsftncsi"));
    $t = time();
    while (list($eth, $cip) = each($ip->array_TCP)) {
        if ($cip == null) {
            continue;
        }
        $arrcp[$cip] = $cip;
    }
    $CRON[1] = "1 {minute}";
    $CRON[2] = "2 {minutes}";
    $CRON[4] = "4 {minutes}";
    $CRON[5] = "5 {minutes}";
    $CRON[8] = "8 {minutes}";
    $CRON[10] = "10 {minutes}";
    $CRON[30] = "30 {minutes}";
    $CRON[60] = "1 {hour}";
    $arrcp[null] = "{default}";
    $p1 = Paragraphe_switch_img("{network_awareness}", "{network_awareness_explain}", "EnableMsftncsi", $EnableMsftncsi, null, 1030);
    $WgetBindIpAddress = Field_array_Hash($arrcp, "msftncsiBindIpAddress", $msftncsiBindIpAddress, null, null, 0, "font-size:26px;padding:3px;");
    $html = "\n\t<div style='font-size:40px;margin-bottom:40px'>{network_awareness}</div>\n\t<div style='width:98%' class=form>\t\t\n\t{$p1}\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td width=1% nowrap align='right' class=legend style='font-size:26px'>{url}:</strong></td>\n\t\t<td align='left' style='vertical-align:top;font-size:26px;'>http://www.msftncsi.com/ncsi.txt</td>\n\t</tr>\t\n\t<tr>\n\t\t<td width=1% nowrap align='right' class=legend style='font-size:26px'>{WgetBindIpAddress}:</strong></td>\n\t\t<td align='left'>{$WgetBindIpAddress}</td>\n\t</tr>\n\t<tr>\n\t\t<td style='font-size:24px' class=legend>{interval}:</td>\n\t\t<td style='vertical-align:top;font-size:26px;'>" . Field_array_Hash($CRON, "msftncsiSchedule", $msftncsiSchedule, "blur()", null, 0, "font-size:26px;") . "</td>\t\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "Save{$t}()", 36) . "</td>\n\t</tr>\n</table>\n</div>\n<script>\n\tvar xSave{$t}= function (obj) {\n\tvar results=obj.responseText;\n\tUnlockPage();\n\t\n}\n\n\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('msftncsiBindIpAddress',document.getElementById('msftncsiBindIpAddress').value);\n\tXHR.appendData('msftncsiSchedule',document.getElementById('msftncsiSchedule').value);\n\tXHR.appendData('EnableMsftncsi',document.getElementById('EnableMsftncsi').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n</script>\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:30,代码来源:system.msftncsi.php

示例11: page

function page()
{
    $t = time();
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $DirectoriesMonitorH = intval($sock->GET_INFO("DirectoriesMonitorH"));
    $DirectoriesMonitorM = intval($sock->GET_INFO("DirectoriesMonitorM"));
    $DisksBenchs = intval($sock->GET_INFO("DisksBenchs"));
    $t = time();
    for ($i = 0; $i < 24; $i++) {
        $H = $i;
        if ($i < 10) {
            $H = "0{$i}";
        }
        $Hours[$i] = $H;
    }
    for ($i = 0; $i < 60; $i++) {
        $M = $i;
        if ($i < 10) {
            $M = "0{$i}";
        }
        $Mins[$i] = $M;
    }
    $EACH[0] = "{never}";
    $EACH[3] = "{each}: 3 {hours}";
    $EACH[4] = "{each}: 4 {hours}";
    $EACH[5] = "{each}: 5 {hours}";
    $EACH[6] = "{each}: 6 {hours}";
    $EACH[12] = "{each}: 12 {hours}";
    $EACH[24] = "{each}: 1 {day}";
    $html = "\n\t<div style='width:98%' class=form>\n\t<table style='width:100%'>\n\t<tr style='height:90px'>\n\t\t<td class=legend style='font-size:22px'>" . texttooltip("{disks_benchmarks}", "{disks_benchmarks_explain}") . "</td>\n\t\t<td>" . Field_array_Hash($EACH, "DisksBenchs", $DisksBenchs, "style:font-size:22px") . "</td>\n\t</tr>\n\n\t<tr style='height:90px'>\n\t\t<td class=legend style='font-size:22px'>" . texttooltip("{scan_filesystem_size}", "{scan_filesystem_size_explain}") . "</td>\n\t\t<td style='font-size:22px' colspan=2>\n\t\t\t\t<table style='width:135px'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td style='font-size:22px'>" . Field_array_Hash($Hours, "DirectoriesMonitorH", $DirectoriesMonitorH, "style:font-size:22px;padding:10px") . "</td>\n\t\t\t\t\t<td style='font-size:22px'>:</td>\n\t\t\t\t\t<td style='font-size:22px'>" . Field_array_Hash($Mins, "DirectoriesMonitorM", $DirectoriesMonitorM, "style:font-size:22px;padding:10px") . "</td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "Save{$t}();", 30) . "</td>\n\t</tr>\n\t</table>\n\t</div>\n<script>\nvar xSave{$t}=function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>0){alert(results);return;}\t\n\tRefreshTab('btrfs-tabs');\n}\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('DisksBenchs',document.getElementById('DisksBenchs').value);\n\tXHR.appendData('DirectoriesMonitorH',document.getElementById('DirectoriesMonitorH').value);\n\tXHR.appendData('DirectoriesMonitorM',document.getElementById('DirectoriesMonitorM').value);\n    XHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n</script>\t\t\t\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:34,代码来源:system.disks.schedules.php

示例12: getramtmpfs

function getramtmpfs()
{
    $sock = new sockets();
    $page = CurrentPageName();
    $tpl = new templates();
    $MySQLTMPDIR = trim($sock->GET_INFO("MySQLTMPDIR"));
    $MySQLTMPMEMSIZE = trim($sock->GET_INFO("MySQLTMPMEMSIZE"));
    if ($MySQLTMPDIR == null) {
        return;
    }
    if ($MySQLTMPDIR == "/tmp") {
        return;
    }
    if (!is_numeric($MySQLTMPMEMSIZE)) {
        return;
    }
    if ($MySQLTMPMEMSIZE < 1) {
        return;
    }
    $array = unserialize(base64_decode($sock->getFrameWork("mysql.php?getramtmpfs=yes&dir=" . base64_encode($MySQLTMPDIR))));
    if (!is_numeric($array["PURC"])) {
        $array["PURC"] = 0;
    }
    if (!isset($array["SIZE"])) {
        $array["SIZE"] = "0M";
    }
    $html = "<table style='width:30%' class=form>\n\t<tr><td valing='middle'>" . pourcentage($array["PURC"]) . "</td>\n\t<td style='font-size:14px'>{$array["PURC"]}%/{$array["SIZE"]}</td>\n\t<td width=1%>" . imgtootltip("20-refresh.png", "{refresh}", "refreshMysqlTempDirStatus()") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=3 style='font-size:14px' nowrap align='center'>{$MySQLTMPDIR}</td>\n\t</tr>\n\t</table>\n\t";
    echo $html;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:29,代码来源:system.mysql.tmpdir.php

示例13: page

function page()
{
    $t = time();
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $SquidSimpleConfig = $sock->GET_INFO("SquidSimpleConfig");
    if (!is_numeric($SquidSimpleConfig)) {
        $SquidSimpleConfig = 1;
    }
    $meminfo = unserialize(base64_decode($sock->getFrameWork("system.php?meminfo=yes")));
    $kernel_shmmax = $sock->getFrameWork("cmd.php?sysctl-value=yes&key=" . base64_encode("kernel.shmmax"));
    $MEMTOTAL = intval($meminfo["MEMTOTAL"]);
    $squid = new squidbee();
    $cache_mem = $squid->global_conf_array["cache_mem"];
    if (preg_match("#([0-9]+)\\s+#", $cache_mem, $re)) {
        $cache_mem = $re[1];
    }
    $SquidMemoryPools = intval($sock->GET_INFO("SquidMemoryPools"));
    $memory_pools_limit_suffix = null;
    $SquidMemoryPoolsLimit = intval($sock->GET_INFO("SquidMemoryPoolsLimit"));
    $FF = 1500;
    $FF = $FF * 1024;
    $FF = $FF * 1024;
    $proposal = $meminfo["MEMTOTAL"] - $FF;
    $proposal = $proposal / 2;
    $proposal = $proposal / 1024;
    $proposal = round($proposal / 1024);
    $html = "\n\t\n\t<div class=explain style='font-size:16px'>{squid_cache_memory_explain}</div>\n\t<div style='margin:10px;padding:10px;width:98%' class=form>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td colspan=3 style='font-size:32px;margin-bottom:20px'>{central_memory}</div>\n\t\t\t<div class=explain style='font-size:18px'>{cache_mem_explain2}</div>\n\t\t</td>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:26px'>{central_memory}:</td>\n\t\t<td style='font-size:26px'>" . Field_text("cache_mem-{$t}", $cache_mem, "font-size:26px;width:150px;font-weight:bold") . "&nbsp;MB</td>\n\t\t<td style='font-size:26px' width=1% nowrap>" . help_icon('{cache_mem_text}', true) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:26px'>{current}:</td>\n\t\t<td style='font-size:26px'><span id='squid-cache-mem-current' style='font-size:26px;font-weight:bold'></span></td>\n\t\t<td style='font-size:26px' width=1% nowrap>&nbsp;</td>\n\t</tr>\t\t\t\t\t\n\t<tr>\n\t<td colspan=3 style='font-size:20px;margin-bottom:20px;color:#8E8E8E;text-align:right'>{server_memory}: " . FormatBytes($meminfo["MEMTOTAL"] / 1024) . " ({proposal}: {$proposal}MB)</div>\n\t</table>\n\t</div>\t\t\n\t<div style='margin:10px;padding:10px;width:98%' class=form>\t\n\t<table style='width:100%'>\n\n\t<tr>\n\t\t<td style='font-size:26px' class=legend>{memory_pools}:</td>\n\t\t<td align='left' style='font-size:26px'>" . Field_checkbox_design("SquidMemoryPools-{$t}", 1, $SquidMemoryPools, "SquidMemoryPools{$t}()") . "</td>\n\t\t<td width=1%>" . help_icon('{memory_pools_explain}', true) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td style='font-size:26px' class=legend>{memory_pools_limit}:</td>\n\t\t<td align='left' style='font-size:26px'>" . Field_text("SquidMemoryPoolsLimit-{$t}", $SquidMemoryPoolsLimit, "font-size:26px;width:150px") . "&nbsp;MB</td>\n\t\t<td width=1%>" . help_icon('{memory_pools_limit_explain}', true) . "</td>\n\t</tr>\t\t\t\t\t\t\t\t\t\n</tr>\t\n\t<tr><td colspan=3 style='text-align:right;pdding-top:50px'><hr>" . button("{apply}", "Save{$t}()", 36) . "</td>\n\t</tr>\n</table>\t\n<script>\nvar xSave{$t}= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>3){alert(results);}\n\tLoadjs('squid.compile.progress.php?ask=yes');\n}\n\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('cache_mem',document.getElementById('cache_mem-{$t}').value);\n\t\n\tif(document.getElementById('SquidMemoryPools-{$t}').checked){XHR.appendData('SquidMemoryPools',1);}else{\n\tXHR.appendData('SquidMemoryPools',0);}\n\tXHR.appendData('SquidMemoryPoolsLimit',document.getElementById('SquidMemoryPoolsLimit-{$t}').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n\t\nfunction SquidMemoryPools{$t}(){\n\tvar SquidSimpleConfig={$SquidSimpleConfig};\n\tif(SquidSimpleConfig==1){\n\t\tdocument.getElementById('SquidMemoryPools-{$t}').disabled=true;\n\t\tdocument.getElementById('SquidMemoryPoolsLimit-{$t}').disabled=true;\n\t\treturn;\n\t}\n\n\tdocument.getElementById('SquidMemoryPoolsLimit-{$t}').disabled=true;\n\tif(document.getElementById('SquidMemoryPools-{$t}').checked){\n\t\tdocument.getElementById('SquidMemoryPoolsLimit-{$t}').disabled=false;\n\t}\n\t\n\tLoadAjax('squid-cache-mem-current','{$page}?squid-cache-mem-current=yes');\n\t\n}\nSquidMemoryPools{$t}();\n</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:31,代码来源:squid.memory.php

示例14: popup

function popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $squid = new squidbee();
    $sock = new sockets();
    $users = new usersMenus();
    $EnableWebProxyStatsAppliance = $sock->GET_INFO("EnableWebProxyStatsAppliance");
    $EnableRemoteStatisticsAppliance = $sock->GET_INFO("EnableRemoteStatisticsAppliance");
    if (!is_numeric($EnableWebProxyStatsAppliance)) {
        $EnableWebProxyStatsAppliance = 0;
    }
    if (!is_numeric($EnableRemoteStatisticsAppliance)) {
        $EnableRemoteStatisticsAppliance = 0;
    }
    if ($users->WEBSTATS_APPLIANCE) {
        $EnableWebProxyStatsAppliance = 1;
    }
    $arrayParams["on"] = "{enabled}";
    $arrayParams["off"] = "{unknown}";
    $arrayParams["transparent"] = "{disabled}";
    $arrayParams["delete"] = "{anonymous}";
    $arrayParams["truncate"] = "{hide}";
    $t = time();
    $html = "\n\t<div id='{$t}'></div>\n\t<div style='width:98%' class=form>\n\t<table style='width:99%'>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:26px'>x-Forwarded-For (local):</td>\n\t\t\t<td>" . Field_array_Hash($arrayParams, "x-Forwarded-For", $squid->forwarded_for, null, null, 0, "font-size:26px") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td align='right' colspan=2><hr>" . button("{apply}", "SaveSNMP{$t}()", "30") . "</td>\n\t\t</tr>\n\t</table>\n\t</div>\n\t<script>\n\tvar x_SaveSNMP{$t}=function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue);}\n\t\t\n\t\tYahooWin3Hide();\n\t\tLoadjs('squid.restart.php?onlySquid=yes&onlyreload=yes&ApplyConfToo=yes&ask=yes',true);\n\t}\t\n\t\n\tfunction SaveSNMP{$t}(){\n\t\tvar lock={$EnableRemoteStatisticsAppliance};\n\t\tif(lock==1){Loadjs('squid.newbee.php?error-remote-appliance=yes');return;}\t\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('forwarded_for',document.getElementById('x-Forwarded-For').value);\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveSNMP{$t});\t\n\t\t\n\t}\t\n\t</script>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:27,代码来源:squid.forwarded_for.php

示例15: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $Param = unserialize(base64_decode($sock->GET_INFO("MimeDefangServiceOptions")));
    $t = time();
    if (!is_numeric($Param["DEBUG"])) {
        $Param["DEBUG"] = 0;
    }
    if (!is_numeric($Param["MX_REQUESTS"])) {
        $Param["MX_REQUESTS"] = 200;
    }
    if (!is_numeric($Param["MX_MINIMUM"])) {
        $Param["MX_MINIMUM"] = 2;
    }
    if (!is_numeric($Param["MX_MAXIMUM"])) {
        $Param["MX_MAXIMUM"] = 10;
    }
    if (!is_numeric($Param["MX_MAX_RSS"])) {
        $Param["MX_MAX_RSS"] = 30000;
    }
    if (!is_numeric($Param["MX_MAX_AS"])) {
        $Param["MX_MAX_AS"] = 90000;
    }
    if (!is_numeric($Param["MX_TMPFS"])) {
        $Param["MX_TMPFS"] = 0;
    }
    $MimeDefangVersion = $sock->GET_INFO("MimeDefangVersion");
    $html = "\n\t<div style='font-size:40px;margin:bottom:40px;text-align:right'>{APP_MIMEDEFANG} v{$MimeDefangVersion} <span style='font-size:18px'>(" . texttooltip("{reload_service}", "{reload_service_text}", "MimeDefangCompileRules()") . ")</span></div>\n\t<table style='width:100%' class=form>\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{debug}:</td>\n\t\t<td>" . Field_checkbox_design("DEBUG-{$t}", 1, $Param["DEBUG"]) . "</td>\n\t\t\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>" . texttooltip("{workingdir_in_memory}", "{workingdir_in_memory_text}") . ":</td>\n\t\t<td style='font-size:22px'>" . Field_text("MX_TMPFS-{$t}", $Param["MX_TMPFS"], "font-size:22px;width:90px") . "&nbsp;M</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>" . texttooltip("{max_requests}", "{MX_REQUESTS_TEXT}") . ":</td>\n\t\t<td>" . Field_text("MX_REQUESTS-{$t}", $Param["MX_REQUESTS"], "font-size:22px;width:90px") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>" . texttooltip("{MX_MINIMUM}", "{MX_MINIMUM_TEXT}") . ":</td>\n\t\t<td>" . Field_text("MX_MINIMUM-{$t}", $Param["MX_MINIMUM"], "font-size:22px;width:90px") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>" . texttooltip("{MX_MAXIMUM}", "{MX_MAXIMUM}") . ":</td>\n\t\t<td>" . Field_text("MX_MAXIMUM-{$t}", $Param["MX_MAXIMUM"], "font-size:22px;width:90px") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>" . texttooltip("{MX_MAX_RSS}", "{MX_MAX_RSS_TEXT}") . ":</td>\n\t\t<td style='font-size:22px'>" . Field_text("MX_MAX_RSS-{$t}", $Param["MX_MAX_RSS_TEXT"], "font-size:22px;width:110px") . "&nbsp;KB</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>" . texttooltip("{MX_MAX_AS}", "{MX_MAX_AS_TEXT}") . ":</td>\n\t\t<td style='font-size:22px'>" . Field_text("MX_MAX_AS-{$t}", $Param["MX_MAX_AS"], "font-size:22px;width:110px") . "&nbsp;KB</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=3 align='right'><hr>" . button("{apply}", "SaveMimeService{$t}()", "40") . "</td>\n\t</tr>\t\n\t</table>\n\n\t<script>\n\t\tfunction MimeDefangCompileRules(){\n\t\tLoadjs('mimedefang.compile.php');\n\t}\n\t\n\t\n\t\tvar x_SaveMimeService{$t}= function (obj) {\n\t\t\tvar tempvalue=obj.responseText;\n\t\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\t\tLoadjs('mimedefang.compile.php');\n\t\t}\t\t\n\t\n\t\tfunction SaveMimeService{$t}(){\n\t\tvar XHR = new XHRConnection();  \n\t\t  var DEBUG=0;\n\t\t  if(document.getElementById('DEBUG-{$t}').checked){DEBUG=1;}\n\t      XHR.appendData('MX_MAX_AS',document.getElementById('MX_MAX_AS-{$t}').value);\n\t      XHR.appendData('MX_MAX_RSS',document.getElementById('MX_MAX_RSS-{$t}').value);\n\t      XHR.appendData('MX_MAXIMUM',document.getElementById('MX_MAXIMUM-{$t}').value);\n\t      XHR.appendData('MX_MINIMUM',document.getElementById('MX_MINIMUM-{$t}').value);\n\t      XHR.appendData('MX_REQUESTS',document.getElementById('MX_REQUESTS-{$t}').value);\n\t      XHR.appendData('MX_TMPFS',document.getElementById('MX_TMPFS-{$t}').value);\n\t      XHR.appendData('DEBUG',DEBUG);\n\t      XHR.sendAndLoad('{$page}', 'POST',x_SaveMimeService{$t});\n\t\t}\n\t</script>\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:32,代码来源:mimedefang.service.php


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