@@ -28,7 +28,7 @@ function admin_dir_fill() {
$dirlist = [];
while ($file = readdir($dir_handle)) {
if(!is_dir($path.$file)) continue;
- if (in_array($file, array('miniatury', '.', '..')))
+ if (in_array($file, array('miniatury', 'include', '.git', '.', '..')))
continue;
$dirlist[] = array('name' => $file, 'date' => filemtime($path.$file));
}
@@ -9,6 +9,7 @@ function makeImageUrl(dir, file) {
if (mode && mode.length > 0) {
res += '&mode=' + mode;
+ return res;
function setLinks(e) {
@@ -50,6 +50,8 @@ function get_dir_list() {
die();
while ($row = $res->fetch(PDO::FETCH_ASSOC)) {
+ if ($row['hidden'])
+ continue;
$dir[] = $row;