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 = "

Invalid directory

"; } $container .= " "; $id = 1; if(is_array($folders)){ array_multisort($folders, SORT_ASC, SORT_REGULAR); foreach($folders as $v){ if($v){ $vf = $v.'/'; $last_updated_time = date("Y.m.d H:i:s", filemtime($current_folder.$v)); $fileperms = GetFilePerms($current_folder.$v); if($url_path){ $browser = "\"W\""; if($url_field){ $use_url = "\"U\""; }else{ $use_url = "\"U\""; } }else{ $browser = " "; $use_url = "\"U\""; } $container .= " "; $id++; } } } if(is_array($files)){ array_multisort($files, SORT_ASC, SORT_REGULAR); foreach($files as $v){ if($v){ $extension = substr(strrchr($v, "."), 1); $file_image = "ico_file.png"; if($extension == 'php' or $extension == 'php3'){$file_image = "ico_php.png";} if( $extension == 'htm' or $extension == 'HTM' or $extension == 'html' or $extension == 'HTML' ){$file_image = "ico_html.png";} if( $extension == 'jpg' or $extension == 'JPG' or $extension == 'jpeg' or $extension == 'JPEG' or $extension == 'gif' or $extension == 'GIF' or $extension == 'png' or $extension == 'PNG' ){$file_image = "ico_picture.png";} $last_updated_time = date("Y.m.d H:i:s", filemtime($current_folder.$v)); $file_size = roundsize(filesize($current_folder.$v)); if( $extension == 'txt' or $extension == 'inc' or $extension == 'sh' or $extension == 'js' or $extension == 'xml' or $extension == 'conf' or $extension == 'config' or $extension == 'ini' or $extension == 'php' or $extension == 'php3' or $extension == 'htm' or $extension == 'HTM' or $extension == 'html' or $extension == 'HTML' or $extension == 'css' or $extension == 'CSS' ){ $edit_file_content = "\"Edit\""; }else{ $edit_file_content = " "; } $fileperms = GetFilePerms($current_folder.$v); if($url_path){ $browser = "\"W\""; if($url_field){ $use_url = "\"U\""; }else{ $use_url = "\"U\""; } }else{ $browser = " "; $use_url = "\"U\""; } $container .= " "; $id++; } } } $container .= "
  Name   Ext. Size Date Attributes
\"F\" [..]
\"Folder\"
{$v}
{$browser}   \"Rename\"   \"D\"   <DIR> {$last_updated_time} {$fileperms}
\"File\"
{$v}
{$browser} \"Download\" \"Rename\" {$edit_file_content} \"D\" {$extension} {$file_size} {$last_updated_time} {$fileperms}
"; $container = preg_replace("/\s+/m", " ", $container); ?>
go

URL path:
Upload a file in current folder:     Replace existing file    
    Create new folder here; Folder name:
[ open OPEN IN BROWSER ]     [ download DOWNLOAD ]     [ rename RENAME ]     [ view VIEW/EDIT ]     [ delete DELETE ]
File: {$current_folder}{$_GET['f']}

"; } ?>
Created by TomSchaefer // "; } if($redirect){ echo " "; } ?> Login



Username:
Password: