------------------------------------------------------------------------------------------------
(C)2008-2010 - Matthias Hackbarth - http://www.haggybear.de
Plesk Sub & Domain Manager

History:
1.6        (07.03.2008) - Bug in "Set Globals for Domain" corrected. 
                          Ajax search for admin view implemented
1.6a       (30.04.2008) - Bug in Subdomain "protected directories" view corrected
1.7        (25.03.2009) - Plesk 9 Fix 'Level Up' and wrong view with other installed addons	
                          Release under GPLv2.
1.7.1      (13.06.2009) - Plesk 9 view improvements
1.7.2      (12.10.2009) - Frame-forward for subdomains added
1.8        (08.04.2009) - Forward to single sites and SSL-Force for domain added. Some bugfixes
1.9        (21.02.2011) - Modifications for Plesk 10 - No HaggybearController needed.
1.9.1      (17.08.2011) - Bugfix for Plesk 10. Wrong CSS implementation!
------------------------------------------------------------------------------------------------


Install Instructions:

1)
-Change into you Plesk Admin htdocs directory (e.g. /opt/psa/admin/htdocs)
-Make a directory for the Plesk Sudo Manager (e.g. "mkdir subdomedit")
-Set chown of the directory you made above to root:psaadm ("chown root:psaadm subdomedit") 
-Set chmod of the directory you made above to 755 ("chmod 755 subdomedit")
-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") [on freebsd to root:wheel]
-Set chmod of "vhost_writer.sh" to 755 ("chmod 755 vhost_writer.sh")
-Set chmod of "wrapper" to 4755 ("chmod 4755 wrapper") (Very imoportant!! 4755)
-Set chmod of "aliases.txt" and "rights.txt" to 777 ("chmod 777 *.txt")

============================================================================================================
IMPORTANT IF THE SUDO DON'T WORK ON PLESK 8.x (WHITE SCREEN), SET ALL FILES EXEPT THE "wrapper" TO CHMOD 755
INCLUDING THE LANG DIRECTORY!!!
============================================================================================================

-make your settings in 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. "/subdomedit/index.php")
Include domain id: yes
Include domain name: yes
Include FTP Login: no
Include FTP password: no
Include client id: yes
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)


IF YOU'RE USING THE ADDONS WITH PLESK 10.x A SPECIAL CONTROLLER IS NEEDED!
DOWNLOAD THE CONTROLLER AND INSTALL WITH THE INSTRUCTIONS FROM THE INSTALL.txt
Download -> http://haggybear.de/download/psa10_controller.zip 


Thats it!

Have Fun!

02.03.07 Haggy (ich@haggybear.de)
