Zeile 1 | Zeile 1 |
---|
<?php /** * MyBB 1.4
|
<?php /** * MyBB 1.4
|
* Copyright � 2008 MyBB Group, All Rights Reserved
| * Copyright © 2008 MyBB Group, All Rights Reserved
|
* * Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* * Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: settings.php 4249 2008-10-25 05:37:16Z Tikitiki $
| * $Id: settings.php 5379 2011-02-21 11:06:42Z Tomm $
|
*/
// Disallow direct access to this file for security reasons
| */
// Disallow direct access to this file for security reasons
|
Zeile 868 | Zeile 868 |
---|
}
// If the delayedthreadviews setting was changed, enable or disable the tasks for it.
|
}
// If the delayedthreadviews setting was changed, enable or disable the tasks for it.
|
if($mybb->input['upsetting']['delayedthreadviews'] && $mybb->settings['delayedthreadviews'] != $mybb->input['upsetting']['delayedthreadviews'])
| if(isset($mybb->input['upsetting']['delayedthreadviews']) && $mybb->settings['delayedthreadviews'] != $mybb->input['upsetting']['delayedthreadviews'])
|
{ if($mybb->input['upsetting']['delayedthreadviews'] == 0) {
| { if($mybb->input['upsetting']['delayedthreadviews'] == 0) {
|
Zeile 996 | Zeile 996 |
---|
$form = new Form("index.php?module=config/settings&action=change", "post", "change");
|
$form = new Form("index.php?module=config/settings&action=change", "post", "change");
|
echo $form->generate_hidden_field("gid", $group['gid']);
| echo $form->generate_hidden_field("gid", $groupinfo['gid']);
|
} else {
| } else {
|
Zeile 1033 | Zeile 1033 |
---|
{ $group_lang_var = "setting_group_{$groupinfo['name']}"; if($lang->$group_lang_var)
|
{ $group_lang_var = "setting_group_{$groupinfo['name']}"; if($lang->$group_lang_var)
|
{
| {
|
$groupinfo['title'] = $lang->$group_lang_var; }
| $groupinfo['title'] = $lang->$group_lang_var; }
|
Zeile 1058 | Zeile 1058 |
---|
$element_name = "upsetting[{$setting['name']}]"; $element_id = "setting_{$setting['name']}"; if($type[0] == "text" || $type[0] == "")
|
$element_name = "upsetting[{$setting['name']}]"; $element_id = "setting_{$setting['name']}"; if($type[0] == "text" || $type[0] == "")
|
{
| {
|
$setting_code = $form->generate_text_box($element_name, $setting['value'], array('id' => $element_id));
|
$setting_code = $form->generate_text_box($element_name, $setting['value'], array('id' => $element_id));
|
}
| }
|
else if($type[0] == "textarea") { $setting_code = $form->generate_text_area($element_name, $setting['value'], array('id' => $element_id));
|
else if($type[0] == "textarea") { $setting_code = $form->generate_text_area($element_name, $setting['value'], array('id' => $element_id));
|
}
| }
|
else if($type[0] == "yesno") { $setting_code = $form->generate_yes_no_radio($element_name, $setting['value'], true, array('id' => $element_id.'_yes', 'class' => $element_id), array('id' => $element_id.'_no', 'class' => $element_id)); } else if($type[0] == "onoff")
|
else if($type[0] == "yesno") { $setting_code = $form->generate_yes_no_radio($element_name, $setting['value'], true, array('id' => $element_id.'_yes', 'class' => $element_id), array('id' => $element_id.'_no', 'class' => $element_id)); } else if($type[0] == "onoff")
|
{
| {
|
$setting_code = $form->generate_on_off_radio($element_name, $setting['value'], true, array('id' => $element_id.'_on', 'class' => $element_id), array('id' => $element_id.'_off', 'class' => $element_id)); } else if($type[0] == "cpstyle")
| $setting_code = $form->generate_on_off_radio($element_name, $setting['value'], true, array('id' => $element_id.'_on', 'class' => $element_id), array('id' => $element_id.'_off', 'class' => $element_id)); } else if($type[0] == "cpstyle")
|
Zeile 1096 | Zeile 1096 |
---|
{ $languages = $lang->get_languages(1); $setting_code = $form->generate_select_box($element_name, $languages, $setting['value'], array('id' => $element_id));
|
{ $languages = $lang->get_languages(1); $setting_code = $form->generate_select_box($element_name, $languages, $setting['value'], array('id' => $element_id));
|
| } else if($type[0] == "passwordbox") { $setting_code = $form->generate_password_box($element_name, $setting['value'], array('id' => $element_id));
|
} else if($type[0] == "php") {
| } else if($type[0] == "php") {
|
Zeile 1136 | Zeile 1140 |
---|
{ if($setting['value'] == $optionsexp[0]) {
|
{ if($setting['value'] == $optionsexp[0]) {
|
$option_list[$i] = $form->generate_checkbox_input($element_name, $optionsexp[0], htmlspecialchars_uni($optionsexp[1]), array('id' => $element_id.'_'.$i, "checked" => 1, 'class' => $element_id));
| $option_list[$i] = $form->generate_check_box($element_name, $optionsexp[0], htmlspecialchars_uni($optionsexp[1]), array('id' => $element_id.'_'.$i, "checked" => 1, 'class' => $element_id));
|
} else {
|
} else {
|
$option_list[$i] = $form->generate_checkbox_input($element_name, $optionsexp[0], htmlspecialchars_uni($optionsexp[1]), array('id' => $element_id.'_'.$i, 'class' => $element_id));
| $option_list[$i] = $form->generate_check_box($element_name, $optionsexp[0], htmlspecialchars_uni($optionsexp[1]), array('id' => $element_id.'_'.$i, 'class' => $element_id));
|
} } }
| } } }
|