| version 1.46, 2006/11/08 15:10:50 |
version 1.47, 2006/12/29 20:49:17 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.45 2006-11-08 14:18:06 nepto Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.46 2006-11-08 15:10:50 nepto Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 586 function ezin_article_counts_process(&$a |
|
| Line 586 function ezin_article_counts_process(&$a |
|
| /* |
/* |
| * Upload directory manipulation functions |
* Upload directory manipulation functions |
| */ |
*/ |
| function ezin_lookup_upload_file($file) /* {{{ */ |
function ezin_lookup_upload_file($file, $default_str = false) /* {{{ */ |
| { |
{ |
| global $ezin_cfg; |
global $ezin_cfg; |
| $real_file = Platon::append_slash($ezin_cfg['upload']['dir']).$file; |
$real_file = Platon::append_slash($ezin_cfg['upload']['dir']).$file; |
| if (file_exists($real_file)) { |
if (file_exists($real_file)) { |
| return Platon::append_slash($ezin_cfg['upload']['url']).$file; |
return Platon::append_slash($ezin_cfg['upload']['url']).$file; |
| } |
} |
| return false; |
return $default_str; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| function ezin_lookup_upload_image($dir, $file_wo_ext = '') /* {{{ */ |
function ezin_lookup_upload_image($dir, $file_wo_ext = '', $default_str = false) /* {{{ */ |
| { |
{ |
| if (strlen($file_wo_ext) <= 0) { |
if (strlen($file_wo_ext) <= 0) { |
| // just filename was passed |
// just filename was passed |
| Line 612 function ezin_lookup_upload_image($dir, |
|
| Line 612 function ezin_lookup_upload_image($dir, |
|
| return $url; |
return $url; |
| } |
} |
| } |
} |
| return false; |
return $default_str; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| function ezin_get_upload_image_html($dir, $file_wo_ext, $default_str = '') /* {{{ */ |
function ezin_get_upload_image_html($dir, $file_wo_ext, $default_str = '') /* {{{ */ |