本文整理汇总了PHP中FATAL_ERROR_SHOW_128函数的典型用法代码示例。如果您正苦于以下问题:PHP FATAL_ERROR_SHOW_128函数的具体用法?PHP FATAL_ERROR_SHOW_128怎么用?PHP FATAL_ERROR_SHOW_128使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了FATAL_ERROR_SHOW_128函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: popup
function popup()
{
$page = CurrentPageName();
$tpl = new templates();
$sock = new sockets();
$SquidPerformance = intval($sock->GET_INFO("SquidPerformance"));
if ($SquidPerformance > 1) {
echo $tpl->_ENGINE_parse_body(FATAL_ERROR_SHOW_128("{artica_statistics_disabled}"));
return;
}
$q = new mysql_squid_builder();
$q->CheckTables();
$type = $tpl->_ENGINE_parse_body("{type}");
$browsers = $tpl->_ENGINE_parse_body("{browsers}");
$items = $tpl->_ENGINE_parse_body("{items}");
$add = $tpl->_ENGINE_parse_body("{add}");
$delete_group_ask = $tpl->javascript_parse_text("{inputbox delete group}");
$title = $tpl->javascript_parse_text("{browsers}");
$t = time();
$table_width = 630;
$table_height = 450;
$buttons = "buttons : [\n\t{name: '{$new_group}', bclass: 'add', onpress : AddGroup},\n\t\t],\t";
$buttons = null;
$html = $tpl->_ENGINE_parse_body("") . "\n\t<table class='table-{$t}' style='display: none' id='table-{$t}' style='width:99%'></table>\n<script>\n\$(document).ready(function(){\n\$('#table-{$t}').flexigrid({\n\turl: '{$page}?list=yes',\n\tdataType: 'json',\n\tcolModel : [\n\t\t{display: '{$browsers}', name : 'pattern', width : 904, sortable : true, align: 'left'},\n\t\t{display: '{$add}', name : 'pattern', width : 81, sortable : false, align: 'center'},\n\t\t\n\t\t\n\t],\n\n\tsearchitems : [\n\t\t{display: '{$browsers}', name : 'pattern'},\n\t\t],\n\tsortname: 'pattern',\n\tsortorder: 'asc',\n\tusepager: true,\n\ttitle: '<span style=font-size:18px>{$title}</span>',\n\tuseRp: true,\n\trp: 15,\n\tshowTableToggleBtn: false,\n\twidth: '99%',\n\theight: {$table_height},\n\tsingleSelect: true\n\t\n\t}); \n});\n</script>\n\t";
echo $html;
}
示例2: smtp_tls_policy_maps_table
function smtp_tls_policy_maps_table()
{
$t = time();
$page = CurrentPageName();
$tpl = new templates();
$users = new usersMenus();
$sock = new sockets();
$q = new mysql();
if (!$q->TABLE_EXISTS("smtp_tls_policy_maps", "artica_backup")) {
$q = new mysql_builder();
if (!$q->CheckTablePostfixTls()) {
echo FATAL_ERROR_SHOW_128($q->mysql_error_html());
return;
}
}
$t = time();
$hostname = $_GET["hostname"];
$hostname_enc = urlencode($hostname);
$title = $tpl->javascript_parse_text("{tls_table_explain}");
$about = $tpl->javascript_parse_text("{about2}");
$about_text = $tpl->javascript_parse_text("{tls_table_explain}");
$add_tls_smtp_server = $tpl->javascript_parse_text("{add_tls_smtp_server}");
$servername = $tpl->javascript_parse_text("{servername2}");
$option = $tpl->javascript_parse_text("{option}");
$delete = $tpl->javascript_parse_text("{delete}");
$add = "{name: '{$add_tls_smtp_server}', bclass: 'add', onpress : add_tls_smtp_server{$t}},";
$aboutButton = "{name: '{$about}', bclass: 'Help', onpress : About{$t}},";
$buttons = "\n\t\tbuttons : [\n\t\t{$add}\n\t\t{$aboutButton}\n\t\t],";
$explain = $tpl->javascript_parse_text("{postfix_transport_table_explain}");
$html = "\n<table class='POSTFIX_TLS_TABLE' style='display: none' id='POSTFIX_TLS_TABLE' style='width:100%'></table>\n<script>\n\$(document).ready(function(){\n\t\t\$('#POSTFIX_TLS_TABLE').flexigrid({\n\t\turl: '{$page}?list=yes&hostname={$hostname_enc}&t={$t}',\n\t\tdataType: 'json',\n\t\tcolModel : [\n\t\t{display: '{$servername}', name : 'servername', width : 546, sortable : true, align: 'left'},\n\t\t{display: '{$option}', name : 'tls_option', width :309, sortable : true, align: 'left'},\n\t\t{display: '{$delete}', name : 'delete', width : 77, sortable : false, align: 'center'},\n\t\t],\n\t\t{$buttons}\n\t\tsearchitems : [\n\t\t{display: '{$servername}', name : 'servername'},\n\t\t],\n\t\tsortname: 'servername',\n\t\tsortorder: 'asc',\n\t\tusepager: true,\n\t\ttitle: '<span style=font-size:18px>{$title}</span>',\n\t\tuseRp: true,\n\t\trp: 50,\n\t\tshowTableToggleBtn: false,\n\t\twidth: '99%',\n\t\theight: 450,\n\t\tsingleSelect: true,\n\t\trpOptions: [10, 20, 30, 50,100,200]\n\t\n\t});\n});\n\t\nfunction About{$t}(){\n\talert('{$about_text}');\n}\n\t\nfunction add_tls_smtp_server{$t}(){\n\tLoadjs('{$page}?tls-js=yes&ID=0&t={$t}&hostname={$hostname_enc}');\n}\n\t\n</script>\n\t";
echo $html;
}
示例3: tabs
function tabs()
{
$fontsize = 18;
$tpl = new templates();
$page = CurrentPageName();
$users = new usersMenus();
$sock = new sockets();
$SquidUrgency = intval($sock->GET_INFO("SquidUrgency"));
if ($SquidUrgency == 1) {
echo FATAL_ERROR_SHOW_128("<div style='font-size:22px'>{proxy_in_emergency_mode}</div>\n\t\t\t<div style='font-size:18px'>{proxy_in_emergency_mode_explain}</div>\n\t\t\t<div style='text-align:right'><a href=\"javascript:blur();\" OnClick=\"javascript:Loadjs('squid.urgency.php?justbutton=yes');\"\n\t\t\tstyle='text-decoration:underline'>{disable_emergency_mode}</a></div>\t\n\t\t\t");
return;
}
$array["thishour"] = '{this_hour}';
$array["thishour2"] = '{this_hour} ({compressed})';
while (list($num, $ligne) = each($array)) {
if ($num == "thishour") {
$html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.accesslogs.php\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
continue;
}
if ($num == "thishour2") {
$html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.accesslogs.compressed.php\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
continue;
}
if ($num == "thishour3") {
$html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.accesslogs.day.compressed.php\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
continue;
}
$html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}={$time}\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
}
echo build_artica_tabs($html, "main_squid_logs_subtabs");
}
示例4: popup
function popup()
{
$tpl = new templates();
$users = new usersMenus();
$checks = true;
if (!$users->LDAP_BACKLDAP) {
$checks = false;
}
if (!$users->LDAP_BACKMETA) {
$checks = false;
}
if (!$checks) {
FATAL_ERROR_SHOW_128("{ldap_doesnt_support_proxy}");
return;
}
$ID = $_GET["ID"];
$page = CurrentPageName();
$tpl = new templates();
$users = new usersMenus();
$TB_HEIGHT = 300;
$TB_WIDTH = 630;
$t = time();
$new_entry = $tpl->_ENGINE_parse_body("{new_rewrite_rule}");
$attribute = $tpl->_ENGINE_parse_body("{attribute}");
$type = $tpl->_ENGINE_parse_body("{type}");
$match = $tpl->_ENGINE_parse_body("{match}");
$ask_delete_rule = $tpl->javascript_parse_text("{ask_delete_rule}");
$buttons = "\n\tbuttons : [\n\t{name: '{$new_entry}', bclass: 'Add', onpress : NewGItem{$t}},\n\t{name: 'Active Directory', bclass: 'Add', onpress : NewADItems{$t}},\n\t{name: 'OpenLDAP', bclass: 'Add', onpress : NewOLDItems{$t}},\n\t\n\t],\t";
$html = "\n\t<table class='flexRT{$t}' style='display: none' id='flexRT{$t}' style='width:99%'></table>\n<script>\nvar mem{$t}='';\n\$(document).ready(function(){\n\$('#flexRT{$t}').flexigrid({\n\turl: '{$page}?items-rules=yes&t={$t}&ID={$ID}',\n\tdataType: 'json',\n\tcolModel : [\t\n\t\t{display: '{$attribute}', name : 'attribute', width :200, sortable : true, align: 'left'},\n\t\t{display: '{$type}', name : 'type', width :128, sortable : false, align: 'left'},\n\t\t{display: '{$match}', name : 'match', width :200, sortable : true, align: 'left'},\n\t\t{display: ' ', name : 'action', width :31, sortable : false, align: 'center'},\n\n\t],\n\t{$buttons}\n\n\tsearchitems : [\n\t\t{display: '{$attribute}', name : 'attribute'},\n\t\t{display: '{$type}', name : 'type'},\n\t\t{display: '{$match}', name : 'match'},\n\t\t\n\t\t\n\n\t],\n\tsortname: 'attribute',\n\tsortorder: 'asc',\n\tusepager: true,\n\ttitle: '{$title}',\n\tuseRp: true,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: {$TB_WIDTH},\n\theight: {$TB_HEIGHT},\n\tsingleSelect: true,\n\trpOptions: [10, 20, 30, 50,100,200,500]\n\t\n\t}); \n});\n\nfunction ItemHelp{$t}(){\n\ts_PopUpFull('http://www.mail-appliance.org/index.php?cID=305','1024','900');\n}\n\n\n\n\nvar x_NewGItem{$t}=function(obj){\n\tvar tempvalue=obj.responseText;\n if(tempvalue.length>3){alert(tempvalue);}\n \$('#flexRT{$t}').flexReload();\n}\n\nfunction NewADItems{$t}(){\n \t\tvar XHR = new XHRConnection();\n \tXHR.appendData('ADADD',{$ID});\n \tXHR.sendAndLoad('{$page}', 'POST', x_NewGItem{$t});\n\n}\nfunction NewOLDItems{$t}(){\n\t\tvar XHR = new XHRConnection();\n \tXHR.appendData('ADLDAP',{$ID});\n \tXHR.sendAndLoad('{$page}', 'POST', x_NewGItem{$t});\n}\nfunction NewGItem{$t}(){\n\tYahooWin5('550','{$page}?ID=&t={$t}&proxyid={$ID}','{$new_entry}');\n\t\n}\nfunction GItem{$t}(ID,title){\n\tYahooWin5('550','{$page}?ID='+ID+'&t={$t}&proxyid={$ID}',title);\n\t\n}\n\nvar x_DeleteAttribute{$t}=function(obj){\n\tvar tempvalue=obj.responseText;\n if(tempvalue.length>3){alert(tempvalue);return;}\n \$('#row'+mem{$t}).remove();\n}\n\nfunction DeleteAttribute{$t}(ID){\n\t\tmem{$t}=ID;\n \t\tvar XHR = new XHRConnection();\n \tXHR.appendData('del-ID',ID);\n \tXHR.sendAndLoad('{$page}', 'POST',x_DeleteAttribute{$t});\t\t\n\t}\n\n</script>";
echo $html;
//openldap_proxy
}
示例5: tabs
function tabs()
{
$sock = new sockets();
$fontsize = 16;
$tpl = new templates();
$page = CurrentPageName();
$date = date("Ym");
$table = "{$date}_maccess";
$q = new mysql_squid_builder();
if (!$q->TABLE_EXISTS($table)) {
echo FATAL_ERROR_SHOW_128("{no_table_see_support}");
return;
}
$array["popup"] = '{members_this_month}';
while (list($num, $ligne) = each($array)) {
if ($num == "parameters") {
$html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.accesslogs.params.php?parameters=yes\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
continue;
}
if ($num == "schedule") {
$html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.databases.schedules.php?TaskType=54\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
continue;
}
$html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
}
echo build_artica_tabs($html, "squid_users_profiling", 1100) . "<script>LeftDesign('user-stats-256.png');</script>";
}
示例6: popup
function popup()
{
$tpl = new templates();
$page = CurrentPageName();
$squid = new squidbee();
$sock = new sockets();
$users = new usersMenus();
$installed = $sock->getFrameWork("snmpd.php?installed=yes");
if ($installed != "TRUE") {
$button = button("{manual_install}", "Loadjs('system.snmpd.install.php');", 22);
$data = FATAL_ERROR_SHOW_128("{SNMPD_NOT_INSTALLED}<center style='margin:10px'>{$button}</center>");
echo $tpl->_ENGINE_parse_body($data);
return;
}
$EnableSNMPD = $sock->GET_INFO("EnableSNMPD");
if (!is_numeric($EnableSNMPD)) {
$EnableSNMPD = 0;
}
$SNMPDCommunity = $sock->GET_INFO("SNMPDCommunity");
if ($SNMPDCommunity == null) {
$SNMPDCommunity = "public";
}
$t = time();
$SNMPDNetwork = $sock->GET_INFO("SNMPDNetwork");
if ($SNMPDNetwork == null) {
$SNMPDNetwork = "default";
}
$js2 = null;
if ($users->SQUID_INSTALLED) {
$js2 = "LoadAjax('squid-snmp','squid.snmp.php?popup=yes');";
}
$html = "\n\t<div id='{$t}' style='width:100%'>\n\t<table style=width:100%>\n\t<tr>\n\t<td style='width:350px;vertical-align:top'><span id='snmpd-service'></span></td>\n\t<td valign='top'>\n\t<div style='width:98%' class=form>\n\t<table >\n\t\t\t\t<tr>\n\t\t\t<td colspan=2 style='font-size:30px;'><strong>{monitor_your_system} (SNMP)</strong><p> </p></td>\n\t\t\t\n\t\t</tr>\n\t\t<tr>\n\t\t\t\n\t\t\t<td colspan=2>" . Paragraphe_switch_img("{enable_snmp} - {system}", "{enable_snmp_system}", "EnableSNMPD", $EnableSNMPD, null, 1140) . "</td>\n\t\t</tr>\n\t\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:30px'>{snmp_community}:</td>\n\t\t\t<td style='font-size:16px'>" . Field_text("SNMPDCommunity", $SNMPDCommunity, "font-size:30px;width:300px") . " SNMPv2c</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:30px'>{allowed_network}:</td>\n\t\t\t<td style='font-size:16px'>" . Field_text("SNMPDNetwork", $SNMPDNetwork, "font-size:30px;width:300px") . " SNMPv2c</td>\n\t\t</tr>\t\t\t\t\t\n\t\t<tr>\n\t\t<td align='right' colspan=2><hr>" . button("{apply}", "SaveSNMP{$t}()", "40px") . "</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<div id='squid-snmp'></div>\n\t\n\t</td>\n\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);return;}\n\t\tCacheOff();\n\t\tLoadAjaxRound('system-snmp','system.snmp.php');\n\t}\t\n\t\n\tfunction SaveSNMP{$t}(){\n\t\t\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('EnableSNMPD',document.getElementById('EnableSNMPD').value);\n\t\tXHR.appendData('SNMPDCommunity',encodeURIComponent(document.getElementById('SNMPDCommunity').value));\n\t\tXHR.appendData('SNMPDNetwork',document.getElementById('SNMPDNetwork').value);\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveSNMP{$t});\t\n\t\t\n\t}\t\n\t\n\tLoadAjax('snmpd-service','{$page}?snmpd-service=yes');\n\t{$js2}\n\t</script>\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
示例7: tabs
function tabs(){
$tpl=new templates();
$users=new usersMenus();
$page=CurrentPageName();
$squid=new squidbee();
$fontsize=20;
$sock=new sockets();
$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)));
$DisableSSLStandardPort=$sock->GET_INFO("DisableSSLStandardPort");
if(!is_numeric($DisableSSLStandardPort)){$DisableSSLStandardPort=1;}
if($DisableSSLStandardPort==0){$StandardPortSSL=1;}else{$StandardPortSSL=0;}
if(!isset($COMPILATION_PARAMS["enable-ssl"])){
echo FATAL_ERROR_SHOW_128("{error_squid_ssl_not_compiled}");
return;
}
$array["popup"]="{status}";
if($StandardPortSSL==1){
if($squid->SSL_BUMP_WHITE_LIST==1){
$array["ssl-decrypt"]="{decrypted_ssl_websites}";
}else{
$array["ssl-whitelist"]="{whitelist}";
}
}
$t=time();
while (list ($num, $ligne) = each ($array) ){
if($num=="ssl-decrypt"){
$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"squid.ssl.encrypt.php\" style='font-size:$fontsize;font-weight:normal'><span>$ligne</span></a></li>\n");
continue;
}
if($num=="ssl-whitelist"){
$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"squid.sslbump.php?whitelist=yes\" style='font-size:$fontsize;font-weight:normal'><span>$ligne</span></a></li>\n");
continue;
}
$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"$page?$num=$t\" style='font-size:$fontsize;font-weight:normal'><span>$ligne</span></a></li>\n");
}
$html=build_artica_tabs($html,'main_ssl_center_tabs',975)."<script>LeftDesign('ssl-256-white-opac20.png');</script>";
echo $html;
}
示例8: table
function table()
{
$page = CurrentPageName();
$tpl = new templates();
$users = new usersMenus();
$q = new mysql();
$TB_HEIGHT = 500;
$TB_WIDTH = 880;
$domains = $tpl->_ENGINE_parse_body("{domains}");
$new_domain_controller = $tpl->_ENGINE_parse_body("{new_domain_controller}");
$table = "records";
$database = 'powerdns';
$t = time();
if (!$q->TABLE_EXISTS("records", "powerdns")) {
echo $tpl->_ENGINE_parse_body(FATAL_ERROR_SHOW_128("{error_missing_tables_click_to_repair}") . "\n\t\t<hr>\n\t\t<center id='{$t}'>" . button("{repair}", "RepairPDNSTables()", "22px") . "</center>\n\t\t<script>\n\t\t\tvar x_RepairPDNSTables=function (obj) {\n\t\t\t\t\tvar results=obj.responseText;\n\t\t\t\t\tif(results.length>0){alert(results);}\t\n\t\t\t\n\t\t\t\t\tRefreshTab('main_config_pdns');\n\t\t\t\t}\n\t\t\tfunction RepairPDNSTables(){\n\t\t\t\tvar XHR = new XHRConnection();\n\t\t\t\tXHR.appendData('RepairPDNSTables','yes');\n\t\t\t\tAnimateDiv('{$t}');\n\t\t\t XHR.sendAndLoad('{$page}', 'POST',x_RepairPDNSTables);\t\n\t\t\t}\n\t\t\t</script>\t\t\n\t\t\n\t\t");
return;
}
$new_entry = $tpl->_ENGINE_parse_body("{new_allowed_address}");
$t = time();
$address = $tpl->_ENGINE_parse_body("{address}");
$restriction = $tpl->javascript_parse_text("{restriction}");
$addText = $tpl->javascript_parse_text("{pdns_restrict_explain}");
$buttons = "\n\tbuttons : [\n\t{name: '{$new_entry}', bclass: 'Add', onpress : NewPDNSEntry2{$t}},\n\t{name: '{$restriction}', bclass: 'Settings', onpress : Restrictions{$t}},\n\t\n\t],\t";
//$('#flexRT$t').flexReload();
$html = "\n\t<table class='flexRT{$t}' style='display: none' id='flexRT{$t}' style='width:99%'></table>\n<script>\nvar mem{$t}='';\n\$(document).ready(function(){\n\$('#flexRT{$t}').flexigrid({\n\turl: '{$page}?items=yes&t={$t}',\n\tdataType: 'json',\n\tcolModel : [\n\t\t{display: '{$address}', name : 'address', width :765, sortable : true, align: 'left'},\n\t\t{display: ' ', name : 'delete', width :31, sortable : false, align: 'center'},\n\t\t\n\t\t \t\n\n\t],\n\t{$buttons}\n\n\tsearchitems : [\n\t\t{display: '{$address}', name : 'address'},\n\t],\n\tsortname: 'address',\n\tsortorder: 'asc',\n\tusepager: true,\n\ttitle: '',\n\tuseRp: true,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: 845,\n\theight: {$TB_HEIGHT},\n\tsingleSelect: true,\n\trpOptions: [10, 20, 30, 50,100,200,500]\n\t\n\t}); \n});\n\n\tvar x_PdnsZoneDelete{$t}=function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);return;}\t\n\t\t\$('#row'+mem{$t}).remove();\n\t}\n\nfunction PdnsAddressDelete{$t}(addr,id){\n\tmem{$t}=id;\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('delete-item',addr);\n XHR.sendAndLoad('{$page}', 'POST',x_PdnsZoneDelete{$t});\t\n\t}\n\t\nfunction Restrictions{$t}(){\n\tYahooWin2('600','{$page}?restrictions=yes&t={$t}','{$restriction}');\n}\n\t\n\tvar x_SaveDNSEntry{$t}=function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif (results.length>0){alert(results);return;}\n\t\t\$('#flexRT{$t}').flexReload();\n\t}\t\t\n\n\tfunction NewPDNSEntry2{$t}(id){\n\t\tvar addr=prompt('{$addText}');\n\t\tif(addr){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('addr',addr);\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveDNSEntry{$t});\t\t\t\n\t\t\n\t\t}\n\t}\n\n\n\t\n</script>";
echo $html;
}
示例9: popup
function popup()
{
$tpl = new templates();
$page = CurrentPageName();
$sock = new sockets();
$ArticaHotSpotEmergency = intval($sock->GET_INFO("ArticaHotSpotEmergency"));
$ArticaHotSpotPort = $sock->GET_INFO("ArticaHotSpotPort");
$ArticaSSLHotSpotPort = $sock->GET_INFO("ArticaSSLHotSpotPort");
$ArticaSplashHotSpotPort = $sock->GET_INFO("ArticaSplashHotSpotPort");
$ArticaSplashHotSpotPortSSL = $sock->GET_INFO("ArticaSplashHotSpotPortSSL");
if (!is_numeric($ArticaHotSpotPort)) {
$ArticaHotSpotPort = 0;
}
if (!is_numeric($ArticaSplashHotSpotPort)) {
$ArticaSplashHotSpotPort = 16080;
}
if (!is_numeric($ArticaSplashHotSpotPortSSL)) {
$ArticaSplashHotSpotPortSSL = 16443;
}
$HotSpotGatewayAddr = $sock->GET_INFO("HotSpotGatewayAddr");
$HotSpotGatewayAddr_org = $HotSpotGatewayAddr;
$HotSpotGatewayAddrZ = explode(".", $HotSpotGatewayAddr);
$HotSpotGatewayAddrz[3] = rand(1, 254);
$HotSpotGatewayAddr = @implode(".", $HotSpotGatewayAddrz);
$t = time();
$ipaddr = $tpl->javascript_parse_text("{ipaddr}");
$emergency_bt = "<center style='margin:30px'>" . button("{global_urgency_mode}", "Loadjs('squid.hostspot.emergency.enable.progress.php')", 40) . "</center>";
if ($ArticaHotSpotEmergency == 1) {
$emergency_bt = "<center style='margin:30px'>" . button("{disable_emergency_mode}", "Loadjs('squid.hostspot.emergency.disable.progress.php')", 40) . "</center>";
$error = FATAL_ERROR_SHOW_128("{hotspot_in_emergency_mode_explain}");
}
$html = "\n\t<inpuyt type='hidden' id='layer-hotspot-maintenance' value='1'>\n\t{$error}\n\t<div style='width:98%' class=form>\n\t<center style='margin:30px'>" . button("{restart_web_service}", "Loadjs('squid.hostspot.restart.web.progress.php')", 40) . "</center>\n\t{$emergency_bt}\n\t\n\t\t\t\n\t\t\t\n\t</div>\n\t<script>\n\n\t</script>\t\t\t\t\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
示例10: page
function page()
{
$ID = intval($_GET["ID"]);
$tpl = new templates();
$page = CurrentPageName();
$fields_size = 22;
$rv = new squid_reverse();
$q = new mysql_squid_builder();
$sock = new sockets();
$t = time();
$servername = $_GET["servername"];
$ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM reverse_www WHERE servername='{$servername}'"));
$cache_peer_id = $ligne["cache_peer_id"];
$ligne2 = mysql_fetch_array($q->QUERY_SQL("SELECT cacheid FROM reverse_sources WHERE ID='{$cache_peer_id}'"));
if (intval($ligne2) == 0) {
echo FATAL_ERROR_SHOW_128("{nginx_error_no_cache_defined}");
return;
}
$html[] = "<div style='width:98%' class=form>";
$html[] = "<table style='width:100%'>";
$html[] = "<tr><td colspan=2 style='font-size:40px;padding-bottom:20px'>{caching}</td></tr>";
$html[] = Field_checkbox_table("proxy_buffering-{$t}", "{proxy_buffering}", $ligne["proxy_buffering"], $fields_size, "{proxy_buffering_text}");
$html[] = Field_text_table("proxy_cache_min_uses-{$t}", "{proxy_cache_min_uses}", $ligne["proxy_cache_min_uses"], $fields_size, "{proxy_cache_min_uses_text}", 120);
$html[] = Field_text_table("proxy_cache_valid-{$t}", "{proxy_cache_valid} ({minutes})", $ligne["proxy_cache_valid"], $fields_size, "{proxy_cache_valid_text}", 120);
$html[] = Field_ipv4_table("proxy_buffers-{$t}", "{proxy_buffers}", $ligne["proxy_buffers"], $fields_size, "{proxy_buffers_text}", 120);
$html[] = Field_text_table("proxy_buffer_size-{$t}", "{proxy_buffer_size} (k)", $ligne["proxy_buffer_size"], $fields_size, "{proxy_buffer_size_text}", 110);
$html[] = Field_text_table("proxy_temp_file_write_size-{$t}", "{proxy_temp_file_write_size} (k)", $ligne["proxy_temp_file_write_size"], $fields_size, "{proxy_temp_file_write_size_text}", 110);
$html[] = Field_text_table("proxy_max_temp_file_size-{$t}", "{proxy_max_temp_file_size} (MB)", $ligne["proxy_max_temp_file_size"], $fields_size, "{proxy_max_temp_file_size_text}", 110);
$html[] = Field_button_table_autonome("{apply}", "Submit{$t}", 40);
$html[] = "</table>";
$html[] = "</div>\n\t<script>\n\tvar xSubmit{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);}\n\t\tRefreshTab('main_nginx_server');\n\t\t\$('#NGINX_MAIN_TABLE').flexReload();\n\t\t\$('#NGINX_DESTINATION_MAIN_TABLE').flexReload();\n\t\tvar ID={$ID}\n\t\tif(ID==0){ YahooWin2Hide();}\n\t\n\t}\n\t\n\t\n\tfunction Submit{$t}(){\n\t\tvar proxy_buffering=0\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('general-settings','{$servername}');\n\t\tif(document.getElementById('proxy_buffering-{$t}').checked){proxy_buffering=1;}\n\t\tXHR.appendData('proxy_cache_min_uses',document.getElementById('proxy_cache_min_uses-{$t}').value);\n\t\tXHR.appendData('proxy_buffering',proxy_buffering);\n\t\tXHR.appendData('proxy_cache_valid',document.getElementById('proxy_cache_valid-{$t}').value);\n\t\tXHR.appendData('proxy_buffers',document.getElementById('proxy_buffers-{$t}').value);\n\t\tXHR.appendData('proxy_buffer_size',document.getElementById('proxy_buffer_size-{$t}').value);\n\t\t\n\t\tXHR.appendData('proxy_max_temp_file_size',document.getElementById('proxy_max_temp_file_size-{$t}').value);\n\t\tXHR.appendData('proxy_temp_file_write_size',document.getElementById('proxy_temp_file_write_size-{$t}').value);\n\t\t\n\t\tXHR.sendAndLoad('{$page}', 'POST',xSubmit{$t});\n\t}\n\t</script>\n\t\t\n\t";
echo $tpl->_ENGINE_parse_body(@implode("\n", $html));
}
示例11: tabs
function tabs(){
$page=CurrentPageName();
$tpl=new templates();
$users=new usersMenus();
if(!$users->WIFIDOG_INSTALLED){
echo FATAL_ERROR_SHOW_128("{ERROR_SERVICE_NOT_INSTALLED} <hr><center>".button("{manual_update}", "Loadjs('update.upload.php')",32)."</center>");
return;
}
$array["popup"]='{self_register}';
$array["smtp-params"]='{smtp_parameters}';
$fontsize=18;
$t=time();
while (list ($num, $ligne) = each ($array) ){
if($num=="members"){
$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"squid.webauth.members.php?members=yes\" style='font-size:$fontsize'><span>$ligne</span></a></li>\n");
continue;
}
$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"$page?$num=$t$YahooWinUri\" style='font-size:$fontsize'><span>$ligne</span></a></li>\n");
}
echo build_artica_tabs($html, "squid_hotspot_smtp")."<script>LeftDesign('wifi-white-256-opac20.png');</script>";
}
示例12: tabs
function tabs(){
$page=CurrentPageName();
$tpl=new templates();
$users=new usersMenus();
$array["parameters"]='{parameters}';
$usersmenus=new usersMenus();
if(!$usersmenus->SENSORS_INSTALLED){
echo FATAL_ERROR_SHOW_128("{MODULES_NOT_INSTALLED}");
die();
}
$tabsize="style='font-size:24px'";
while (list ($num, $ligne) = each ($array) ){
if($num=="greensql"){
$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"greensql.php\"><span $tabsize>$ligne</span></a></li>\n");
continue;
}
$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"$page?$num=yes\"><span $tabsize>$ligne</span></a></li>\n");
}
echo build_artica_tabs($html, "main_config_sensors",1050)."<script>LeftDesign('temperature-256-white.png');</script>";
}
示例13: tabs
function tabs()
{
$page = CurrentPageName();
$users = new usersMenus();
if (!$users->stunnel4_installed) {
echo FATAL_ERROR_SHOW_128("{stunnel_not_installed}");
die;
}
$tpl = new templates();
$sock = new sockets();
$page = CurrentPageName();
$height = "850px";
$array["status"] = '{status}';
$array["rules"] = '{rules}';
$style = "style='font-size:20px'";
if (isset($_GET["font-size"])) {
$style = "style='font-size:22px'";
}
while (list($num, $ligne) = each($array)) {
if ($num == "rules") {
$html[] = $tpl->_ENGINE_parse_body("<li {$style}>\n\t\t\t\t\t<a href=\\system.network.stunnel4.rules.php\">\n\t\t\t\t\t<span>{$ligne}</span></a></li>\n");
continue;
}
if ($num == "authentication") {
$html[] = "<li {$style}><a href=\"postfix.index.php?popup-auth=yes&hostname={$hostname}\"><span>{$ligne}</span></a></li>\n";
continue;
}
$html[] = "<li {$style}><a href=\"{$page}?{$num}=yes\"><span>{$ligne}</span></a></li>\n";
}
echo build_artica_tabs($html, "main_tabs_stunnel4", 1200) . "<script>LeftDesign('ssl-256-white.png');</script>";
}
示例14: table
function table()
{
$page = CurrentPageName();
$tpl = new templates();
$sock = new sockets();
$SquidPerformance = intval($sock->GET_INFO("SquidPerformance"));
if ($SquidPerformance > 1) {
echo $tpl->_ENGINE_parse_body(FATAL_ERROR_SHOW_128("{artica_statistics_disabled}"));
return;
}
$tt = time();
$t = $_GET["t"];
$ipaddr = $tpl->javascript_parse_text("{ipaddr}");
$hostname = $tpl->_ENGINE_parse_body("{hostname}");
$uid = $tpl->javascript_parse_text("{uid}");
$MAC = $tpl->javascript_parse_text("{MAC}");
$QuerySize = $tpl->javascript_parse_text("{size}");
$hits = $tpl->javascript_parse_text("{hits}");
$maintitle = $tpl->_ENGINE_parse_body("{members}");
//ipaddr | hostname | uid | MAC | account | QuerySize | hits
$buttons = "\n\tbuttons : [\n\t{name: '{$new_text}', bclass: 'add', onpress : NewRule{$tt}},\n\t{name: '{$apply}', bclass: 'Reconf', onpress : Apply{$tt}},\n\t],";
$buttons = null;
$html = "\n<table class='flexRT{$tt}' style='display: none' id='flexRT{$tt}' style='width:100%'></table>\n<script>\nfunction Start{$tt}(){\n\t\$('#flexRT{$tt}').flexigrid({\n\turl: '{$page}?items=yes&t={$tt}',\n\tdataType: 'json',\n\tcolModel : [\n\t{display: '{$ipaddr}', name : 'ipaddr', width : 124, sortable : false, align: 'left'},\n\t{display: '{$hostname}', name : 'hostname', width :330, sortable : true, align: 'left'},\n\t{display: '{$uid}', name : 'uid', width : 226, sortable : true, align: 'left'},\n\t{display: '{$MAC}', name : 'MAC', width : 129, sortable : false, align: 'left'},\n\t{display: '{$QuerySize}', name : 'size', width : 107, sortable : false, align: 'left'},\n\t{display: '{$hits}', name : 'hits', width : 100, sortable : true, align: 'left'},\n\t],\n\t{$buttons}\n\tsearchitems : [\n\t{display: '{$ipaddr}', name : 'ipaddr'},\n\t{display: '{$hostname}', name : 'hostname'},\n\t{display: '{$uid}', name : 'uid'},\n\t{display: '{$MAC}', name : 'MAC'},\n\t\n\t\n\t],\n\tsortname: 'QuerySize',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '<span style=font-size:22px>{$maintitle}</span>',\n\tuseRp: true,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: '99%',\n\theight: 450,\n\tsingleSelect: true,\n\trpOptions: [10, 20, 30, 50,100,200]\n\t\n\t});\n}\n\nStart{$tt}();\n</script>\n";
echo $html;
}
示例15: popup
function popup()
{
$page = CurrentPageName();
$tpl = new templates();
$users = new usersMenus();
if (!$users->CORP_LICENSE) {
$html = FATAL_ERROR_SHOW_128("{this_feature_is_disabled_corp_license}");
echo $tpl->_ENGINE_parse_body($html);
return;
}
$tablename = $tpl->_ENGINE_parse_body("{tablename}");
$filepath = $tpl->javascript_parse_text("{filepath}");
$filesize = $tpl->_ENGINE_parse_body("{filesize}");
$parameters = $tpl->_ENGINE_parse_body("{parameters}");
$t = time();
$tablesize = 830;
$online_help = $tpl->_ENGINE_parse_body("{online_help}");
$bts = array();
$q = new mysql_squid_builder();
$ligne = mysql_fetch_array($q->QUERY_SQL("SELECT COUNT(*) as tcount, SUM(filesize) as tsize FROM webstats_backup", "artica_events"));
$title = $tpl->_ENGINE_parse_body("{backup}:: {$ligne["tcount"]} {containers} (") . FormatBytes($ligne["tsize"] / 1024) . ")";
$bts[] = "{name: '{$parameters}', bclass: 'Settings', onpress : Settings{$t}},";
$bts[] = "{name: '{$parameters}', bclass: 'Help', onpress : help{$t}},";
$buttons = "buttons : [" . @implode("\n", $bts) . " ],";
$html = "\n\t<div style='margin-left:5px'>\n\t<table class='flexRT{$t}' style='display: none' id='flexRT{$t}' style='width:99%'></table>\n\t</div>\n<script>\n\$(document).ready(function(){\n\$('#flexRT{$t}').flexigrid({\n\turl: '{$page}?search=yes',\n\tdataType: 'json',\n\tcolModel : [\n\t\t{display: '{$tablename}', name : 'tablename', width : 235, sortable : true, align: 'left'},\n\t\t{display: '{$filesize}', name : 'filesize', width : 120, sortable : true, align: 'left'},\n\t\t{display: '{$filepath}', name : 'filepath', width : 418, sortable : true, align: 'left'},\n\t],{$buttons}\n\tsearchitems : [\n\t\t{display: '{$tablename}', name : 'tablename'},\n\t\t{display: '{$filesize}', name : 'filesize'},\n\t\t{display: '{$filepath}', name : 'filepath'},\n\t\t],\n\tsortname: 'tablename',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '{$title}',\n\tuseRp: true,\n\trp: 25,\n\tshowTableToggleBtn: false,\n\twidth: {$tablesize},\n\theight: 500,\n\tsingleSelect: true\n\t\n\t}); \n});\n\nfunction Settings{$t}(){\n\tYahooWin2('714','{$page}?Settings=yes','{$parameters}');\n\n}\nfunction help{$t}(){\n\ts_PopUpFull('http://www.proxy-appliance.org/index.php?cID=249','1024','900');\n}\n\tvar x_EmptyTask{$t}=function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);return;}\n\t\t\$('#ufdbguard-events-{$t}').flexReload();\t\t\n\t}\n\nfunction EmptyTask{$t}(){\n\tif(confirm('{$empty}::{$_GET["taskid"]}')){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('EmptyTask','{$_GET["taskid"]}');\n\t\tXHR.appendData('Table','{$_GET["table"]}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_EmptyTask{$t});\t\t\t\n }\n}\n\n</script>\n\n";
echo $tpl->_ENGINE_parse_body($html);
}