Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, November 12, 2026

Diff for Metafox/functions.inc.php between version 1.65 and 1.66

version 1.65, 2007/07/19 18:30:50 version 1.66, 2007/07/19 18:54:33
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/functions.inc.php,v 1.64 2007-07-07 22:16:26 nepto Exp $ */  /* $Platon: Metafox/functions.inc.php,v 1.65 2007-07-19 18:30:50 nepto Exp $ */
   
 function ezin_eval($evalcode) /* {{{ */  function ezin_eval($evalcode) /* {{{ */
 {  {
Line 613  function ezin_lookup_upload_file($file,
Line 613  function ezin_lookup_upload_file($file,
         return $default_str;          return $default_str;
 } /* }}} */  } /* }}} */
   
 function ezin_lookup_upload_image($dir, $file_wo_ext = '', $default_str = false) /* {{{ */  function ezin_lookup_upload_file_ext_ar($dir, $file_wo_ext = '', $default_str = false, $extensions = array()) /* {{{ */
 {  {
         if (strlen($file_wo_ext) <= 0) {          if (strlen($file_wo_ext) <= 0) {
                 // just filename was passed                  // just filename was passed
                 return ezin_lookup_upload_file($dir, $default_str);                  return ezin_lookup_upload_file($dir, $default_str);
         }          }
         $dir = Platon::append_slash($dir);          $dir = Platon::append_slash($dir);
         static $extensions = array('', 'png', 'gif', 'jpg', 'PNG', 'GIF', 'JPG');  
         foreach ($extensions as $ext) {          foreach ($extensions as $ext) {
                 $file = $dir.$file_wo_ext;                  $file = $dir.$file_wo_ext;
                 strlen($ext) > 0 && $file .= ".$ext";                  strlen($ext) > 0 && $file .= ".$ext";
Line 632  function ezin_lookup_upload_image($dir,
Line 631  function ezin_lookup_upload_image($dir,
         return $default_str;          return $default_str;
 } /* }}} */  } /* }}} */
   
   function ezin_lookup_upload_image($dir, $file_wo_ext = '', $default_str = false) /* {{{ */
   {
           static $extensions = array('', 'png', 'gif', 'jpg', 'PNG', 'GIF', 'JPG');
           return ezin_lookup_upload_file_ext_ar($dir, $file_wo_ext, $default_str, $extensions);
   } /* }}} */
   
   function ezin_lookup_upload_flash($dir, $file_wo_ext = '', $default_str = false) /* {{{ */
   {
           static $extensions = array('', 'swf', 'SWF');
           return ezin_lookup_upload_file_ext_ar($dir, $file_wo_ext, $default_str, $extensions);
   } /* }}} */
   
 function ezin_get_upload_image_html($dir, $file_wo_ext, $default_str = '') /* {{{ */  function ezin_get_upload_image_html($dir, $file_wo_ext, $default_str = '') /* {{{ */
 {  {
         $url = ezin_lookup_upload_image($dir, $file_wo_ext);          $url = ezin_lookup_upload_image($dir, $file_wo_ext);

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top