mirror of
https://github.com/e107inc/e107.git
synced 2025-06-08 03:45:03 +02:00
php bbcode deprecated and request.php optimized
This commit is contained in:
parent
e6e74150d3
commit
00d5f8454c
@ -1,11 +1,8 @@
|
|||||||
global $pref;
|
//<?php
|
||||||
if(!$postID) { return ''; }
|
/*
|
||||||
if($pref['php_bbcode'] == e_UC_NOBODY) return '';
|
* This bbcode has been removed for increased security within e107.
|
||||||
if($postID == 'admin' || check_class($pref['php_bbcode'], '', $postID))
|
* 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
|
||||||
$search = array(""", "'", "$", '<br />', E_NL, "->");
|
*
|
||||||
$replace = array('"', "'", "$", "\n", "\n", "->");
|
*/
|
||||||
$code_text = str_replace($search, $replace, $code_text);
|
return "No Longer Supported";
|
||||||
return eval($code_text);
|
|
||||||
}
|
|
||||||
return '';
|
|
@ -349,9 +349,15 @@ function send_file($file)
|
|||||||
header("Location: ".SITEURL.$file);
|
header("Location: ".SITEURL.$file);
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@set_time_limit(10 * 60);
|
@set_time_limit(10 * 60);
|
||||||
|
@session_write_close();
|
||||||
@e107_ini_set("max_execution_time", 10 * 60);
|
@e107_ini_set("max_execution_time", 10 * 60);
|
||||||
while (@ob_end_clean()); // kill all output buffering else it eats server resources
|
while (@ob_end_clean()); // kill all output buffering else it eats server resources
|
||||||
|
@ob_implicit_flush(TRUE);
|
||||||
|
|
||||||
|
|
||||||
$filename = $file;
|
$filename = $file;
|
||||||
$file = basename($file);
|
$file = basename($file);
|
||||||
$path = realpath($filename);
|
$path = realpath($filename);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user