Vergleich admin/modules/config/settings.php - 1.6.3 - 1.6.6

  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 5380 2011-02-21 12:04:43Z Tomm $

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

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 845Zeile 845
	
if($mybb->request_method == "post")
{

	
if($mybb->request_method == "post")
{

 
		if(!is_writable(MYBB_ROOT.'inc/settings.php'))
{
flash_message($lang->error_chmod_settings_file, 'error');
admin_redirect("index.php?module=config-settings");
}


		if(is_array($mybb->input['upsetting']))
{
foreach($mybb->input['upsetting'] as $name => $value)

		if(is_array($mybb->input['upsetting']))
{
foreach($mybb->input['upsetting'] as $name => $value)

Zeile 856Zeile 862
		
// Check if we need to create our fulltext index after changing the search mode
if($mybb->settings['searchtype'] != $mybb->input['upsetting']['searchtype'] && $mybb->input['upsetting']['searchtype'] == "fulltext")

		
// Check if we need to create our fulltext index after changing the search mode
if($mybb->settings['searchtype'] != $mybb->input['upsetting']['searchtype'] && $mybb->input['upsetting']['searchtype'] == "fulltext")

		{

		{

			if(!$db->is_fulltext("posts") && $db->supports_fulltext_boolean("posts"))
{
$db->create_fulltext_index("posts", "message");
}
if(!$db->is_fulltext("posts") && $db->supports_fulltext("threads"))

			if(!$db->is_fulltext("posts") && $db->supports_fulltext_boolean("posts"))
{
$db->create_fulltext_index("posts", "message");
}
if(!$db->is_fulltext("posts") && $db->supports_fulltext("threads"))

			{

			{

				$db->create_fulltext_index("threads", "subject");
}
}

				$db->create_fulltext_index("threads", "subject");
}
}

Zeile 874Zeile 880
			{
$updated_task = array(
"enabled" => 0

			{
$updated_task = array(
"enabled" => 0

				);

				);

			}
else
{

			}
else
{

Zeile 892Zeile 898
			$mybb->settings['cookieprefix'] = $mybb->input['upsetting']['cookieprefix'];
my_setcookie("adminsid", $admin_session['sid']);
}

			$mybb->settings['cookieprefix'] = $mybb->input['upsetting']['cookieprefix'];
my_setcookie("adminsid", $admin_session['sid']);
}

		








// Have we opted for a reCAPTCHA and not set a public/private key?
if($mybb->input['upsetting']['captchaimage'] == 2 && !$mybb->input['upsetting']['captchaprivatekey'] && !$mybb->input['upsetting']['captchapublickey'])
{
$db->update_query("settings", array("value" => 1), "name = 'captchaimage'");
}


		rebuild_settings();

$plugins->run_hooks("admin_config_settings_change_commit");

		rebuild_settings();

$plugins->run_hooks("admin_config_settings_change_commit");

Zeile 1382Zeile 1394
			new Peeker($$(".setting_showsimilarthreads"), $("row_setting_similarityrating"), /1/, true);
new Peeker($$(".setting_showsimilarthreads"), $("row_setting_similarlimit"), /1/, true);
new Peeker($$(".setting_disableregs"), $("row_setting_regtype"), /0/, true);

			new Peeker($$(".setting_showsimilarthreads"), $("row_setting_similarityrating"), /1/, true);
new Peeker($$(".setting_showsimilarthreads"), $("row_setting_similarlimit"), /1/, true);
new Peeker($$(".setting_disableregs"), $("row_setting_regtype"), /0/, true);

 
			new Peeker($$(".setting_hiddencaptchaimage"), $("row_setting_hiddencaptchaimagefield"), /1/, true);

			new Peeker($$(".setting_showsimilarthreads"), $("row_setting_similarlimit"), /1/, true);
new Peeker($("setting_failedlogincount"), $("row_setting_failedlogintime"), /[^0]/, false);
new Peeker($("setting_failedlogincount"), $("row_setting_failedlogintext"), /[^0]/, false);

			new Peeker($$(".setting_showsimilarthreads"), $("row_setting_similarlimit"), /1/, true);
new Peeker($("setting_failedlogincount"), $("row_setting_failedlogintime"), /[^0]/, false);
new Peeker($("setting_failedlogincount"), $("row_setting_failedlogintext"), /[^0]/, false);

Zeile 1409Zeile 1422
			new Peeker($("setting_mail_handler"), $("row_setting_smtp_pass"), /smtp/, false);
new Peeker($("setting_mail_handler"), $("row_setting_secure_smtp"), /smtp/, false);
new Peeker($("setting_mail_handler"), $("row_setting_mail_parameters"), /mail/, false);

			new Peeker($("setting_mail_handler"), $("row_setting_smtp_pass"), /smtp/, false);
new Peeker($("setting_mail_handler"), $("row_setting_secure_smtp"), /smtp/, false);
new Peeker($("setting_mail_handler"), $("row_setting_mail_parameters"), /mail/, false);

 
			new Peeker($("setting_captchaimage"), $("row_setting_captchapublickey"), 2, false);
new Peeker($("setting_captchaimage"), $("row_setting_captchaprivatekey"), 2, false);

		}
</script>';
}

		}
</script>';
}