Zeile 6 | Zeile 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 5379 2011-02-21 11:06:42Z Tomm $
|
*/
// Disallow direct access to this file for security reasons
| */
// Disallow direct access to this file for security reasons
|
Zeile 116 | Zeile 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 242 | Zeile 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 430 | Zeile 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; }
|