Changeset 477 for dev/common/includes/globals.php
- Timestamp:
- 11/26/09 20:57:34 (12 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/includes/globals.php
r476 r477 194 194 } 195 195 } 196 if (!function_exists('scandir')) 197 { 198 function scandir($dir, $sorting_order = false, $context = null) 199 { 200 $dirArray = array(); 201 if ($handle = opendir($dir)) 202 { 203 while (false !== ($file = readdir($handle))) 204 array_push($dirArray,basename($file)); 205 closedir($handle); 206 } 207 else $dirArray = false; 208 return $dirArray; 209 } 210 }