本文整理汇总了PHP中help_icon函数的典型用法代码示例。如果您正苦于以下问题:PHP help_icon函数的具体用法?PHP help_icon怎么用?PHP help_icon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了help_icon函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: popup
function popup()
{
$hostname = $_GET["hostname"];
$page = CurrentPageName();
$users = new usersMenus();
$tpl = new templates();
$t = time();
$main = new maincf_multi($_GET["hostname"], $_GET["ou"]);
$detect_8bit_encoding_header = $main->GET("detect_8bit_encoding_header");
$disable_mime_input_processing = $main->GET("disable_mime_input_processing");
$disable_mime_output_conversion = $main->GET("disable_mime_output_conversion");
$mime_nesting_limit = $main->GET("mime_nesting_limit");
if (!is_numeric($detect_8bit_encoding_header)) {
$detect_8bit_encoding_header = 1;
}
if (!is_numeric($disable_mime_input_processing)) {
$disable_mime_input_processing = 0;
}
if (!is_numeric($disable_mime_output_conversion)) {
$disable_mime_output_conversion = 0;
}
if (!is_numeric($mime_nesting_limit)) {
$mime_nesting_limit = 100;
}
$html = "\n\t<div id='{$t}'></div>\n\t\n\t<div style='width:98%' class=form>\n\t<table>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{detect_8bit_encoding_header}:</td>\n\t\t<td class=legend style='font-size:16px'>" . Field_checkbox("detect_8bit_encoding_header-{$t}", 1, $detect_8bit_encoding_header) . "</td>\n\t\t<td width=1%>" . help_icon("{detect_8bit_encoding_header_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{disable_mime_output_conversion}:</td>\n\t\t<td class=legend style='font-size:16px'>" . Field_checkbox("disable_mime_output_conversion-{$t}", 1, $disable_mime_output_conversion) . "</td>\n\t\t<td width=1%>" . help_icon("{disable_mime_output_conversion_text}") . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{disable_mime_input_processing}:</td>\n\t\t<td class=legend style='font-size:16px'>" . Field_checkbox("disable_mime_input_processing-{$t}", 1, $disable_mime_input_processing) . "</td>\n\t\t<td width=1%>" . help_icon("{disable_mime_input_processing_text}") . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:16px'>{mime_nesting_limit}</strong>:</td>\n\t\t<td>" . Field_text("mime_nesting_limit-{$t}", $mime_nesting_limit, 'width:70px;font-size:16px;padding:3px;text-align:right') . " </td>\n\t\t<td>" . help_icon('{mime_nesting_limit_text}') . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td align='right' colspan=2><hr>" . button("{apply}", "Save{$t}()", "18px") . "</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<script>\n\t\n\tvar X_Save{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);}\n\t\tdocument.getElementById('{$t}').innerHTML='';\n\t\t}\t\t\n\t\n\tfunction Save{$t}(){\n\t\tdetect_8bit_encoding_header=0;\n\t\tdisable_mime_output_conversion=0;\n\t\tdisable_mime_input_processing=0;\n\t\t\n\t\tif(document.getElementById('detect_8bit_encoding_header-{$t}').checked){detect_8bit_encoding_header=1;}\n\t\tif(document.getElementById('disable_mime_output_conversion-{$t}').checked){disable_mime_output_conversion=1;}\n\t\tif(document.getElementById('disable_mime_input_processing-{$t}').checked){disable_mime_input_processing=1;}\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('hostname','{$hostname}');\n\t\tXHR.appendData('ou','{$_GET["ou"]}');\n\t\tXHR.appendData('detect_8bit_encoding_header',detect_8bit_encoding_header);\n\t\tXHR.appendData('disable_mime_output_conversion',disable_mime_output_conversion);\n\t\tXHR.appendData('disable_mime_input_processing',disable_mime_input_processing);\n\t\tXHR.appendData('mime_nesting_limit',document.getElementById('mime_nesting_limit-{$t}').value);\n\t\tAnimateDiv('{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',X_Save{$t});\n\t}\n\t\n\t\n\t\n\t</script>\t\t\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
示例2: popup_new_free
function popup_new_free()
{
$tpl = new templates();
$t = $_GET["t"];
$html = "\n\t<div id='div{$t}{$t}'>\n\t<table style='width:99%' class=form>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:14px'>{pattern}:</td>\n\t\t\t<td>" . Field_text("FREE_FIELD-{$t}", null, "font-size:14px;padding:3px", null, null, null, false, "SquidnetaddSingleCheck{$t}(event)") . "</td>\n\t\t\t<td width=1%>" . help_icon("{SQUID_NETWORK_HELP}") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=3 align='right'><hr>" . button("{add}", "SquidnetaddSingle{$t}()", 16) . "\n\t\t</tr>\n\t</table>\t\n\t<script>\n\t\tfunction SquidnetaddSingleCheck{$t}(e){\n\t\t\tif(checkEnter(e)){SquidnetaddSingle{$t}();}\n\t\t}\n\t\t\n\t\tfunction SquidnetaddSingle{$t}(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('add-ip-single',document.getElementById('FREE_FIELD-{$t}').value);\n\t\t\tAnimateDiv('div{$t}{$t}');\n\t\t\tXHR.sendAndLoad('squid.popups.php', 'GET',x_netadd{$t});\t\n\t\t}\n\t</script>\t\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
示例3: 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;
}
$html = "\n\t<div id='{$t}-adddis'></div>\n\t<table style='width:100%' class=form>\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{debug}:</td>\n\t\t<td>" . Field_checkbox("DEBUG-{$t}", 1, $Param["DEBUG"]) . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{workingdir_in_memory}:</td>\n\t\t<td style='font-size:16px'>" . Field_text("MX_TMPFS-{$t}", $Param["MX_TMPFS"], "font-size:16px;width:90px") . " M</td>\n\t\t<td>" . help_icon("{workingdir_in_memory_text}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{max_requests}:</td>\n\t\t<td>" . Field_text("MX_REQUESTS-{$t}", $Param["MX_REQUESTS"], "font-size:16px;width:90px") . "</td>\n\t\t<td>" . help_icon("{MX_REQUESTS_TEXT}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{MX_MINIMUM}:</td>\n\t\t<td>" . Field_text("MX_MINIMUM-{$t}", $Param["MX_MINIMUM"], "font-size:16px;width:90px") . "</td>\n\t\t<td>" . help_icon("{MX_MINIMUM_TEXT}") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{MX_MAXIMUM}:</td>\n\t\t<td>" . Field_text("MX_MAXIMUM-{$t}", $Param["MX_MAXIMUM"], "font-size:16px;width:90px") . "</td>\n\t\t<td>" . help_icon("{MX_MAXIMUM_TEXT}") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{MX_MAX_RSS}:</td>\n\t\t<td style='font-size:16px'>" . Field_text("MX_MAX_RSS-{$t}", $Param["MX_MAX_RSS"], "font-size:16px;width:110px") . " KB</td>\n\t\t<td>" . help_icon("{MX_MAX_RSS_TEXT}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{MX_MAX_AS}:</td>\n\t\t<td style='font-size:16px'>" . Field_text("MX_MAX_AS-{$t}", $Param["MX_MAX_AS"], "font-size:16px;width:110px") . " KB</td>\n\t\t<td>" . help_icon("{MX_MAX_AS_TEXT}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=3 align='right'><hr>" . button("{apply}", "SaveMimeService{$t}()", "18px") . "</td>\n\t</tr>\t\n\t</table>\n\n\t<script>\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\tdocument.getElementById('{$t}-adddis').innerHTML='';\n\t\t\tYahooWin2Hide();\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 \n\t \n\t\t AnimateDiv('{$t}-adddis');\n\t\t XHR.sendAndLoad('{$page}', 'POST',x_SaveMimeService{$t});\n\t\t}\n\t</script>\t\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
示例4: popup
function popup()
{
$tpl = new templates();
$page = CurrentPageName();
$sock = new sockets();
$squid = new squidbee();
$RedirectorsArray = unserialize(base64_decode($sock->GET_INFO("SquidRedirectorsOptions")));
if (!is_numeric($RedirectorsArray["url_rewrite_children"])) {
$RedirectorsArray["url_rewrite_children"] = 20;
}
if (!is_numeric($RedirectorsArray["url_rewrite_startup"])) {
$RedirectorsArray["url_rewrite_startup"] = 5;
}
if (!is_numeric($RedirectorsArray["url_rewrite_idle"])) {
$RedirectorsArray["url_rewrite_idle"] = 1;
}
if (!is_numeric($RedirectorsArray["url_rewrite_concurrency"])) {
$RedirectorsArray["url_rewrite_concurrency"] = 0;
}
$t = time();
$enable_UfdbGuard = 0;
if ($squid->enable_UfdbGuard == 1) {
$enable_UfdbGuard = 1;
}
$html = "\n\t<div class=explain style='font-size:18px'>{squid_redirectors_howto}</div>\n\t<div id='{$t}' style='width:98%' class=form>\n\t<table style='width:100%' >\n\t<tbody>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{url_rewrite_children}:</td>\n\t\t<td>" . Field_text("url_rewrite_children", $RedirectorsArray["url_rewrite_children"], "font-size:22px;width:60px") . "</td>\n\t\t<td width=1%>" . help_icon("{url_rewrite_children_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{url_rewrite_startup}:</td>\n\t\t<td>" . Field_text("url_rewrite_startup", $RedirectorsArray["url_rewrite_startup"], "font-size:22px;width:110px") . "</td>\n\t\t<td width=1%>" . help_icon("{url_rewrite_startup_text}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{url_rewrite_idle}:</td>\n\t\t<td>" . Field_text("url_rewrite_idle", $RedirectorsArray["url_rewrite_idle"], "font-size:22px;width:110px") . "</td>\n\t\t<td width=1%>" . help_icon("{url_rewrite_idle_text}") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{url_rewrite_concurrency}:</td>\n\t\t<td>" . Field_text("url_rewrite_concurrency", $RedirectorsArray["url_rewrite_concurrency"], "font-size:22px;width:110px") . "</td>\n\t\t<td width=1%>" . help_icon("{url_rewrite_concurrency_text}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=3 align='right'><hr>" . button("{apply}", "UrlReWriteSave()", 32) . "</td>\n\t</tr>\n\t\n\t</table>\n\t</div>\n\t<script>\n\tvar x_UrlReWriteSave= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\tRefreshTab('main_config_redirectors');\n\t\t\n\t}\t\t\n\n\tfunction UrlReWriteSave(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('url_rewrite_children',document.getElementById('url_rewrite_children').value);\n\t\tXHR.appendData('url_rewrite_startup',document.getElementById('url_rewrite_startup').value);\n\t\tXHR.appendData('url_rewrite_idle',document.getElementById('url_rewrite_idle').value);\n\t\tXHR.appendData('url_rewrite_concurrency',document.getElementById('url_rewrite_concurrency').value);\n\t\tAnimateDiv('{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_UrlReWriteSave);\t\t\n\t\t}\n\t\t\n\tfunction CheckConcurrency(){\n\t\tvar enable_UfdbGuard={$enable_UfdbGuard};\n\t\tif(enable_UfdbGuard==1){\n\t\t\tdocument.getElementById('url_rewrite_concurrency').value=0;\n\t\t\tdocument.getElementById('url_rewrite_concurrency').disabled=true;\n\t\t}\n\t\n\t}\n\t\n\tCheckConcurrency();\n\t</script>\n\t\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
示例5: 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") . " 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> </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") . " 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);
}
示例6: page
function page()
{
$page = CurrentPageName();
$tpl = new templates();
$freeweb = new freeweb($_GET["servername"]);
if (!is_numeric($freeweb->Params["MOD_FCGID"]["enabled"])) {
$freeweb->Params["MOD_FCGID"]["enabled"] = 0;
}
if (!is_numeric($freeweb->Params["MOD_FCGID"]["PHP_FCGI_MAX_REQUESTS"])) {
$freeweb->Params["MOD_FCGID"]["PHP_FCGI_MAX_REQUESTS"] = 5000;
}
if (!is_numeric($freeweb->Params["MOD_FCGID"]["PHP_FCGI_CHILDREN"])) {
$freeweb->Params["MOD_FCGID"]["PHP_FCGI_CHILDREN"] = 8;
}
if (!is_numeric($freeweb->Params["MOD_FCGID"]["FcgidBusyTimeout"])) {
$freeweb->Params["MOD_FCGID"]["FcgidBusyTimeout"] = 300;
}
if (!is_numeric($freeweb->Params["MOD_FCGID"]["FcgidIdleTimeout"])) {
$freeweb->Params["MOD_FCGID"]["FcgidIdleTimeout"] = 300;
}
if (!is_numeric($freeweb->Params["MOD_FCGID"]["FcgidMaxRequestInMem"])) {
$freeweb->Params["MOD_FCGID"]["FcgidMaxRequestInMem"] = 65536;
}
if (!is_numeric($freeweb->Params["MOD_FCGID"]["FcgidMaxProcessesPerClass"])) {
$freeweb->Params["MOD_FCGID"]["FcgidMaxProcessesPerClass"] = 100;
}
if (!is_numeric($freeweb->Params["MOD_FCGID"]["FcgidMaxRequestLen"])) {
$freeweb->Params["MOD_FCGID"]["FcgidMaxRequestLen"] = 131072;
}
if (!is_numeric($freeweb->Params["MOD_FCGID"]["FcgidOutputBufferSize"])) {
$freeweb->Params["MOD_FCGID"]["FcgidOutputBufferSize"] = 65536;
}
$html = "\n\t<div id='mod_fcgi_div'>\n\t<div class=explain>{apache_mod_fcgid_explain}</div>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend>{enable}:<td>\n\t\t<td>" . Field_checkbox("Modfcgid_enabled", 1, $freeweb->Params["MOD_FCGID"]["enabled"], "MOD_FCGIDEnableCheck()") . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{php_values}:<td>\n\t\t<td><a href=\"javascript:blur();\" OnClick=\"javascript:Loadjs('freeweb.edit.fcgid.php.php?servername={$_GET["servername"]}');\"\n\t\tstyle='font-size:13px;font-weight:bold;text-decoration:underline'>{apply}</a>\n\t\t</td>\n\t\t<td> </td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{PHP_FCGI_MAX_REQUESTS}:<td>\n\t\t<td>" . Field_text("PHP_FCGI_MAX_REQUESTS", $freeweb->Params["MOD_FCGID"]["PHP_FCGI_MAX_REQUESTS"], "font-size:13px;padding:3px;width:90px") . " </td>\n\t\t<td> </td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{PHP_FCGI_CHILDREN}:<td>\n\t\t<td>" . Field_text("PHP_FCGI_CHILDREN", $freeweb->Params["MOD_FCGID"]["PHP_FCGI_CHILDREN"], "font-size:13px;padding:3px;width:90px") . " </td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{FcgidMaxProcessesPerClass}:<td>\n\t\t<td>" . Field_text("FcgidMaxProcessesPerClass", $freeweb->Params["MOD_FCGID"]["FcgidMaxProcessesPerClass"], "font-size:13px;padding:3px;width:90px") . " </td>\n\t\t<td>" . help_icon("{FcgidMaxProcessesPerClass_explain}") . "</td>\n\t</tr>\n\t\n\t<tr>\n\t\t<td class=legend>{FcgidBusyTimeout}:<td>\n\t\t<td>" . Field_text("FcgidBusyTimeout", $freeweb->Params["MOD_FCGID"]["FcgidBusyTimeout"], "font-size:13px;padding:3px;width:90px") . " {seconds}</td>\n\t\t<td>" . help_icon("{FcgidBusyTimeout_explain}") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend>{FcgidIdleTimeout}:<td>\n\t\t<td>" . Field_text("FcgidIdleTimeout", $freeweb->Params["MOD_FCGID"]["FcgidIdleTimeout"], "font-size:13px;padding:3px;width:90px") . " {seconds}</td>\n\t\t<td>" . help_icon("{FcgidIdleTimeout_explain}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{FcgidMaxRequestInMem}:<td>\n\t\t<td>" . Field_text("FcgidMaxRequestInMem", $freeweb->Params["MOD_FCGID"]["FcgidMaxRequestInMem"], "font-size:13px;padding:3px;width:90px") . " bytes</td>\n\t\t<td>" . help_icon("{FcgidMaxRequestInMem_explain}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{FcgidMaxRequestLen}:<td>\n\t\t<td>" . Field_text("FcgidMaxRequestLen", $freeweb->Params["MOD_FCGID"]["FcgidMaxRequestLen"], "font-size:13px;padding:3px;width:90px") . " bytes</td>\n\t\t<td>" . help_icon("{FcgidMaxRequestLen_explain}") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend>{FcgidOutputBufferSize}:<td>\n\t\t<td>" . Field_text("FcgidOutputBufferSize", $freeweb->Params["MOD_FCGID"]["FcgidOutputBufferSize"], "font-size:13px;padding:3px;width:90px") . " bytes</td>\n\t\t<td>" . help_icon("{FcgidOutputBufferSize_explain}") . "</td>\n\t</tr>\t\n\t\n\t\n\t<tr>\n\t\t<td colspan=3 align='right'><hr>" . button("{apply}", "SaveModFCGID()") . "</td>\n\t</tr>\n\t</tbody>\n\t</table>\t\n\t</div>\n\n\t\n\t\n\t\n\t<script>\n\t\tvar x_SaveModFCGID=function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>0){alert(results);}\t\n\t\t\tRefreshTab('main_config_freewebedit');\t\n\t\t}\t\t\n\t\n\t\tfunction SaveModFCGID(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tif(document.getElementById('Modfcgid_enabled').checked){XHR.appendData('enabled',1);}else{XHR.appendData('enabled',0);}\t\t\n\t\t\tXHR.appendData('PHP_FCGI_MAX_REQUESTS',document.getElementById('PHP_FCGI_MAX_REQUESTS').value);\n\t\t\tXHR.appendData('PHP_FCGI_CHILDREN',document.getElementById('PHP_FCGI_CHILDREN').value);\n\t\t\tXHR.appendData('FcgidMaxProcessesPerClass',document.getElementById('FcgidMaxProcessesPerClass').value);\n\t\t\tXHR.appendData('FcgidBusyTimeout',document.getElementById('FcgidBusyTimeout').value);\n\t\t\t\n\t\t\tXHR.appendData('FcgidBusyTimeout',document.getElementById('FcgidBusyTimeout').value);\n\t\t\tXHR.appendData('FcgidIdleTimeout',document.getElementById('FcgidIdleTimeout').value);\n\t\t\tXHR.appendData('FcgidMaxRequestInMem',document.getElementById('FcgidMaxRequestInMem').value);\n\t\t\tXHR.appendData('FcgidMaxRequestLen',document.getElementById('FcgidMaxRequestLen').value);\n\t\t\tXHR.appendData('FcgidOutputBufferSize',document.getElementById('FcgidOutputBufferSize').value);\n\t\t\t\n\t\t\tXHR.appendData('servername','{$_GET["servername"]}');\n\t\t\tAnimateDiv('mod_fcgi_div');\n \t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveModFCGID);\n\t\t}\t\n\t\t\n\t\tfunction MOD_FCGIDEnableCheck(){\n\t\t\tdocument.getElementById('PHP_FCGI_MAX_REQUESTS').disabled=true;\n\t\t\tdocument.getElementById('PHP_FCGI_CHILDREN').disabled=true;\n\t\t\tdocument.getElementById('FcgidMaxProcessesPerClass').disabled=true;\n\t\t\tdocument.getElementById('FcgidBusyTimeout').disabled=true;\n\t\t\tdocument.getElementById('FcgidIdleTimeout').disabled=true;\n\t\t\tdocument.getElementById('FcgidMaxRequestInMem').disabled=true;\n\t\t\tdocument.getElementById('FcgidMaxRequestLen').disabled=true;\n\t\t\tdocument.getElementById('FcgidOutputBufferSize').disabled=true;\n\t\t\t\n\t\t\tif(document.getElementById('Modfcgid_enabled').checked){\n\t\t\t\tdocument.getElementById('PHP_FCGI_MAX_REQUESTS').disabled=false;\n\t\t\t\tdocument.getElementById('PHP_FCGI_CHILDREN').disabled=false;\n\t\t\t\tdocument.getElementById('FcgidMaxProcessesPerClass').disabled=false;\n\t\t\t\tdocument.getElementById('FcgidBusyTimeout').disabled=false;\n\t\t\t\tdocument.getElementById('FcgidIdleTimeout').disabled=false;\n\t\t\t\tdocument.getElementById('FcgidMaxRequestInMem').disabled=false;\n\t\t\t\tdocument.getElementById('FcgidMaxRequestLen').disabled=false;\n\t\t\t\tdocument.getElementById('FcgidOutputBufferSize').disabled=false;\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\tMOD_FCGIDEnableCheck();\n\t\n\t</script>\n\t\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
示例7: popup
function popup()
{
$smb = new samba();
$html = "\n\t<div class=explain>{ACLS_SUPPORT_EXPLAIN}</div>\n\t<hr>\n\t<div id='aclgeneral'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend style='font-size:12px'>{nt_acl_support}</td>\n\t\t<td>" . Field_checkbox("nt acl support", "yes", $smb->main_array["global"]["nt acl support"]) . "</td>\n\t\t<td>" . help_icon("{nt_acl_support_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:12px'>{acl_group_control}</td>\n\t\t<td>" . Field_checkbox("acl group control", "yes", $smb->main_array["global"]["acl group control"]) . "</td>\n\t\t<td>" . help_icon("{acl_group_control_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:12px'>{dos_filemode}</td>\n\t\t<td>" . Field_checkbox("dos filemode", "yes", $smb->main_array["global"]["dos filemode"]) . "</td>\n\t\t<td>" . help_icon("{dos_filemode_text}") . "</td>\n\t</tr>\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:12px'>{map_acl_inherit}</td>\n\t\t<td>" . Field_checkbox("map acl inherit", "yes", $smb->main_array["global"]["map acl inherit"]) . "</td>\n\t\t<td>" . help_icon("{map_acl_inherit_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:12px'>{acl_check_permissions}</td>\n\t\t<td>" . Field_checkbox("acl check permissions", "yes", $smb->main_array["global"]["acl check permissions"]) . "</td>\n\t\t<td>" . help_icon("{acl_check_permissions_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:12px'>{inherit_acls}</td>\n\t\t<td>" . Field_checkbox("inherit acls", "yes", $smb->main_array["global"]["inherit acls"]) . "</td>\n\t\t<td>" . help_icon("{inherit_acls_text}") . "</td>\n\t</tr>\t\n\n\t<tr>\n\t\t<td class=legend style='font-size:12px'>{inherit_permissions}</td>\n\t\t<td>" . Field_checkbox("inherit permissions", "yes", $smb->main_array["global"]["inherit permissions"]) . "</td>\n\t\t<td>" . help_icon("{inherit_permissions_text}") . "</td>\n\t</tr>\n\t\n\t<tr>\n\t\t<td colspan=3 align='right'>\n\t\t<hr>\n\t\t\t" . button("{apply}", "acls_global_save()") . "\n\t\t</td>\n\t</tr>\n\t</table>\n\t</div>\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例8: popup
function popup()
{
$squid = new squidbee();
$page = CurrentPageName();
$tpl = new templates();
$sock = new sockets();
$WCCP = 1;
$arrayParams = unserialize(base64_decode($sock->getFrameWork("squid.php?compile-list=yes")));
$t = time();
$ip = new networking();
$ipsH = $ip->ALL_IPS_GET_ARRAY();
$SquidWCCPEnabled = $sock->GET_INFO("SquidWCCPEnabled");
if (!is_numeric($SquidWCCPEnabled)) {
$SquidWCCPEnabled = 0;
}
if (!isset($arrayParams["--enable-wccpv2"])) {
$WCCP = 0;
}
$WCCPHash = unserialize(base64_decode($sock->GET_INFO("WCCPHash")));
$wccp2_forwarding_method_hash = array(1 => "{wccp2_forwarding_method_hash_1}", 2 => "{wccp2_forwarding_method_hash_2}");
$wccp2_return_method_hash = array("gre" => "GRE encapsulation");
$wccp2_assignment_method_hash = array("hash" => "Hash assignment", "mask" => "Mask assignment");
$html = "\n<div style='font-size:22px'>{WCCP_NAME}</div>\n<div class=explain style='font-size:14px'>{WCCP_HOWTO}</div>\n<div id='SquidAVParamWCCP' style='width:98%' class=form>\n<table style='width:100%'>\n\t<tr>\n\t<td style='font-size:16px;' class=legend>{wccp2_enabled}:</td>\n\t<td>" . Field_checkbox("wccp2_enabled", 1, $squid->wccp2_enabled, "wccp2_enabled()") . "</td>\n\t<td> </td>\n\t</tr>\n\n\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{wccp2_routers}:</td>\n\t\t<td>" . Field_text("wccp2_router", $WCCPHash["wccp2_router"], "font-size:16px;padding:3px;width:320px") . "</td>\n\t\t<td>" . help_icon("{wccp2_routers_explain}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{listen_address}:</td>\n\t\t<td>" . Field_array_Hash($ipsH, "listen_address-{$t}", $WCCPHash["listen_address"], "style:font-size:16px") . "</td>\n\t\t<td></td>\n\t</tr>\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{wccp2_forwarding_method}:</td>\n\t\t<td>" . Field_array_Hash($wccp2_forwarding_method_hash, "wccp2_forwarding_method", $WCCPHash["wccp2_forwarding_method"], "style:font-size:16px") . "</td>\n\t\t<td> </td>\n\t</tr>\n\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{wccp2_return_method}:</td>\n\t\t<td>" . Field_array_Hash($wccp2_return_method_hash, "wccp2_return_method", $WCCPHash["wccp2_return_method"], "style:font-size:16px") . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{wccp2_assignment_method}:</td>\n\t\t<td>" . Field_array_Hash($wccp2_assignment_method_hash, "wccp2_assignment_method", $WCCPHash["wccp2_assignment_method"], "style:font-size:16px") . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=3 align='right'>\n\t\t\t<hr>\n\t\t\t\t" . button("{apply}", "SquidWccp2ParamSave()", 18) . "\n\t\t</td>\n\t</tr>\n\t</table>\n</div>\n<script>\nvar X_SquidWccp2ParamSave= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>3){alert(results);}\n\tLoadjs('squid.restart.php?prepare-js=yes');\n\t\n}\n\nfunction SquidWccp2ParamSave(){\n\tvar XHR = new XHRConnection();\n\tif(document.getElementById('wccp2_enabled').checked){\n\t\tXHR.appendData('wccp2_enabled',1);\n\t}else{\n\t\tXHR.appendData('wccp2_enabled',0);\n\t}\n\tXHR.appendData('wccp2_router',\n\tdocument.getElementById('wccp2_router').value);\n\n\tXHR.appendData('wccp2_forwarding_method',\n\tdocument.getElementById('wccp2_forwarding_method').value);\n\n\tXHR.appendData('wccp2_return_method',\n\tdocument.getElementById('wccp2_return_method').value);\n\n\tXHR.appendData('wccp2_assignment_method',\n\tdocument.getElementById('wccp2_assignment_method').value);\n\t\n\tXHR.appendData('listen_address',\n\tdocument.getElementById('listen_address-{$t}').value);\n\n\tXHR.sendAndLoad('{$page}', 'POST',X_SquidWccp2ParamSave);\n}\n\n\nfunction wccp2_disable_all(){\n\tdocument.getElementById('wccp2_forwarding_method').disabled=true;\n\tdocument.getElementById('wccp2_router').disabled=true;\n\tdocument.getElementById('wccp2_forwarding_method').disabled=true;\n\tdocument.getElementById('wccp2_return_method').disabled=true;\n\tdocument.getElementById('wccp2_assignment_method').disabled=true;\n\tdocument.getElementById('listen_address-{$t}').disabled=true;\n\t\n}\nfunction wccp2_enable_all(){\n\tdocument.getElementById('wccp2_forwarding_method').disabled=false;\n\tdocument.getElementById('wccp2_router').disabled=false;\n\tdocument.getElementById('wccp2_forwarding_method').disabled=false;\n\tdocument.getElementById('wccp2_return_method').disabled=false;\n\tdocument.getElementById('wccp2_assignment_method').disabled=false;\n\tdocument.getElementById('listen_address-{$t}').disabled=false;\n}\n\nfunction wccp2_enabled(){\n\twccp2_disable_all();\n\tvar wccp2={$WCCP};\n\tif(wccp2==0){\n\t\tdocument.getElementById('wccp2_enabled').disabled=true;\n\t\tdocument.getElementById('wccp2_enabled').checked=false;\n\t}\n\tif(document.getElementById('wccp2_enabled').checked){wccp2_enable_all();}\n}\n\nwccp2_enabled();\n</script>";
echo $tpl->_ENGINE_parse_body($html);
}
示例9: popup
function popup()
{
$sock = new sockets();
$EnableCyrusMasterCluster = $sock->GET_INFO("EnableCyrusMasterCluster");
$CyrusClusterID = $sock->GET_INFO("CyrusClusterID");
$EnableCyrusReplicaCluster = $sock->GET_INFO("EnableCyrusReplicaCluster");
$CyrusClusterPort = $sock->GET_INFO("CyrusClusterPort");
if ($CyrusClusterPort == null) {
$CyrusClusterPort = 2005;
}
if ($CyrusClusterID == null) {
$CyrusClusterID = 1;
}
if ($EnableCyrusReplicaCluster == 1) {
echo popup_as_replica();
exit;
}
if ($EnableCyrusMasterCluster) {
$addreplica = Paragraphe("64-net-server-add.png", "{SET_REPLICA_SERVER}", "{SET_REPLICA_SERVER_TEXT}", "javascript:AddCyrusReplica()");
$sync = Paragraphe("64-syncmbx.png", "{REPLICATE_YOUR_MAILBOXES}", "{REPLICATE_YOUR_MAILBOXES_TEXT}", "javascript:Loadjs('cyrus.sync.client.php')");
}
$rebuild = Buildicon64("DEF_ICO_CYR_REBUILD");
$help_me = Paragraphe("wizard-mail-64.png", "{HELP_ME_RETRANSLATOR}", "{CYRUS_REPLICA_WIZARD_HELP}", "javascript:Loadjs('wizard.cyrus.cluster.php')");
$enable = Paragraphe_switch_img('{ENABLE_CYRUS_CLUSTER_MASTER}', '{ENABLE_CYRUS_CLUSTER_MASTER_TEXT}', 'EnableCyrusMasterCluster', $EnableCyrusMasterCluster, "ENABLE_CYRUS_CLUSTER_MASTER_TEXT", 300);
$form1 = "<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' class=legend>{listen_cluster_port}:</td>\n\t\t<td valign='top'>" . Field_text('CyrusClusterPort', $CyrusClusterPort, 'width:60px') . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' class=legend>{uid}:</td>\n\t\t<td valign='top'>" . Field_text('CyrusClusterID', $CyrusClusterID, 'width:20px') . "</td>\n\t\t<td valign='top'>" . help_icon('{CyrusClusterID_TEXT}') . "</td>\n\t</tr>\t\n\t</table>";
$form = "<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>{$enable}</td>\n\t</tr>\n\t<tr>\n\t<td valign='top'>{$form1}</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' align='right'><hr>\n\t\t" . button("{edit}", "EnableCyrusMasterCluster()") . "\n\t\t\t\n\t\t</td>\n\t</tr>\n\t</table>\n\t\n\t";
$html = "<H1>{CYRUS_CLUSTER}</H1>\n\t<div id='wizard_zone'>\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'><img src='img/128-cluster.png'></td>\n\t<td valign='top'>\n\t<p class=caption>{CYRUS_CLUSTER_EXPLAIN}</p>\n\t{$form}\n\t</td>\n\t<td valign='top'>{$addreplica}<br>{$rebuild}<br>{$sync}<br>{$help_me}</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<br>\n\t\n\t\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
//http://madole.net/pushmail/
}
示例10: main_settings
function main_settings()
{
$page = CurrentPageName();
$tpl = new templates();
$hostname = $_GET["hostname"];
$smb = new samba_aliases($hostname);
$html = "\n\t<div id='smboptions2div'>\n\t<div class=explain style='font-size:14px'>{smb_perf_explain}</div>\n\t<table style='width:99%' class=form>\n\t<tr>\t\n\t\t<td align='right' nowrap valign='top' class=legend style='font-size:14px'>{samba_strict_allocate}:</td>\n\t\t<td valign='top'>" . Field_checkbox('strict_allocate', 1, $smb->main_array["global"]["strict_allocate"]) . "</td>\n\t\t<td valign='top'>" . help_icon("{samba_strict_allocate_text}") . "</td>\n\t</tr>\n\t<tr>\t\n\t\t<td align='right' nowrap valign='top' class=legend style='font-size:14px'>{samba_strict_locking}:</td>\n\t\t<td valign='top'>" . Field_checkbox('strict_locking', 1, $smb->main_array["global"]["strict_locking"]) . "</td>\n\t\t<td valign='top'>" . help_icon("{samba_strict_locking_text}") . "</td>\n\t</tr>\n\t<tr>\t\n\t\t<td align='right' nowrap valign='top' class=legend style='font-size:14px'>{samba_sync_always}:</td>\n\t\t<td valign='top'>" . Field_checkbox('sync_always', 1, $smb->main_array["global"]["sync_always"]) . "</td>\n\t\t<td valign='top'>" . help_icon("{samba_sync_always_text}") . "</td>\n\t</tr>\t\n\t<tr>\t\n\t\t<td align='right' nowrap valign='top' class=legend style='font-size:14px'>{samba_getwd_cache}:</td>\n\t\t<td valign='top'>" . Field_checkbox('getwd_cache', 1, $smb->main_array["global"]["getwd_cache"]) . "</td>\n\t\t<td valign='top'>" . help_icon("{samba_getwd_cache_text}") . "</td>\n\t</tr>\t\n\t\n\t<tr>\t\n\t\t<td align='right' nowrap valign='top' class=legend style='font-size:14px'>{smb2_protocol}:</td>\n\t\t<td valign='top'>" . Field_checkbox('smb2_protocol', '1', $smb->main_array["global"]["smb2_protocol"]) . "</td>\n\t\t<td valign='top'>" . help_icon("{smb2_protocol_text}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=3 align=right><hr>" . button("{apply}", "SaveSambaOptions2()", "16px") . "</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<script>\n\t\n\tfunction CheckSMBOPT2Form(){\n\t\tvar smbver='{$smb->SAMBA_VERSION}';\n\t\tvar upTo357={$smb->upTo357};\n\t\tvar upTo36={$smb->upTo36};\n\t\tdocument.getElementById('smb2_protocol').disabled=true;\n\t\t\n\t\tdocument.getElementById('strict_allocate').disabled=true;\n\t\tif(upTo357==1){document.getElementById('strict_allocate').disabled=false;}\n\t\tif(upTo36==1){\n\t\t\tdocument.getElementById('smb2_protocol').disabled=false;\n\t\t}\t\n\t\n\t}\n\t\n\t\tvar x_SaveSambaOptions2=function (obj) {\n\t\t var hostname='{$hostname}';\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>2){alert(results);}\t\t\t\n\t\t\tRefreshTab('main_config_smboptions');\n\t\t}\t\n\t\n\tfunction SaveSambaOptions2(){\n\t\tvar upTo357={$smb->upTo357};\n\t\tvar upTo36={$smb->upTo36};\t\n\t\tif(upTo36==0){document.getElementById('smb2_protocol').checked=false;}\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('hostname','{$hostname}');\n\t\tif(document.getElementById('strict_allocate').checked){XHR.appendData('strict_allocate','1');}else{XHR.appendData('strict_allocate','no');}\n\t\tif(document.getElementById('strict_locking').checked){XHR.appendData('strict_locking','1');}else{XHR.appendData('strict_locking','no');}\n\t\tif(document.getElementById('sync_always').checked){XHR.appendData('sync_always','1');}else{XHR.appendData('sync_always','no');}\n\t\tif(document.getElementById('getwd_cache').checked){XHR.appendData('getwd_cache','1');}else{XHR.appendData('getwd_cache','no');}\n\t\tif(document.getElementById('smb2_protocol').checked){XHR.appendData('smb2_protocol','1');}else{XHR.appendData('smb2_protocol','no');}\n\t\tAnimateDiv('smboptions2div');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveSambaOptions2);\n\t\n\t}\n\t\n\tCheckSMBOPT2Form();\n</script>\t\n\t\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
示例11: roundcube_form1
function roundcube_form1($ou)
{
$ldap = new clladp();
$roundcube = new roundcube();
$html = "<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend>{roundcubeservername}:</td>\n\t\t<td>" . Field_text('roundcubeservername', $roundcube->roundcubeWebsites[$ou]["servername"], 'width:99%') . "</td>\n\t\t<td>" . help_icon('{joomlaservername_help}', false, "domains.joomla.php") . "</td>\n\t</tr>\t\t\n\t<tr><td colspan=3><hr></tr>\n\t<tr><td colspan=3 align='right'><input type='button' value='{apply} »' OnClick=\"javascript:SaveRoundcubeForm();\"></td></tr>\n\t</table>";
$html = RoundedLightWhite($html);
$tpl = new templates();
return $tpl->_ENGINE_parse_body($html, "domains.joomla.php");
}
示例12: page
function page()
{
$cf = new dnsmasq();
$page = CurrentPageName();
$tpl = new templates();
$time = time();
$html = "\n<div style='font-size:16px'>{others_options}</div>\n<form name='fmm1'>\n<input type='hidden' name='othersoptions' value='yes'>\n<center>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend>{localmx}:</td>\n\t\t<td width=1%>" . Field_key_checkbox_img('localmx', $cf->main_array["localmx"], '{enable_disable}') . "</td>\n\t\t<td width=1%>" . help_icon("{localmx_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{selfmx}:</td>\n\t\t<td width=1% >" . Field_key_checkbox_img('selfmx', $cf->main_array["selfmx"], '{enable_disable}') . "</td>\n\t\t<td width=1%>" . help_icon("{selfmx_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend>{mx-target}</td>\n\t\t<td><strong>" . Field_text('mx-target', $cf->main_array["mx-target"], "font-size:14px;padding:3px;width:210px") . "</td>\n\t\t<td width=1%>" . help_icon("{mx-target_text}") . "</td>\n\t</tr>\n\t<tr><td colspan=3 align='right'><hr>" . button("{apply}", "ParseForm('fmm1','{$page}',true);") . "</td></tr>\n</table>\n</form>\n</center>\t\n\n\n<div class=explain>{dnsmasq_DNS_records_text}<br>{mxexamples}</div>\n\n<form name='{$time}'>\n<center>\n<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:100%'>\n<thead class='thead'>\n\t<tr>\n\t<th>{mxrecdomainfrom}</th>\n\t<th>{mxrecdomainto}</th>\n\t<th>{mxheight}</th>\n\t<th width=1%> </th>\n\t</tr>\n</thead>\n<tbody class='tbody'>\n<tr class=oddRow>\n<td width='140px'>" . Field_text('mxrecdomainfrom', null, "font-size:13px;width:140px") . "</td>\n<td width='180px'>" . Field_text('mxrecdomainto', null, "font-size:13px;width:180px") . "</td>\n<td width='100px'>" . Field_text('mxheight', null, "font-size:13px;width:100px") . "</td>\n<td >" . button("{add}", "ParseForm('{$time}','{$page}',true);mxHostsReload()") . "</td>\n</tr>\n</table>\n</form>\n</center>\n<p> </p>\n<div id='mx_hosts'>" . Loadmxhosts() . "</div>\n";
echo $tpl->_ENGINE_parse_body($html);
}
示例13: main
function main()
{
$page = CurrentPageName();
$user = new usersMenus();
$round = new roundcube();
$artica = new artica_general();
$sock = new sockets();
$debug_levela = array(1 => "log", 2 => "report", 4 => "show", 8 => "trace");
$tpl = new templates();
$RoundCubeHTTPSPort = intval($sock->GET_INFO("RoundCubeHTTPSPort"));
$RoundCubeHTTPPort = intval($sock->GET_INFO("RoundCubeHTTPPort"));
if ($RoundCubeHTTPSPort == 0) {
$RoundCubeHTTPSPort = 449;
}
if ($RoundCubeHTTPPort == 0) {
$RoundCubeHTTPPort = 8888;
}
$RoundCubeHTTPEngineEnabled = intval($sock->GET_INFO("RoundCubeHTTPEngineEnabled"));
$RoundCubeUseSSL = intval($sock->GET_INFO("RoundCubeUseSSL"));
$RoundCubeEnableLDAP = intval($sock->GET_INFO("RoundCubeEnableLDAP"));
$RoundCubeUserLink = $sock->GET_INFO("RoundCubeUserLink");
if ($RoundCubeUserLink == null) {
$RoundCubeUserLink = "http://{$_SERVER["SERVER_NAME"]}:{$RoundCubeHTTPPort}";
$sock->SET_INFO("RoundCubeUserLink", "http://{$_SERVER["SERVER_NAME"]}:{$RoundCubeHTTPPort}");
}
$RoundCubeDebugLevel = intval($sock->GET_INFO("RoundCubeDebugLevel"));
$debug_level = Field_array_Hash($debug_levela, 'RoundCubeDebugLevel', $RoundCubeDebugLevel, "style:font-size:18px");
$RoundCubeEnableCaching = intval($sock->GET_INFO("RoundCubeEnableCaching"));
$RoundCubeAutoCreateuser = intval($sock->GET_INFO("RoundCubeAutoCreateuser"));
$RoundCubeDefaultHost = $sock->GET_INFO("RoundCubeDefaultHost");
if ($RoundCubeDefaultHost == null) {
$RoundCubeDefaultHost = "127.0.0.1";
}
$RoundCubeSievePort = $sock->GET_INFO("RoundCubeSievePort");
if ($RoundCubeSievePort == null) {
$RoundCubeSievePort = $round->SieveListenIp . ":4190";
}
$RoundCubeUploadMaxFilesize = intval($sock->GET_INFO("RoundCubeUploadMaxFilesize"));
if ($RoundCubeUploadMaxFilesize == 0) {
$RoundCubeUploadMaxFilesize = 128;
}
$RoundeCubeLocalString = $sock->GET_INFO("RoundeCubeLocalString");
if ($RoundeCubeLocalString == null) {
$RoundeCubeLocalString = "us";
}
$RoundCubeProductName = $sock->GET_INFO("RoundCubeProductName");
if ($RoundCubeProductName == null) {
$RoundCubeProductName = "RoundCube Webmail for Artica";
}
$RoundCubeSkipDeleted = intval($sock->GET_INFO("RoundCubeSkipDeleted"));
$RoundCubeFlagForDeletion = intval($sock->GET_INFO("RoundCubeFlagForDeletion"));
$t = time();
$html = "\n\t<form name='FFM1'>\n\t<div id='wait'></div>\n\t<div style='width:99%' class=form>\n\t<table style='width:99%'>\n\t<tr>\n\t<td valign='top' nowrap align='right' class=legend style='font-size:18px'>{RoundCubePath}:</strong></td>\n\t<td valign='top' nowrap align='left'><strong style='font-size:18px'>{$user->roundcube_folder}</td>\n\t</tr>\n\t<tr>\n\t<td valign='top' nowrap align='right' class=legend style='font-size:18px'>{roundcube_web_folder}:</strong></td>\n\t<td valign='top' nowrap align='left'><strong style='font-size:18px'>{$user->roundcube_web_folder}</td>\n\t</tr>\n\t\n\t\t\n\t\t\n\t<tr>\n\t<td colspan=2>" . Paragraphe_switch_img("{enable_roundcubehttp}", "{enable_enable_roundcubehttp_text}", "RoundCubeHTTPEngineEnabled-{$t}", $RoundCubeHTTPEngineEnabled, null, 810) . "</td>\n\t</tr>\n\t<tr>\n\t<td valign='top' nowrap align='right' class=legend style='font-size:18px'>{listen_port} SSL:</strong></td>\n\t<td valign='top' nowrap align='left'>" . Field_text('RoundCubeHTTPSPort', $RoundCubeHTTPSPort, 'width:110px;font-size:18px') . "</td>\n\t</tr>\n\t<tr>\n\t<td valign='top' nowrap align='right' class=legend style='font-size:18px'>{listen_port} HTPP:</strong></td>\n\t<td valign='top' nowrap align='left'>" . Field_text('RoundCubeHTTPPort', $RoundCubeHTTPPort, 'width:110px;font-size:18px') . "</td>\n\t</tr>\t\t\t\n\t<tr>\n\t<td valign='top' nowrap align='right' class=legend style='font-size:18px'>{UseSSL}:</strong></td>\n\t<td valign='top' nowrap align='left'>" . Field_checkbox('RoundCubeUseSSL', 1, $RoundCubeUseSSL) . "</td>\n\t</tr>\n<tr>\n\t<td valign='top' nowrap align='right' class=legend style='font-size:18px'>{user_link}:</strong></td>\n\t<td valign='top' nowrap align='left'>" . Field_text('RoundCubeUserLink', $RoundCubeUserLink, 'width:295px;font-size:18px') . "</td>\n</tr>\n<tr>\n\t<td valign='top' nowrap align='right' class=legend style='font-size:18px'>{roundcube_ldap_directory}:</strong></td>\n\t<td valign='top' nowrap align='left'>" . Field_checkbox('RoundCubeEnableLDAP', 1, $RoundCubeEnableLDAP) . "</td>\n</tr>\t\n<tr>\n\t<td valign='top' nowrap align='right' class=legend style='font-size:18px'>{debug_level}:</strong></td>\n\t<td valign='top' nowrap align='left'><strong>{$debug_level}</td>\n</tr>\n<tr>\n\t<td valign='top' nowrap align='right' class=legend style='font-size:18px'>{enable_caching}:</strong></td>\n\t<td valign='top' nowrap align='left'>" . Field_checkbox('RoundCubeEnableCaching', 1, $RoundCubeEnableCaching) . "</td>\n</tr>\n<tr>\n\t<td valign='top' nowrap align='right' class=legend style='font-size:18px'>{upload_max_filesize}:</strong></td>\n\t<td valign='top' nowrap align='left' style='font-size:18px'>" . Field_text('RoundCubeUploadMaxFilesize', $RoundCubeUploadMaxFilesize, 'width:90px;font-size:18px') . "M</td>\n</tr>\n\n\t\t\n<tr>\n\t<td valign='top' nowrap align='right' class=legend style='font-size:18px'>{auto_create_user}:</strong></td>\n\t<td valign='top' nowrap align='left'>" . Field_checkbox('RoundCubeAutoCreateuser', 1, $RoundCubeAutoCreateuser) . "</td>\n</tr>\n<tr>\n\t<td align='right' class=legend style='font-size:18px'>{default_host}:</strong></td>\n\t<td>" . Field_text('RoundCubeDefaultHost', $RoundCubeDefaultHost, 'width:230px;font-size:18px') . "</td>\n</tr>\n\n<tr>\n\t<td valign='top' nowrap align='right' class=legend style='font-size:18px'>Sieve:</strong></td>\n\t<td valign='top' nowrap align='left' style='font-size:18px'>" . Field_text('RoundCubeSievePort', $RoundCubeSievePort, 'width:190px;font-size:18px') . "</td>\n</tr>\n\n<tr>\n\t<td align='right' class=legend style='font-size:18px'>{locale_string}:</strong></td>\n\t<td>" . Field_text('RoundeCubeLocalString', trim($RoundeCubeLocalString), 'width:60px;font-size:18px') . "</td>\n</tr>\t\t\n\t\t\n<tr>\n\t<td align='right' class=legend style='font-size:18px'>{product_name}:</strong></td>\n\t<td>" . Field_text('RoundCubeProductName', trim($RoundCubeProductName), 'width:250px;font-size:18px') . "</td>\n</tr>\t\n<tr>\n\t<td align='right' class=legend style='font-size:18px'>{skip_deleted}:</strong></td>\n\t<td>" . Field_checkbox('RoundCubeSkipDeleted', 1, $RoundCubeSkipDeleted) . "</td>\n</tr>\n<tr>\n\t<td align='right' class=legend style='font-size:18px'>{flag_for_deletion}:</strong></td>\n\t<td style='padding-left:-3px'>\n\t<table style='width:100%;margin-left:-4px;padding:0px'>\n\t<tr>\n\t<td width=1% valign='top' style='padding-left:-3px'>\n\t" . Field_checkbox('RoundCubeFlagForDeletion', 1, $RoundCubeFlagForDeletion) . "</td>\n\t<td valign='center' >" . help_icon('{flag_for_deletion_text}', true) . "</td>\n\t</tr>\n\t</table>\n\t</td>\n</tr>\t\t\t\n\t\t\t\n\t\t\t\n\t<tr>\n\t\t<td colspan=2 align='right'>\n\t\t\t" . button('{apply}', "SaveRoundCubeForm{$t}()", 26) . "\n\t</tr>\n\t\t\t</table>\n\t</form>\n</div>\n\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\nvar X_SaveRoundCubeForm{$t}= function (obj) {\n}\n\t\t\t\t\t\t\t\t\nfunction SaveRoundCubeForm{$t}(){\n\tvar XHR = new XHRConnection();\n\t\n\tif(document.getElementById('RoundCubeUseSSL').checked){XHR.appendData('RoundCubeUseSSL','1');}else{XHR.appendData('RoundCubeUseSSL','0');}\n\tif(document.getElementById('RoundCubeEnableLDAP').checked){XHR.appendData('RoundCubeEnableLDAP','1');}else{XHR.appendData('RoundCubeEnableLDAP','0');}\n\tif(document.getElementById('RoundCubeEnableCaching').checked){XHR.appendData('RoundCubeEnableCaching','1');}else{XHR.appendData('RoundCubeEnableCaching','0');}\n\tif(document.getElementById('RoundCubeSkipDeleted').checked){XHR.appendData('RoundCubeSkipDeleted','1');}else{XHR.appendData('RoundCubeSkipDeleted','0');}\n\tif(document.getElementById('RoundCubeFlagForDeletion').checked){XHR.appendData('RoundCubeFlagForDeletion','1');}else{XHR.appendData('RoundCubeFlagForDeletion','0');}\n\t\n\t\n\tXHR.appendData('RoundCubeHTTPEngineEnabled',document.getElementById('RoundCubeHTTPEngineEnabled-{$t}').value);\n\tXHR.appendData('RoundCubeProductName',document.getElementById('RoundCubeProductName').value);\n\tXHR.appendData('RoundCubeUploadMaxFilesize',document.getElementById('RoundCubeUploadMaxFilesize').value);\n\tXHR.appendData('RoundCubeSievePort',document.getElementById('RoundCubeSievePort').value);\n\tXHR.appendData('RoundeCubeLocalString',document.getElementById('RoundeCubeLocalString').value);\n\tXHR.appendData('RoundCubeDebugLevel',document.getElementById('RoundCubeDebugLevel').value);\n\tXHR.appendData('RoundCubeUserLink',document.getElementById('RoundCubeUserLink').value);\n\tXHR.appendData('RoundCubeHTTPSPort',document.getElementById('RoundCubeHTTPSPort').value);\n\tXHR.appendData('RoundCubeHTTPPort',document.getElementById('RoundCubeHTTPPort').value);\n\tXHR.sendAndLoad('{$page}', 'POST',X_SaveRoundCubeForm{$t});\n\t}\n</script>";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例14: popup
function popup()
{
$page = CurrentPageName();
$squid = new squidnodes($_GET["nodeid"]);
$t = time();
$field = Paragraphe_switch_img('{transparent_mode}', '{transparent_mode_text}', "squid_transparent{$t}", $squid->GET("hasProxyTransparent"), null, 350);
$html = "\n\t\n\t<div id='squid_transparentdiv{$t}'>\n\t\t<div style='float:right'>" . help_icon("{transparent_mode_limitations}") . "</div><div class=explain>{transparent_mode_explain}</div>\n\t\t<table style='width:99%' class=form>\n\t\t\t<tr>\n\t\t\t\t<td colspan=2>{$field}</td>\n\t\t\t</tr>\n\t\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "SaveTransparentProxy{$t}();", 18) . "</tD>\n\t\t</table>\n\t</div>\n\t\n\t<script>\n\t\n\tvar x_SaveTransparentProxy= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\tYahooWin6Hide();\n\t\tif(document.getElementById('main_squid_quicklinks_tabs{$_GET["nodeid"]}')){RefreshTab('main_squid_quicklinks_tabs{$_GET["nodeid"]}');}\n\t}\t\n\t\n\tfunction SaveTransparentProxy{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('nodeid',{$_GET["nodeid"]});\n\t\tXHR.appendData('squid_transparent',document.getElementById('squid_transparent{$t}').value);\n\t\tAnimateDiv('squid_transparentdiv{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveTransparentProxy);\t\t\n\t\t}\t\n\t\n\t\n\t</script>\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, 'squid.index.php');
}
示例15: popup
function popup()
{
$squid = new squidnodes($_GET["nodeid"]);
if (!is_numeric($squid->second_listen_port)) {
$squid->second_listen_port = 0;
}
$form = "\n\t\t\n\t\t<table style='width:99%' class=form>\n\t\t\t<tr>\n\t\t\t\t<td class=legend nowrap style='font-size:16px;'>{listen_port}:</td>\n\t\t\t\t<td>" . Field_text('listen_port', $squid->listen_port, 'width:95px;font-size:16px;padding:5px') . "</td>\n\t\t\t\t<td width=1%> </td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=legend nowrap style='font-size:16px;'>{second_port}:</td>\n\t\t\t\t<td>" . Field_text('second_listen_port', $squid->second_listen_port, 'width:95px;font-size:16px;padding:5px') . "</td>\n\t\t\t\t<td width=1%>" . help_icon("{squid_second_port_explain}") . "</td>\n\t\t\t</tr>\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t<tr>\n\t\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "listenport()", 16) . "</td>\n\t\t\t</tr>\n\t\t</table>\t\t\t\n\t\t\n\t\t";
$html = "\n\t\t\t<div class=text-info style='font-size:14px;'>{listen_port_text}</div>\n\t\t\t\t{$form}\n\t\t\t<br>\n\t\t\t\n\t\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, 'squid.index.php');
}