Vergleich admin/modules/config/badwords.php - 1.6.0 - 1.6.13

  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: badwords.php 5086 2010-07-09 15:35:29Z Tomm $

 * $Id: badwords.php 5796 2012-04-19 14:38:15Z Tomm $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 36Zeile 36
	if(strlen($mybb->input['replacement']) > 100)
{
$errors[] = $lang->replacement_word_max;

	if(strlen($mybb->input['replacement']) > 100)
{
$errors[] = $lang->replacement_word_max;

 
	}

if(!$errors)
{
$query = $db->simple_select("badwords", "bid", "badword = '".$db->escape_string($mybb->input['badword'])."'");

if($db->num_rows($query))
{
$errors[] = $lang->error_bad_word_filtered;
}
}

$badword = str_replace('\*', '([a-zA-Z0-9_]{1})', preg_quote($mybb->input['badword'], "#"));

// Don't allow certain badword replacements to be added if it would cause an infinite recursive loop.
if(strlen($mybb->input['badword']) == strlen($mybb->input['replacement']) && preg_match("#(^|\W)".$badword."(\W|$)#i", $mybb->input['replacement']))
{
$errors[] = $lang->error_replacement_word_invalid;

	}

if(!$errors)

	}

if(!$errors)

Zeile 161Zeile 179
	$sub_tabs['editbadword'] = array(
'title' => $lang->edit_bad_word,
'description' => $lang->edit_bad_word_desc,

	$sub_tabs['editbadword'] = array(
'title' => $lang->edit_bad_word,
'description' => $lang->edit_bad_word_desc,

		'link' => "index.php?module=config-badwords"
);


		'link' => "index.php?module=config-badwords"
);


	$page->output_nav_tabs($sub_tabs, "editbadword");

$form = new Form("index.php?module=config-badwords&action=edit&bid={$badword['bid']}", "post");

	$page->output_nav_tabs($sub_tabs, "editbadword");

$form = new Form("index.php?module=config-badwords&action=edit&bid={$badword['bid']}", "post");

Zeile 202Zeile 220
	);

$page->output_nav_tabs($sub_tabs, "badwords");

	);

$page->output_nav_tabs($sub_tabs, "badwords");

 

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


$table = new Table;
$table->construct_header($lang->bad_word);


$table = new Table;
$table->construct_header($lang->bad_word);

Zeile 233Zeile 256
	$table->output($lang->bad_word_filters);

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

	$table->output($lang->bad_word_filters);

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

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






	$form_container = new FormContainer($lang->add_bad_word);
$form_container->output_row($lang->bad_word." <em>*</em>", $lang->bad_word_desc, $form->generate_text_box('badword', $mybb->input['badword'], array('id' => 'badword')), 'badword');
$form_container->output_row($lang->replacement, $lang->replacement_desc, $form->generate_text_box('replacement', $mybb->input['replacement'], array('id' => 'replacement')), 'replacement');

	$form_container = new FormContainer($lang->add_bad_word);
$form_container->output_row($lang->bad_word." <em>*</em>", $lang->bad_word_desc, $form->generate_text_box('badword', $mybb->input['badword'], array('id' => 'badword')), 'badword');
$form_container->output_row($lang->replacement, $lang->replacement_desc, $form->generate_text_box('replacement', $mybb->input['replacement'], array('id' => 'replacement')), 'replacement');