Changeset 21566 for branches/2.5/admin/include
- Timestamp:
- Mar 15, 2013, 11:05:15 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/admin/include/functions.php
r21070 r21566 2457 2457 } 2458 2458 } 2459 2460 /** 2461 * returns an array contening sub-directories, excluding ".svn" 2462 * 2463 * @param string $dir 2464 * @return array 2465 */ 2466 function get_dirs($directory) 2467 { 2468 $sub_dirs = array(); 2469 if ($opendir = opendir($directory)) 2470 { 2471 while ($file = readdir($opendir)) 2472 { 2473 if ($file != '.' 2474 and $file != '..' 2475 and is_dir($directory.'/'.$file) 2476 and $file != '.svn') 2477 { 2478 array_push($sub_dirs, $file); 2479 } 2480 } 2481 closedir($opendir); 2482 } 2483 return $sub_dirs; 2484 } 2459 2485 ?>
Note: See TracChangeset
for help on using the changeset viewer.