## No file selected.

"; echo "
Back
"; exit ; } if(file_exists("$pooldir/$file_name")) { echo "

## Filename exists, please choose another name.

"; echo "$poolurl/$file_name"; echo "
Back
"; exit ; } if(($file_size!="") && ($file_size>$filesize)) { print "

## File too big: $file_size > $filesize

"; print "Back
"; exit ; } // security solution, if(!image) only for download; if( !preg_match("/image\//",$file_type) && !preg_match("/.js$/i",$file_name) && !preg_match("/.doc$/i",$file_name) && !preg_match("/.exe$/i",$file_name) && !preg_match("/.xls$/i",$file_name) && !preg_match("/.zip$/i",$file_name) && !preg_match("/.tar$/i",$file_name) && !preg_match("/.gz$/i",$file_name) ) $file_name .= "~.js" ; if(! @copy($file_name, "$pooldir/$file_name") ) // old version { if (! move_uploaded_file($file['tmp_name'], $pooldir ."/". $file_name)) // { die("The file couldn't be copied to the server"); } } echo "
File \"$file_name\" was uploaded.
You can now access the file with URL: $poolurl/$file_name"; if( preg_match("/image\//",$file_type) ) echo "
"; else echo "
"; echo "Insert Into The Document"; echo "
Files-Pool"; echo "
Back"; echo "
"; ?>