1){ $up_one_level = " ondblclick=\"document.location='{$_SERVER['PHP_SELF']}?p=".urlencode(substr($current_folder, 0, strrpos(substr($current_folder, 0, -1), "/"))."/")."'\""; } if ($handle = @opendir($current_folder)) { while (false !== ($folder_content = readdir($handle))) { if(is_dir($current_folder.'/'.$folder_content) and $folder_content!='.' and $folder_content!='..'){ $folders[] = $folder_content; }elseif(!is_dir($current_folder.'/'.$folder_content) and $folder!='.' and $folder_content!='..'){ $files[] = $folder_content; } } closedir($handle); }else{ $error = "