Vergleich admin/modules/config/settings.php - 1.4.1 - 1.4.13

  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 4120 2008-08-16 02:40:05Z 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 43Zeile 43
	flash_message($lang->success_duplicate_settings_deleted, 'success');
admin_redirect("index.php?module=config/settings&action=manage");
}*/

	flash_message($lang->success_duplicate_settings_deleted, 'success');
admin_redirect("index.php?module=config/settings&action=manage");
}*/

// ^^ Code, Please go away. Forever.

// ^^  Code, Please go away. Forever.


// Creating a new setting group
if($mybb->input['action'] == "addgroup")


// Creating a new setting group
if($mybb->input['action'] == "addgroup")

Zeile 231Zeile 231
	$form_container->output_row($lang->description, "", $form->generate_text_area('description', $group_data['description'], array('id' => 'description')), 'description');
$form_container->output_row($lang->display_order, "", $form->generate_text_box('disporder', $group_data['disporder'], array('id' => 'disporder')), 'disporder');
$form_container->output_row($lang->name." <em>*</em>", $lang->group_name_desc, $form->generate_text_box('name', $group_data['name'], array('id' => 'name')), 'name');

	$form_container->output_row($lang->description, "", $form->generate_text_area('description', $group_data['description'], array('id' => 'description')), 'description');
$form_container->output_row($lang->display_order, "", $form->generate_text_box('disporder', $group_data['disporder'], array('id' => 'disporder')), 'disporder');
$form_container->output_row($lang->name." <em>*</em>", $lang->group_name_desc, $form->generate_text_box('name', $group_data['name'], array('id' => 'name')), 'name');



 
	$form_container->end();

$buttons[] = $form->generate_submit_button($lang->update_setting_group);

	$form_container->end();

$buttons[] = $form->generate_submit_button($lang->update_setting_group);

Zeile 425Zeile 424
		"select" => $lang->select,
"radio" => $lang->radio,
"checkbox" => $lang->checkbox,

		"select" => $lang->select,
"radio" => $lang->radio,
"checkbox" => $lang->checkbox,

		"language" => $lang->language,

		"language" => $lang->language_selection_box,

		"adminlanguage" => $lang->adminlanguage,
"cpstyle" => $lang->cpstyle,
//"php" => $lang->php // Internal Use Only

		"adminlanguage" => $lang->adminlanguage,
"cpstyle" => $lang->cpstyle,
//"php" => $lang->php // Internal Use Only

Zeile 474Zeile 473
	$type = trim($type[0]);
if($type == "php")
{

	$type = trim($type[0]);
if($type == "php")
{



 
		flash_message($lang->error_cannot_edit_php, 'error');
admin_redirect("index.php?module=config/settings&action=manage");
}

		flash_message($lang->error_cannot_edit_php, 'error');
admin_redirect("index.php?module=config/settings&action=manage");
}

Zeile 612Zeile 610
		"select" => $lang->select,
"radio" => $lang->radio,
"checkbox" => $lang->checkbox,

		"select" => $lang->select,
"radio" => $lang->radio,
"checkbox" => $lang->checkbox,

		"language" => $lang->language,

		"language" => $lang->language_selection_box,

		"adminlanguage" => $lang->adminlanguage,
"cpstyle" => $lang->cpstyle,
//"php" => $lang->php // Internal Use Only

		"adminlanguage" => $lang->adminlanguage,
"cpstyle" => $lang->cpstyle,
//"php" => $lang->php // Internal Use Only

Zeile 870Zeile 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 998Zeile 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 1006Zeile 1004
		// Cache groups
$query = $db->simple_select("settinggroups", "*", "", array('order_by' => 'disporder'));
while($group = $db->fetch_array($query))

		// Cache groups
$query = $db->simple_select("settinggroups", "*", "", array('order_by' => 'disporder'));
while($group = $db->fetch_array($query))

		{

		{

			$cache_groups[$group['gid']] = $group;
}

if(!$db->num_rows($query))

			$cache_groups[$group['gid']] = $group;
}

if(!$db->num_rows($query))

		{

		{

			$page->output_error($lang->error_invalid_gid2);
}


			$page->output_error($lang->error_invalid_gid2);
}


Zeile 1064Zeile 1062
				$setting_code = $form->generate_text_box($element_name, $setting['value'], array('id' => $element_id));
}
else if($type[0] == "textarea")

				$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] == "yesno")

				$setting_code = $form->generate_text_area($element_name, $setting['value'], array('id' => $element_id));
}
else if($type[0] == "yesno")

Zeile 1090Zeile 1088
				$setting_code = $form->generate_select_box($element_name, $folders, $setting['value'], array('id' => $element_id));
}
else if($type[0] == "language")

				$setting_code = $form->generate_select_box($element_name, $folders, $setting['value'], array('id' => $element_id));
}
else if($type[0] == "language")

			{

			{

				$languages = $lang->get_languages();

				$languages = $lang->get_languages();

				$setting_code = $form->generate_select_box($element_name, $languages, $setting['value'], array('id' => $element_id));

				$setting_code = $form->generate_select_box($element_name, $languages, $setting['value'], array('id' => $element_id));

			}
else if($type[0] == "adminlanguage")

			}
else if($type[0] == "adminlanguage")

			{

			{

				$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")
{
$setting['optionscode'] = substr($setting['optionscode'], 3);
eval("\$setting_code = \"".$setting['optionscode']."\";");

			}
else if($type[0] == "php")
{
$setting['optionscode'] = substr($setting['optionscode'], 3);
eval("\$setting_code = \"".$setting['optionscode']."\";");

			}

			}

			else
{
for($i=0; $i < count($type); $i++)

			else
{
for($i=0; $i < count($type); $i++)

Zeile 1115Zeile 1117
					}
$title_lang = "setting_{$setting['name']}_{$optionsexp[0]}";
if($lang->$title_lang)

					}
$title_lang = "setting_{$setting['name']}_{$optionsexp[0]}";
if($lang->$title_lang)

					{

					{

						$optionsexp[1] = $lang->$title_lang;
}

if($type[0] == "select")
{
$option_list[$optionsexp[0]] = htmlspecialchars_uni($optionsexp[1]);

						$optionsexp[1] = $lang->$title_lang;
}

if($type[0] == "select")
{
$option_list[$optionsexp[0]] = htmlspecialchars_uni($optionsexp[1]);

					}

					}

					else if($type[0] == "radio")
{
if($setting['value'] == $optionsexp[0])

					else if($type[0] == "radio")
{
if($setting['value'] == $optionsexp[0])

Zeile 1138Zeile 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 1160Zeile 1162
			$title_lang = "setting_".$setting['name'];
$desc_lang = $title_lang."_desc";
if($lang->$title_lang)

			$title_lang = "setting_".$setting['name'];
$desc_lang = $title_lang."_desc";
if($lang->$title_lang)

			{

			{

				$setting['title'] = $lang->$title_lang;
}
if($lang->$desc_lang)

				$setting['title'] = $lang->$title_lang;
}
if($lang->$desc_lang)

Zeile 1214Zeile 1216
		'title' => $lang->modify_existing_settings,
'link' => "index.php?module=config/settings&amp;action=manage",
);

		'title' => $lang->modify_existing_settings,
'link' => "index.php?module=config/settings&amp;action=manage",
);





	$page->output_nav_tabs($sub_tabs, 'change_settings');

// Search form

	$page->output_nav_tabs($sub_tabs, 'change_settings');

// Search form

Zeile 1250Zeile 1252
				GROUP BY g.gid
ORDER BY g.disporder
");

				GROUP BY g.gid
ORDER BY g.disporder
");

	}

	}

	while($group = $db->fetch_array($query))
{
$group_lang_var = "setting_group_{$group['name']}";

	while($group = $db->fetch_array($query))
{
$group_lang_var = "setting_group_{$group['name']}";

Zeile 1322Zeile 1324
	{
Event.stop(e);
if(this.search_box.value != "")

	{
Event.stop(e);
if(this.search_box.value != "")

		{

		{

			this.spinner = new ActivityIndicator("body", {image: "../images/spinner_big.gif"});
pars = "module=config/settings&action=change&ajax_search=1&search="+encodeURIComponent(this.search_box.value);
new Ajax.Request("index.php", {

			this.spinner = new ActivityIndicator("body", {image: "../images/spinner_big.gif"});
pars = "module=config/settings&action=change&ajax_search=1&search="+encodeURIComponent(this.search_box.value);
new Ajax.Request("index.php", {

Zeile 1395Zeile 1397
			new Peeker($$(".setting_enablewarningsystem"), $("row_setting_canviewownwarning"), /1/, true);
new Peeker($$(".setting_enablewarningsystem"), $("row_setting_maxwarningpoints"), /1/, true);
new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowhtml"), /1/, true);

			new Peeker($$(".setting_enablewarningsystem"), $("row_setting_canviewownwarning"), /1/, true);
new Peeker($$(".setting_enablewarningsystem"), $("row_setting_maxwarningpoints"), /1/, true);
new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowhtml"), /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_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);