--- expose/index.php 2003/11/05 13:50:57 1.1 +++ expose/index.php 2003/11/05 14:06:40 1.2 @@ -20,6 +20,7 @@ | Version 2 along with this program; if not, visit GNU's Home Page | http://www.gnu.org/ +----------------------------------------------------------------------+ +$Id: index.php,v 1.2 2003/11/05 14:06:40 cam Exp $ */ $global_var['metadata']['author'] = "Carl Johan Schedvin "; @@ -174,7 +175,6 @@ while(($file = readdir($pwd_dd)) !== false) { if(is_file($path."/".$file) && !eregi("^\.|^.*.php|^.*.css|^.*~",$file)) - //&& $file != '.' && $file != '..') array_push($images, $file); } } @@ -196,7 +196,7 @@ $pwd_dd = opendir($path); while(($file = readdir($pwd_dd)) !== false) { if(is_dir($path."/".$file) - && !eregi("^\.|^\..|^". $global_var['path']['thumb_dir'] + && !eregi("^\.|^\..|^CVS|^". $global_var['path']['thumb_dir'] ."|^". $global_var['path']['cache_dir'],$file)) array_push($dirs, $file); }