UPOINT:: CGI Scripts:: @1 FTP Regulator
.
Demo:
  • Admin mode: Live Demo (login: admin / upoint)
    *** CHANGES WILL NOT BE SAVED IN THIS DEMO ***

General:

Want to give FTP access to your customers/staff but worry that they might mess up with the whole website?

Now you can let your users managing files in a confined environment and with limited control. This script is perfect for web design companies.

With @1 FTP Regulator, you may . . . .
- limit which folders your users can reach.
- hide certain subfolders.
- specify different file size limits for different file types.
- specify whether your users can delete/rename folders and upload/delete/rename files.
- automatically resample/resize JPG/PNG images during uploads . . . . etc.


The Regulators:

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.


Requirement:

  • PHP

  • MySQL, SSI or any non-standard module is NOT needed.


Installation:

1) Configure config.php.
2) Create a main folder called "ftpreg" (www.yourdomain/ftpreg).
3) Upload all files to filestore folder in the structure as in ZIP file.


Lite version:


- The free version is fully functional with all features as in the commercial version except for these 3 regulators: $ext_allowed_others, $max_allowed_others and $header_include (see above). Also, the UPOINT logo image presents at lower-right corner.

Commercial version:

Price: USD44.95

  • License for one IP address. You can use the script for multiple domains if your websites are hosted on the same server using the same shared IP address. $10 for each additional server IP address.
  • Life free upgrades & support + No logo stamping
Select your preferred payment gateway
* 2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by UPDI Network Enterprise. * You may pay via PayPal with or without a PayPal account.
  We prefer PayPal (especially if you have a verified PayPal account).
  Join our affiliate program. Instant account approval. Start making $$$. Start with your own purchase.

Click here if you wish to make payment via other methods.
You might want to consider our Membership offer for full access to download ALL our current and future PHP & Perl scripts.