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


PHP CurrentPageName函数代码示例

本文整理汇总了PHP中CurrentPageName函数的典型用法代码示例。如果您正苦于以下问题:PHP CurrentPageName函数的具体用法?PHP CurrentPageName怎么用?PHP CurrentPageName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: tabs

function tabs()
{
    $uuid = $_GET["uuid"];
    $fontsize = 18;
    $tpl = new templates();
    $page = CurrentPageName();
    $array["RTT"] = "{realtime}";
    $array["WEEK"] = "{this_week}";
    $array["websites"] = "{websites}";
    while (list($num, $ligne) = each($array)) {
        if ($num == "RTT") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.bandwidth.rtt.week.php?uuid={$uuid}&meta=1\" style='font-size:{$fontsize};font-weight:normal'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "WEEK") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.bandwidth.rttw.week.php?uuid={$uuid}&meta=1\" style='font-size:{$fontsize};font-weight:normal'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "websites") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.bandwidth.rweb.week.php?uuid={$uuid}&meta=1\" style='font-size:{$fontsize};font-weight:normal'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes\" style='font-size:{$fontsize};font-weight:normal'><span>{$ligne}</span></a></li>\n");
    }
    $html = build_artica_tabs($html, 'main_bandwidth_meta_tabs');
    echo $html;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:27,代码来源:artica-meta.proxy.bandwidth.php

示例2: Page

function Page()
{
    $ruleid = $_GET["ID"];
    $t = time();
    $page = CurrentPageName();
    $tpl = new templates();
    $this_feature_is_disabled_corp_license = $tpl->javascript_parse_text("{this_feature_is_disabled_corp_license}");
    $CORP = 0;
    if ($users->CORP_LICENSE) {
        $CORP = 1;
    }
    $sock = new wifidog_settings($ruleid);
    $wifidog_templates = new wifidog_templates($ruleid);
    $users = new usersMenus();
    $CORP = 0;
    if ($users->CORP_LICENSE) {
        $CORP = 1;
    }
    $BACK_REPEAT["no-repeat"] = "no-repeat";
    $BACK_REPEAT["repeat-y"] = "repeat-y";
    $BACK_REPEAT["repeat-x"] = "repeat-x";
    $BACK_REPEAT["repeat"] = "repeat";
    $html = "<div style='width:98%' class=form>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td style='width:500px;'>\n\t\t<div style='width:500px;height:500px;border-radius:5px 5px 5px 5px;\n-moz-border-radius:5px;\n\t\t-webkit-border-radius:5px;background-repeat: {$wifidog_templates->BackgroundRepeat};background-position: {$wifidog_templates->BackgroundTOP}% {$wifidog_templates->BackgroundBottom}%;\n\t\tbackground-image:url(\"{$wifidog_templates->BackgroundPicturePath}\");background-color:#{$wifidog_templates->backgroundColor}'>&nbsp;</div>\n\t\t</td>\n\t\t<td valign='top'>\n\t\t\t<table style='width:100%'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend style='font-size:22px'>{picture}:</td>\n\t\t\t\t\t<td style='font-size:16px'>" . button("{upload}", "Loadjs('webauth.rules.picture.upload.php?ruleid={$ruleid}')", 26) . "</td>\n\t\t\t\t</tr>\t\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend style='font-size:22px'>{top_position}:</td>\n\t\t\t\t\t<td style='font-size:22px'>" . Field_text("BackgroundTOP-{$t}", $wifidog_templates->BackgroundTOP, "font-size:22px;width:100px") . "%</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend style='font-size:22px'>{bottom_position}:</td>\n\t\t\t\t\t<td style='font-size:22px'>" . Field_text("BackgroundBottom-{$t}", $wifidog_templates->BackgroundBottom, "font-size:22px;width:100px") . "%</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend style='font-size:22px;text-transform:capitalize'>" . texttooltip("{repeat}", null) . ":</td>\n\t\t\t\t\t<td style='font-size:22px'>" . Field_array_Hash($BACK_REPEAT, "BackgroundRepeat-{$t}", $wifidog_templates->BackgroundRepeat, null, null, 0, "font-size:22px") . "</td>\n\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "Save{$t}()", "42px") . "</td>\n\t\t\t\t\t</tr>\t\t\t\t\t\t\t\n\t\t\t</table>\n\t\t</td>\n\t</tr>\n\t</table>\n\t</td>\n\t</table>\n\t</div>\n\t<script>\n\t\n\tvar xSave{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);}\n\t\t\$('#HOSTPOT_RULES').flexReload();\n\t\tRefreshTab('HOTSPOT_TAB');\n\t}\t\n\t\n\tfunction Save{$t}(){\n\t\tvar CORP={$CORP};\n\t\tif(CORP==0){alert('{$this_feature_is_disabled_corp_license}');return;}\t\t\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('ruleid',{$ruleid});\n\t\tXHR.appendData('BackgroundTOP',encodeURIComponent(document.getElementById('BackgroundTOP-{$t}').value));\n\t\tXHR.appendData('BackgroundBottom',encodeURIComponent(document.getElementById('BackgroundBottom-{$t}').value));\n\t\tXHR.appendData('BackgroundRepeat',encodeURIComponent(document.getElementById('BackgroundRepeat-{$t}').value));\t\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n\t\t\n\t}\n</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:webauth.rules.picture.php

示例3: tabs

function tabs()
{
    $tpl = new templates();
    $array["index"] = '{parameters}';
    $array["rules"] = '{rules}';
    $array["transparent"] = '{transparent_rules}';
    $array["events"] = '{events}';
    //$array["plugins"]='{squid_plugins}';
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql();
    $style = "style='font-size:22px'";
    $t = time();
    while (list($num, $ligne) = each($array)) {
        if ($num == "index") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"ss5.php\" {$style}><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "events") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"ss5.events.php\" {$style}><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "rules") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"ss5.rules.php\" {$style}><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "transparent") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"ss5.transparent.php\" {$style}><span>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes\" {$style}><span>{$ligne}</span></a></li>\n");
    }
    echo build_artica_tabs($html, "ss5_main", 1490);
}
开发者ID:articatech,项目名称:artica,代码行数:34,代码来源:ss5.index.php

示例4: items

function items()
{
    //1.4.010916
    $t = $_GET["t"];
    $tpl = new templates();
    $MyPage = CurrentPageName();
    $q = new mysql();
    $CommonName = $_GET["CommonName"];
    $data = array();
    $data['page'] = 1;
    $data['total'] = 0;
    $data['rows'] = array();
    $title = $tpl->javascript_parse_text("{privkey}");
    $jsEdit = "Loadjs('certificates.center.srca.php?CommonName={$CommonName}&js=yes');";
    $urljs = "<a href=\"javascript:blur();\" OnClick=\"{$jsEdit}\" style='font-size:22px;text-decoration:underline'>";
    $data['rows'][] = array('id' => "srca", 'cell' => array("<img src='img/certificate-32.png'>", "<span style='font-size:22px;'>{$urljs}{$title}</a></span>", "<span style='font-size:22px;'>PRIVATE KEY</a></span>"));
    $title = $tpl->javascript_parse_text("{RSA_PRIVATE_KEY}");
    $jsEdit = "Loadjs('certificates.center.privkey.php?CommonName={$CommonName}&js=yes');";
    $urljs = "<a href=\"javascript:blur();\" OnClick=\"{$jsEdit}\" style='font-size:22px;text-decoration:underline'>";
    $data['rows'][] = array('id' => "privkey", 'cell' => array("<img src='img/certificate-32.png'>", "<span style='font-size:22px;'>{$urljs}{$title}</a></span>", "<span style='font-size:22px;'>RSA PRIVATE KEY</a></span>"));
    $title = $tpl->javascript_parse_text("{certificate}");
    $jsEdit = "Loadjs('certificates.center.crt.php?CommonName={$CommonName}&js=yes');";
    $urljs = "<a href=\"javascript:blur();\" OnClick=\"{$jsEdit}\" style='font-size:22px;text-decoration:underline'>";
    $data['rows'][] = array('id' => "certificate", 'cell' => array("<img src='img/certificate-32.png'>", "<span style='font-size:22px;'>{$urljs}{$title}</a></span>", "<span style='font-size:22px;'>CERTIFICATE</a></span>"));
    $title = $tpl->javascript_parse_text("{CSR}");
    $jsEdit = "Loadjs('certificates.center.csr.php?CommonName={$CommonName}&js=yes');";
    $urljs = "<a href=\"javascript:blur();\" OnClick=\"{$jsEdit}\" style='font-size:22px;text-decoration:underline'>";
    $data['rows'][] = array('id' => "CSR", 'cell' => array("<img src='img/certificate-32.png'>", "<span style='font-size:22px;'>{$urljs}{$title}</a></span>", "<span style='font-size:22px;'>CERTIFICATE REQUEST</a></span>"));
    $data['total'] = count($data['rows']);
    echo json_encode($data);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:31,代码来源:certificates.center.table.php

示例5: 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);
}
开发者ID:articatech,项目名称:artica,代码行数:34,代码来源:squid.webauth.maintenance.php

示例6: popup

function popup()
{
    $sock = new sockets();
    $page = CurrentPageName();
    $CyrusEnableLMTPUnix = $sock->GET_INFO("CyrusEnableLMTPUnix");
    if ($CyrusEnableLMTPUnix == null) {
        $CyrusEnableLMTPUnix = 1;
    }
    $nets["127.0.0.1"] = "127.0.0.1";
    $net = new networking();
    while (list($num, $ipaddr) = each($net->array_TCP)) {
        if ($ipaddr == null) {
            continue;
        }
        $nets[$ipaddr] = $ipaddr;
    }
    $CyrusLMTPListen = trim($sock->GET_INFO("CyrusLMTPListen"));
    if ($CyrusLMTPListen == null) {
        $CyrusLMTPListen = "127.0.0.1:2005";
    }
    if (preg_match("#(.+?):(.+)#", $CyrusLMTPListen, $re)) {
        $ipaddr_listen = $re[1];
        $port = $re[2];
    }
    $lmtp_unix = "/var/spool/postfix/var/run/cyrus/socket/lmtp";
    $html = "\n\t<div id='cyrus_lmtp_div'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td width=1% valign='top'><img src='img/database-connect-settings-90.png'></td>\n\t\t<td valign='top'>\n\t<div style='font-size:13px;padding:5px'>{cyrus_lmtp_howto}</div>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend style='font-size:13px'>{enable_lmtp_unix}:</td>\n\t\t<td>" . Field_checkbox("CyrusEnableLMTPUnix", 1, $CyrusEnableLMTPUnix, "CyrusEnableLMTPUnixSwitch()") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:13px'>{listen_ip}:</td>\n\t\t<td>\n\t\t\t<table style='width:1%'>\n\t\t\t<tr>\n\t\t\t\t<td width=1%>" . Field_array_Hash($nets, "lmtp_ipaddr", $ipaddr_listen, null, null, 0, "font-size:13px;padding:3px") . "</td>\n\t\t\t\t<td width=1%>:</td>\n\t\t\t\t<td width=1%>" . Field_text("lmtp_port", $port, "font-size:13px;padding:3px;width:40px") . "</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>\n\t\t\t" . button("{apply}", "CyrusEnableLMTPUnixSave()") . "</td>\n\t</tr>\n\t</table>\n\t</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<script>\n\t\n\tvar x_CyrusEnableLMTPUnixSave= function (obj) {\n\t\tYahooWinHide();\n\t}\t\n\t\n\tfunction CyrusEnableLMTPUnixSave(){\n\t\tvar XHR = new XHRConnection();\n\t\tif(document.getElementById('CyrusEnableLMTPUnix').checked){XHR.appendData('CyrusEnableLMTPUnix',1);}else{XHR.appendData('CyrusEnableLMTPUnix',0);}\n\t\tXHR.appendData('CyrusLMTPListen',document.getElementById('lmtp_ipaddr').value+':'+document.getElementById('lmtp_port').value);\n\t\tdocument.getElementById('cyrus_lmtp_div').innerHTML='<div style=\"width:100%\"><center style=\"margin:20px;padding:20px\"><img src=\"img/wait_verybig.gif\"></center></div>';\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_CyrusEnableLMTPUnixSave);\n\t}\n\t\t\n\t\tCyrusEnableLMTPUnixSwitch();\n\t</script>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:29,代码来源:cyrus.lmtp.php

示例7: popup

function popup()
{
    $page = CurrentPageName();
    $sock = new sockets();
    $SquidGuardApachePort = $sock->GET_INFO("SquidGuardApachePort");
    if (!is_numeric($SquidGuardApachePort)) {
        $SquidGuardApachePort = 9020;
    }
    $SquidGuardServerName = $sock->GET_INFO("SquidGuardServerName");
    $SquidGuardStorageDir = $sock->GET_INFO("SquidGuardStorageDir");
    $SquidGuardMaxStorageDay = $sock->GET_INFO("SquidGuardMaxStorageDay");
    $StreamCacheYoutubeEnable = $sock->GET_INFO("StreamCacheYoutubeEnable");
    $t = time();
    if ($SquidGuardStorageDir == null) {
        $SquidGuardStorageDir = "/home/artica/cache";
    }
    if (!is_numeric($SquidGuardMaxStorageDay)) {
        $SquidGuardMaxStorageDay = 30;
    }
    if ($SquidGuardServerName == null) {
        $SquidGuardServerName = $_SERVER['SERVER_ADDR'];
    }
    $html = "\n\t<div id='{$t}'>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{enable_youtube_caching}:</td>\n\t\t<td>" . Field_checkbox("StreamCacheYoutubeEnable", 1, $StreamCacheYoutubeEnable, "StreamCacheYoutubeEnableCheck()") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{listen_port}:</td>\n\t\t<td>" . Field_text("SquidGuardApachePort", $SquidGuardApachePort, "font-size:14px;padding:3px;width:60px", null, null, null, false, "") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{servername}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("SquidGuardServerName", $SquidGuardServerName, "font-size:14px;padding:3px;width:180px", null, null, null, false, "") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{storage_directory}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("SquidGuardStorageDir", "{$SquidGuardStorageDir}", "font-size:14px;padding:3px;width:290px", null, null, null, false, "") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{MaxStorageDay}:</td>\n\t\t<td style='font-size:14px'>" . Field_text("SquidGuardMaxStorageDay", $SquidGuardMaxStorageDay, "font-size:14px;padding:3px;width:60px", null, null, null, false, "") . "&nbsp;{days}</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "SaveStreamGet()") . "</td>\n\t</tr>\t\n\t</table>\n\t</div>\n\t<script>\n\t\n\t\tvar x_SaveStreamGet=function(obj){\n\t\t  YahooWin5Hide();\n      \t  Loadjs('{$page}');\n\t\t}\n\t\t\n\tfunction StreamCacheYoutubeEnableCheck(){\n\t\tdocument.getElementById('SquidGuardApachePort').disabled=true;\n\t\tdocument.getElementById('SquidGuardServerName').disabled=true;\n\t\tdocument.getElementById('SquidGuardStorageDir').disabled=true;\n\t\tdocument.getElementById('SquidGuardMaxStorageDay').disabled=true;\n\t\tif(document.getElementById('StreamCacheYoutubeEnable').checked){\n\t\t\tdocument.getElementById('SquidGuardApachePort').disabled=false;\n\t\t\tdocument.getElementById('SquidGuardServerName').disabled=false;\n\t\t\tdocument.getElementById('SquidGuardStorageDir').disabled=false;\n\t\t\tdocument.getElementById('SquidGuardMaxStorageDay').disabled=false;\t\t\n\t\t}\n\t}\n\n\tfunction SaveStreamGet(){\n      var XHR = new XHRConnection();\n     XHR.appendData('SquidGuardApachePort',document.getElementById('SquidGuardApachePort').value);\n     XHR.appendData('SquidGuardServerName',document.getElementById('SquidGuardServerName').value);\n     XHR.appendData('SquidGuardStorageDir',document.getElementById('SquidGuardStorageDir').value);\n     XHR.appendData('SquidGuardMaxStorageDay',document.getElementById('SquidGuardMaxStorageDay').value);\n     AnimateDiv('{$t}');\n     XHR.sendAndLoad('{$page}', 'POST',x_SaveStreamGet);     \t\n\t\n\t}\n\tStreamCacheYoutubeEnableCheck();\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:26,代码来源:streamget-params.php

示例8: tabs

function tabs()
{
    $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)));
    if (!isset($COMPILATION_PARAMS["enable-ident-lookups"])) {
        echo "<div id='squid-identd-upd-error'></div>" . FATAL_ERROR_SHOW_128("{error_squid_ident_not_compiled}<center>\n\t\t\t\t" . button("{update2}", "Loadjs('squid.compilation.status.php');", 32) . "</center>");
        return;
    }
    $page = CurrentPageName();
    $users = new usersMenus();
    $array["status"] = '{status}';
    $array["networks"] = '{networks}';
    $sock = new sockets();
    $tpl = new templates();
    while (list($num, $ligne) = each($array)) {
        if ($num == "networks") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.identd.network.php\" style='font-size:20px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes\" style='font-size:20px'><span>{$ligne}</span></a></li>\n");
        //$html=$html . "<li><a href=\"javascript:LoadAjax('squid_main_config','$page?main=$num&hostname={$_GET["hostname"]}')\" $class>$ligne</a></li>\n";
    }
    echo build_artica_tabs($html, "debug_identd_config", 1024) . "<script>LeftDesign('users-white-256.png');</script>";
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:28,代码来源:squid.identd.php

示例9: certificate_edit_crt

function certificate_edit_crt()
{
    $t = $_GET["t"];
    $CommonName = $_GET["CommonName"];
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $users = new usersMenus();
    $q = new mysql();
    $apply = $tpl->_ENGINE_parse_body("{apply}");
    $tt = time();
    $upload_text = $tpl->_ENGINE_parse_body("{upload_content}");
    $sql = "SELECT `crt`,`SquidCert`,`UsePrivKeyCrt`,`UseGodaddy`  FROM sslcertificates WHERE CommonName='{$CommonName}'";
    $ligne = mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
    $warn_gen_x50 = $tpl->javascript_parse_text("{warn_gen_x509}");
    $CommonNameURL = urlencode($CommonName);
    $button_upload = button("{$upload_text}", "Loadjs('certificates.center.upload.php?certificate-upload-js=yes&CommonName={$CommonNameURL}&type=crt&t={$_GET["t"]}&textid=crt{$tt}&RunAfter=VerifyCertificate{$tt}',true)", 22);
    $button_extract = $tpl->_ENGINE_parse_body(button("{info}", "Loadjs('{$page}?certificate-info-crt-js=yes&CommonName={$CommonNameURL}&type=crt&t={$_GET["t"]}&textid=crt{$tt}',true)", 22));
    $button_save = $tpl->_ENGINE_parse_body(button($apply, "SaveCRT{$tt}()", 22));
    $field = "crt";
    if ($ligne["UsePrivKeyCrt"] == 0) {
        $field = "SquidCert";
        $button_upload = null;
        $button_save = null;
    }
    if ($ligne["UseGodaddy"] == 1) {
        $field = "crt";
    }
    $html = "\n\t\t<div class=explain style='font-size:18px' id='{$tt}-adddis'>{public_key_ssl_explain}</div>\n\t\t<div id='verify-{$tt}'></div>\n\t\t<center>{$button_upload}&nbsp;{$button_extract}</center>\n\t\t<textarea\n\t\tstyle='margin-top:5px;font-family:Courier New;\n\t\tfont-weight:bold;width:100%;height:520px;border:5px solid #8E8E8E;\n\t\toverflow:auto;font-size:16px !important;width:99%;height:390px' id='crt{$tt}'>{$ligne[$field]}</textarea>\n\t\t<center style='margin:10px'>{$button_save}</center>\n\t\t<script>\n\t\tvar x_SaveCRT{$tt}=function (obj) {\n\t\tvar results=obj.responseText;\n\t\tdocument.getElementById('{$tt}-adddis').innerHTML='';\n\t\tif (results.length>3){alert(results);return;}\n\t}\nfunction SaveCRT{$tt}(){\n\tif(!confirm('{$warn_gen_x50}')){return;}\n\tvar XHR = new XHRConnection();\n\tvar pp=encodeURIComponent(document.getElementById('crt{$tt}').value);\n\tXHR.appendData('save-crt',pp);\n\tXHR.appendData('CommonName','{$CommonName}');\n\tAnimateDiv('{$tt}-adddis');\n\tXHR.sendAndLoad('{$page}', 'POST',x_SaveCRT{$tt});\n}\n\t\nfunction VerifyCertificate{$tt}(){\n\tLoadAjax('verify-{$tt}','{$page}?verify-crt=yes&CommonName={$CommonNameURL}',true);\n}\nVerifyCertificate{$tt}();\n</script>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:31,代码来源:certificates.center.crt.php

示例10: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $users = new usersMenus();
    if (!$users->APACHE_MOD_BW) {
        echo FATAL_ERROR_SHOW_128("{the_specified_module_is_not_installed}");
        return;
    }
    $servername_enc = urlencode($_GET["servername"]);
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql();
    $sock = new sockets();
    $free = new freeweb($_GET["servername"]);
    $Params = $free->Params;
    $t = time();
    $ForceBandWidthModule = intval($Params["ModeBw"]["ForceBandWidthModule"]);
    $BandwidthAll = intval($Params["ModeBw"]["BandwidthAll"]);
    if ($BandwidthAll == 0) {
        $BandwidthAll = 1536000;
    }
    $BandwidthAll = $BandwidthAll / 1024;
    $html = "\n\n\t<div style='width:98%' class=form>\n\t" . Paragraphe_switch_img("{apache_Bandwidth_enable}", "{apache_Bandwidth_explain}", "bandlimit", "{$free->bandlimit}", null, 650) . "\n\t<table style='width:100%'>\n\t<td colspan=3 align=right>" . button("{rules}", "Loadjs('freeweb.mod.bw.php?servername={$servername_enc}')", 24) . "</td>\n\t<tr>\n\t\t<td class=legend style='font-size:18px'>{limit_all_requests}:</td>\n\t\t<td>" . Field_checkbox("ForceBandWidthModule", 1, $ForceBandWidthModule) . "</td>\n\t\t<td></td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:18px'>{default_limit}:</td>\n\t\t<td style='font-size:18px'>" . Field_text("BandwidthAll", $BandwidthAll, "font-size:18px;width:90px") . "&nbsp;KB/s</td>\n\t\t<td></td>\n\t</tr>\n\n\t<tr>\n\t\t<td colspan=3 align=right><hr>" . button("{apply}", "Save{$t}()", 24) . "</td>\n\t</tr>\n\t</table>\n\t<p>&nbsp;</p>\n\t</div>\n<script>\n\tvar xSave{$t}=function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>0){alert(results);}\n\t\t\tRefreshTab('main_freeweb_qos');\n\t}\n\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('bandlimit',document.getElementById('bandlimit').value);\n\tif(document.getElementById('ForceBandWidthModule').checked){\n\t\tXHR.appendData('ForceBandWidthModule',1);\n\t}else{\n\t\tXHR.appendData('ForceBandWidthModule',0);\n\t}\n\t\n\t\n\tXHR.appendData('BandwidthAll',document.getElementById('BandwidthAll').value);\n\tXHR.appendData('servername','{$_GET["servername"]}');\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:26,代码来源:freeweb.edit.bw.php

示例11: popup

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

示例12: 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");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:31,代码来源:squid.accesslogs.tabs.php

示例13: json_root

function json_root($path = null)
{
    $tpl = new templates();
    $path = $_POST["dir"];
    $text = $tpl->_ENGINE_parse_body("{APP_PHILESIGHT}");
    echo "<ul class=\"jqueryFileTree\" style=\"display: none;\">";
    $page = CurrentPageName();
    $sock = new sockets();
    if ($path == null) {
        $path = "/";
        $datas = unserialize(base64_decode($sock->getFrameWork("cmd.php?B64-dirdir=" . base64_encode('/'))));
    } else {
        $datas = unserialize(base64_decode($sock->getFrameWork("cmd.php?B64-dirdir=" . base64_encode($path))));
    }
    if (!is_array($datas)) {
        return null;
    }
    echo "<li class=\"file ext_settings\"><a href=\"#\" rel=\"" . htmlentities($_POST['dir']) . "\">" . htmlentities("{$text}: " . basename($_POST['dir'])) . "</a></li>";
    while (list($num, $val) = each($datas)) {
        if (trim($val) == null) {
            continue;
        }
        $newpath = "{$path}/{$val}";
        $newpathsmb = str_replace('//', '/', $newpath);
        echo "<li class=\"directory collapsed\"><a href=\"#\" rel=\"" . htmlentities($_POST['dir'] . '/' . $val) . "/\">" . $val . "</a></li>";
    }
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:27,代码来源:philesight.php

示例14: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $html = "<div style='width:98%' class=form>\n\t\t\t<div style='font-size:18px' class=explain>{squid_articadb_restore_explain}</div>\n\t\t\t\n\t\t\t<center style='margin:30px'>" . button("{upload_backuped_container}", "Loadjs('squid.articadb.restore.upload.php')", 32) . "</center>\n\t</div>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:squid.articadb.restore.php

示例15: js

function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body("{listen_port}");
    echo "\n\t\tYahooWin6(350,'{$page}?popup=yes&nodeid={$_GET["nodeid"]}','{$title}');\n\t\t\n\t\tvar x_listenport= function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>3){alert(results);return;}\n\t\t\tYahooWin6Hide();\n\t\t\tif(document.getElementById('main_squid_quicklinks_tabs{$_GET["nodeid"]}')){RefreshTab('main_squid_quicklinks_tabs{$_GET["nodeid"]}');}\n\t\t}\n\t\t\n\t\tfunction listenport(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('listenport',document.getElementById('listen_port').value);\n\t\t\tXHR.appendData('second_listen_port',document.getElementById('second_listen_port').value);\n\t\t\tXHR.appendData('nodeid',{$_GET["nodeid"]});\t\t\t\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_listenport);\t\n\t\t}\t\t\n\t\t";
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:7,代码来源:nodes.squid.listen.ports.php


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