Diff for Metafox/functions.inc.php between version 1.75 and 1.76
| version 1.75, 2008/03/06 11:03:33 |
version 1.76, 2008/03/06 11:07:47 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.74 2007-12-31 13:45:40 nepto Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.75 2008-03-06 11:03:33 nepto Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 148 function ezin_handle_special_tags(&$str, |
|
| Line 148 function ezin_handle_special_tags(&$str, |
|
| continue; |
continue; |
| } |
} |
| $handler = opendir($full_path); |
$handler = opendir($full_path); |
| |
$img_ar = array(); |
| while ($file = readdir($handler)) { |
while ($file = readdir($handler)) { |
| |
$img_ar[] = $file; |
| |
} |
| |
sort($img_ar); |
| |
foreach ($img_ar as $file) { |
| // if $file isn't this directory or its parent, |
// if $file isn't this directory or its parent, |
| // add it to the replacement |
// add it to the replacement |
| if ($file{0} != '.') { |
if ($file{0} != '.') { |
| $g_replace .= "<image-link $directory$file $attrs>$file</image-link>\n"; |
$g_replace .= "<image-link $directory$file $attrs>$file</image-link>\n"; |
| } |
} |
| } |
} |
| |
unset($img_ar); |
| closedir($handler); |
closedir($handler); |
| $str = preg_replace($g_pattern, $g_replace, $str); |
$str = preg_replace($g_pattern, $g_replace, $str); |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|