Vergleich admin/modules/config/settings.php - 1.6.8 - 1.6.10

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: settings.php 5617 2011-09-20 13:50:05Z Tomm $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 918Zeile 918
	
// What type of page
$cache_groups = $cache_settings = array();

	
// What type of page
$cache_groups = $cache_settings = array();

	if($mybb->input['search'])

	if(isset($mybb->input['search']))

	{
// Search


	{
// Search


Zeile 997Zeile 997
        }

$group_lang_var = "setting_group_{$groupinfo['name']}";

        }

$group_lang_var = "setting_group_{$groupinfo['name']}";

		if($lang->$group_lang_var)

		if(isset($lang->$group_lang_var))

		{
$groupinfo['title'] = $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']}");

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

		

		

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

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

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

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

Zeile 1021Zeile 1021
		}

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

		}

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

		{

		{

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


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


Zeile 1030Zeile 1030
		while($setting = $db->fetch_array($query))
{
$cache_settings[$setting['gid']][$setting['sid']] = $setting;

		while($setting = $db->fetch_array($query))
{
$cache_settings[$setting['gid']][$setting['sid']] = $setting;

		}

		}

		
// Page header
$page->add_breadcrumb_item($lang->show_all_settings);

		
// Page header
$page->add_breadcrumb_item($lang->show_all_settings);

Zeile 1044Zeile 1044
	foreach($cache_groups as $groupinfo)
{
$group_lang_var = "setting_group_{$groupinfo['name']}";

	foreach($cache_groups as $groupinfo)
{
$group_lang_var = "setting_group_{$groupinfo['name']}";

		if($lang->$group_lang_var)

		if(isset($lang->$group_lang_var))

		{
$groupinfo['title'] = $lang->$group_lang_var;
}

		{
$groupinfo['title'] = $lang->$group_lang_var;
}

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

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

					if(!$optionsexp[1])

					if(!isset($optionsexp[1]))

					{
continue;
}
$title_lang = "setting_{$setting['name']}_{$optionsexp[0]}";

					{
continue;
}
$title_lang = "setting_{$setting['name']}_{$optionsexp[0]}";

					if($lang->$title_lang)

					if(isset($lang->$title_lang))

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

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

Zeile 1173Zeile 1173
			// Do we have a custom language variable for this title or description?
$title_lang = "setting_".$setting['name'];
$desc_lang = $title_lang."_desc";

			// Do we have a custom language variable for this title or description?
$title_lang = "setting_".$setting['name'];
$desc_lang = $title_lang."_desc";

			if($lang->$title_lang)

			if(isset($lang->$title_lang))

			{
$setting['title'] = $lang->$title_lang;
}

			{
$setting['title'] = $lang->$title_lang;
}

			if($lang->$desc_lang)

			if(isset($lang->$desc_lang))

			{
$setting['description'] = $lang->$desc_lang;
}

			{
$setting['description'] = $lang->$desc_lang;
}

Zeile 1203Zeile 1203
	$plugins->run_hooks("admin_config_settings_start");

$page->output_header($lang->board_settings);

	$plugins->run_hooks("admin_config_settings_start");

$page->output_header($lang->board_settings);

	if($message)

	if(isset($message))

	{
$page->output_inline_message($message);
}

	{
$page->output_inline_message($message);
}

Zeile 1268Zeile 1268
	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']}";

		if($lang->$group_lang_var)

		if(isset($lang->$group_lang_var))

		{
$group_title = htmlspecialchars_uni($lang->$group_lang_var);
}

		{
$group_title = htmlspecialchars_uni($lang->$group_lang_var);
}

Zeile 1278Zeile 1278
		}

$group_desc_lang_var = "setting_group_{$group['name']}_desc";

		}

$group_desc_lang_var = "setting_group_{$group['name']}_desc";

		if($lang->$group_desc_lang_var)

		if(isset($lang->$group_desc_lang_var))

		{
$group_desc = htmlspecialchars_uni($lang->$group_desc_lang_var);
}

		{
$group_desc = htmlspecialchars_uni($lang->$group_desc_lang_var);
}