| 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>"; |
| 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 |
} |
} |
| 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 |
} |
} |