Vergleich admin/modules/config/mycode.php - 1.6.0 - 1.6.11

  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: mycode.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 239Zeile 239

if(!$errors)
{


if(!$errors)
{

			$mycode = array(

			$updated_mycode = array(

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

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

Zeile 248Zeile 248
				'parseorder' => intval($mybb->input['parseorder'])
);


				'parseorder' => intval($mybb->input['parseorder'])
);


			$db->update_query("mycode", $mycode, "cid='".intval($mybb->input['cid'])."'");

			$db->update_query("mycode", $updated_mycode, "cid='".intval($mybb->input['cid'])."'");


$cache->update_mycode();



$cache->update_mycode();


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

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

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

	$array['html'] = htmlspecialchars_uni($array['actual']);

	return $array;
}
?>

	return $array;
}
?>