Vergleich admin/modules/config/mycode.php - 1.4.5 - 1.4.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: mycode.php 4292 2008-12-13 01:58:07Z Tikitiki $

 * $Id: mycode.php 4399 2009-07-18 15:29:20Z RyanGordon $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 116Zeile 116
			$new_mycode = array(
'title' => $db->escape_string($mybb->input['title']),
'description' => $db->escape_string($mybb->input['description']),

			$new_mycode = array(
'title' => $db->escape_string($mybb->input['title']),
'description' => $db->escape_string($mybb->input['description']),

				'regex' => $db->escape_string($mybb->input['regex']),

				'regex' => $db->escape_string(str_replace("\x0", "", $mybb->input['regex'])),

				'replacement' => $db->escape_string($mybb->input['replacement']),
'active' => $db->escape_string($mybb->input['active']),
'parseorder' => intval($mybb->input['parseorder'])

				'replacement' => $db->escape_string($mybb->input['replacement']),
'active' => $db->escape_string($mybb->input['active']),
'parseorder' => intval($mybb->input['parseorder'])

Zeile 242Zeile 242
			$mycode = array(
'title' => $db->escape_string($mybb->input['title']),
'description' => $db->escape_string($mybb->input['description']),

			$mycode = array(
'title' => $db->escape_string($mybb->input['title']),
'description' => $db->escape_string($mybb->input['description']),

				'regex' => $db->escape_string($mybb->input['regex']),

				'regex' => $db->escape_string(str_replace("\x0", "", $mybb->input['regex'])),

				'replacement' => $db->escape_string($mybb->input['replacement']),
'active' => $db->escape_string($mybb->input['active']),
'parseorder' => intval($mybb->input['parseorder'])

				'replacement' => $db->escape_string($mybb->input['replacement']),
'active' => $db->escape_string($mybb->input['active']),
'parseorder' => intval($mybb->input['parseorder'])

Zeile 430Zeile 430
function test_regex($regex, $replacement, $test)
{
$array = array();

function test_regex($regex, $replacement, $test)
{
$array = array();

	$array['actual'] = @preg_replace("#".$regex."#si", $replacement, $test);

	$array['actual'] = @preg_replace("#".str_replace("\x0", "", $regex)."#si", $replacement, $test);

	$array['html'] = htmlspecialchars($array['actual']);
return $array;
}

	$array['html'] = htmlspecialchars($array['actual']);
return $array;
}