| Regulator |
Example & Description |
| $date_format |
M j, Y - g:i a Date format of the uploaded
files. |
| $hide_folder |
control*,*backup*,_*
Folders to be hidden:
-- Sometimes you might want to HIDE certain folders. For
example, the folders might contain some scripts or important
server config files. Hiding these folders will prevent the
administrator from accidentally deleting important files.
Also, you might want to hide folders created by Microsoft
FrontPage Extensions that starts with "_".
-- Specify the complete folder names and/or using a wild
card * (asterisk). The example above hides all folders with
the name "controlXXXX", "XXXXbackupXXXX", "backupXXXX", "XXXXbackup"
and "_XXXX" (such as MS FrontPage folders "_vti_cnf"). |
| $create_folder |
Y or
N Allow administrator to create
folders?
-- IMPORTANT: To enable this feature, your PHP config's "Safe_Mode"
must be turned off. This will impose certain level of security
risk to your server. By setting this to "N", the create folder
feature will not be shown. You should then create subfolders
manually using an FTP client. Default setting is "N"
(recommended). |
| $delete_folder |
Y
or N Allow
administrator to delete folders?
-- Files must be emptied before a folder can be deleted. |
| $rename_folder |
Y or
N Allow administrator to rename
folders? |
| $upload_numbers |
3 Numbers of file allowed
for upload at time. If set to "3", then three file upload
fields will show up. |
| $upload_file |
Y or
N Allow administrator to upload files? |
| $delete_file |
Y
or N Allow
administrator to delete files? |
| $rename_file |
Y or
N Allow administrator to rename files? |
| $ext_allowed_X |
$ext_allowed_1 = "txt,htm,html,doc,xls";
$ext_allowed_2 = "gif,bmp";
$ext_allowed_3 = "pdf";File extensions allowed:
-- Allow only files of these extensions to be uploaded. DO NOT
include JPG and PNG extensions here! Images files will be
configured separately below.
-- You can add more $ext_allowed_X where X is 1 to 99.
Delete the extra lines if not used.
IMPORTANT: These controls work in parallel with $max_allowed_X
below. IMPORTANT:
- $ext_allowed_X works in parallel with $max_allowed_X
below.
- I.e., $ext_allowed_1 will match with $max_allowed_1,
- $ext_allowed_2 will match with $max_allowed_2 ..... and so
on. |
$ext_allowed_others
-- This regulator is fixed at "Y"
for the trial version. |
Y or
N Allow other file extensions not
specified above?
-- If you want to allow ALL extensions and only have ONE file
size limit, set $ext_others to "Y" and leave all the $ext_allowed_X
and $max_allowed_X empty. |
| $max_allowed_X |
$max_allowed_1 = "500";
$max_allowed_2 = "250";
$max_allowed_3 = "1024";Maxium file size allowed in Kb:
-- Note that 1,024Kb = 1Mb
-- You can add more $max_allowed_X where X is 1 to 99.
Delete the extra lines if not used.
IMPORTANT: These controls work in parallel with $ext_allowed_X
above. IMPORTANT:
- $max_allowed_X works in parallel with $ext_allowed_X
above.
- I.e., $max_allowed_1 will match with $ext_allowed_1,
- $max_allowed_2 will match with $ext_allowed_2 ..... and so
on. |
$max_allowed_others
-- This regulator is fixed at "1024"
Kb for the trial version. |
1024 What is the maximum file size (in Kb)
allowed if $ext_others is set to "Y"?
-- The script will try to match the conditions you set for $ext_allowed_X
and $max_allowed_X before this condition is applied. |
| $image_resample |
Y - Yes, resample images
N - No, do not resample images. Upload as it is.
D - Disallow the upload of JPG and PNG images completely.
Resample JPG & PNG images (Y, N or D)?
-- If "Yes", all JPG and PNG files will be resampled using the
GD modules (during the upload) if their width or height (in
pixels) is larger than the limits below.
-- GIF images cannot be resampled due to patent issues. If
a GIF image is uploaded, it will NEVER be resampled. It will
be uploaded as it is. |
| $width , $height |
100 Width and height (in pixels) of images.
If the width OR height of the uploaded JPG or PNG image is
larger than these, the image will be resampled to suit the
limit. No resampling if original image is smaller than the
limits stated below. The $imageresample variable above must be
set to "Y" for these two limits to take effect. |
| $tick_zip |
Y or
N Tick "Zip this
upload" checkbox by default?
-- If selected "Y", the checkbox for "Zip it!" on the
upload form will be automatically ticked by default. JPG and
PNG files will not be zipped regardless of the checkbox
control. |
$header_include
-- This is disabled in the trial
version. |
header.htm Insert a header
template page. |
| $footer_include |
footer.htm Insert a
footer template page. |