Changeset 270
- Timestamp:
- Jan 11, 2004, 12:17:51 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/admin/include/functions.php
r262 r270 928 928 return 0; 929 929 } 930 931 /** 932 * returns an array containing sub-directories which can be a category 933 * 934 * directories nammed "thumbnail" are omitted 935 * 936 * @param string $basedir 937 * @return array 938 */ 939 function get_category_directories( $basedir ) 940 { 941 $sub_dirs = array(); 942 943 if ( $opendir = opendir( $basedir ) ) 944 { 945 while ( $file = readdir( $opendir ) ) 946 { 947 if ( $file != '.' and $file != '..' 948 and is_dir( $basedir.'/'.$file ) 949 and $file != 'thumbnail' ) 950 { 951 array_push( $sub_dirs, $file ); 952 } 953 } 954 } 955 return $sub_dirs; 956 } 930 957 ?>
Note: See TracChangeset
for help on using the changeset viewer.