rootDir.'/themes'; $dh = opendir($bd); $ret = array(); while ($dh && (false !== ($fn = readdir($dh)))) { if ($fn[0] == '.') { continue; } if (is_link($bd .'/'. $fn) || is_dir($bd.'/'. $fn)) { $ret[] = array('name' => $fn); } } closedir($dh); $this->jdata($ret); // } function post($base) { $this->jerr("no access"); } }