Vergleich admin/modules/config/settings.php - 1.8.9 - 1.8.15

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 944Zeile 944

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


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

 
			$options = array();


			if(substr($multisetting['optionscode'], 0, 8) == 'checkbox')
{
$checkbox_settings[] = $multisetting['name'];

			if(substr($multisetting['optionscode'], 0, 8) == 'checkbox')
{
$checkbox_settings[] = $multisetting['name'];

Zeile 981Zeile 983
					}

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

					}

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

					{

					{

						$value = min($value, $options['max']);
}


						$value = min($value, $options['max']);
}


Zeile 997Zeile 999
		// Administrator is changing the login method.
if($mybb->settings['username_method'] == 1 || $mybb->settings['username_method'] == 2 || $mybb->input['upsetting']['username_method'] == 1 || $mybb->input['upsetting']['username_method'] == 2)
{

		// Administrator is changing the login method.
if($mybb->settings['username_method'] == 1 || $mybb->settings['username_method'] == 2 || $mybb->input['upsetting']['username_method'] == 1 || $mybb->input['upsetting']['username_method'] == 2)
{

			$query = $db->simple_select('users', 'email, COUNT(email) AS duplicates', "email!=''", array('group_by' => 'email HAVING duplicates>1'));

			$query = $db->simple_select('users', 'email', "email != ''", array('group_by' => 'email HAVING COUNT(email)>1'));

			if($db->num_rows($query))
{
$mybb->input['upsetting']['username_method'] = 0;

			if($db->num_rows($query))
{
$mybb->input['upsetting']['username_method'] = 0;

Zeile 1019Zeile 1021
					if($value == 'all')
{
$value = -1;

					if($value == 'all')
{
$value = -1;

					}

					}

					elseif($value == 'custom')
{
if(isset($mybb->input['select'][$name]) && is_array($mybb->input['select'][$name]))

					elseif($value == 'custom')
{
if(isset($mybb->input['select'][$name]) && is_array($mybb->input['select'][$name]))

Zeile 1031Zeile 1033
							unset($val);

$value = implode(',', $mybb->input['select'][$name]);

							unset($val);

$value = implode(',', $mybb->input['select'][$name]);

						}

						}

						else
{
$value = '';
}
}
else

						else
{
$value = '';
}
}
else

					{

					{

						$value = '';
}
}

						$value = '';
}
}

Zeile 1088Zeile 1090
			$cache->update_statistics();
}


			$cache->update_statistics();
}


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





		$statslimit = $mybb->settings['statslimit'];

rebuild_settings();

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

		{
$cache->update_most_replied_threads();
$cache->update_most_viewed_threads();
}

		{
$cache->update_most_replied_threads();
$cache->update_most_viewed_threads();
}


rebuild_settings();

 

$plugins->run_hooks("admin_config_settings_change_commit");



$plugins->run_hooks("admin_config_settings_change_commit");


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

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

			$form_container->output_row(htmlspecialchars_uni($setting['title']), $setting['description'], $setting_code, '', array(), array('id' => 'row_'.$element_id));

			$form_container->output_row(htmlspecialchars_uni($setting['title']), htmlspecialchars_uni($setting['description']), $setting_code, '', array(), array('id' => 'row_'.$element_id));

		}
$form_container->end();


		}
$form_container->end();


Zeile 1736Zeile 1740
		'new Peeker($(".setting_smilieinserter"), $("#row_setting_smilieinsertertot, #row_setting_smilieinsertercols"), 1, true)',
'new Peeker($("#setting_mail_handler"), $("#row_setting_smtp_host, #row_setting_smtp_port, #row_setting_smtp_user, #row_setting_smtp_pass, #row_setting_secure_smtp"), "smtp", false)',
'new Peeker($("#setting_mail_handler"), $("#row_setting_mail_parameters"), "mail", false)',

		'new Peeker($(".setting_smilieinserter"), $("#row_setting_smilieinsertertot, #row_setting_smilieinsertercols"), 1, true)',
'new Peeker($("#setting_mail_handler"), $("#row_setting_smtp_host, #row_setting_smtp_port, #row_setting_smtp_user, #row_setting_smtp_pass, #row_setting_secure_smtp"), "smtp", false)',
'new Peeker($("#setting_mail_handler"), $("#row_setting_mail_parameters"), "mail", false)',

		'new Peeker($("#setting_captchaimage"), $("#row_setting_captchapublickey, #row_setting_captchaprivatekey"), /(2|4)/, false)',

		'new Peeker($("#setting_captchaimage"), $("#row_setting_captchapublickey, #row_setting_captchaprivatekey"), /(2|4|5)/, false)',

		'new Peeker($(".setting_contact"), $("#row_setting_contact_guests, #row_setting_contact_badwords, #row_setting_contact_maxsubjectlength, #row_setting_contact_minmessagelength, #row_setting_contact_maxmessagelength"), 1, true)',
'new Peeker($(".setting_enablepruning"), $("#row_setting_enableprunebyposts, #row_setting_pruneunactived, #row_setting_prunethreads"), 1, true)',
'new Peeker($(".setting_enableprunebyposts"), $("#row_setting_prunepostcount, #row_setting_dayspruneregistered, #row_setting_prunepostcountall"), 1, true)',

		'new Peeker($(".setting_contact"), $("#row_setting_contact_guests, #row_setting_contact_badwords, #row_setting_contact_maxsubjectlength, #row_setting_contact_minmessagelength, #row_setting_contact_maxmessagelength"), 1, true)',
'new Peeker($(".setting_enablepruning"), $("#row_setting_enableprunebyposts, #row_setting_pruneunactived, #row_setting_prunethreads"), 1, true)',
'new Peeker($(".setting_enableprunebyposts"), $("#row_setting_prunepostcount, #row_setting_dayspruneregistered, #row_setting_prunepostcountall"), 1, true)',