|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* XOOPS - PHP Content Management System |
|
4
|
|
|
* Copyright (c) 2001 - 2006 <http://www.xoops.org/> |
|
5
|
|
|
* |
|
6
|
|
|
* Module: xoopsinfo 2.0 |
|
7
|
|
|
* Licence : GPL |
|
8
|
|
|
* Authors : |
|
9
|
|
|
* - Jmorris |
|
10
|
|
|
* - Marco |
|
11
|
|
|
* - Christian |
|
12
|
|
|
* - DuGris (http://www.dugris.info) |
|
13
|
|
|
*/ |
|
14
|
|
|
|
|
15
|
|
|
define("_ER_UP_MIMETYPELOAD","Error loading mimetypes definition"); |
|
16
|
|
|
define("_ER_UP_FILENOTFOUND","File not found"); |
|
17
|
|
|
define("_ER_UP_INVALIDFILESIZE", "Invalid File Size"); |
|
18
|
|
|
define("_ER_UP_FILENAMEEMPTY","Filename Is Empty"); |
|
19
|
|
|
define("_ER_UP_NOFILEUPLOADED","No file uploaded"); |
|
20
|
|
|
define("_ER_UP_ERROROCCURRED","Error occurred : Error #%s"); |
|
21
|
|
|
define("_ER_UP_UPLOADDIRNOTSET", "Upload directory not set"); |
|
22
|
|
|
define("_ER_UP_FAILEDOPENDIR","Failed opening directory : %s"); |
|
23
|
|
|
define("_ER_UP_FAILEDOPENDIRWRITE", "Failed opening directory with write permission : %s"); |
|
24
|
|
|
define("_ER_UP_FILESIZETOOLARGE", "File size too large : %u"); |
|
25
|
|
|
define("_ER_UP_FILEWIDTHTOOLARGE", "File width must be smaller than %u"); |
|
26
|
|
|
define("_ER_UP_FILEHEIGHTTOOLARGE", "File height must be smaller than %u"); |
|
27
|
|
|
define("_ER_UP_MIMETYPENOTALLOWED", "MIME type not allowed : %s"); |
|
28
|
|
|
define("_ER_UP_FAILEDUPLOADFILE", "Failed uploading file : %s"); |
|
29
|
|
|
define("_ER_UP_FAILEDFETCHIMAGESIZE", "Failed fetching image size of %s, skipping max dimension check.."); |
|
30
|
|
|
define("_ER_UP_UNKNOWNFILETYPEREJECTED","Unknown filetype rejected"); |
|
31
|
|
|
define("_ER_UP_ERRORSRETURNED","Errors Returned While Uploading"); |
|
32
|
|
|
define("_ER_UP_INVALIDIMAGEFILE", "Invalide image file"); |
|
33
|
|
|
define("_ER_UP_SUSPICIOUSIMAGE", "Suspicious image upload refused"); |
|
34
|
|
|
?> |
|
|
|
|
|
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.