本文整理汇总了PHP中squidbee::isNGnx方法的典型用法代码示例。如果您正苦于以下问题:PHP squidbee::isNGnx方法的具体用法?PHP squidbee::isNGnx怎么用?PHP squidbee::isNGnx使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类squidbee
的用法示例。
在下文中一共展示了squidbee::isNGnx方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: page
function page()
{
$users = new usersMenus();
$page = CurrentPageName();
$tpl = new templates();
$date = $tpl->_ENGINE_parse_body("{zDate}");
$description = $tpl->_ENGINE_parse_body("{description}");
$context = $tpl->_ENGINE_parse_body("{context}");
$events = $tpl->_ENGINE_parse_body("{events}");
$empty = $tpl->_ENGINE_parse_body("{empty}");
$empty_events_text_ask = $tpl->javascript_parse_text("{empty_events_text_ask}");
$bt_klms_reset_pwd = null;
$joomlaservername = $tpl->_ENGINE_parse_body("{joomlaservername}");
$memory = $tpl->_ENGINE_parse_body("{memory}");
$requests = $tpl->_ENGINE_parse_body("{requests}");
$member = $tpl->_ENGINE_parse_body("{member}");
$new_server = $tpl->_ENGINE_parse_body("{new_server}");
$add_default_www = $tpl->_ENGINE_parse_body("{add_default_www}");
$delete_freeweb_text = $tpl->javascript_parse_text("{delete_freeweb_text}");
$delete_freeweb_dnstext = $tpl->javascript_parse_text("{delete_freeweb_dnstext}");
$WebDavPerUser = $tpl->_ENGINE_parse_body("{WebDavPerUser}");
$rebuild_items = $tpl->_ENGINE_parse_body("{rebuild_items}");
$size = $tpl->_ENGINE_parse_body("{size}");
$help = $tpl->_ENGINE_parse_body("{help}");
$restore = $tpl->_ENGINE_parse_body("{restore}");
$status = $tpl->javascript_parse_text("{status}");
$reset_admin_password = $tpl->javascript_parse_text("{reset_admin_password}");
$choose_your_zarafa_webserver_type = $tpl->_ENGINE_parse_body("{choose_your_zarafa_webserver_type}");
$freeweb_compile_background = $tpl->javascript_parse_text("{freeweb_compile_background}");
$enable = $tpl->javascript_parse_text("{enable}");
$bt_default_www = "{name: '{$add_default_www}', bclass: 'add', onpress : FreeWebAddDefaultVirtualHost},";
$bt_webdav = "{name: '{$WebDavPerUser}', bclass: 'add', onpress : FreeWebWebDavPerUsers},";
$bt_rebuild = "{name: '{$rebuild_items}', bclass: 'Reconf', onpress : RebuildFreeweb},";
$bt_help = "{name: '{$help}', bclass: 'Help', onpress : HelpSection},";
$bt_restore = "{name: '{$restore}', bclass: 'Restore', onpress : RestoreSite},";
$bt_stats = "{name: '{$status}', bclass: 'Network', onpress : ApacheAllstatus},";
$MAIN_TITLE = null;
$tablewidth = 874;
$servername_size = 366;
$bt_function_add = "AddNewFreeWebServer";
if ($_GET["force-groupware"] != null) {
include_once dirname(__FILE__) . "/ressources/class.apache.inc";
$default_www = null;
$bt_webdav = null;
$ach = new vhosts();
$MAIN_TITLE = "<span style=font-size:18px>" . $tpl->_ENGINE_parse_body("{" . $ach->TEXT_ARRAY[$_GET["force-groupware"]]["TITLE"] . "}") . "</span>";
if ($_GET["force-groupware"] == "KLMS") {
$bt_klms_reset_pwd = "{name: '{$reset_admin_password}', bclass: 'Restore', onpress : klmsresetwebpassword},";
}
}
if ($_GET["tabzarafa"] == "yes") {
$tablewidth = 690;
$servername_size = 64;
$bt_webdav = null;
$bt_default_www = null;
$bt_function_add = "AddNewFreeWebServerZarafa";
$bt_restore = null;
}
if ($_GET["minimal-tools"] == "yes") {
$bt_default_www = null;
$bt_restore = null;
$bt_webdav = null;
$bt_help = null;
}
if (!$users->APACHE_MOD_STATUS) {
$bt_stats = null;
}
$users = new usersMenus();
if ($users->SQUID_INSTALLED) {
$sock = new sockets();
$SquidActHasReverse = $sock->GET_INFO("SquidActHasReverse");
if (!is_numeric($SquidActHasReverse)) {
$SquidActHasReverse = 0;
}
$squid = new squidbee();
if ($squid->isNGnx()) {
$SquidActHasReverse = 1;
}
if ($SquidActHasReverse == 1) {
$explainSquidActHasReverse = $tpl->_ENGINE_parse_body("<div class=explain style='font-size:14px'>{explain_freewebs_reverse}</div>");
}
}
$t = time();
$buttons = "\n\tbuttons : [\n\t{name: '<b>{$new_server}</b>', bclass: 'add', onpress : {$bt_function_add}},{$bt_default_www}{$bt_webdav}{$bt_rebuild}{$bt_restore}{$bt_klms_reset_pwd}{$bt_help}{$bt_stats}\n\t\n\t\t],";
$html = "\n\t{$explainSquidActHasReverse}\n\t<input type='hidden' id='freewebs-table-id' value='freewebs-table-{$t}'>\n\t<table class='freewebs-table-{$t}' style='display: none' id='freewebs-table-{$t}' style='width:100%;margin:-10px'></table>\n<script>\nFreeWebIDMEM='';\n\n\$('#freewebs-table-{$t}').flexigrid({\n\turl: '{$page}?servers-list=yes&t={$t}&force-groupware={$_GET["force-groupware"]}&ForceInstanceZarafaID={$_GET["ForceInstanceZarafaID"]}&t={$t}&tabzarafa={$_GET["tabzarafa"]}',\n\tdataType: 'json',\n\tcolModel : [\n\t\t{display: ' ', name : 'icon', width : 31, sortable : false, align: 'center'},\n\t\t{display: '{$joomlaservername}', name : 'servername', width :{$servername_size}, sortable : true, align: 'left'},\n\t\t{display: 'compile', name : 'compile', width :80, sortable : false, align: 'center'},\n\t\t{display: '{$enable}', name : 'enabled', width :80, sortable : true, align: 'center'},\n\t\t{display: '{$size}', name : 'DirectorySize', width :80, sortable : true, align: 'center'},\n\t\t{display: '{$memory}', name : 'memory', width :80, sortable : false, align: 'center'},\n\t\t{display: '{$requests}', name : 'requests', width : 72, sortable : false, align: 'center'},\n\t\t{display: 'SSL', name : 'useSSL', width : 31, sortable : true, align: 'center'},\n\t\t{display: 'RESOLV', name : 'resolved_ipaddr', width : 31, sortable : true, align: 'center'},\n\t\t{display: 'DNS', name : 'dns', width : 31, sortable : false, align: 'center'},\n\t\t{display: '{$member}', name : 'member', width : 31, sortable : false, align: 'center'},\n\t\t{display: ' ', name : 'none1', width : 80, sortable : false, align: 'center'},\n\t],\n\t{$buttons}\n\n\tsearchitems : [\n\t\t{display: '{$joomlaservername}', name : 'servername'},\n\t\t],\n\tsortname: 'servername',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '{$MAIN_TITLE}',\n\tuseRp: true,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: '99%',\n\theight: 550,\n\tsingleSelect: true\n\t\n\t}); \n\n\n\tfunction HelpSection(){\n\t\tLoadHelp('freewebs_explain','',false);\n\t}\n\n\tfunction AddNewFreeWebServer(){\n\t\t Loadjs('freeweb.edit.php?hostname=&force-groupware={$_GET["force-groupware"]}&t={$t}')\n\t}\n\t\n\tfunction AddNewFreeWebServerZarafa(){\n\t\tYahooWin('650','{$page}?freeweb-zarafa-choose=yes&t={$t}','{$choose_your_zarafa_webserver_type}');\n\t}\n\t\n\t\n\tfunction ApacheAllstatus(){\n\t\tLoadjs('freeweb.status.php');\n\t}\n\t\n\t\n\tfunction FreeWebWebDavPerUsers(){\n\t\tLoadjs('freeweb.webdavusr.php?t={$t}')\n\t}\n\t\n\tfunction RestoreSite(){\n\t\tLoadjs('freeweb.restoresite.php?t={$t}')\n\t}\n\t\n\tfunction FreeWebsRefreshWebServersList(){\n\t\t\$('#freewebs-table-{$t}').flexReload();\n\t}\n\t\n\t\n\tvar x_EmptyEvents= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);return;}\n\t\t\$('#freewebs-table-{$t}').flexReload();\n\t\t//\$('#grid_list').flexOptions({url: 'newurl/'}); \n\t\t// \$('#fgAllPatients').flexOptions({ query: 'blah=qweqweqwe' }).flexReload();\n\t\t\n\t}\t\n\t\n\tvar x_FreeWebsRebuildvHostsTable= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);return;}\n\t\talert('{$freeweb_compile_background}');\n\t\t\$('#freewebs-table-{$t}').flexReload();\n\t\t//\$('#grid_list').flexOptions({url: 'newurl/'}); \n\t\t// \$('#fgAllPatients').flexOptions({ query: 'blah=qweqweqwe' }).flexReload();\n\t\t}\n\n\t\n\tvar x_klmsresetwebpassword{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);return;}\n\t\t\$('#freewebs-table-{$t}').flexReload();\n\t}\t\n\t\n\tvar x_FreeWebDelete=function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>10){alert(results);return;}\t\n\t\t\t\$('#row'+FreeWebIDMEM).remove();\n\t\t\tif(document.getElementById('container-www-tabs')){\tRefreshTab('container-www-tabs');}\n\t\t}\t\n\t\t\n\t\tfunction FreeWebDelete(server,dns,md){\n\t\t\tFreeWebIDMEM=md;\n\t\t\tif(confirm('{$delete_freeweb_text}')){\n\t\t\t\tvar XHR = new XHRConnection();\n\t\t\t\tif(dns==1){if(confirm('{$delete_freeweb_dnstext}')){XHR.appendData('delete-dns',1);}else{XHR.appendData('delete-dns',0);}}\n\t\t\t\tXHR.appendData('delete-servername',server);\n \t\t\tXHR.sendAndLoad('freeweb.php', 'GET',x_FreeWebDelete);\n\t\t\t}\n\t\t}\n\n\tvar x_FreeWebRefresh=function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>10){alert(results);return;}\t\n\t\t\t\$('#freewebs-table-{$t}').flexReload();\n\t\t}\t\t\n\t\t\n\t\tfunction FreeWebAddDefaultVirtualHost(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('AddDefaultOne','yes');\n \t\tXHR.sendAndLoad('freeweb.php', 'POST',x_FreeWebRefresh);\t\t\n\t\t}\n\t\t\n\t\tfunction FreeWeCheckVirtualHost(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('CheckAVailable','yes');\n \t\tXHR.sendAndLoad('freeweb.php', 'POST',x_FreeWebDelete);\t\t\t\n\t\t}\n\t\t\n\t\tvar x_RebuildFreeweb{$t}=function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>0){alert(results);}\t\t\t\n\t\t\t\$('#freewebs-table-{$t}').flexReload();\n\t\t}\t\t\t\n\t\t\n\t\tfunction RebuildFreeweb(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('rebuild-items','yes');\n \t\tXHR.sendAndLoad('freeweb.php', 'GET',x_RebuildFreeweb{$t});\n\t\t\n\t\t}\n\n\t\tfunction klmsresetwebpassword(){\n\t\t if(confirm('{$reset_admin_password} ?')){\n\t\t\t\tvar XHR = new XHRConnection();\n\t\t\t\tXHR.appendData('klms-reset-password','yes');\n \t\t\tXHR.sendAndLoad('klms.php', 'POST',x_klmsresetwebpassword{$t});\n \t\t}\t\t\n\t\t}\n\t\t\n\tfunction FreeWebsRebuildvHostsTable(servername){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('FreeWebsRebuildvHosts',servername);\n\t\tXHR.sendAndLoad('freeweb.edit.php', 'POST',x_FreeWebsRebuildvHostsTable);\n\t}\n\n\n\t\t\n\t\n</script>";
echo $html;
}
示例2: features
function features()
{
$sock = new sockets();
$users = new usersMenus();
$check = "42-green.png";
$uncheck = "42-red.png";
$squid = new squidbee();
$INTEGER[0] = $uncheck;
$INTEGER[1] = $check;
$INTEGER[-1] = "42-green-grey.png";
$tpl = new templates();
$DisableAnyCache = $sock->GET_INFO("DisableAnyCache");
if (!is_numeric($DisableAnyCache)) {
$DisableAnyCache = 0;
}
$hasProxyTransparent = $sock->GET_INFO("hasProxyTransparent");
if (!is_numeric($hasProxyTransparent)) {
$hasProxyTransparent = 0;
}
$SquidCacheLevel = $sock->GET_INFO("SquidCacheLevel");
if (!is_numeric($SquidCacheLevel)) {
$SquidCacheLevel = 4;
}
if ($SquidCacheLevel == 0) {
$DisableAnyCache = 1;
}
$EnableRemoteStatisticsAppliance = $sock->GET_INFO("EnableRemoteStatisticsAppliance");
if (!is_numeric($EnableRemoteStatisticsAppliance)) {
$EnableRemoteStatisticsAppliance = 0;
}
$SquidGuardIPWeb = trim($sock->GET_INFO("SquidGuardIPWeb"));
$SquidGuardServerName = $sock->GET_INFO("SquidGuardServerName");
$SquidDisableAllFilters = $sock->GET_INFO("SquidDisableAllFilters");
$SquideCapAVEnabled = $sock->GET_INFO("SquideCapAVEnabled");
$kavicapserverEnabled = $sock->GET_INFO("kavicapserverEnabled");
$EnableSplashScreen = $sock->GET_INFO("EnableSplashScreen");
$PdnsHotSpot = $sock->GET_INFO("EnableSplashScreen");
$EnableMalwarePatrol = $sock->GET_INFO("EnableMalwarePatrol");
$AsSquidLoadBalancer = $sock->GET_INFO("AsSquidLoadBalancer");
$SquidActHasReverse = $sock->GET_INFO("SquidActHasReverse");
if ($squid->isNGnx()) {
$SquidActHasReverse = 0;
}
$UfdbEnabledCentral = $sock->GET_INFO('UfdbEnabledCentral');
$AntivirusEnabledCentral = $sock->GET_INFO('AntivirusEnabledCentral');
$EnableKerbAuthCentral = $sock->GET_INFO('EnableKerbAuthCentral');
$EnableUfdbGuard = $sock->EnableUfdbGuard();
$DnsFilterCentral = $sock->GET_INFO('DnsFilterCentral');
$SquidBubbleMode = $sock->GET_INFO('SquidBubbleMode');
$EnableITChart = $sock->GET_INFO('EnableITChart');
$CicapEnabled = $sock->GET_INFO("CicapEnabled");
$EnableFTPProxy = $sock->GET_INFO('EnableFTPProxy');
$MonitConfig = unserialize(base64_decode($sock->GET_INFO("SquidWatchdogMonitConfig")));
$Watchdog = $MonitConfig["watchdog"];
$UnlockWebStats = $sock->GET_INFO("UnlockWebStats");
if (!is_numeric($UnlockWebStats)) {
$UnlockWebStats = 0;
}
if ($UnlockWebStats == 1) {
$EnableRemoteStatisticsAppliance = 0;
}
$EnableHaarp = $sock->GET_INFO("EnableHaarp");
if (!is_numeric($EnableHaarp)) {
$EnableHaarp = 0;
}
// APP_HAARP $EnableHaarp
if (!is_numeric($EnableFTPProxy)) {
$EnableFTPProxy = 0;
}
$PDSNInUfdb = $sock->GET_INFO("PDSNInUfdb");
$EnableKerbAuth = $sock->GET_INFO("EnableKerbAuth");
$EnableCNTLM = $sock->GET_INFO("EnableCNTLM");
if (!is_numeric($EnableKerbAuth)) {
$EnableKerbAuth = 0;
}
if (!is_numeric($EnableUfdbGuard)) {
$EnableUfdbGuard = 0;
}
if (!is_numeric($SquideCapAVEnabled)) {
$SquideCapAVEnabled = 0;
}
if (!is_numeric($EnableMalwarePatrol)) {
$EnableMalwarePatrol = 0;
}
if (!is_numeric($SquidDisableAllFilters)) {
$SquidDisableAllFilters = 0;
}
if (!is_numeric($EnableSplashScreen)) {
$EnableSplashScreen = 0;
}
if (!is_numeric($PdnsHotSpot)) {
$PdnsHotSpot = 0;
}
if (!is_numeric($AsSquidLoadBalancer)) {
$AsSquidLoadBalancer = 0;
}
if (!is_numeric($SquidActHasReverse)) {
$SquidActHasReverse = 0;
}
if (!is_numeric($kavicapserverEnabled)) {
//.........这里部分代码省略.........
示例3: section_architecture_content
function section_architecture_content(){
if(GET_CACHED(__FILE__, __FUNCTION__,__FUNCTION__)){return;}
$page=CurrentPageName();
$sock=new sockets();
$users=new usersMenus();
$squid=new squidbee();
$compilefile="ressources/logs/squid.compilation.params";
if(!is_file($compilefile)){$sock->getFrameWork("squid.php?compil-params=yes");}
$COMPILATION_PARAMS=unserialize(base64_decode(file_get_contents($compilefile)));
$SquidActHasReverse=$sock->GET_INFO("SquidActHasReverse");
if(!is_numeric($SquidActHasReverse)){$SquidActHasReverse=0;}
if($users->SQUID_REVERSE_APPLIANCE){$SquidActHasReverse=1;}
if($squid->isNGnx()){$SquidActHasReverse=0;}
$listen_port=Paragraphe('folder-network-64.png','{listen_port}','{listen_port_text}',"javascript:Loadjs('squid.popups.php?script=listen_port')");
$listen_addr=Paragraphe('folder-network-64.png','{listen_address}','{squid_listen_text}',"javascript:Loadjs('squid.nic.php')");
$visible_hostname=Paragraphe('64-work-station-linux.png','{visible_hostname}','{visible_hostname_intro}',"javascript:Loadjs('squid.popups.php?script=visible_hostname')");
//$transparent_mode=Paragraphe('relayhost.png','{transparent_mode}','{transparent_mode_text}',"javascript:Loadjs('squid.newbee.php?squid-transparent-js=yes')");
$your_network=Paragraphe('folder-realyrules-64.png','{your_network}','{your_network_text}',"javascript:Loadjs('squid.popups.php?script=network')");
$stat_appliance=Paragraphe("64-dansguardian-stats.png","{STATISTICS_APPLIANCE}","{STATISTICS_APPLIANCE_TEXT}","javascript:Loadjs('squid.stats-appliance.php')");
//$sslbump=Paragraphe('web-ssl-64.png','{squid_sslbump}','{squid_sslbump_text}',"javascript:Loadjs('squid.sslbump.php')");
$watchdog=Paragraphe('service-check-64-grey.png','{squid_watchdog}','{squid_watchdog_text}',"");
$syslogRemote=Paragraphe('syslog-64-client.png','{remote_statistics_server}','{remote_statistics_server_text}',"javascript:Loadjs('squid.remotestats.php')");
$log_location=Paragraphe('syslog-64-client.png','{log_location}','{log_location_text}',
"javascript:Loadjs('squid.varlog.php')");
$ftp_user=Paragraphe('ftp-user-64.png','{squid_ftp_user}','{squid_ftp_user_text}',"javascript:Loadjs('squid.ftp.user.php')");
$messengers=Paragraphe('messengers-64.png','{instant_messengers}','{squid_instant_messengers_text}',"javascript:Loadjs('squid.messengers.php')");
$enable_squid_service=Paragraphe('shutdown-green-64.png','{enable_squid_service}','{enable_squid_service_text}',"javascript:Loadjs('squid.newbee.php?js_enable_disable_squid=yes')");
if(!isset($COMPILATION_PARAMS["enable-ssl"])){
$sslbump=Paragraphe('web-ssl-64-grey.png','{squid_sslbump}','{squid_sslbump_text}',"");
}
if($users->MONIT_INSTALLED){
$watchdog=Paragraphe('service-check-64.png','{squid_watchdog}','{squid_watchdog_text}',"javascript:Loadjs('squid.watchdog.php')");
}
$booster=Paragraphe('perfs-64.png','{squid_booster}','{squid_booster_text}',
"javascript:Loadjs('squid.booster.php')");
$googlenossl=Paragraphe('google-64.png','{disable_google_ssl}','{disable_google_ssl_text}',
"javascript:Loadjs('squid.google.ssl.php')");
if($SquidActHasReverse==1){
$googlenossl=null;
$messengers=null;
$sslbump=null;
$transparent_mode=null;
}
$sock=new sockets();
$users=new usersMenus();
$squid=new squidbee();
$SquidActHasReverse=$sock->GET_INFO("SquidActHasReverse");
if(!is_numeric($SquidActHasReverse)){$SquidActHasReverse=0;}
$squid_reverse_proxy=Paragraphe('squid-reverse-64.png','{squid_reverse_proxy}','{squid_reverse_proxy_text}',"javascript:Loadjs('squid.reverse.proxy.php')");
$squid_advanced_parameters=Paragraphe('64-settings.png','{squid_advanced_parameters}','{squid_advanced_parameters_text}',"javascript:Loadjs('squid.advParameters.php')");
$squid_conf=Paragraphe('script-view-64.png','{configuration_file}','{display_generated_configuration_file}',"javascript:Loadjs('squid.conf.php')");
$performances_tuning=Paragraphe('performance-tuning-64.png','{tune_squid_performances}','{tune_squid_performances_text}',"javascript:Loadjs('squid.perfs.php')");
$denywebistes=Paragraphe("folder-64-denywebistes.png","{deny_websites}","{deny_websites_text}","javascript:Loadjs('squid.popups.php?script=url_regex');");
$AsSquidLoadBalancerIcon=Paragraphe("load-blancing-64.png","{load_balancer}","{squid_load_balancer_text}",
"javascript:Loadjs('squid.loadblancer.php');");
$AsSquidLoadBalancer=$sock->GET_INFO("AsSquidLoadBalancer");
if(!is_numeric($AsSquidLoadBalancer)){$AsSquidLoadBalancer=0;}
$squid=new squidbee();
if($squid->isNGnx()){
$users->SQUID_REVERSE_APPLIANCE=false;
$squid_reverse_proxy=null;
$SquidActHasReverse=0;
}
if($users->SQUID_REVERSE_APPLIANCE){$squid_reverse_proxy=null;$SquidActHasReverse=1;}
if($SquidActHasReverse==1){
$AsSquidLoadBalancer=0;
$squid_accl_websites=Paragraphe('website-64.png','{squid_accel_websites}','{squid_accel_websites_text}',"javascript:Loadjs('squid.reverse.websites.php')");
}
$redirectors_options=Paragraphe('redirector-64.png','{squid_redirectors}','{squid_redirectors_text}',
"javascript:Loadjs('squid.redirectors.php')");
$memory_option=Paragraphe('bg_memory-64.png','{cache_mem}','{cache_mem_text}',
"javascript:Loadjs('squid.cache_mem.php')");
//.........这里部分代码省略.........
示例4: listen_port_popup
function listen_port_popup()
{
$q = new mysql();
$squid = new squidbee();
$users = new usersMenus();
if (!is_numeric($squid->second_listen_port)) {
$squid->second_listen_port = 0;
}
if (!is_numeric($squid->ssl_port)) {
$squid->ssl_port = 0;
}
if ($squid->isNGnx()) {
$users->SQUID_REVERSE_APPLIANCE = false;
}
$transparent = null;
if ($squid->hasProxyTransparent == 1) {
$transparent = "{transparent}";
}
$sock = new sockets();
$EnableCNTLM = $sock->GET_INFO("EnableCNTLM");
$CNTLMPort = $sock->GET_INFO("CnTLMPORT");
$DisableSSLStandardPort = $sock->GET_INFO("DisableSSLStandardPort");
if (!is_numeric($DisableSSLStandardPort)) {
$DisableSSLStandardPort = 1;
}
if (!is_numeric($EnableCNTLM)) {
$EnableCNTLM = 0;
}
if (!is_numeric($CNTLMPort)) {
$CNTLMPort = 3155;
}
$arrayParams = unserialize(base64_decode($sock->getFrameWork("squid.php?compile-list=yes")));
$SSL = 1;
if (!isset($arrayParams["--enable-ssl"])) {
$SSL = 0;
}
include_once dirname(__FILE__) . "/ressources/class.squid.reverse.inc";
$squid_reverse = new squid_reverse();
$sslcertificates = $squid_reverse->ssl_certificates_list();
if ($users->SQUID_REVERSE_APPLIANCE) {
$lock = "lock();";
if ($SSL == 1) {
$squid->ssl_port = 443;
}
}
$page = CurrentPageName();
$t = time();
$EnableTCPOptimize = $sock->GET_INFO("EnableTCPOptimize");
if (!is_numeric($EnableTCPOptimize)) {
$EnableTCPOptimize = 0;
}
$form = "<center id='animate-{$t}'></center>\n\t\t<div style='width:98%' class=form>\n\t\t<table style='width:100%' >\n\t\t\t<tr>\n\t\t\t\t<td class=legend nowrap style='font-size:16px;'>{EnableTCPOptimize}:</td>\n\t\t\t\t<td>" . Field_checkbox("EnableTCPOptimize-{$t}", 1, $EnableTCPOptimize, 'width:95px;font-size:16px;padding:5px') . "</td>\n\t\t\t\t<td width=1% nowrap style='font-weight:bold;color:#C81717;font-size:14px !important'></td>\n\t\t\t\t<td width=1%>" . help_icon("{EnableTCPOptimize_explain}") . "</td>\n\t\t\t</tr>\t\t\n\t\t\n\t\t\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-{$t}", $squid->listen_port, 'width:95px;font-size:16px;padding:5px') . "</td>\n\t\t\t\t<td width=1% nowrap style='font-weight:bold;color:#C81717;font-size:14px !important'>{$transparent}</td>\n\t\t\t\t<td> </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-{$t}", $squid->second_listen_port, 'width:95px;font-size:16px;padding:5px') . "</td>\n\t\t\t\t<td> </td>\n\t\t\t\t<td width=1%>" . help_icon("{squid_second_port_explain}") . "</td>\n\t\t\t</tr>\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend nowrap style='font-size:16px;'>{smartphones_port}:</td>\n\t\t\t\t<td>" . Field_text("smartphones_port-{$t}", $squid->smartphones_port, 'width:95px;font-size:16px;padding:5px') . "</td>\n\t\t\t\t<td> </td>\n\t\t\t\t<td width=1%>" . help_icon("{smartphones_port_explain}") . "</td>\n\t\t\t</tr>\t\t\t\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend nowrap style='font-size:16px;'>{cntlm_port}:</td>\n\t\t\t\t<td>" . Field_text("CNTLMPort-{$t}", $CNTLMPort, 'width:95px;font-size:16px;padding:5px') . "</td>\n\t\t\t\t<td> </td>\n\t\t\t\t<td width=1%>" . help_icon("{CnTLMPORT_explain2}") . "</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 class=legend nowrap style='font-size:16px;'>{icp_port}:</td>\n\t\t\t\t<td>" . Field_text("icp_port-{$t}", $squid->ICP_PORT, 'width:95px;font-size:16px;padding:5px') . "</td>\n\t\t\t\t<td> </td>\n\t\t\t\t<td width=1%>" . help_icon("{icp_port_explain}") . "</td>\n\t\t\t</tr>\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend nowrap style='font-size:16px;'>{htcp_port}:</td>\n\t\t\t\t<td>" . Field_text("htcp_port-{$t}", $squid->HTCP_PORT, 'width:95px;font-size:16px;padding:5px') . "</td>\n\t\t\t\t<td> </td>\n\t\t\t\t<td width=1%>" . help_icon("{htcp_port_explain}") . "</td>\n\t\t\t</tr>\t\t\t\t\t\t\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend nowrap style='font-size:16px;'>{ssl_port}:</td>\n\t\t\t\t<td>" . Field_text("ssl_port-{$t}", $squid->ssl_port, 'width:95px;font-size:16px;padding:5px') . "</td>\n\t\t\t\t<td width=1% nowrap style='font-weight:bold;color:#C81717;font-size:14px !important'>{$transparent}</td>\n\t\t\t\t<td width=1%>" . help_icon("{squid_ssl_port_explain}") . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=legend nowrap style='font-size:16px;'>{certificate}:</td>\n\t\t\t\t<td colspan=3>" . Field_array_Hash($sslcertificates, "certificate-{$t}", $squid->certificate_center, null, null, 0, "font-size:16px") . "</td>\n\t\t\t</tr>\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend nowrap style='font-size:16px;'>{DisableSSLStandardPort}:</td>\n\t\t\t\t<td >" . Field_checkbox("DisableSSLStandardPort-{$t}", $DisableSSLStandardPort, 1) . "</td>\n\t\t\t\t<td> </td>\n\t\t\t\t<td width=1%>" . help_icon("{DisableSSLStandardPort_explain}") . "</td>\t\t\t\t\t\t\n\t\t\t</tr>\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t<tr>\n\t\t\t<td colspan=4 align='right'><hr>" . button("{apply}", "listenport{$t}()", 16) . "</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t</div>\n\t\t<script>\n\t\t\tfunction CheckSSLPort{$t}(){\n\t\t\t\tvar SSL='{$SSL}';\n\t\t\t\tif(SSL==0){\n\t\t\t\t\tdocument.getElementById('ssl_port-{$t}').disabled=true;\n\t\t\t\t\tdocument.getElementById('certificate-{$t}').disabled=true;\n\t\t\t\t\tdocument.getElementById('ssl_port-{$t}').value=0;\n\t\t\t\t}\t\n\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfunction lock(){\n\t\t\t\tdocument.getElementById('listen_port-{$t}').disabled=true;\n\t\t\t\tdocument.getElementById('ssl_port-{$t}').disabled=true;\n\t\t\t}\n\t\t\t\n\t\t\t{$lock}\n\t\t\t\n\t\tvar x_listenport{$t}= function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>3){alert(results);}\n\t\t\tdocument.getElementById('animate-{$t}').innerHTML='';\n\t\t\tLoadjs('squid.restart.php?ApplyConfToo=yes&ask=yes');\n\t\t\t\n\t\t}\n\t\t\n\t\tfunction listenport{$t}(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('listenport',document.getElementById('listen_port-{$t}').value);\n\t\t\tXHR.appendData('second_listen_port',document.getElementById('second_listen_port-{$t}').value);\n\t\t\tXHR.appendData('icp_port',document.getElementById('icp_port-{$t}').value);\n\t\t\tXHR.appendData('htcp_port',document.getElementById('htcp_port-{$t}').value);\n\t\t\tXHR.appendData('CNTLMPort',document.getElementById('CNTLMPort-{$t}').value);\n\t\t\tXHR.appendData('smartphones_port',document.getElementById('smartphones_port-{$t}').value);\n\t\t\t\n\t\t\t\n\t\t\tif( document.getElementById('EnableTCPOptimize-{$t}').checked){\n\t\t\t\tXHR.appendData('EnableTCPOptimize',1);\n\t\t\t}else{\n\t\t\t\tXHR.appendData('EnableTCPOptimize',0);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tif( document.getElementById('DisableSSLStandardPort-{$t}').checked){\n\t\t\t\tXHR.appendData('DisableSSLStandardPort',1);\n\t\t\t}else{\n\t\t\t\tXHR.appendData('DisableSSLStandardPort',0);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tXHR.appendData('ssl_port',document.getElementById('ssl_port-{$t}').value);\n\t\t\tXHR.appendData('certificate_center',document.getElementById('certificate-{$t}').value);\t\n\t\t\tAnimateDiv('animate-{$t}');\t\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_listenport{$t});\t\n\t\t}\t\t\t\t\n\t\t\t\n\t\t</script>\n\t\t";
if ($squid->enable_dansguardian == 1) {
$form = "\n\t\t\n\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t<td class=legend nowrap style='font-size:16px;'>DansGuardian {listen_port}:</td>\n\t\t\t<td><strong style='width:16px'>" . Field_text('listen_port', $squid->listen_port, 'width:95px;;font-size:16px;padding:5px') . "</strong></td>\n\t\t\t</tr>\t\t\n\t\t\t<tr>\n\t\t\t<td class=legend nowrap>SQUID {listen_port}:</td>\n\t\t\t<td><strong style='font-size:16px;'>{$squid->alt_listen_port}</strong></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "listenport()") . "\n\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>";
}
$html = "\n\t\t\t<div class=explain 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');
}
示例5: popup
function popup()
{
$tpl = new templates();
$page = CurrentPageName();
$users = new usersMenus();
$sock = new sockets();
$SquidPerformance = intval($sock->GET_INFO("SquidPerformance"));
if ($SquidPerformance > 2) {
echo $tpl->_ENGINE_parse_body(FATAL_ERROR_SHOW_128("{software_is_disabled_performance}"));
return;
}
$array["index"] = '{status}';
$array["webs"] = '{squid_accel_websites}';
$array["params"] = '{parameters}';
$array["listen_addresses"] = '{listen_addresses}';
if ($users->SQUID_INSTALLED) {
$SquidActHasReverse = $sock->GET_INFO("SquidActHasReverse");
if (!is_numeric($SquidActHasReverse)) {
$SquidActHasReverse = 0;
}
if ($users->SQUID_REVERSE_APPLIANCE) {
$SquidActHasReverse = 1;
}
}
$squid = new squidbee();
if ($squid->isNGnx()) {
$SquidActHasReverse = 1;
}
if ($SquidActHasReverse == 1) {
unset($array["listen_addresses"]);
}
$array["modules"] = '{available_modules}';
if ($users->TOMCAT_INSTALLED) {
$array["tomcat"] = '{APP_TOMCAT}';
}
$array["groupwares"] = '{groupwares}';
$array["WebCopy"] = 'WebCopy';
$fontsize = "style='font-size:18px'";
if (isset($_GET["force-groupware"])) {
unset($array["index"]);
unset($array["params"]);
unset($array["modules"]);
unset($array["pure-ftpd"]);
unset($array["tomcat"]);
$force_groupware = "&force-groupware={$_GET["force-groupware"]}&ForceInstanceZarafaID={$_GET["ForceInstanceZarafaID"]}";
}
while (list($num, $ligne) = each($array)) {
if ($num == "pure-ftpd") {
$html[] = $tpl->_ENGINE_parse_body("<li><a href=\"pureftp.index.php?pure-ftpd-page=yes\" {$fontsize}><span {$fontsize}>{$ligne}</span></a></li>\n");
continue;
}
if ($num == "tomcat") {
$html[] = $tpl->_ENGINE_parse_body("<li><a href=\"tomcat.php\" {$fontsize}><span {$fontsize}>{$ligne}</span></a></li>\n");
continue;
}
if ($num == "groupwares") {
$html[] = $tpl->_ENGINE_parse_body("<li><a href=\"freewebs.install.php?full-expand=yes\" {$fontsize}><span {$fontsize}>{$ligne}</span></a></li>\n");
continue;
}
if ($num == "WebCopy") {
$html[] = $tpl->_ENGINE_parse_body("<li><a href=\"freewebs.HTTrack.php\" {$fontsize}><span {$fontsize}>{$ligne}</span></a></li>\n");
continue;
}
if ($num == "listen_addresses") {
$html[] = $tpl->_ENGINE_parse_body("<li><a href=\"freewebs.addresses.php?t={$t}{$force_groupware}\" {$fontsize}><span {$fontsize}>{$ligne}</span></a></li>\n");
continue;
}
$html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes{$force_groupware}&tabzarafa={$_GET["tabzarafa"]}\" {$fontsize}><span {$fontsize}>{$ligne}</span></a></li>\n");
}
echo build_artica_tabs($html, "main_config_freeweb") . "<script>LeftDesign('web-white-256-opac20.png');</script>";
}
示例6: events_search_defaults
function events_search_defaults($return=false){
//Loadjs('squid.popups.php?script=listen_port');
$squid=new squidbee();
$users=new usersMenus();
$sock=new sockets();
$tpl=new templates();
if(!is_numeric($squid->second_listen_port)){$squid->second_listen_port=0;}
if(!is_numeric($squid->ssl_port)){$squid->ssl_port=0;}
if($squid->isNGnx()){$users->SQUID_REVERSE_APPLIANCE=false;}
$SquidBinIpaddr=$sock->GET_INFO("SquidBinIpaddr");
$transparent=null;
if($squid->hasProxyTransparent==1){
$transparent="{transparent}";
}
$sock=new sockets();
$EnableCNTLM=$sock->GET_INFO("EnableCNTLM");
$CNTLMPort=$sock->GET_INFO("CnTLMPORT");
$DisableSSLStandardPort=$sock->GET_INFO("DisableSSLStandardPort");
if(!is_numeric($DisableSSLStandardPort)){$DisableSSLStandardPort=1;}
if(!is_numeric($EnableCNTLM)){$EnableCNTLM=0;}
if(!is_numeric($CNTLMPort)){$CNTLMPort=3155;}
if($SquidBinIpaddr==null){$SquidBinIpaddr="0.0.0.0";}
$SquidAsMasterPeerPort=intval($sock->GET_INFO("SquidAsMasterPeerPort"));
$SquidAsMasterPeerIPAddr=$sock->GET_INFO("SquidAsMasterPeerIPAddr");
if($SquidAsMasterPeerIPAddr==null){$SquidAsMasterPeerIPAddr="0.0.0.0";}
$icon="folder-network-48.png";
$check="check-48.png"; //check-48-grey.png
$delete="delete-48-grey.png";
$color="black";
$explainStyle="font-size:13px";
$data = array();
$data['page'] = 1;
$data['total'] = 5;
$data['rows'] = array();
$listen_port=$tpl->_ENGINE_parse_body("<strong>{main_port}</strong> $transparent {CnTLMPORT_explain}</strong>");
$second_port=$tpl->_ENGINE_parse_body("<strong>{second_port}</strong><br>{squid_second_port_explain}");
$smartphones_port=$tpl->_ENGINE_parse_body("<strong>{smartphones_port}</strong><br>{smartphones_port_explain}");
$cntlm_port=$tpl->_ENGINE_parse_body("<strong>{cntlm_port}</strong><br>{CnTLMPORT_explain2}");
$ssl_port=$tpl->_ENGINE_parse_body("<strong>{ssl_port}</strong> $transparent<br>{squid_ssl_port_explain}");
$parent_port=$tpl->_ENGINE_parse_body("<strong>{parent_port}</strong><br>{parent_port_explain}");
$smartphones_port=wordwrap($smartphones_port,130,"<br>");
$second_port=wordwrap($second_port,130,"<br>");
$cntlm_port=wordwrap($cntlm_port,130,"<br>");
$ssl_port=wordwrap($ssl_port,130,"<br>");
$EditJs="<a href=\"javascript:blur();\"
OnClick=\"javascript:Loadjs('squid.popups.php?script=listen_port');\"
style='font-size:30px;font-weight:normal;color:$color;text-decoration:underline'>";
$SpanJs="<a href=\"javascript:blur();\" style='font-size:30px;font-weight:normal;color:$color;'>";
$color="black";
$icon="folder-network-48.png";
$check="check-48.png"; //check-48-grey.png
$data['rows'][] = array(
'id' => "001",
'cell' => array(
"<span style='font-size:30px;font-weight:normal;color:$color'><img src='img/$icon'></span>",
"$EditJs$SquidBinIpaddr</a> ",
"$EditJs$squid->listen_port</a> <div style='font-size:14px'>$listen_port</div>",
"<span style='font-size:30px;font-weight:normal;color:$color'><img src='img/$check'></span>",
"<span style='font-size:30px;font-weight:normal;color:$color'><img src='img/$delete'></span>",)
);
if($squid->second_listen_port==0){$color="#A0A0A0";$check="check-48-grey.png";$icon="folder-network-48-grey.png";}
$EditJs="<a href=\"javascript:blur();\"
OnClick=\"javascript:Loadjs('squid.popups.php?script=listen_port');\"
style='font-size:30px;font-weight:normal;color:$color;text-decoration:underline'>";
$data['rows'][] = array(
'id' => "0002",
'cell' => array(
"<span style='font-size:30px;font-weight:normal;color:$color'><img src='img/$icon'></span>",
"$EditJs$SquidBinIpaddr</a> ",
"$EditJs$squid->second_listen_port</a> <div style='$explainStyle'><span style='color:$color'>$second_port</span></div>",
"<span style='font-size:30px;font-weight:normal;color:$color'><img src='img/$check'></span>",
"<span style='font-size:30px;font-weight:normal;color:$color'><img src='img/$delete'></span>",)
);
$color="black";
$icon="folder-network-48.png";
$check="check-48.png"; //check-48-grey.png
$EnableCNTLM=intval($sock->GET_INFO("EnableCNTLM"));
if($EnableCNTLM==0){$color="#A0A0A0";$check="check-48-grey.png";$icon="folder-network-48-grey.png";}
$EditJs="<a href=\"javascript:blur();\"
OnClick=\"javascript:Loadjs('squid.popups.php?script=listen_port');\"
style='font-size:30px;font-weight:normal;color:$color;text-decoration:underline'>";
$data['rows'][] = array(
'id' => "0003",
//.........这里部分代码省略.........
示例7: dansguardian_status
function dansguardian_status($asroot = false)
{
$page = CurrentPageName();
$users = new usersMenus();
$tpl = new templates();
$q = new mysql_squid_builder();
$categories = $q->LIST_TABLES_CATEGORIES();
$sock = new sockets();
$squid = new squidbee();
$SquidGuardIPWeb = trim($sock->GET_INFO("SquidGuardIPWeb"));
$SquidGuardServerName = $sock->GET_INFO("SquidGuardServerName");
$SquidDisableAllFilters = $sock->GET_INFO("SquidDisableAllFilters");
$SquideCapAVEnabled = $sock->GET_INFO("SquideCapAVEnabled");
$kavicapserverEnabled = $sock->GET_INFO("kavicapserverEnabled");
$EnableSquidRemoteMySQL = $sock->GET_INFO("EnableSquidRemoteMySQL");
if (!is_numeric($EnableSquidRemoteMySQL)) {
$EnableSquidRemoteMySQL = 0;
}
$EnableSplashScreen = $sock->GET_INFO("EnableArticaHotSpot");
$PdnsHotSpot = $sock->GET_INFO("EnableSplashScreen");
$EnableMalwarePatrol = $sock->GET_INFO("EnableMalwarePatrol");
$AsSquidLoadBalancer = $sock->GET_INFO("AsSquidLoadBalancer");
$SquidActHasReverse = $sock->GET_INFO("SquidActHasReverse");
if ($squid->isNGnx()) {
$SquidActHasReverse = 0;
}
$UfdbEnabledCentral = $sock->GET_INFO('UfdbEnabledCentral');
$AntivirusEnabledCentral = $sock->GET_INFO('AntivirusEnabledCentral');
$EnableKerbAuthCentral = $sock->GET_INFO('EnableKerbAuthCentral');
$EnableUfdbGuard = intval($sock->EnableUfdbGuard());
$DnsFilterCentral = $sock->GET_INFO('DnsFilterCentral');
$SquidBubbleMode = $sock->GET_INFO('SquidBubbleMode');
$EnableCNTLM = $sock->GET_INFO("EnableCNTLM");
$EnableRDPProxy = $sock->GET_INFO("EnableRDPProxy");
$EnableLocalDNSMASQ = $sock->GET_INFO("EnableLocalDNSMASQ");
$WizardStatsApplianceDisconnected = intval($sock->GET_INFO("WizardStatsApplianceDisconnected"));
$SquidNoAccessLogs = intval($sock->GET_INFO("SquidNoAccessLogs"));
$EnableFTPProxy = $sock->GET_INFO('EnableFTPProxy');
$MonitConfig = unserialize(base64_decode($sock->GET_INFO("SquidWatchdogMonitConfig")));
$Watchdog = $MonitConfig["watchdog"];
$UnlockWebStats = $sock->GET_INFO("UnlockWebStats");
if (!is_numeric($UnlockWebStats)) {
$UnlockWebStats = 0;
}
if ($UnlockWebStats == 1) {
$EnableRemoteStatisticsAppliance = 0;
}
$EnableHaarp = $sock->GET_INFO("EnableHaarp");
if (!is_numeric($EnableHaarp)) {
$EnableHaarp = 0;
}
// APP_HAARP $EnableHaarp
if (!is_numeric($EnableRDPProxy)) {
$EnableRDPProxy = 0;
}
if (!is_numeric($EnableFTPProxy)) {
$EnableFTPProxy = 0;
}
$PDSNInUfdb = $sock->GET_INFO("PDSNInUfdb");
$EnableKerbAuth = $sock->GET_INFO("EnableKerbAuth");
if (!is_numeric($EnableKerbAuth)) {
$EnableKerbAuth = 0;
}
if (!is_numeric($EnableUfdbGuard)) {
$EnableUfdbGuard = 0;
}
if (!is_numeric($SquideCapAVEnabled)) {
$SquideCapAVEnabled = 0;
}
if (!is_numeric($EnableMalwarePatrol)) {
$EnableMalwarePatrol = 0;
}
if (!is_numeric($SquidDisableAllFilters)) {
$SquidDisableAllFilters = 0;
}
if (!is_numeric($EnableSplashScreen)) {
$EnableSplashScreen = 0;
}
if (!is_numeric($PdnsHotSpot)) {
$PdnsHotSpot = 0;
}
if (!is_numeric($AsSquidLoadBalancer)) {
$AsSquidLoadBalancer = 0;
}
if (!is_numeric($SquidActHasReverse)) {
$SquidActHasReverse = 0;
}
if (!is_numeric($kavicapserverEnabled)) {
$kavicapserverEnabled = 0;
}
if (!is_numeric($SquidBubbleMode)) {
$SquidBubbleMode = 0;
}
if (!is_numeric($EnableCNTLM)) {
$EnableCNTLM = 0;
}
if (!is_numeric($Watchdog)) {
$Watchdog = 1;
}
$t = 1;
//.........这里部分代码省略.........
示例8: content
function content()
{
$page = CurrentPageName();
$tpl = new templates();
$t = $_GET["t"];
$ff = time();
$users = new usersMenus();
if ($users->SQUID_INSTALLED) {
$sock = new sockets();
$SquidActHasReverse = $sock->GET_INFO("SquidActHasReverse");
if (!is_numeric($SquidActHasReverse)) {
$SquidActHasReverse = 0;
}
if ($SquidActHasReverse == 1) {
$explainSquidActHasReverse = "<div class=text-info>{explain_freewebs_reverse}</div>";
}
}
$squid = new squidbee();
if ($squid->isNGnx()) {
$SquidActHasReverse = 1;
}
$html = "\n\t<div class=BodyContent>\n\t<div style='font-size:14px'>\n\t<a href=\"miniadm.index.php\">{myaccount}</a>\n\t » <a href=\"{$page}\">FreeWebs</a>\n\t</div>\n\t<H1>FreeWebs</H1>\n\t<p>{enable_freeweb_text}</p>{$explainSquidActHasReverse}\n\t</div>\n\t<div id='webstats-middle-{$ff}' class=BodyContent></div>\n\n\t<script>\n\tLoadAjax('webstats-middle-{$ff}','{$page}?tabs=yes');\n\t</script>\n\t";
echo $tpl->_ENGINE_parse_body($html);
}