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


PHP boostrap_form::Compile方法代码示例

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


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

示例1: parameters

function parameters()
{
    $users = new usersMenus();
    $sock = new sockets();
    $FailOverArtica = $sock->GET_INFO("FailOverArtica");
    if (!is_numeric($FailOverArtica)) {
        $FailOverArtica = 1;
    }
    $FailOverArticaParams = unserialize(base64_decode($sock->GET_INFO("FailOverArticaParams")));
    if (!is_numeric($FailOverArticaParams["squid-internal-mgr-info"])) {
        $FailOverArticaParams["squid-internal-mgr-info"] = 1;
    }
    if (!is_numeric($FailOverArticaParams["ExternalPageToCheck"])) {
        $FailOverArticaParams["ExternalPageToCheck"] = 1;
    }
    $boot = new boostrap_form();
    $boot->set_checkbox("FailOverArtica", "{FailOverArtica}", $FailOverArtica, array("TOOLTIP" => "{FailOverArtica_explain}", "DISABLEALL" => true));
    $boot->set_spacertitle("{APP_PROXY}");
    $boot->set_checkbox("squid-internal-mgr-info", "{failover_mgrinfo}", $FailOverArticaParams["squid-internal-mgr-info"], array("TOOLTIP" => "{failover_mgrinfo_explain}"));
    $boot->set_checkbox("ExternalPageToCheck", "{failover_ExternalPageToCheck}", $FailOverArticaParams["ExternalPageToCheck"], array("TOOLTIP" => "{failover_ExternalPageToCheck_explain}"));
    if (!$users->CORP_LICENSE) {
        $boot->set_form_locked();
    }
    echo $boot->Compile();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:25,代码来源:miniadm.ucarp.php

示例2: policy_domain

function policy_domain()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $t = time();
    $q = new amavisdb();
    $boot = new boostrap_form();
    $email = $_GET["policy-domain"];
    $sql = "SELECT id,policy_name FROM policy WHERE ou='{$_SESSION["ou"]}' ORDER BY policy_name";
    $results = $q->QUERY_SQL($sql);
    if (!$q->ok) {
        echo "<p class=text-error>{$q->mysql_error}<br>{$sql}<hr></p>";
    }
    $policies[0] = "{default}";
    while ($ligne = mysql_fetch_assoc($results)) {
        $policies[$ligne["id"]] = $ligne["policy_name"];
    }
    $email_id = $q->emailid_from_email("@{$email}");
    $policy_id = $q->policyid_from_mail("@{$email}");
    $boot->set_hidden("policy_domain", $email);
    $boot->set_hidden("email_id", $email_id);
    $boot->set_list("policy_id", "{policy}", $policies, $policy_id);
    $boot->set_button("{apply}");
    $boot->set_CallBack("YahooWin2Hide");
    $boot->set_RefreshSearchs();
    echo $boot->Compile();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:27,代码来源:miniadm.messaging.ou.amavis.domains.php

示例3: bridge_popup

function bridge_popup()
{
    $boot = new boostrap_form();
    $sock = new sockets();
    $users = new usersMenus();
    $ldap = new clladp();
    $ID = $_GET["ID"];
    $title_button = "{add}";
    $nics = unserialize(base64_decode($sock->getFrameWork("cmd.php?list-nics=yes")));
    $IP = new networking();
    while (list($key, $value) = each($nics)) {
        $array = $IP->GetNicInfos($value);
        $NICZ[$value] = $value . " [{$array["IPADDR"]}]";
    }
    $boot->set_list("nic_inbound", "{from}", $NICZ, null);
    $boot->set_list("nic_linked", "{to}", $NICZ, null);
    $boot->set_hidden("ID", $_GET["ID"]);
    if (!$users->AsSystemAdministrator) {
        $boot->set_form_locked();
    }
    if ($ID == 0) {
        $boot->set_CloseYahoo("YahooWin2");
    }
    $boot->set_RefreshSearchs();
    echo $boot->Compile();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:26,代码来源:miniadm.network.bridges.iptables.php

示例4: etchosts_popup

function etchosts_popup()
{
    $boot = new boostrap_form();
    $sock = new sockets();
    $users = new usersMenus();
    $ldap = new clladp();
    $ID = $_GET["ID"];
    $title_button = "{add_new_entry}";
    $boot->set_field("hostname", "{hostname}", $ligne["name"]);
    $boot->set_field("ipaddr", "{tcp_address}", $ligne["ipaddr"], array("IPV4" => true));
    $boot->set_field("alias", "{alias}", null);
    if (!$users->AsSystemAdministrator) {
        $boot->set_form_locked();
    }
    if ($ID == 0) {
        $boot->set_CloseYahoo("YahooWin2");
    }
    $boot->set_button("{add}");
    $boot->set_RefreshSearchs();
    echo $boot->Compile();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:21,代码来源:miniadm.network.etchosts.php

示例5: section_ports

function section_ports()
{
    $boot = new boostrap_form();
    $sock = new sockets();
    $squid = new squidbee();
    $tpl = new templates();
    $sock = new sockets();
    $arrayParams = unserialize(base64_decode($sock->getFrameWork("squid.php?compile-list=yes")));
    $SSL = 1;
    if (!isset($arrayParams["--enable-ssl"])) {
        echo $tpl->_ENGINE_parse_body("<p class=text-error>{SSL_NOT_COMPILED}</p>");
    }
    $KernelSendRedirects = $sock->GET_INFO("KernelSendRedirects");
    $SquidTransparentMixed = $sock->GET_INFO("SquidTransparentMixed");
    $SQUIDEnable = $sock->GET_INFO("SQUIDEnable");
    if (!is_numeric($KernelSendRedirects)) {
        $KernelSendRedirects = 1;
    }
    if (!is_numeric($SquidTransparentMixed)) {
        $SquidTransparentMixed = 0;
    }
    if (!is_numeric($SQUIDEnable)) {
        $SQUIDEnable = 1;
    }
    $sql = "SELECT CommonName FROM sslcertificates ORDER BY CommonName";
    $q = new mysql();
    $sslcertificates[null] = "{select}";
    $results = $q->QUERY_SQL($sql, 'artica_backup');
    while ($ligneZ = mysql_fetch_array($results, MYSQL_ASSOC)) {
        $sslcertificates[$ligneZ["CommonName"]] = $ligneZ["CommonName"];
    }
    $boot->set_formtitle("{behavior}");
    $boot->set_checkbox("SQUIDEnable", "{enable_squid_service}", $SQUIDEnable, array("TOOLIP" => "{enable_squid_service_explain}", "DISABLEALL" => true));
    $boot->set_field("visible_hostname", "{visible_hostname}", $squid->visible_hostname, array("TOOLIP" => "{visible_hostname_text}"));
    $boot->set_checkbox("hasProxyTransparent", "{transparent_mode}", $squid->hasProxyTransparent, array("TOOLIP" => "{transparent_mode_text}", "LINK" => "SquidTransparentMixed,KernelSendRedirects"));
    $boot->set_checkbox("SquidTransparentMixed", "{SquidTransparentMixed}", $SquidTransparentMixed, array("TOOLIP" => "{SquidTransparentMixed_text}"));
    $boot->set_checkbox("KernelSendRedirects", "{KernelSendRedirects}", $KernelSendRedirects, array("TOOLIP" => "{KernelSendRedirects_explain}"));
    $boot->set_spacertitle("{listen_ports}");
    $boot->set_spacerexplain("{listen_port_text}");
    $boot->set_field("listen_port", "HTTP", $squid->listen_port);
    $boot->set_field("second_listen_port", "HTTP (2)", $squid->second_listen_port, array("TOOLTIP" => "{squid_second_port_explain}"));
    $boot->set_field("ssl_port", "HTTPS", $squid->ssl_port, array("TOOLTIP" => "{squid_ssl_port_explain}"));
    $boot->set_list("certificate_center", "{certificate}", $sslcertificates, $squid->certificate_center);
    $boot->set_field("icp_port", "{icp_port}", $squid->ICP_PORT, array("TOOLTIP" => "{icp_port_explain}"));
    $boot->set_field("htcp_port", "{htcp_port}", $squid->HTCP_PORT, array("TOOLTIP" => "{htcp_port_explain}"));
    $boot->set_button("{apply}");
    $users = new usersMenus();
    if (!$users->AsSquidAdministrator) {
        $boot->set_form_locked();
    }
    echo $boot->Compile();
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:52,代码来源:miniadmin.proxy.infrastructure.php

示例6: virtip_popup

function virtip_popup()
{
    $boot = new boostrap_form();
    $sock = new sockets();
    $users = new usersMenus();
    $ldap = new clladp();
    $ID = $_GET["ID"];
    $title_button = "{add}";
    $nics = unserialize(base64_decode($sock->getFrameWork("cmd.php?list-nics=yes")));
    if ($_GET["ID"] > 0) {
        $sql = "SELECT * FROM nics_virtuals WHERE ID='{$ID}'";
        $q = new mysql();
        $ligne = @mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
        $title_button = "{apply}";
    }
    $ous = $ldap->hash_get_ou(true);
    $ous["openvpn_service"] = "{APP_OPENVPN}";
    while (list($num, $val) = each($nics)) {
        $nics_array[$val] = $val;
    }
    $nics_array[null] = "{select}";
    $ous[null] = "{select}";
    $boot->set_list("nic", "{nic}", $nics_array, $ligne["nic"]);
    $boot->set_list("org", "{organization}", $ous, $ligne["org"]);
    $boot->set_field("ipaddr", "{tcp_address}", $ligne["ipaddr"], array("IPV4" => true));
    $boot->set_field("netmask", "{netmask}", $ligne["netmask"], array("IPV4" => true));
    $boot->set_field("cdir", "CDIR", $ligne["cdir"], array("CDIR" => "ipaddr,netmask"));
    $boot->set_field("gateway", "{gateway}", $ligne["gateway"], array("IPV4" => true));
    $boot->set_field("metric", "{metric}", $ligne["metric"]);
    $boot->set_hidden("ID", $_GET["ID"]);
    $boot->set_checkbox("ForceGateway", "{ForceGateway}", $ligne["ForceGateway"]);
    if (!$users->AsSystemAdministrator) {
        $boot->set_form_locked();
    }
    if ($ID == 0) {
        $boot->set_CloseYahoo("YahooWin2");
    }
    $boot->set_RefreshSearchs();
    echo $boot->Compile();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:40,代码来源:miniadm.network.virtips.php

示例7: item_config

function item_config()
{
    $ldap = new clladp();
    $tpl = new templates();
    $id = $_GET["item-id"];
    if (!is_numeric($id)) {
        $id = 0;
    }
    $t = $_GET["t"];
    if (!is_numeric($t)) {
        $t = time();
    }
    $bname = "{add}";
    $page = CurrentPageName();
    $explian = "<div class=text-info style='font-size:14px'>{ADD_DNS_ENTRY_TEXT}</div>";
    $q = new mysql();
    if ($id > 0) {
        $bname = "{apply}";
        $sql = "SELECT * FROM records WHERE id={$id}";
        $ligne = mysql_fetch_array($q->QUERY_SQL($sql, "powerdns"));
        $hostname = $ligne["name"];
        $tr = explode(".", $hostname);
        $computername = $tr[0];
        unset($tr[0]);
        $DnsZoneNameV = @implode(".", $tr);
        $DnsType = $ligne["type"];
        $ComputerIP = $ligne["content"];
        $ttl = $ligne["ttl"];
        $prio = $ligne["prio"];
        $explainthis = $ligne["explainthis"];
        $domain_id = $ligne["domain_id"];
        $ligneZ = mysql_fetch_array($q->QUERY_SQL("SELECT name FROM domains WHERE id={$domain_id}", "powerdns"));
        $DnsZoneName = $ligneZ["name"];
    }
    if (!is_numeric($domain_id)) {
        $domain_id = 0;
    }
    $dnstypeTable = array("" => "{select}", "MX" => "{mail_exchanger}", "A" => "{dnstypea}");
    $DnsType = Field_array_Hash($dnstypeTable, "DnsType", $DnsType, null, null, 0, null);
    $ERROR_VALUE_MISSING_PLEASE_FILL_THE_FORM = $tpl->javascript_parse_text('{ERROR_VALUE_MISSING_PLEASE_FILL_THE_FORM}');
    $addDomain = imgtootltip("plus-24.png", "{new_dnsdomain}", "Loadjs('postfix.transport.table.php?localdomain-js=yes&domain=&t={$t}&callback=RefreshFieldDomain{$t}')");
    if (!$users->AsSystemAdministrator) {
        if (!$users->AsDnsAdministrator) {
            $ldap = new clladp();
            $addDomain = null;
        }
    }
    if ($ttl == null) {
        $ttl = 8600;
    }
    if (!is_numeric($prio)) {
        $prio = 0;
    }
    $boot = new boostrap_form();
    $boot->set_field("ComputerIP", "{computer_ip}", $ComputerIP);
    if ($domain_id > 0) {
        $boot->set_field("DnsZoneName", "{DnsZoneName}", $DnsZoneName, array("DISABLED" => true));
    } else {
        $boot->set_field("DnsZoneName", "{DnsZoneName}", $DnsZoneName);
    }
    $boot->set_field("computername", "{computer_name}", $computername);
    $boot->set_field("TTL", "TTL", $ttl);
    $boot->set_field("PRIO", "PRIO", $prio);
    $boot->set_field("explainthis", "{explain}", $explainthis, array("ENCODE" => true));
    $boot->set_button($bname);
    $boot->set_hidden("id", $id);
    $boot->set_RefreshSearchs();
    $boot->set_formtitle("{record}");
    $form = $boot->Compile();
    echo $tpl->_ENGINE_parse_body($form);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:71,代码来源:miniadm.PowerDNS.entries.php

示例8: group_popup

function group_popup()
{
    $ID = $_GET["ID"];
    $q = new mysql_squid_builder();
    $title = "{new_group}";
    $bt = "{add}";
    $q = new mysql_squid_builder();
    if (!$q->TABLE_EXISTS("nginx_exploits_groups")) {
        $sql = "CREATE TABLE IF NOT EXISTS `nginx_exploits_groups` (\n\t\t\t  `ID` INT NOT NULL AUTO_INCREMENT,\n\t\t\t  `groupname` CHAR(255)  NOT NULL,\n\t\t\t  PRIMARY KEY (`ID`),\n\t\t\t  KEY `groupname` (`groupname`)\n\t\t\t)  ENGINE = MYISAM;";
        if (!$q->QUERY_SQL($sql)) {
            echo $q->mysql_error_html();
        }
    }
    $boot = new boostrap_form();
    $sock = new sockets();
    if ($ID > 0) {
        $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM nginx_exploits_groups WHERE ID='{$ID}'"));
        $bt = "{apply}";
        $title = "{$ligne["groupname"]}";
    }
    $boot->set_hidden("editgroupid", $ID);
    $boot->set_hidden("servername", $_GET["servername"]);
    $boot->set_formtitle($title);
    $boot->set_field("groupname", "{groupname}", $ligne["groupname"]);
    if ($ID == 0) {
        $boot->set_checkbox("addef", "{add_defaults}", 0);
    }
    $boot->set_button($bt);
    if ($ID == 0) {
        $boot->set_CloseYahoo("YahooWin5");
    }
    $boot->set_RefreshSearchs();
    echo $boot->Compile();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:34,代码来源:miniadmin.nginx.exploits.groups.php

示例9: websites_popup_webserver_replace_popup

function websites_popup_webserver_replace_popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $servername = $_GET["servername"];
    $q = new mysql_squid_builder();
    $title = "{new_rule}";
    $bt = "{add}";
    $ID = $_GET["replaceid"];
    $boot = new boostrap_form();
    $sock = new sockets();
    $servername = $_GET["servername"];
    if ($ID > 0) {
        $q = new mysql_squid_builder();
        $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM nginx_replace_www WHERE ID='{$ID}'"));
        $bt = "{apply}";
        $title = "{$ligne["rulename"]}";
        $ligne["stringtosearch"] = stripslashes($ligne["stringtosearch"]);
        $ligne["replaceby"] = stripslashes($ligne["replaceby"]);
        $servername = $ligne["servername"];
    }
    if ($ligne["tokens"] == null) {
        $ligne["tokens"] = "g";
    }
    if ($ligne["rulename"] == null) {
        $ligne["rulename"] = time();
    }
    $boot->set_hidden("replaceid", $ID);
    $boot->set_hidden("servername", $servername);
    $boot->set_formtitle($title);
    $boot->set_field("rulename", "{name}", $ligne["rulename"]);
    $boot->set_field("zorder", "{order}", $ligne["zorder"]);
    $boot->set_spacertitle("{search}");
    $boot->set_textarea("stringtosearch", "{search}", $ligne["stringtosearch"], array("MANDATORY" => true, "ENCODE" => true));
    $boot->set_checkbox("AsRegex", "{regex}", $ligne["AsRegex"], array("TOOLTIP" => "{replace_regex_explain}"));
    $boot->set_spacertitle("{replace}");
    $boot->set_textarea("replaceby", "{replace}", $ligne["replaceby"], array("MANDATORY" => true, "ENCODE" => true));
    $boot->set_field("tokens", "{flags}", $ligne["tokens"], array("MANDATORY" => true));
    $boot->set_button($bt);
    if ($ID == 0) {
        $boot->set_CloseYahoo("YahooWin3");
    }
    $boot->set_RefreshSearchs();
    $boot->set_formdescription("{nginx_subst_explain}");
    echo $boot->Compile();
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:46,代码来源:miniadmin.proxy.reverse.php

示例10: settings

function settings()
{
    $schedules = new system_tasks();
    $q = new mysql_squid_builder();
    $tpl = new templates();
    $buttontext = "{apply}";
    $ID = $_GET["ID"];
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM webfilters_schedules WHERE ID={$ID}"));
    $ligne["TimeDescription"] = utf8_encode($ligne["TimeDescription"]);
    $TimeText = $tpl->_ENGINE_parse_body($schedules->PatternToHuman($ligne["TimeText"]));
    $TimeText = str_replace("<br>", "", $TimeText);
    $explain = $tpl->_ENGINE_parse_body($q->tasks_explain_array[$ligne["TaskType"]]);
    $boot = new boostrap_form();
    $boot->set_hidden("ID", $ID);
    $boot->set_checkbox("enabled", "{enabled}", $ligne["enabled"]);
    $boot->set_field("TimeDescription", "{description}", $ligne["TimeDescription"], array("ENCODE" => TRUE));
    $boot->set_button("{apply}");
    $boot->set_formtitle("{task} {$ligne["ID"]}");
    $runtask = $tpl->_ENGINE_parse_body("<div style='text-align:right'><i class='icon-play'></i> <a href=\"javascript:Blurz();\" OnClick=\"javascript:Loadjs('miniadm.ajax.squid.schedules.php?schedule-run-js=yes&ID={$ID}');\">{run} {task}</div>");
    $boot->set_formdescription("{$explain}<br>{$TimeText}{$runtask}");
    $boot->set_RefreshSearchs();
    echo $boot->Compile();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:23,代码来源:miniadm.ajax.proxy.schedule.php

示例11: remotedomain_add

function remotedomain_add()
{
    $ldap = new clladp();
    $ou = $_SESSION["ou"];
    $btname = "{add}";
    $domain = $_GET["domain"];
    if ($domain != null) {
        $btname = "{apply}";
    }
    if ($ou == null) {
        $ou = $ldap->ou_by_smtp_domain($domain);
    }
    $HashDomains = $ldap->Hash_relay_domains();
    $tools = new DomainsTools();
    $arr = $tools->transport_maps_explode($HashDomains[$domain]);
    $dn = "cn=@{$domain},cn=relay_recipient_maps,ou={$ou},dc=organizations,{$ldap->suffix}";
    $trusted_smtp_domain = 0;
    if ($ldap->ExistsDN($dn)) {
        $trusted_smtp_domain = 1;
    }
    if (!is_numeric($arr[2])) {
        $arr[2] = 25;
    }
    if ($arr[3] == null) {
        $arr[3] = 0;
    } else {
        if ($arr[3] == "no") {
            $arr[3] = 0;
        } else {
            $arr[3] = 1;
        }
    }
    $boot = new boostrap_form();
    $ldap = new clladp();
    if ($domain != null) {
        $boot->set_field("remotedomain", "{domain}", $domain, array("MANDATORY" => true, "DISABLED" => true));
    } else {
        $boot->set_field("remotedomain", "{domain}", $domain, array("MANDATORY" => true));
    }
    $users = new usersMenus();
    if ($users->AsPostfixAdministrator) {
        $ous = $ldap->hash_get_ou(true);
        $boot->set_list("ou", "{ou}", $ous, $ou);
    } else {
        $boot->set_hidden("ou", $ou);
    }
    $boot->set_field("destination", "{destination}", $arr[1], null, array("MANDATORY" => true));
    $boot->set_field("destination_port", "{port}", $arr[2], null, array("MANDATORY" => true));
    $boot->set_checkbox("MX", "{MX_lookups}", $arr[3], array('TOOLTIP' => "{mx_look}"));
    $boot->set_checkbox("trusted_smtp_domain", "{trusted_smtp_domain}", $trusted_smtp_domain, array('TOOLTIP' => "{trusted_smtp_domain_text}"));
    $boot->set_button($btname);
    $boot->set_RefreshSearchs();
    $boot->set_CloseYahoo("YahooWin");
    echo $boot->Compile();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:55,代码来源:miniadm.messaging.domains.php

示例12: replace_group_popup

function replace_group_popup()
{
    $ID = $_GET["ID"];
    $q = new mysql_squid_builder();
    $title = "{new_group}";
    $bt = "{add}";
    $boot = new boostrap_form();
    $sock = new sockets();
    if ($ID > 0) {
        $q = new mysql_squid_builder();
        $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM nginx_replace_group WHERE ID='{$ID}'"));
        $bt = "{apply}";
        $title = "{$ligne["groupname"]}";
    }
    if ($ligne["groupname"] == null) {
        $ligne["groupname"] = "New Group";
    }
    $boot->set_hidden("editgroupid", $ID);
    $boot->set_formtitle($title);
    $boot->set_field("groupname", "{groupname}", $ligne["groupname"]);
    $boot->set_button($bt);
    if ($ID == 0) {
        $boot->set_CloseYahoo("YahooWin");
    }
    $boot->set_RefreshSearchs();
    echo $boot->Compile();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:27,代码来源:miniadmin.nginx.replace.php

示例13: firewall_popup

function firewall_popup()
{
    $ID = $_GET["ID"];
    $q = new mysql_squid_builder();
    $bt = "{apply}";
    $servername = $_GET["servername"];
    if (!$q->TABLE_EXISTS("nginx_exploits_fw")) {
        $sql = "CREATE TABLE IF NOT EXISTS `nginx_exploits_fw` (\n\t\t`servername` CHAR(255) NOT NULL  PRIMARY KEY,\n\t\t`maxaccess` smallint(1)  NOT NULL DEFAULT 0,\n\t\t`sendlogs` smallint(1)  NOT NULL DEFAULT 0,\n\t\tKEY `maxaccess` (`maxaccess`),\n\t\tKEY `sendlogs` (`sendlogs`)\n\t\t)  ENGINE = MYISAM;";
        if (!$q->QUERY_SQL($sql)) {
            echo $q->mysql_error_html();
        }
    }
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM nginx_exploits_fw WHERE servername='{$servername}'"));
    if (!is_numeric($ligne["maxaccess"])) {
        $ligne["maxaccess"] = 0;
    }
    $boot = new boostrap_form();
    $sock = new sockets();
    $boot->set_hidden("servername", $_GET["servername"]);
    $boot->set_hidden("firewall", $_GET["servername"]);
    $boot->set_formtitle("{firewall}");
    $boot->set_formdescription("{NGINX_FW_EXPLAIN}");
    $boot->set_field("maxaccess", "{MAX_EVENTS}", $ligne["maxaccess"], array("TOOLTIP" => "{NGINX_MAXACCESS_FW_EXPLAIN}"));
    $boot->set_checkbox("sendlogs", "{write_logs}", $ligne["sendlogs"]);
    $boot->set_button($bt);
    if ($ID == 0) {
        $boot->set_CloseYahoo("YahooWin4");
    }
    $boot->set_RefreshSearchs();
    echo $boot->Compile();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:31,代码来源:miniadmin.nginx.exploits.php

示例14: NewMacLink_popup

function NewMacLink_popup()
{
    $tpl = new templates();
    $_GET["MAC"] = trim($_GET["MAC"]);
    if ($_GET["MAC"] != null) {
        if (!IsPhysicalAddress($_GET["MAC"])) {
            unset($_GET["MAC"]);
        }
    } else {
        unset($_GET["MAC"]);
    }
    $q = new mysql_squid_builder();
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM webfilters_nodes WHERE MAC='{$_GET["MAC"]}'"));
    $boot = new boostrap_form();
    if ($_GET["MAC"] == null) {
        $boot->set_field("MAC", "{MAC}", null, array("MANDATORY" => true, "BUTTON" => array("JS" => "Loadjs('miniadm.squid.macbrowser.php?field=%f')", "LABEL" => $tpl->_ENGINE_parse_body("{browse}"))));
    } else {
        $boot->set_formtitle("{MAC}:{$_GET["MAC"]}");
        $boot->set_hidden("MAC", $_GET["MAC"]);
        $ips = array();
        $results2 = $q->QUERY_SQL("SELECT ipaddr FROM members_macip WHERE MAC='{$_GET["MAC"]}' ORDER BY ipaddr");
        while ($ligne2 = mysql_fetch_assoc($results2)) {
            $ips[] = $ligne2["ipaddr"];
        }
        if (count($ips) > 0) {
            $boot->set_formdescription(@implode(", ", $ips));
        }
        $linkstats = "<div style='width:100%'>\n\t\t\t\t<a href=\"javascript:blur();\" \n\t\t\t\tOnClick=\"javascript:miniadm.squid.macbrowser.php?visits-day-js={$_GET["MAC"]}');>{statistics}</a></div>";
    }
    $boot->set_hidden("save-mac", 'yes');
    $boot->set_field("hostname", "{hostname}", $ligne["hostname"]);
    $boot->set_field("uid", "{member}", $ligne["uid"], array("MANDATORY" => true));
    $boot->set_button("{add}");
    $boot->set_RefreshSearchs();
    echo $boot->Compile();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:36,代码来源:miniadm.squid.MacToMembers.php

示例15: settings_stats

function settings_stats()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $q = new mysql_squid_builder();
    $users = new usersMenus();
    $sock = new sockets();
    $EnableMacAddressFilter = $sock->GET_INFO("EnableMacAddressFilter");
    $WebstatisticsByMember = $sock->GET_INFO("WebstatisticsByMember");
    $PerMembersYoutubeDetails = $sock->GET_INFO("PerMembersYoutubeDetails");
    if (!is_numeric($PerMembersYoutubeDetails)) {
        $PerMembersYoutubeDetails = 0;
    }
    if (!is_numeric($WebstatisticsByMember)) {
        $WebstatisticsByMember = 0;
    }
    if (!is_numeric($EnableMacAddressFilter)) {
        $EnableMacAddressFilter = 1;
    }
    $t = time();
    $boot = new boostrap_form();
    $boot->set_checkbox("WebstatisticsByMember", "{WebstatisticsByMember}", $WebstatisticsByMember);
    $boot->set_checkbox("PerMembersYoutubeDetails", "{PerMembersYoutubeDetails}", $PerMembersYoutubeDetails);
    $boot->set_checkbox("EnableMacAddressFilter", "{enable_mac_squid_filters}", $EnableMacAddressFilter);
    $boot->set_button("{apply}");
    $form = $boot->Compile();
    $html = "<div class=form style='width:95%'>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td style='vertical-align:top;style='width:250px'><div id='{$t}'></div></td>\n\t\t\t<td style='vertical-align:top;padding:10px;width:100%'>{$form}</td>\n\t\t</tr>\t\n\t</div>\n\t<script>\n\t\tLoadAjax('{$t}','{$page}?db-status=yes',true);\n\t</script>\n\t";
    echo $html;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:29,代码来源:miniadm.webstats-start.php


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