mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
php bbcode deprecated and request.php optimized
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
global $pref;
|
||||
if(!$postID) { return ''; }
|
||||
if($pref['php_bbcode'] == e_UC_NOBODY) return '';
|
||||
if($postID == 'admin' || check_class($pref['php_bbcode'], '', $postID))
|
||||
{
|
||||
$search = array(""", "'", "$", '<br />', E_NL, "->");
|
||||
$replace = array('"', "'", "$", "\n", "\n", "->");
|
||||
$code_text = str_replace($search, $replace, $code_text);
|
||||
return eval($code_text);
|
||||
}
|
||||
return '';
|
||||
//<?php
|
||||
/*
|
||||
* This bbcode has been removed for increased security within e107.
|
||||
* If you know PHP, it is recommended that instead of using a php bbcode, you write your own bbcode, shortcode or .php script.
|
||||
* For more details, please see the documentation (wiki) at www.e107.org
|
||||
*
|
||||
*/
|
||||
return "No Longer Supported";
|
Reference in New Issue
Block a user