Searched refs:currentdir (Results 1 – 1 of 1) sorted by relevance
57 $currentdir = realpath($docroot.'/'.$imgdir.@$_REQUEST['dir']); variable58 if (!preg_match('#^'.preg_quote($dirlimit).'#', $currentdir)) {59 echo 'Cannot browse to "'.htmlentities($currentdir).'"<br>';60 } elseif ($dh = @opendir($currentdir)) {64 if (is_dir($currentdir.'/'.$file) && ($file[0] != '.')) {71 if (preg_match('#^'.preg_quote($dirlimit).'#', realpath($currentdir.'/..'))) {99 echo 'failed to open "'.htmlentities($currentdir).'"';