// $Id: uploadfile.sc,v 1.1.1.1 2006-12-02 04:33:40 mcfly_e107 Exp $ // Your
tag must include: enctype='multipart/form-data' - in order to work. // parm is the path to the upload folder. global $pref; if(!FILE_UPLOADS) { return LAN_UPLOAD_SERVEROFF; } if(USER_AREA === TRUE && !check_class($pref['upload_class'])) { return LAN_DISABLED; } if($parm && !is_writable($parm)) { return LAN_UPLOAD_777." ".str_replace("../","",$parm).""; } $name = "file_userfile[]"; $text .="

"; return $text;