本文整理汇总了PHP中boostrap_form::set_CloseYahoo方法的典型用法代码示例。如果您正苦于以下问题:PHP boostrap_form::set_CloseYahoo方法的具体用法?PHP boostrap_form::set_CloseYahoo怎么用?PHP boostrap_form::set_CloseYahoo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类boostrap_form
的用法示例。
在下文中一共展示了boostrap_form::set_CloseYahoo方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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();
}
示例2: 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();
}
示例3: rule
function rule()
{
$page = CurrentPageName();
$tpl = new templates();
$boot = new boostrap_form();
$t = time();
$q = new mysql();
$users = new usersMenus();
if (!$q->TABLE_EXISTS("mailarchives", "artica_backup")) {
$q->BuildTables();
}
$zmd5 = $_GET["zmd5"];
$btname = "{apply}";
if ($zmd5 == null) {
$btname = "{add}";
$boot->set_CloseYahoo("YahooWin");
}
$sql = "SELECT * FROM mailarchives WHERE zmd5='{$zmd5}'";
$ligne = mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
if (!$q->ok) {
$error = "<p class='text-error'>{$q->mysql_error}.</p>";
}
$directions["in"] = "{inbound}";
$directions["out"] = "{outbound}";
$directions["all"] = "{all}";
$boot->set_checkbox("enable", "{enabled_rule}", $ligne["enable"]);
$boot->set_field("email", "{member}", $ligne["email"], array("MANDATORY" => true, "DISABLED" => true, "BUTTON" => array("JS" => "Loadjs('MembersBrowse.php?field-user=%f&OnlyUsers=1&OnlyGUID=0');", "LABEL" => "{browse}...")));
$boot->set_list("direction", "{direction}", $directions, $ligne["direction"]);
if ($users->AsPostfixAdministrator) {
$ldap = new clladp();
$hash = $ldap->hash_get_ou(true);
$boot->set_list("ou", "{organization}", $hash, $ligne["ou"]);
}
$boot->set_field("next", "{destination}", $ligne["next"], array("MANDATORY" => true, "BUTTON" => array("JS" => "Loadjs('MembersBrowse.php?field-user=%f&OnlyUsers=1&OnlyGUID=0');", "LABEL" => "{browse}...")));
$boot->set_button($btname);
$boot->set_hidden("zmd5", $zmd5);
$params = unserialize(base64_decode($ligne["params"]));
$boot->set_checkbox("USE_SMTP_SRV", "{external_smtp_server}", $params["USE_SMTP_SRV"], array("LINK" => "SMTP_SRV,USE_AUTH"));
$boot->set_field("SMTP_SRV", "{smtp_server}", $params["SMTP_SRV"]);
$boot->set_checkbox("USE_AUTH", "{smtp_authentication}", $params["USE_AUTH"], array("LINK" => "SMTP_USERNAME,SMTP_PASSWORD"));
$boot->set_field("SMTP_USERNAME", "{username}", $params["SMTP_USERNAME"]);
$boot->set_fieldpassword("SMTP_PASSWORD", "{password}", $params["SMTP_PASSWORD"]);
$boot->set_RefreshSearchs();
$form = $boot->Compile();
$title = $tpl->_ENGINE_parse_body("{archive_rule}");
$html = $error . "<H2>{$title}</H2><hr>" . $form;
echo $tpl->_ENGINE_parse_body($html);
}
示例4: 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();
}
示例5: charter_settings
function charter_settings()
{
$ID = $_GET["ID"];
$users = new usersMenus();
$page = CurrentPageName();
$sock = new sockets();
$boot = new boostrap_form();
$users = new usersMenus();
$title = "Acceptable Use Policy";
$btname = "{add}";
if ($ID > 0) {
$q = new mysql_squid_builder();
$ligne = mysql_fetch_array($q->QUERY_SQL("SELECT TextIntro,TextButton,title FROM itcharters WHERE ID='{$ID}'"));
if (!$q->ok) {
echo "<p class=text-error>{$q->mysql_error}</p>";
}
$title = $ligne["title"];
$btname = "{apply}";
}
if ($ligne["TextIntro"] == null) {
$ligne["TextIntro"] = "<p style='font-size:18px'>Please read the IT chart before accessing trough Internet</p>";
}
if ($ligne["TextButton"] == null) {
$ligne["TextButton"] = "I accept the terms and conditions of this agreement";
}
$boot->set_formtitle($title);
$boot->set_hidden("ID", $ID);
$boot->set_field("title", "{page_title}", $title);
$boot->set_textarea("TextIntro", "{introduction_text}", $ligne["TextIntro"], array("ENCODE" => true));
$boot->set_field("TextButton", "{text_button}", $ligne["TextButton"], array("ENCODE" => true));
if (!$users->AsDansGuardianAdministrator) {
$boot->set_form_locked();
}
$boot->set_button($btname);
if ($ID == 0) {
$boot->set_CloseYahoo("YahooWin2");
}
$boot->set_RefreshSearchs();
echo $boot->Compile();
}
示例6: lang_popup
function lang_popup()
{
$htmlT = new htmltools_inc();
$page = CurrentPageName();
$lang = $htmlT->LanguageArray();
$tpl = new templates();
$boot = new boostrap_form();
$boot->set_list("lang", "{language}", $lang, $tpl->language, array("COOKIE" => "artica-language"));
$boot->set_AjaxFinal("window.location.href='{$page}';");
$boot->set_button("{apply}");
$boot->set_CloseYahoo("YahooWin3");
echo $boot->Compile();
}
示例7: cache_popup
function cache_popup()
{
$tpl = new templates();
$page = CurrentPageName();
$servername = $_GET["servername"];
$q = new mysql_squid_builder();
$title = "{new_cache}";
$bt = "{add}";
$ID = $_GET["ID"];
$boot = new boostrap_form();
$sock = new sockets();
$NginxProxyStorePath = $sock->GET_INFO("NginxProxyStorePath");
if ($NginxProxyStorePath == null) {
$NginxProxyStorePath = "/home/nginx";
}
if ($ID > 0) {
$q = new mysql_squid_builder();
$ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM nginx_caches WHERE ID='{$ID}'"));
$bt = "{apply}";
$title = "{$ligne["keys_zone"]}";
}
if ($ligne["keys_zone"] == null) {
$ligne["keys_zone"] = time();
}
if (trim($ligne["directory"]) == null) {
$ligne["directory"] = $NginxProxyStorePath . "/{$ligne["keys_zone"]}";
}
if ($ligne["levels"] == null) {
$ligne["levels"] = "1:2";
}
if (!is_numeric($ligne["keys_zone_size"])) {
$ligne["keys_zone_size"] = 1;
}
if (!is_numeric($ligne["max_size"])) {
$ligne["max_size"] = 2;
}
if (!is_numeric($ligne["inactive"])) {
$ligne["inactive"] = 10;
}
if (!is_numeric($ligne["loader_files"])) {
$ligne["loader_files"] = 100;
}
if (!is_numeric($ligne["loader_sleep"])) {
$ligne["loader_sleep"] = 10;
}
if (!is_numeric($ligne["loader_threshold"])) {
$ligne["loader_threshold"] = 100;
}
$boot->set_hidden("ID", $ID);
$boot->set_formtitle($title);
$boot->set_field("keys_zone", "{name}", $ligne["keys_zone"]);
$boot->set_field("directory", "{directory}", $ligne["directory"], array("BROWSE" => true, "MANDATORY" => true, "ENCODE" => true));
$boot->set_field("levels", "{levels}", $ligne["levels"]);
$boot->set_field("keys_zone_size", "{memory_size} (MB)", $ligne["keys_zone_size"]);
$boot->set_field("max_size", "{max_size} (GB)", $ligne["max_size"]);
$boot->set_field("inactive", "{inactive} ({minutes})", $ligne["inactive"], array("TOOLTIP" => "{nginx_inactive_explain}"));
$boot->set_field("loader_files", "{loader_files}", $ligne["loader_files"]);
$boot->set_field("loader_sleep", "{loader_sleep} {milliseconds}", $ligne["loader_sleep"]);
$boot->set_field("loader_threshold", "{loader_threshold} {milliseconds}", $ligne["loader_threshold"]);
$boot->set_button($bt);
if ($servername == null) {
$boot->set_CloseYahoo("YahooWin");
}
$boot->set_RefreshSearchs();
if (!AdminPrivs()) {
$boot->set_form_locked();
}
echo $boot->Compile();
}
示例8: member_popup
function member_popup()
{
$page = CurrentPageName();
$boot = new boostrap_form();
$tpl = new templates();
$boot->set_field("ipaddr", "{ipaddr}", null, array("IPV4" => true));
$boot->set_field("username", "{username}", null, array("MANDATORY" => True));
$boot->set_fieldpassword("password", "{password}", null, array("MANDATORY" => True));
$boot->set_button("{add}");
$boot->set_RefreshSearchs();
$boot->set_CloseYahoo("YahooWin");
echo $boot->Compile();
}
示例9: 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")));
if ($_GET["ID"] > 0) {
$sql = "SELECT * FROM nics_bridge WHERE ID='{$ID}'";
$q = new mysql();
$ligne = @mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
$title_button = "{apply}";
}
$nics_array[null] = "{select}";
$ous[null] = "{select}";
$boot->set_field("name", "{name}", $ligne["name"]);
$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("broadcast", "{broadcast}", $ligne["broadcast"], array("IPV4" => true));
$boot->set_field("gateway", "{gateway}", $ligne["gateway"], array("IPV4" => true));
$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();
}
示例10: rules_params
function rules_params()
{
$boot = new boostrap_form();
$sock = new sockets();
$users = new usersMenus();
$ldap = new clladp();
$ID = $_GET["rules-params"];
$title_button = "{add}";
$title = "{new_authenticator_rule}";
if ($ID > 0) {
$sql = "SELECT * FROM authenticator_rules WHERE ID='{$ID}'";
$q = new mysql_squid_builder();
$ligne = @mysql_fetch_array($q->QUERY_SQL($sql));
$title_button = "{apply}";
$title = $ligne["rulename"];
}
$boot->set_formtitle($title);
$boot->set_hidden("ruleid", $ID);
$boot->set_field("rulename", "{rulename}", $ligne["rulename"], array("ENCODE" => true));
$boot->set_field("cachetime", "{cachetime} ({minutes})", $ligne["cachetime"], array("TOOLTIP" => "{authenticator_cache_time_explain}"));
$boot->set_textarea("explain", "{explain}", $ligne["explain"], array("ENCODE" => true));
$boot->set_button($title_button);
$AdminPrivs = AdminPrivs();
if (!$AdminPrivs) {
$boot->set_form_locked();
}
if ($ID == 0) {
$boot->set_CloseYahoo("YahooWin2");
}
$boot->set_RefreshSearchs();
echo $boot->Compile();
}
示例11: page_popup
function page_popup()
{
$boot = new boostrap_form();
$sock = new sockets();
$users = new usersMenus();
$ldap = new clladp();
$ID = $_GET["ID"];
$title_button = "{add}";
$title = "{new_error_page}";
$f = new squid_reverse();
if ($ID > 0) {
$sql = "SELECT * FROM nginx_error_pages WHERE ID='{$ID}'";
$q = new mysql_squid_builder();
$ligne = @mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
if (!$q->ok) {
echo "<p class=text-error>{$q->mysql_error}</p>";
}
$title_button = "{apply}";
$title = $ligne["pagename"] . " »» " . $ligne["error_code"];
}
while (list($key, $value) = each($f->errors_page)) {
$errors_code[$value] = $value;
}
$boot->set_formtitle($title);
$boot->set_hidden("page-save", "yes");
$boot->set_hidden("ID", $ID);
$boot->set_field("pagename", "{pagename}", $ligne["pagename"], array("ENCODE" => true));
$boot->set_list("error_code", "{error_code}", $errors_code, $ligne["error_code"]);
$boot->set_field("title", "{page_title}", $ligne["title"], array("ENCODE" => true));
$boot->set_button($title_button);
$AdminPrivs = AdminPrivs();
if (!$AdminPrivs) {
$boot->set_form_locked();
}
if ($ID == 0) {
$boot->set_CloseYahoo("YahooWin3");
}
$boot->set_RefreshSearchs();
echo $boot->Compile();
}
示例12: wizard_certificate_1
function wizard_certificate_1()
{
$page = CurrentPageName();
$tpl = new templates();
$sock = new sockets();
$hostname = $sock->GET_INFO("myhostname");
if ($hostname == null) {
$hostname = $sock->getFrameWork("system.php?hostname-g=yes");
$sock->SET_INFO($hostname, "myhostname");
}
$title = $tpl->_ENGINE_parse_body("{new_certificate}");
$html = "\n\t<div class=text-info style='font-size:18px'>{wizard_certificate_1}<br><i>{CSR_MULTIPLE_EXPLAIN}</i></div>";
$ENC[1024] = 1024;
$ENC[2048] = 2048;
$ENC[4096] = 4096;
$boot = new boostrap_form();
$boot->set_field("wizard-certificate-commonname", "{CommonName}", $hostname);
$boot->set_list("wizard-certificate-levelenc", "{level_encryption}", $ENC, 1024);
$boot->set_fieldpassword("wizard-certificate-password", "{password}", "secret");
$boot->set_formdescription("{wizard_certificate_1}");
$boot->set_button("{add}");
$boot->set_RefreshSearchs();
$boot->set_RefreshFlex("flexRT{$_GET["t"]}");
$boot->set_CloseYahoo("YahooWin6");
echo $boot->Compile();
}
示例13: tasks_popup
function tasks_popup()
{
$page = CurrentPageName();
$tpl = new templates();
$users = new usersMenus();
$tasks = new system_tasks();
$PatternToHuman = null;
$boot = new boostrap_form();
$q = new mysql();
$no_schedule_set = $tpl->javascript_parse_text("{no_schedule_set}");
$buttontext = "{add}";
$ID = $_GET["ID"];
$t = $_GET["t"];
$title = "{new_schedule}";
$task_type = $tasks->tasks_array;
if ($ID > 0) {
$buttontext = "{apply}";
$ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM system_schedules WHERE ID={$ID}", "artica_backup"));
$ligne["TimeDescription"] = utf8_encode($ligne["TimeDescription"]);
$title = $task_type[$ligne["TaskType"]];
$PatternToHuman = "<br>" . $tasks->PatternToHuman($ligne["TimeText"], true);
}
if (!is_numeric($ligne["TaskType"])) {
$ligne["TaskType"] = 0;
}
if (!is_numeric($ID)) {
$ID = 0;
}
if (!$users->KAV4PROXY_INSTALLED) {
unset($task_type[5]);
unset($task_type[12]);
}
if (!$users->UPDATE_UTILITYV2_INSTALLED) {
unset($task_type[13]);
}
$task_type = $tasks->tasks_array;
while (list($TaskType, $content) = each($task_type)) {
$taskz[$TaskType] = "[{$TaskType}] " . $tpl->_ENGINE_parse_body($content);
}
$YahooWinHide = "YahooWin{$_GET["YahooWin"]}";
$boot->set_formtitle($title);
$boot->set_hidden("ID", $ID);
if ($ID == 0) {
if ($_GET["task-section"] > 0) {
$boot->set_hidden("TaskType", $_GET["task-section"]);
$boot->set_formdescription($tasks->tasks_explain_array[$_GET["task-section"]] . $PatternToHuman);
$ligne["TimeDescription"] = $tpl->javascript_parse_text($tasks->tasks_array[$_GET["task-section"]]);
} else {
$boot->set_list("TaskType", "{type}", $taskz, null);
}
$ligne["enabled"] = 1;
} else {
$boot->set_hidden("TaskType", $ligne["TaskType"]);
$boot->set_formdescription($tasks->tasks_explain_array[$ligne["TaskType"]]);
}
$boot->set_checkbox("enabled", "{enabled}", $ligne["enabled"]);
$boot->set_textarea("TimeDescription", "{description}", $ligne["TimeDescription"], array("ENCODE" => true));
$boot->set_field("TimeText", "{schedule}", $ligne["TimeText"], array("SCHEDULE" => true, "MANDATORY" => true, "DISABLED" => true));
if ($ID == 0) {
$boot->set_CloseYahoo($YahooWinHide);
}
//
$boot->set_button($buttontext);
$boot->set_RefreshSearchs();
echo $boot->Compile();
}
示例14: category_settings
function category_settings()
{
$q = new mysql_squid_builder();
$dans = new dansguardian_rules();
$lock = false;
if ($_GET["cat"] != null) {
$lock = true;
$sql = "SELECT category_description,master_category FROM personal_categories WHERE category='{$_GET["cat"]}'";
$ligne = mysql_fetch_array($q->QUERY_SQL($sql));
}
$groups = $dans->LoadBlackListesGroups();
$groups[null] = "{select}";
$boot = new boostrap_form();
if (!$lock) {
$boot->set_field("category-to-add", "{category}", null, array("ENCODE" => true));
$boot->set_button("{add}");
$boot->set_CloseYahoo("YahooWin5");
} else {
$boot->set_formtitle("{$_GET["cat"]}");
$boot->set_hidden("category-to-add", $_GET["cat"]);
$boot->set_button("{apply}");
}
$boot->set_textarea("category_text", "{description}", $ligne["category_description"], array("ENCODE" => true));
$boot->set_list("group", "{group}", $groups, $ligne["master_category"]);
$boot->set_field("CatzByGroupA", "{group} ({add})", null);
$boot->set_RefreshSearchs();
echo $boot->Compile();
}
示例15: parent_params
function parent_params()
{
$tpl = new templates();
$page = CurrentPageName();
$ID = $_GET["parent-params"];
$array_type["parent"] = "parent";
$array_type["sibling"] = "sibling";
$array_type["multicast"] = "multicast";
$btname = "{add}";
$q = new mysql();
if ($ID > 0) {
$sql = "SELECT * FROM squid_parents WHERE ID={$ID}";
$ligne = @mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
$btname = "{apply}";
}
$addoptions = $tpl->_ENGINE_parse_body("{squid_parent_options}");
$add = $tpl->_ENGINE_parse_body("{add}");
$t = time();
if (strlen(trim($ligne["icp_port"])) == 0) {
$ligne["icp_port"] = 0;
}
$options = $tpl->_ENGINE_parse_body("{options}");
$q = new mysql();
$boot = new boostrap_form();
if ($ID == 0) {
$title = "{add_a_parent_proxy}";
$boot->set_CloseYahoo("YahooWin4");
}
if ($ID > 0) {
$button = "{apply}";
$title = $ligne["servername"];
}
if (!is_numeric($ligne["weight"])) {
$ligne["weight"] = 1;
}
if (!is_numeric($ligne["enabled"])) {
$ligne["enabled"] = 1;
}
$boot->set_formtitle($title);
$boot->set_hidden("parent-id", $ID);
$boot->set_field("servername", "{hostname}", $ligne["servername"], array("MANDATORY" => true));
$boot->set_checkbox("enabled", "{enabled}", $ligne["enabled"]);
$boot->set_field("weight", "{order}", $ligne["weight"], array("MANDATORY" => true));
$boot->set_field("server_port", "{listen_port}", $ligne["server_port"]);
$boot->set_field("icp_port", "{icp_port}", $ligne["icp_port"], array("TOOLTIP" => "{icp_port_explain}"));
$boot->set_list("server_type", "{server_type}", $array_type, $ligne["server_type"], array("TOOLTIP" => "{squid_parent_sibling_how_to}"));
$boot->set_button($btname);
$boot->set_RefreshSearchs();
echo $boot->Compile();
}