/[cvs]/expose/index.php
ViewVC logotype

Diff of /expose/index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by cam, Wed Nov 5 13:50:57 2003 UTC revision 1.2 by cam, Wed Nov 5 14:06:40 2003 UTC
# Line 20  Line 20 
20  | Version 2 along with this program; if not, visit GNU's Home Page  | Version 2 along with this program; if not, visit GNU's Home Page
21  | http://www.gnu.org/  | http://www.gnu.org/
22  +----------------------------------------------------------------------+  +----------------------------------------------------------------------+
23    $Id$
24  */  */
25    
26  $global_var['metadata']['author'] = "Carl Johan Schedvin <cjsc02@student.bth.se>";  $global_var['metadata']['author'] = "Carl Johan Schedvin <cjsc02@student.bth.se>";
# Line 174  function &get_image_filenames($path) Line 175  function &get_image_filenames($path)
175                  while(($file = readdir($pwd_dd)) !== false) {                                    while(($file = readdir($pwd_dd)) !== false) {                  
176                          if(is_file($path."/".$file)                          if(is_file($path."/".$file)
177                                  && !eregi("^\.|^.*.php|^.*.css|^.*~",$file))                                  && !eregi("^\.|^.*.php|^.*.css|^.*~",$file))
                                 //&& $file != '.' && $file != '..')  
178                                          array_push($images, $file);                                          array_push($images, $file);
179                  }                  }
180          }          }
# Line 196  function &get_directory_names($path) Line 196  function &get_directory_names($path)
196                  $pwd_dd = opendir($path);                  $pwd_dd = opendir($path);
197                  while(($file = readdir($pwd_dd)) !== false) {                                    while(($file = readdir($pwd_dd)) !== false) {                  
198                          if(is_dir($path."/".$file)                          if(is_dir($path."/".$file)
199                                  && !eregi("^\.|^\..|^". $global_var['path']['thumb_dir']                                  && !eregi("^\.|^\..|^CVS|^". $global_var['path']['thumb_dir']
200                                                          ."|^". $global_var['path']['cache_dir'],$file))                                                          ."|^". $global_var['path']['cache_dir'],$file))
201                                  array_push($dirs, $file);                                  array_push($dirs, $file);
202                  }                  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26