本文整理汇总了PHP中boostrap_form::set_checkboxYesNo方法的典型用法代码示例。如果您正苦于以下问题:PHP boostrap_form::set_checkboxYesNo方法的具体用法?PHP boostrap_form::set_checkboxYesNo怎么用?PHP boostrap_form::set_checkboxYesNo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类boostrap_form
的用法示例。
在下文中一共展示了boostrap_form::set_checkboxYesNo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: parameters
function parameters()
{
$page = CurrentPageName();
$users = new usersMenus();
$sock = new sockets();
$ini = new Bs_IniHandler();
$configDisk = trim($sock->GET_INFO('ArticaAutoUpdateConfig'));
$ini->loadString($configDisk);
$AUTOUPDATE = $ini->_params["AUTOUPDATE"];
$EnableNightlyInFrontEnd = $sock->GET_INFO("EnableNightlyInFrontEnd");
$EnableRebootAfterUpgrade = $sock->GET_INFO("EnableRebootAfterUpgrade");
$EnableScheduleUpdates = $sock->GET_INFO("EnableScheduleUpdates");
$EnablePatchUpdates = $sock->GET_INFO("EnablePatchUpdates");
$ArticaScheduleUpdates = $sock->GET_INFO("ArticaScheduleUpdates");
$DisableInstantLDAPBackup = $sock->GET_INFO("DisableInstantLDAPBackup");
if (!is_numeric($DisableInstantLDAPBackup)) {
$DisableInstantLDAPBackup = 0;
}
if (!is_numeric($EnableNightlyInFrontEnd)) {
$EnableNightlyInFrontEnd = 1;
}
if (!is_numeric($EnableScheduleUpdates)) {
$EnableScheduleUpdates = 0;
}
if (!is_numeric($EnableRebootAfterUpgrade)) {
$EnableRebootAfterUpgrade = 0;
}
if (!is_numeric($EnablePatchUpdates)) {
$EnablePatchUpdates = 0;
}
writelogs("EnableScheduleUpdates = {$EnableScheduleUpdates}", __FUNCTION__, __FILE__, __LINE__);
if (trim($AUTOUPDATE["uri"]) == null) {
$AUTOUPDATE["uri"] = "http://articatech.net/auto.update.php";
}
if (trim($AUTOUPDATE["enabled"]) == null) {
$AUTOUPDATE["enabled"] = "yes";
}
if (trim($AUTOUPDATE["autoinstall"]) == null) {
$AUTOUPDATE["autoinstall"] = "yes";
}
if (trim($AUTOUPDATE["CheckEveryMinutes"]) == null) {
$AUTOUPDATE["CheckEveryMinutes"] = "60";
}
if (trim($AUTOUPDATE["front_page_notify"]) == null) {
$AUTOUPDATE["front_page_notify"] = "yes";
}
if (trim($AUTOUPDATE["samba_notify"]) == null) {
$AUTOUPDATE["samba_notify"] = "no";
}
if (trim($AUTOUPDATE["auto_apt"]) == null) {
$AUTOUPDATE["auto_apt"] = "no";
}
$ip = new networking();
$arrcp[null] = "{default}";
while (list($eth, $cip) = each($ip->array_TCP)) {
if ($cip == null) {
continue;
}
$arrcp[$cip] = $cip;
}
$WgetBindIpAddress = $sock->GET_INFO("WgetBindIpAddress");
$RebootAfterArticaUpgrade = $sock->GET_INFO("RebootAfterArticaUpgrade");
if (!is_numeric($RebootAfterArticaUpgrade)) {
$RebootAfterArticaUpgrade = 0;
}
$boot = new boostrap_form();
$boot->set_formtitle("{artica_autoupdate}");
$boot->set_formdescription("{autoupdate_text}");
$boot->set_checkboxYesNo("enabled", "{enable_autoupdate}", $AUTOUPDATE["enabled"]);
$boot->set_checkboxYesNo("autoinstall", "{enable_autoinstall}", $AUTOUPDATE["autoinstall"]);
$boot->set_checkboxYesNo("nightlybuild", "{enable_nightlybuild}", $AUTOUPDATE["nightlybuild"]);
$boot->set_checkboxYesNo("EnableNightlyInFrontEnd", "{EnableNightlyInFrontEnd}", $AUTOUPDATE["EnableNightlyInFrontEnd"]);
$boot->set_checkboxYesNo("front_page_notify", "{front_page_notify}", $AUTOUPDATE["front_page_notify"]);
$boot->set_list("WgetBindIpAddress", "{WgetBindIpAddress}", $arrcp, $WgetBindIpAddress);
$boot->set_field("CheckEveryMinutes", "{CheckEveryMinutes}", $AUTOUPDATE["CheckEveryMinutes"]);
$boot->set_checkbox("RebootAfterArticaUpgrade", "{RebootAfterArticaUpgrade}", $RebootAfterArticaUpgrade);
$boot->set_field("uri", "{uri}", $AUTOUPDATE["uri"]);
$users = new usersMenus();
if (!$users->AsSystemAdministrator) {
$boot->set_form_locked();
}
$boot->set_button("{apply}");
echo $boot->Compile();
}