[ Index ] |
|
Code source de e107 0.7.8 |
1 // $Id: uploadfile.sc,v 1.5 2006/11/08 20:45:00 e107coders Exp $ 2 3 // Your <form> tag must include: enctype='multipart/form-data' - in order to work. 4 // parm is the path to the upload folder. 5 global $pref; 6 7 if(!FILE_UPLOADS) 8 { 9 return LAN_UPLOAD_SERVEROFF; 10 } 11 if(USER_AREA === TRUE && !check_class($pref['upload_class'])) 12 { 13 return LAN_DISABLED; 14 } 15 16 17 if($parm && !is_writable($parm)) 18 { 19 return LAN_UPLOAD_777." <b>".str_replace("../","",$parm)."</b>"; 20 } 21 22 $name = "file_userfile[]"; 23 24 $text .=" 25 <!-- Upload Shortcode --> 26 <div style='width:90%'><div id='up_container' > 27 <span id='upline' style='white-space:nowrap'> 28 <input class='tbox' type='file' name='$name' size='40' /> 29 </span><br /> 30 </div> 31 <span style='float:left;padding-top:3px'><input type='button' class='button' value=\"".LAN_UPLOAD_ADDFILE."\" onclick=\"duplicateHTML('upline','up_container');\" /></span> 32 <span style='float:right;padding-top:3px'><input class='button' type='submit' name='uploadfiles' value=\"".LAN_UPLOAD_FILES."\" onclick=\"return jsconfirm('".LAN_UPLOAD_CONFIRM."')\" /></span> 33 </div> 34 <!-- End Upload Shortcode --> 35 "; 36 37 return $text;
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |