Rozdiely pre Metafox/admin/inc/functions.inc.php medzi verziami 1.4 a 1.5
| verzia 1.4, 2006/05/08 08:10:34 |
verzia 1.5, 2006/06/12 17:13:39 |
| Riadok 94 function ezin_admin_word_clean($content) |
|
| Riadok 94 function ezin_admin_word_clean($content) |
|
| return $tag.$content; |
return $tag.$content; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| |
function ezin_admin_get_template_keys($template_name) /* {{{ */ |
| |
{ |
| |
global $ezin_sys, $ezin_cfg; |
| |
$output_ar = array(); |
| |
$directory = dir($ezin_sys['dir']['root'].'/'.$ezin_sys['dir']['themes'].'/'.$ezin_cfg['theme']['name'].'/'); |
| |
$template_name .= $ezin_sys['tmpl']['delim']; |
| |
$template_name_len = strlen($template_name); |
| |
$delimext = $ezin_sys['tmpl']['delimext']; |
| |
$delimext_len = strlen($delimext); |
| |
while ($entry = $directory->read()) { |
| |
if (strncmp($entry, $template_name, $template_name_len)) { |
| |
continue; |
| |
} |
| |
$entry = Platon::str_replace_prefix($template_name, '', $entry); |
| |
if (strncmp(strrev($entry), strrev($delimext), $delimext_len)) { |
| |
continue; |
| |
} |
| |
$entry = Platon::str_replace_postfix($delimext, '', $entry); |
| |
array_push($output_ar, $entry); |
| |
} |
| |
sort($output_ar); |
| |
return $output_ar; |
| |
} /* }}} */ |
| |
|
| /* Modeline for ViM {{{ |
/* Modeline for ViM {{{ |
| * vim: set ts=4: |
* vim: set ts=4: |
| * vim600: fdm=marker fdl=0 fdc=0: |
* vim600: fdm=marker fdl=0 fdc=0: |
Platon Group <platon@platon.sk> http://platon.sk/
|
|