------------------------------------------------------------------------------------------------
(C)2008-2012 - Matthias Hackbarth - ich@haggybear.de
Plesk FTP User Manager (FUM)

History:

0.0.1 Beta (10.10.2006) - No public realease! 
1.0        (18.01.2008) - Create multipe FTP Logins for one "Virtual Hosting"
1.0.1      (19.01.2008) - Groups Bugfix during adding new FTP users
1.0.2      (24.01.2008) - Groups Bugfix during adding new FTP users on SuSE systems
1.1        (26.02.2008) - Fixed UIN management. New FTP User for the same domain getting 
                          the UIN of the main ftp user. All FTP users are changeable.
1.2        (02.04.2008) - Fixed User-Management (changing user-name) Directory check embedded.
1.3        (30.04.2008) - Fixed Bug that the user can access higher directories using "../" as path
                          Security implementation, that only users with Plesk permission to edit their
                          FTP passwords can use the FUM.
                          
1.3.1      (09.01.2009) - Fixed Bug if the plesk default user will be changed the FUM automatically
                          edit the entries in the plesk db tables sys_users and accounts
1.3.2      (19.03.2009) - Plesk 9 Fix 'Level Up' and wrong view with other installed addons			  
1.3.3      (20.03.2009) - Plesk 9 "White Page" Fix
1.3.4      (23.03.2009) - 404 not found fix
1.4        (02.12.2009) - Set the allowed FTP-User for a domain or set unlimited FTP-Accounts
1.4.5      (24.12.2009) - Allow or disallow shell access of the created FTP-Users
1.4.6      (04.01.2010) - Bugfix deleting FTP-User when unlimited FTP-User is set
1.5        (07.04.2010) - Many Bugfixes and complete integration and handling of Plesk Web-Wsers
1.5.1      (23.08.2010) - Fix for the shell account creation and creating a new ftp account when
                          a webuser exists.
1.6        (14.10.2010) - Username creation with dash now possible. Check function added to check
                          if a ftp user is working
1.6.1      (16.02.2011) - Implementation for Plesk Version 10.1.1 and higher so use the FUM without
                          the HaggybearController. Custombutton path is like in Plesk 9. (e.g. /fum/index.php)
1.6.2      (17.08.2011) - Bugfix for Plesk 10. Wrong CSS implementation!
2.0        (01.12.2011) - New GUI and complete code redesign!
2.0.1      (02.02.2012) - View fix for Plesk 10.4.x
2.0.2      (03.02.2012) - Bugfix of error if a customer try to use the FUM
2.0.3      (28.04.2012) - Bugfix if a additional domain user in Plesk 10 try to use the FUM
2.1        (17.10.2013) - Fixes for Plesk 11.5
------------------------------------------------------------------------------------------------

Install Instructions:

1)
-Change into your Plesk Admin htdocs directory (e.g. /opt/psa/admin/htdocs)
-Make a directory for the Plesk FTP User Manager (e.g. "mkdir ftpuseredit")
-Set chown of this dir (e.g. "FtpUserEdit") to root:psaadm ("chown -R root:psaadm ftpuseredit")
-Extract all files of the ZIP into that directory
-Set chown of all files to root:psaadm ("chown -R root:psaadm *")
-Set chown of the file "wrapper" to root:root ("chown -R root:root wrapper")
-Set chmod of "vhost_writer.sh" to 0755
-Set chmod of "wrapper" to 4755
-Set all *.txt to chmod 777
-edit the file config.inc.php

2)
-Login to your Plesk as admin
-Make a new Custom Button with the following settings:

Button label: Just choose a name ;-)
Location: Domain administration page
Priority: 100
Background image: choose the logo.gif of the ZIP
URL: your directory you made above an the index file (e.g. "/ftpuseredit/index.php")
Include domain id: yes
Include domain name: yes
Include FTP Login: yes
Include FTP password: no
Include client id: no
Include client's company name: no
Include client's contact name: no
Include client's e-mail: no
Context help tip contents: whatever you want
Open URL in the Control Panel: yes
Visible to all sub-logins: yes (if your clients are allowed to manager their subdomains) ["no" in Plesk 10.4.x]

Thats it!

Have Fun!