Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: mycode.php 5380 2011-02-21 12:04:43Z Tomm $
| * $Id$
|
*/
// Disallow direct access to this file for security reasons
| */
// Disallow direct access to this file for security reasons
|
Zeile 239 | Zeile 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 248 | Zeile 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 431 | Zeile 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; } ?>
|