mirror of
https://github.com/e107inc/e107.git
synced 2025-04-16 10:32:08 +02:00
remove ereg_ expressions from flash.bb
This commit is contained in:
parent
8a8b79338a
commit
845604ad96
@ -1,6 +1,6 @@
|
||||
// USAGE: [flash=width,height,param_name:value]http://www.example.com/file.swf[/flash]
|
||||
|
||||
$movie_path = (substr($code_text,0,4) == 'http') ? 'http://'.eregi_replace('http://', '',$code_text) : $code_text;
|
||||
$movie_path = (substr($code_text,0,4) == 'http') ? 'http://'.preg_replace('[http://]', '',$code_text) : $code_text;
|
||||
$movie_path = $tp -> toAttribute($movie_path);
|
||||
|
||||
$parm_array = explode(',',$parm);
|
||||
@ -8,11 +8,11 @@ $parm_array = explode(',',$parm);
|
||||
$width_type = strpos($parm_array[0], '%') !== FALSE ? '%' : '';
|
||||
$height_type = strpos($parm_array[1], '%') !== FALSE ? '%' : '';
|
||||
|
||||
$width_value = ereg_replace('[^0-9]','',$parm_array[0]);
|
||||
$height_value = ereg_replace('[^0-9]','',$parm_array[1]);
|
||||
$width_value = preg_replace('[^0-9]','',$parm_array[0]);
|
||||
$height_value = preg_replace('[^0-9]','',$parm_array[1]);
|
||||
|
||||
$width_value = $width_value ? $width_value.$width_type : '50';
|
||||
$height_value = $height_value ? $height_value.$height_type : '50';
|
||||
$width_value = varset($width_value, '50').$width_type;
|
||||
$height_value = varset($height_value, '50').$height_type;
|
||||
|
||||
$n = 0;
|
||||
foreach ($parm_array as &$value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user