+ global $path_to_root;
+
+ $path = $path_to_root.'/themes/';
+ $themes = array();
+ $themedir = opendir($path);
+ while(false !== ($fname = readdir($themedir))) {
+ if($fname!='.' && $fname!='..' && $fname!='CVS' && is_dir($path.$fname)) {
+ $themes[] = $fname;
+ }
+ }
+ sort($themes);