Vergleich admin/modules/config/settings.php - 1.4.2 - 1.4.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1Zeile 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 4763 2010-02-02 13:15:34Z Tomm $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 868Zeile 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 996Zeile 996
		
$form = new Form("index.php?module=config/settings&amp;action=change", "post", "change");


		
$form = new Form("index.php?module=config/settings&amp;action=change", "post", "change");


		echo $form->generate_hidden_field("gid", $group['gid']);

		echo $form->generate_hidden_field("gid", $groupinfo['gid']);

	}
else
{

	}
else
{

Zeile 1033Zeile 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 1058Zeile 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 1096Zeile 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 1136Zeile 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 1397Zeile 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);