// $Id: uploadfile.sc,v 1.3 2009-08-15 15:44:37 marj_nl_fr 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[]"; //FIXME - XHTML/JS standards $text .="
"; return $text;