1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-12 05:24:38 +02:00
Files
php-e107/e107_core/bbcodes/php.bb
2010-10-05 08:29:21 +00:00

12 lines
388 B
BlitzBasic
Executable File

global $pref;
if(!$postID) { return ''; }
if($pref['php_bbcode'] == e_UC_NOBODY) return '';
if($postID == 'admin' || check_class($pref['php_bbcode'], '', $postID))
{
$search = array("&quot;", "&#039;", "&#036;", '<br />', E_NL, "-&gt;");
$replace = array('"', "'", "$", "\n", "\n", "->");
$code_text = str_replace($search, $replace, $code_text);
return eval($code_text);
}
return '';