Vergleich admin/modules/config/settings.php - 1.8.27 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 118Zeile 118
	$group = $db->fetch_array($query);

// Does the setting not exist?

	$group = $db->fetch_array($query);

// Does the setting not exist?

	if(!$group['gid'])

	if(!$group)

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

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

Zeile 220Zeile 220
	$group = $db->fetch_array($query);

// Does the setting group not exist?

	$group = $db->fetch_array($query);

// Does the setting group not exist?

	if(!$group['gid'])

	if(!$group)

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

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

Zeile 293Zeile 293
		}

// do some type filtering

		}

// do some type filtering

		$mybb->input['type'] = str_replace("\n", "", $mybb->input['type']);
if(strtolower(substr($mybb->input['type'], 0, 3)) == "php")

		$mybb->input['type'] = $mybb->get_input('type');
if(!ctype_alnum($mybb->input['type']) || strtolower($mybb->input['type']) == "php")

		{
$mybb->input['type'] = "";
}

		{
$mybb->input['type'] = "";
}

Zeile 306Zeile 306

if(!$errors)
{


if(!$errors)
{

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

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





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

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

Zeile 377Zeile 373
	$sub_tabs['modify_setting'] = array(
'title' => $lang->modify_existing_settings,
'link' => "index.php?module=config-settings&action=manage"

	$sub_tabs['modify_setting'] = array(
'title' => $lang->modify_existing_settings,
'link' => "index.php?module=config-settings&action=manage"

	);

	);


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

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


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

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





	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->get_input('title'), array('id' => 'title')), 'title');
$form_container->output_row($lang->description, "", $form->generate_text_area('description', $mybb->get_input('description'), array('id' => 'description')), 'description');

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

Zeile 399Zeile 395
		if(!empty($lang->$group_lang_var))
{
$options[$group['gid']] = htmlspecialchars_uni($lang->$group_lang_var);

		if(!empty($lang->$group_lang_var))
{
$options[$group['gid']] = htmlspecialchars_uni($lang->$group_lang_var);

		}

		}

		else
{
$options[$group['gid']] = htmlspecialchars_uni($group['title']);

		else
{
$options[$group['gid']] = htmlspecialchars_uni($group['title']);

Zeile 458Zeile 454
	$setting = $db->fetch_array($query);

// Does the setting not exist?

	$setting = $db->fetch_array($query);

// Does the setting not exist?

	if(!$setting['sid'])

	if(!$setting)

	{
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");

Zeile 466Zeile 462

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


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

	{

	{

		flash_message($lang->error_cannot_edit_default, 'error');

		flash_message($lang->error_cannot_edit_default, 'error');

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

$plugins->run_hooks("admin_config_settings_edit");


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

$plugins->run_hooks("admin_config_settings_edit");


	$type = explode("\n", $setting['optionscode'], 2);
$type = trim($type[0]);
if($type == "php")

	$type = explode("\n", $setting['optionscode'], 2);
$type = trim($type[0]);
if($type == "php")

Zeile 480Zeile 476
		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");
}





	if($mybb->request_method == "post")
{
if(!trim($mybb->input['title']))
{
$errors[] = $lang->error_missing_title;

	if($mybb->request_method == "post")
{
if(!trim($mybb->input['title']))
{
$errors[] = $lang->error_missing_title;

		}

		}


if(!trim($mybb->input['name']))


if(!trim($mybb->input['name']))

		{
$errors[] = $lang->error_missing_name;
}

		{
$errors[] = $lang->error_missing_name;
}

		$query = $db->simple_select("settings", "title", "name='".$db->escape_string($mybb->input['name'])."' AND sid != '{$setting['sid']}'");
if($db->num_rows($query) > 0)

		$query = $db->simple_select("settings", "title", "name='".$db->escape_string($mybb->input['name'])."' AND sid != '{$setting['sid']}'");
if($db->num_rows($query) > 0)

		{

		{

			$dup_setting_title = $db->fetch_field($query, 'title');
$errors[] = $lang->sprintf($lang->error_duplicate_name, $dup_setting_title);
}

// do some type filtering

			$dup_setting_title = $db->fetch_field($query, 'title');
$errors[] = $lang->sprintf($lang->error_duplicate_name, $dup_setting_title);
}

// do some type filtering

		$mybb->input['type'] = str_replace("\n", "", $mybb->input['type']);
if(strtolower(substr($mybb->input['type'], 0, 3)) == "php")

		$mybb->input['type'] = $mybb->get_input('type');
if(!ctype_alnum($mybb->input['type']) || strtolower($mybb->input['type']) == "php")

		{
$mybb->input['type'] = "";

		{
$mybb->input['type'] = "";

		}

		}


if(!$mybb->input['type'])
{


if(!$mybb->input['type'])
{

Zeile 512Zeile 508
		}

if(!$errors)

		}

if(!$errors)

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

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





			}
else
{

			}
else
{

Zeile 563Zeile 555
	}

$page->add_breadcrumb_item($lang->edit_setting);

	}

$page->add_breadcrumb_item($lang->edit_setting);

	$page->output_header($lang->board_settings." - ".$lang->edit_setting);


	$page->output_header($lang->board_settings." - ".$lang->edit_setting);


	$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"

	);

	);


$sub_tabs['add_setting_group'] = array(
'title' => $lang->add_new_setting_group,
'link' => "index.php?module=config-settings&amp;action=addgroup"


$sub_tabs['add_setting_group'] = array(
'title' => $lang->add_new_setting_group,
'link' => "index.php?module=config-settings&amp;action=addgroup"

	);

	);


$sub_tabs['modify_setting'] = array(
'title' => $lang->modify_existing_settings,
'link' => "index.php?module=config-settings&amp;action=manage",
'description' => $lang->modify_existing_settings_desc


$sub_tabs['modify_setting'] = array(
'title' => $lang->modify_existing_settings,
'link' => "index.php?module=config-settings&amp;action=manage",
'description' => $lang->modify_existing_settings_desc

	);

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

	);

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


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



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


Zeile 676Zeile 668

// Delete Setting
if($mybb->input['action'] == "delete")


// Delete Setting
if($mybb->input['action'] == "delete")

{

{

	$query = $db->simple_select("settings", "*", "sid='".$mybb->get_input('sid', MyBB::INPUT_INT)."'");
$setting = $db->fetch_array($query);

	$query = $db->simple_select("settings", "*", "sid='".$mybb->get_input('sid', MyBB::INPUT_INT)."'");
$setting = $db->fetch_array($query);





	// Does the setting not exist?

	// Does the setting not exist?

	if(empty($setting['sid']))
{

	if(!$setting)
{

		flash_message($lang->error_invalid_sid, 'error');

		flash_message($lang->error_invalid_sid, 'error');

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


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


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

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

	{

	{

		flash_message($lang->error_cannot_edit_default, 'error');

		flash_message($lang->error_cannot_edit_default, 'error');

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

// User clicked no
if($mybb->get_input('no'))
{

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

// User clicked no
if($mybb->get_input('no'))
{

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


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


Zeile 744Zeile 736
		if(is_array($mybb->input['setting_disporder']))
{
foreach($mybb->input['setting_disporder'] as $sid => $new_order)

		if(is_array($mybb->input['setting_disporder']))
{
foreach($mybb->input['setting_disporder'] as $sid => $new_order)

			{

			{

				$sid = (int)$sid;
$update_setting = array('disporder' => (int)$new_order);
$db->update_query("settings", $update_setting, "sid={$sid}");

				$sid = (int)$sid;
$update_setting = array('disporder' => (int)$new_order);
$db->update_query("settings", $update_setting, "sid={$sid}");

Zeile 752Zeile 744
		}

$plugins->run_hooks("admin_config_settings_manage_commit");

		}

$plugins->run_hooks("admin_config_settings_manage_commit");





		// Log admin action
log_admin_action();


		// Log admin action
log_admin_action();


Zeile 766Zeile 758
	$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,


$sub_tabs['add_setting'] = array(
'title' => $lang->add_new_setting,

Zeile 856Zeile 848
					$popup->add_item($lang->edit_setting, "index.php?module=config-settings&amp;action=edit&amp;sid={$setting['sid']}");
$popup->add_item($lang->delete_setting, "index.php?module=config-settings&amp;action=delete&amp;sid={$setting['sid']}&amp;my_post_key={$mybb->post_code}", "return AdminCP.deleteConfirmation(this, '{$lang->confirm_setting_deletion}')");
$table->construct_cell($popup->fetch(), array('class' => 'align_center'));

					$popup->add_item($lang->edit_setting, "index.php?module=config-settings&amp;action=edit&amp;sid={$setting['sid']}");
$popup->add_item($lang->delete_setting, "index.php?module=config-settings&amp;action=delete&amp;sid={$setting['sid']}&amp;my_post_key={$mybb->post_code}", "return AdminCP.deleteConfirmation(this, '{$lang->confirm_setting_deletion}')");
$table->construct_cell($popup->fetch(), array('class' => 'align_center'));

				}
else
{

				}
else
{

					$table->construct_cell('');
}
$table->construct_row(array('no_alt_row' => 1, 'class' => "group{$group['gid']}"));

					$table->construct_cell('');
}
$table->construct_row(array('no_alt_row' => 1, 'class' => "group{$group['gid']}"));

Zeile 948Zeile 940
		if(in_array($gid, array_keys($dimfields)))
{
foreach($dimfields[$gid] as $field)

		if(in_array($gid, array_keys($dimfields)))
{
foreach($dimfields[$gid] as $field)

			{

			{

				if(isset($mybb->input['upsetting'][$field]))
{
if(preg_match("/\b\d+[|x]{1}\d+\b/i", $mybb->input['upsetting'][$field]) || ($field == 'maxavatardims' && trim($mybb->input['upsetting'][$field]) == ""))

				if(isset($mybb->input['upsetting'][$field]))
{
if(preg_match("/\b\d+[|x]{1}\d+\b/i", $mybb->input['upsetting'][$field]) || ($field == 'maxavatardims' && trim($mybb->input['upsetting'][$field]) == ""))

Zeile 1016Zeile 1008
			$recaptchascore = $mybb->input['upsetting']['recaptchascore'];
$hcaptchaprivatekey = $mybb->input['upsetting']['hcaptchaprivatekey'];
$hcaptchapublickey = $mybb->input['upsetting']['hcaptchapublickey'];

			$recaptchascore = $mybb->input['upsetting']['recaptchascore'];
$hcaptchaprivatekey = $mybb->input['upsetting']['hcaptchaprivatekey'];
$hcaptchapublickey = $mybb->input['upsetting']['hcaptchapublickey'];





			if(in_array($captchaimage, array(captcha::NOCAPTCHA_RECAPTCHA, captcha::RECAPTCHA_INVISIBLE)) && (!$recaptchaprivatekey || !$recaptchapublickey))

			if(in_array($captchaimage, array(captcha::NOCAPTCHA_RECAPTCHA, captcha::RECAPTCHA_INVISIBLE)) && (!$recaptchaprivatekey || !$recaptchapublickey))

			{
$set_captcha_image = true;

			{
$set_captcha_image = true;

			}
else if(in_array($captchaimage, array(captcha::RECAPTCHA_V3)) && (!$recaptchaprivatekey || !$recaptchapublickey || !$recaptchascore))

			}
else if(in_array($captchaimage, array(captcha::RECAPTCHA_V3)) && (!$recaptchaprivatekey || !$recaptchapublickey || !$recaptchascore))

			{

			{

				$set_captcha_image = true;
}
else if(in_array($captchaimage, array(captcha::HCAPTCHA, captcha::HCAPTCHA_INVISIBLE)) && (!$hcaptchaprivatekey || !$hcaptchapublickey))

				$set_captcha_image = true;
}
else if(in_array($captchaimage, array(captcha::HCAPTCHA, captcha::HCAPTCHA_INVISIBLE)) && (!$hcaptchaprivatekey || !$hcaptchapublickey))

Zeile 1038Zeile 1030
		$recaptchascore = $mybb->settings['recaptchascore'];
$hcaptchaprivatekey = $mybb->settings['hcaptchaprivatekey'];
$hcaptchapublickey = $mybb->settings['hcaptchapublickey'];

		$recaptchascore = $mybb->settings['recaptchascore'];
$hcaptchaprivatekey = $mybb->settings['hcaptchaprivatekey'];
$hcaptchapublickey = $mybb->settings['hcaptchapublickey'];





		if(in_array($captchaimage, array(captcha::NOCAPTCHA_RECAPTCHA, captcha::RECAPTCHA_INVISIBLE)) && (!$recaptchaprivatekey || !$recaptchapublickey))
{
$set_captcha_image = true;

		if(in_array($captchaimage, array(captcha::NOCAPTCHA_RECAPTCHA, captcha::RECAPTCHA_INVISIBLE)) && (!$recaptchaprivatekey || !$recaptchapublickey))
{
$set_captcha_image = true;

Zeile 1105Zeile 1097
							}
$options[$opt[0]] = $opt[1];
}

							}
$options[$opt[0]] = $opt[1];
}

					}


					}


					$value = (float)$mybb->input['upsetting'][$multisetting['name']];

if(isset($options['min']))

					$value = (float)$mybb->input['upsetting'][$multisetting['name']];

if(isset($options['min']))

Zeile 1150Zeile 1142
				{
$mybb->input['upsetting']['username_method'] = 0;
$lang->success_settings_updated .= $lang->success_settings_updated_username_method;

				{
$mybb->input['upsetting']['username_method'] = 0;
$lang->success_settings_updated .= $lang->success_settings_updated_username_method;

				}
}

				}
}

		}

if(isset($mybb->input['upsetting']['username_method'], $mybb->input['upsetting']['allowmultipleemails']))

		}

if(isset($mybb->input['upsetting']['username_method'], $mybb->input['upsetting']['allowmultipleemails']))

Zeile 1192Zeile 1184
				if(
is_string($mybb->input['upsetting'][$field]) &&
strpos($mybb->input['upsetting'][$field], '://') !== false)

				if(
is_string($mybb->input['upsetting'][$field]) &&
strpos($mybb->input['upsetting'][$field], '://') !== false)

				{
unset($mybb->input['upsetting'][$field]);
continue;
}


				{
unset($mybb->input['upsetting'][$field]);
continue;
}


				$realpath = realpath(mk_path_abs($mybb->input['upsetting'][$field]));

if ($realpath === false)

				$realpath = realpath(mk_path_abs($mybb->input['upsetting'][$field]));

if ($realpath === false)

Zeile 1215Zeile 1207
				}
}
}

				}
}
}

















// reject dangerous/unsupported file paths
$field = 'errorloglocation';

if(isset($mybb->input['upsetting'][$field]) && is_string($mybb->input['upsetting'][$field]))
{
if(
strpos($mybb->input['upsetting'][$field], '://') !== false ||
substr($mybb->input['upsetting'][$field], -4) === '.php'
)
{
unset($mybb->input['upsetting'][$field]);
}
}


if(is_array($mybb->input['upsetting']))


if(is_array($mybb->input['upsetting']))

		{

		{

			foreach($mybb->input['upsetting'] as $name => $value)
{
if($forum_group_select && in_array($name, $forum_group_select))

			foreach($mybb->input['upsetting'] as $name => $value)
{
if($forum_group_select && in_array($name, $forum_group_select))

Zeile 1260Zeile 1265
				}

$db->update_query("settings", array('value' => $db->escape_string($value)), "name='".$db->escape_string($name)."'");

				}

$db->update_query("settings", array('value' => $db->escape_string($value)), "name='".$db->escape_string($name)."'");

			}
}

			}
}


// Check if we need to create our fulltext index after changing the search mode
if(


// Check if we need to create our fulltext index after changing the search mode
if(

Zeile 1291Zeile 1296
		{
my_unsetcookie("adminsid");
$mybb->settings['cookieprefix'] = $mybb->input['upsetting']['cookieprefix'];

		{
my_unsetcookie("adminsid");
$mybb->settings['cookieprefix'] = $mybb->input['upsetting']['cookieprefix'];

			my_setcookie("adminsid", $admin_session['sid'], '', true, "lax");

			my_setcookie("adminsid", $admin_session['sid'], '', true, "strict");

		}

if(isset($mybb->input['upsetting']['statstopreferrer']) && $mybb->input['upsetting']['statstopreferrer'] != $mybb->settings['statstopreferrer'])

		}

if(isset($mybb->input['upsetting']['statstopreferrer']) && $mybb->input['upsetting']['statstopreferrer'] != $mybb->settings['statstopreferrer'])

Zeile 1371Zeile 1376
		while($group = $db->fetch_array($query))
{
$cache_groups[$group['gid']] = $group;

		while($group = $db->fetch_array($query))
{
$cache_groups[$group['gid']] = $group;

		}


		}


		// Page header only if not AJAX
if(!isset($mybb->input['ajax_search']))

		// Page header only if not AJAX
if(!isset($mybb->input['ajax_search']))

		{

		{

			$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}");

		}

		}

	}
elseif(($mybb->get_input('gid')))
{

	}
elseif(($mybb->get_input('gid')))
{

Zeile 1387Zeile 1392
		$query = $db->simple_select("settinggroups", "*", "gid = '".$mybb->get_input('gid', MyBB::INPUT_INT)."'");
$groupinfo = $db->fetch_array($query);
$cache_groups[$groupinfo['gid']] = $groupinfo;

		$query = $db->simple_select("settinggroups", "*", "gid = '".$mybb->get_input('gid', MyBB::INPUT_INT)."'");
$groupinfo = $db->fetch_array($query);
$cache_groups[$groupinfo['gid']] = $groupinfo;


if(!$db->num_rows($query))
{
$page->output_error($lang->error_invalid_gid2);
}


if(!$db->num_rows($query))
{
$page->output_error($lang->error_invalid_gid2);
}


// Cache settings
$query = $db->simple_select("settings", "*", "gid='".$mybb->get_input('gid', MyBB::INPUT_INT)."'", array('order_by' => 'disporder'));


// Cache settings
$query = $db->simple_select("settings", "*", "gid='".$mybb->get_input('gid', MyBB::INPUT_INT)."'", array('order_by' => 'disporder'));

		while($setting = $db->fetch_array($query))
{
$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");

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







		}


		}


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

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


		{

		{

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


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

		}

		}

 

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

$groupinfo['title'] = htmlspecialchars_uni($groupinfo['title']);


// Page header
$page->add_breadcrumb_item($groupinfo['title']);


// Page header
$page->add_breadcrumb_item($groupinfo['title']);

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

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

 

$groupinfo['title'] = htmlspecialchars_uni($groupinfo['title']);


$form_container = new FormContainer($groupinfo['title']);



$form_container = new FormContainer($groupinfo['title']);


Zeile 1461Zeile 1470
		{
$form_container->output_cell($lang->error_no_settings_found);
$form_container->construct_row();

		{
$form_container->output_cell($lang->error_no_settings_found);
$form_container->construct_row();





			$form_container->end();
echo '<br />';

			$form_container->end();
echo '<br />';





			continue;
}

			continue;
}





		foreach($cache_settings[$groupinfo['gid']] as $setting)
{

		foreach($cache_settings[$groupinfo['gid']] as $setting)
{

 
			$setting['name'] = htmlspecialchars_uni($setting['name']);


			$options = "";
$type = explode("\n", $setting['optionscode']);
$type[0] = trim($type[0]);

			$options = "";
$type = explode("\n", $setting['optionscode']);
$type[0] = trim($type[0]);

Zeile 1706Zeile 1717
					$multivalue = explode(',', $setting['value']);
}


					$multivalue = explode(',', $setting['value']);
}


 
				$option_list = array();

				for($i = 0; $i < $typecount; $i++)
{
$optionsexp = explode("=", $type[$i]);
if(!isset($optionsexp[1]))
{
continue;

				for($i = 0; $i < $typecount; $i++)
{
$optionsexp = explode("=", $type[$i]);
if(!isset($optionsexp[1]))
{
continue;

					}

					}

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

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

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

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

						{

						{

							$option_list[$i] = $form->generate_radio_button($element_name, $optionsexp[0], htmlspecialchars_uni($optionsexp[1]), array('id' => $element_id.'_'.$i, "checked" => 1, 'class' => $element_id));

							$option_list[$i] = $form->generate_radio_button($element_name, $optionsexp[0], htmlspecialchars_uni($optionsexp[1]), array('id' => $element_id.'_'.$i, "checked" => 1, 'class' => $element_id));

						}

						}

						else
{
$option_list[$i] = $form->generate_radio_button($element_name, $optionsexp[0], htmlspecialchars_uni($optionsexp[1]), array('id' => $element_id.'_'.$i, 'class' => $element_id));

						else
{
$option_list[$i] = $form->generate_radio_button($element_name, $optionsexp[0], htmlspecialchars_uni($optionsexp[1]), array('id' => $element_id.'_'.$i, 'class' => $element_id));

						}
}

						}
}

					else if($type[0] == "checkbox")
{
if(in_array($optionsexp[0], $multivalue))

					else if($type[0] == "checkbox")
{
if(in_array($optionsexp[0], $multivalue))

Zeile 1760Zeile 1772
						$setting_code .= $form->generate_hidden_field("isvisible_{$setting['name']}", 1);
}
}

						$setting_code .= $form->generate_hidden_field("isvisible_{$setting['name']}", 1);
}
}

				$option_list = array();

 
			}

// Do we have a custom language variable for this title or description?

			}

// Do we have a custom language variable for this title or description?

Zeile 1930Zeile 1941
		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 1940Zeile 1951
			}

$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);
}