Nothing wrong with allowing people to upload it, as long as you there's no attempt to execute it when downloading it. IE - take a look at this old filemanager:Pro tip, don't allow PHP files. Also, don't overwrite existing files.
if($act == 'getfile'){
$fname = trim($_GET['file']);
$file_path = ROOT.CUR_DIR.'/'.$fname;
if(strlen($fname) < 1)
message('Invalid Link', 'Error');
if(!is_file($file_path))
message('Invalid LInk', 'Error');
set_time_limit(0);
ignore_user_abort();
if(@getimagesize($file_path) !== false){
header('Content-Type: '.mime_content_type($file_path));
die(file_get_contents($file_path));
}
What's gay about it? It's just a project, probably to allow him to learn PHP and expand his knowledge.Looks gay, Why would someone use this over Mega/Mediafire