Diff for Metafox/functions.inc.php between version 1.94 and 1.95
| version 1.94, 2012/05/02 12:58:15 |
version 1.95, 2012/05/14 14:53:43 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.93 2011-09-27 13:48:53 igor Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.94 2012-05-02 12:58:15 igor Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 1942 function ezin_dir_app_include($url_part, |
|
| Line 1942 function ezin_dir_app_include($url_part, |
|
| @chdir($ezin_tmpl_dir); |
@chdir($ezin_tmpl_dir); |
| } /* }}} */ |
} /* }}} */ |
| |
|
| |
function ezin_get_template_files($theme = null, $fullpath = false) { |
| |
global $ezin_cfg; |
| |
global $ezin_sys; |
| |
if (is_null($theme) |
| |
|| strlen($theme)) |
| |
{ |
| |
$theme = $ezin_cfg['theme']['name']; |
| |
} |
| |
$dir = $ezin_sys['dir']['root'].'/'.$ezin_sys['dir']['themes'].'/'.$theme.'/'; |
| |
$files = array(); |
| |
if (is_dir($dir)) { |
| |
if ($handle = opendir($dir)) { |
| |
while (false !== ($entry = readdir($handle))) { |
| |
if ($entry != "." |
| |
&& $entry != ".." |
| |
&& substr($entry, -5) == '.tmpl') |
| |
{ |
| |
$files[] = $fullpath ? $dir.$entry : $entry; |
| |
} |
| |
} |
| |
closedir($handle); |
| |
} |
| |
} |
| |
return $files; |
| |
} |
| |
|
| /* |
/* |
| * Get data with cURL |
* Get data with cURL |
| */ |
*/ |
Platon Group <platon@platon.org> http://platon.org/
|
|