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

  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 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 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 954Zeile 952
		{
$page->add_breadcrumb_item($lang->settings_search);
$page->output_header($lang->board_settings." - {$lang->settings_search}");

		{
$page->add_breadcrumb_item($lang->settings_search);
$page->output_header($lang->board_settings." - {$lang->settings_search}");

		}

$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']);
}
elseif($mybb->input['gid'])

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

Zeile 975Zeile 973
		
// Cache settings
$query = $db->simple_select("settings", "*", "gid='".intval($mybb->input['gid'])."'", array('order_by' => 'disporder'));

		
// Cache settings
$query = $db->simple_select("settings", "*", "gid='".intval($mybb->input['gid'])."'", array('order_by' => 'disporder'));

		while($setting = $db->fetch_array($query))
{

		while($setting = $db->fetch_array($query))
{

			$cache_settings[$setting['gid']][$setting['sid']] = $setting;

			$cache_settings[$setting['gid']][$setting['sid']] = $setting;

		}


		}


		if(!$db->num_rows($query))
{
flash_message($lang->error_no_settings_found, 'error');
admin_redirect("index.php?module=config/settings");

		if(!$db->num_rows($query))
{
flash_message($lang->error_no_settings_found, 'error');
admin_redirect("index.php?module=config/settings");

        }

$group_lang_var = "setting_group_{$groupinfo['name']}";
if($lang->$group_lang_var)
{
$groupinfo['title'] = $lang->$group_lang_var;
}

// Page header

        }

$group_lang_var = "setting_group_{$groupinfo['name']}";
if($lang->$group_lang_var)
{
$groupinfo['title'] = $lang->$group_lang_var;
}

// Page header

		$page->add_breadcrumb_item($groupinfo['title']);
$page->output_header($lang->board_settings." - {$groupinfo['title']}");

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


		$page->add_breadcrumb_item($groupinfo['title']);
$page->output_header($lang->board_settings." - {$groupinfo['title']}");

$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 1062Zeile 1060
			if($type[0] == "text" || $type[0] == "")
{
$setting_code = $form->generate_text_box($element_name, $setting['value'], array('id' => $element_id));

			if($type[0] == "text" || $type[0] == "")
{
$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));

Zeile 1098Zeile 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 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 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);