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

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * 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 4159 2008-08-31 01:05:54Z Tikitiki $

 */

// 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 264Zeile 263
	
// User clicked no
if($mybb->input['no'])

	
// User clicked no
if($mybb->input['no'])

	{
admin_redirect("index.php?module=config/settings&action=manage");
}


	{
admin_redirect("index.php?module=config/settings&action=manage");
}


	if($mybb->request_method == "post")
{
// Delete the setting group and its settings

	if($mybb->request_method == "post")
{
// Delete the setting group and its settings

Zeile 285Zeile 284
		admin_redirect("index.php?module=config/settings&action=manage");
}
else

		admin_redirect("index.php?module=config/settings&action=manage");
}
else

	{

	{

		$page->output_confirm_action("index.php?module=config/settings&amp;action=deletegroup&amp;gid={$group['gid']}", $lang->confirm_setting_group_deletion);
}
}

		$page->output_confirm_action("index.php?module=config/settings&amp;action=deletegroup&amp;gid={$group['gid']}", $lang->confirm_setting_group_deletion);
}
}

Zeile 339Zeile 338
				$options_code = $mybb->input['extra'];
}
else if($mybb->input['extra'])

				$options_code = $mybb->input['extra'];
}
else if($mybb->input['extra'])

			{

			{

				$options_code = "{$mybb->input['type']}\n{$mybb->input['extra']}";
}
else

				$options_code = "{$mybb->input['type']}\n{$mybb->input['extra']}";
}
else

Zeile 376Zeile 375
	$sub_tabs['change_settings'] = array(
'title' => $lang->change_settings,
'link' => "index.php?module=config/settings"

	$sub_tabs['change_settings'] = array(
'title' => $lang->change_settings,
'link' => "index.php?module=config/settings"

	);


	);


	$sub_tabs['add_setting'] = array(
'title' => $lang->add_new_setting,
'link' => "index.php?module=config/settings&amp;action=add",

	$sub_tabs['add_setting'] = array(
'title' => $lang->add_new_setting,
'link' => "index.php?module=config/settings&amp;action=add",

Zeile 401Zeile 400
	if($errors)
{
$page->output_inline_error($errors);

	if($errors)
{
$page->output_inline_error($errors);

	}

	}


$form_container = new FormContainer($lang->add_new_setting);
$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');


$form_container = new FormContainer($lang->add_new_setting);
$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');

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 462Zeile 461
	{
flash_message($lang->error_invalid_sid, 'error');
admin_redirect("index.php?module=config/settings");

	{
flash_message($lang->error_invalid_sid, 'error');
admin_redirect("index.php?module=config/settings");

	}

	}

	
// Prevent editing of default
if($setting['isdefault'] == 1)

	
// Prevent editing of default
if($setting['isdefault'] == 1)

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 669Zeile 667
	{
// Delete the setting
$db->delete_query("settings", "sid='{$setting['sid']}'");

	{
// Delete the setting
$db->delete_query("settings", "sid='{$setting['sid']}'");

		
rebuild_settings();

		
rebuild_settings();

		
$plugins->run_hooks("admin_config_settings_delete_commit");


		
$plugins->run_hooks("admin_config_settings_delete_commit");


Zeile 1105Zeile 1103
				eval("\$setting_code = \"".$setting['optionscode']."\";");
}
else

				eval("\$setting_code = \"".$setting['optionscode']."\";");
}
else

			{

			{

				for($i=0; $i < count($type); $i++)
{
$optionsexp = explode("=", $type[$i]);

				for($i=0; $i < count($type); $i++)
{
$optionsexp = explode("=", $type[$i]);

Zeile 1177Zeile 1175
	$form->end();

print_setting_peekers();

	$form->end();

print_setting_peekers();

	

	

	if(!isset($mybb->input['ajax_search']))
{
$page->output_footer();

	if(!isset($mybb->input['ajax_search']))
{
$page->output_footer();

Zeile 1250Zeile 1248
				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 1320
	{
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 1393
			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);