\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="
Password Required
Enter Password:
\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="
\n"; $password_form.="\n"; } } // If Password // Dont allow submit if $password_form has been populated If(($_POST['submit']==true) AND ($password_form=="")) { //Tally the size of all the files uploaded, check if it's over the ammount. If(array_sum($_FILES['file']['size']) > $max_combined_size*1024) { $error.="提醒: 您上传的文件过大系统无法支持。
"; // Loop though, verify and upload files. } Else { // Loop through all the files. For($i=0; $i <= $file_uploads-1; $i++) { // If a file actually exists in this key If($_FILES['file']['name'][$i]) { //Get the file extension $file_ext[$i]=get_ext($_FILES['file']['name'][$i]); // Randomize file names If($random_name){ $file_name[$i]=time()+rand(0,100000); } Else { $file_name[$i]=cln_file_name($_FILES['file']['name'][$i]); } // Check for blank file name If(str_replace(" ", "", $file_name[$i])=="") { $error.= "提醒: ".$_FILES['file']['name'][$i]." 文件名为空白无法上传。
"; //Check if the file type uploaded is a valid file type. } ElseIf(!in_array($file_ext[$i], $allow_types)) { $error.= "提醒: ".$_FILES['file']['name'][$i]." 您上传的文件类型系统无法识别。
"; //Check the size of each file } Elseif($_FILES['file']['size'][$i] > ($max_file_size*1024)) { $error.= "提醒: ".$_FILES['file']['name'][$i]." 您上传的文件过大!
"; // Check if the file already exists on the server.. } Elseif(file_exists($folder.$file_name[$i].".".$file_ext[$i])) { $error.= "提醒: ".$_FILES['file']['name'][$i]." 上传错误,您上传的文件已经存在。
"; } Else { If(move_uploaded_file($_FILES['file']['tmp_name'][$i],$folder.$file_name[$i].".".$file_ext[$i])) { $success.="名称: ".$_FILES['file']['name'][$i]."
"; $success.="连接: ".$full_url.$file_name[$i].".".$file_ext[$i]."
"; } Else { $error.="提醒: ".$_FILES['file']['name'][$i]." 可能由于网络原因上传失败请重试!
"; } } } // If Files } // For } // Else Total Size If(($error=="") AND ($success=="")) { $error.="提醒: 请按规则上传您的文件
"; } $display_message=$success.$error; } // $_POST AND !$password_form /* //================================================================================ * Start the form layout //================================================================================ :- Please know what your doing before editing below. Sorry for the stop and start php.. people requested that I use only html for the form.. */ ?> 传奇单机论坛免费列表空间

传奇单机论坛免费列表空间

传奇单机论坛免费列表空间

列表1个月左右清理一次,请备份好自己的列表!

限制单个文件
Notice: Undefined variable: max_file_size in /www/admin/73su.com_80/wwwroot/liebiao/index.php on line 318
KB

只支持上传文件格式:
Notice: Undefined variable: allow_types in /www/admin/73su.com_80/wwwroot/liebiao/index.php on line 325

Warning: implode(): Invalid arguments passed in /www/admin/73su.com_80/wwwroot/liebiao/index.php on line 325



Notice: Undefined variable: display_message in /www/admin/73su.com_80/wwwroot/liebiao/index.php on line 333