Zeile 143 | Zeile 143 |
---|
break; case 3: // UPLOAD_ERR_PARTIAL $errors[] = $lang->error_uploadfailed_php3;
|
break; case 3: // UPLOAD_ERR_PARTIAL $errors[] = $lang->error_uploadfailed_php3;
|
break; case 4: // UPLOAD_ERR_NO_FILE $errors[] = $lang->error_uploadfailed_php4;
| |
break; case 6: // UPLOAD_ERR_NO_TMP_DIR $errors[] = $lang->error_uploadfailed_php6;
| break; case 6: // UPLOAD_ERR_NO_TMP_DIR $errors[] = $lang->error_uploadfailed_php6;
|
Zeile 160 | Zeile 157 |
---|
} if(!$errors)
|
} if(!$errors)
|
{
| {
|
// Was the temporary file found? if(!is_uploaded_file($_FILES['local_file']['tmp_name'])) { $errors[] = $lang->error_uploadfailed_lost;
|
// Was the temporary file found? if(!is_uploaded_file($_FILES['local_file']['tmp_name'])) { $errors[] = $lang->error_uploadfailed_lost;
|
}
| }
|
// Get the contents $contents = @file_get_contents($_FILES['local_file']['tmp_name']); // Delete the temporary file if possible
| // Get the contents $contents = @file_get_contents($_FILES['local_file']['tmp_name']); // Delete the temporary file if possible
|
Zeile 175 | Zeile 172 |
---|
{ $errors[] = $lang->error_uploadfailed_nocontents; }
|
{ $errors[] = $lang->error_uploadfailed_nocontents; }
|
}
| }
|
} else if(!empty($mybb->input['url'])) {
| } else if(!empty($mybb->input['url'])) {
|
Zeile 185 | Zeile 182 |
---|
{ $errors[] = $lang->error_local_file; }
|
{ $errors[] = $lang->error_local_file; }
|
| } else { // UPLOAD_ERR_NO_FILE $errors[] = $lang->error_uploadfailed_php4;
|
} if(!$errors)
| } if(!$errors)
|