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 4159 2008-08-31 01:05:54Z Tikitiki $
| * $Id: settings.php 4471 2009-10-01 15:49:04Z Tomm $
|
*/
// Disallow direct access to this file for security reasons
| */
// Disallow direct access to this file for security reasons
|
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));
|
} } }
| } } }
|
Zeile 1397 | Zeile 1401 |
---|
new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowmycode"), /1/, true); new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowsmilies"), /1/, true); new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowimgcode"), /1/, true);
|
new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowmycode"), /1/, true); new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowsmilies"), /1/, true); new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowimgcode"), /1/, true);
|
new Peeker($$(".setting_enablecalendar"), $("row_setting_publiceventcolor"), /1/, true); new Peeker($$(".setting_enablecalendar"), $("row_setting_privateeventcolor"), /1/, true);
| |
new Peeker($$(".setting_smilieinserter"), $("row_setting_smilieinsertertot"), /1/, true); new Peeker($$(".setting_smilieinserter"), $("row_setting_smilieinsertercols"), /1/, true); new Peeker($("setting_mail_handler"), $("row_setting_smtp_host"), /smtp/, false);
| new Peeker($$(".setting_smilieinserter"), $("row_setting_smilieinsertertot"), /1/, true); new Peeker($$(".setting_smilieinserter"), $("row_setting_smilieinsertercols"), /1/, true); new Peeker($("setting_mail_handler"), $("row_setting_smtp_host"), /smtp/, false);
|