summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCHTEKK <CHTEKK@localhost>2006-06-14 23:23:52 +0000
committerCHTEKK <CHTEKK@localhost>2006-06-14 23:23:52 +0000
commit5fc5e7151d1c7d54fa9842156d647facc8cfcf58 (patch)
treee55f0971ccd39a33b1624e2baa82f82e4be13e7d /syscp/patches
parentAdd updated Horde-IMP 4.1.1, Horde-Ingo 1.1.1 and Horde-SAM-20060614 snapshot (diff)
downloadchtekk-5fc5e7151d1c7d54fa9842156d647facc8cfcf58.tar.gz
chtekk-5fc5e7151d1c7d54fa9842156d647facc8cfcf58.tar.bz2
chtekk-5fc5e7151d1c7d54fa9842156d647facc8cfcf58.zip
Add the SysCP ebuild and it's patches&tarballs
svn path=/; revision=3
Diffstat (limited to 'syscp/patches')
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/etc_libnss-mysql-root.cfg2
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/etc_libnss-mysql.cfg38
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/bind/etc_bind_default.zone21
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_imapd376
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_imapd-ssl199
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_pop3d127
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_pop3d-ssl186
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier_authlib_authdaemonrc93
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier_authlib_authmysqlrc12
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/cron/etc_cron.d_syscp10
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/cron/etc_php_syscp-cronjob_php.ini61
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/cron/etc_php_syscp-vhost_php.ini61
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_main.cf65
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf8
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf8
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf7
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_sasl2_smtpd.conf12
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/gentoo/proftpd/etc_proftpd_proftpd.conf89
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/syscp-1.2.13-gentoo-admin_configfiles.php-bind-ssl290
-rw-r--r--syscp/patches/gentoo-config-files/bind-ssl/syscp-1.2.13-gentoo-config-bind-ssl-r2.tar.bz2bin0 -> 15312 bytes
-rw-r--r--syscp/patches/gentoo-config-files/bind/etc_libnss-mysql-root.cfg2
-rw-r--r--syscp/patches/gentoo-config-files/bind/etc_libnss-mysql.cfg38
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/bind/etc_bind_default.zone21
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_imapd376
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_imapd-ssl199
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_pop3d127
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_pop3d-ssl186
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier_authlib_authdaemonrc93
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier_authlib_authmysqlrc12
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/cron/etc_cron.d_syscp10
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/cron/etc_php_syscp-cronjob_php.ini61
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/cron/etc_php_syscp-vhost_php.ini61
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_main.cf65
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf8
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf8
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf7
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_sasl2_smtpd.conf12
-rw-r--r--syscp/patches/gentoo-config-files/bind/gentoo/proftpd/etc_proftpd_proftpd.conf89
-rw-r--r--syscp/patches/gentoo-config-files/bind/syscp-1.2.13-gentoo-admin_configfiles.php-bind286
-rw-r--r--syscp/patches/gentoo-config-files/bind/syscp-1.2.13-gentoo-config-bind-r2.tar.bz2bin0 -> 15280 bytes
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/etc_libnss-mysql-root.cfg2
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/etc_libnss-mysql.cfg38
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_imapd376
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_imapd-ssl199
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_pop3d127
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_pop3d-ssl186
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier_authlib_authdaemonrc93
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier_authlib_authmysqlrc12
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/cron/etc_cron.d_syscp10
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/cron/etc_php_syscp-cronjob_php.ini61
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/cron/etc_php_syscp-vhost_php.ini61
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_main.cf65
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf8
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf8
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf7
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_sasl2_smtpd.conf12
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/gentoo/proftpd/etc_proftpd_proftpd.conf89
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/syscp-1.2.13-gentoo-admin_configfiles.php-nodns-ssl270
-rw-r--r--syscp/patches/gentoo-config-files/nodns-ssl/syscp-1.2.13-gentoo-config-nodns-ssl-r2.tar.bz2bin0 -> 15035 bytes
-rw-r--r--syscp/patches/gentoo-config-files/nodns/etc_libnss-mysql-root.cfg2
-rw-r--r--syscp/patches/gentoo-config-files/nodns/etc_libnss-mysql.cfg38
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_imapd376
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_imapd-ssl199
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_pop3d127
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_pop3d-ssl186
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier_authlib_authdaemonrc93
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier_authlib_authmysqlrc12
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/cron/etc_cron.d_syscp10
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/cron/etc_php_syscp-cronjob_php.ini61
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/cron/etc_php_syscp-vhost_php.ini61
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_main.cf65
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf8
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf8
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf7
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_sasl2_smtpd.conf12
-rw-r--r--syscp/patches/gentoo-config-files/nodns/gentoo/proftpd/etc_proftpd_proftpd.conf89
-rw-r--r--syscp/patches/gentoo-config-files/nodns/syscp-1.2.13-gentoo-admin_configfiles.php-nodns266
-rw-r--r--syscp/patches/gentoo-config-files/nodns/syscp-1.2.13-gentoo-config-nodns-r2.tar.bz2bin0 -> 15032 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/ball.gifbin0 -> 51 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/cambialingua.gifbin0 -> 10380 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/errore.gifbin0 -> 1294 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/finesezione.gifbin0 -> 4383 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/footer.gifbin0 -> 21262 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/header.gifbin0 -> 37730 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/header_r.gifbin0 -> 686 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/login.gifbin0 -> 1406 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/logininterno.gifbin0 -> 3355 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/ombra.gifbin0 -> 122 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/order_asc.gifbin0 -> 62 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/order_desc.gifbin0 -> 60 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/sezione.gifbin0 -> 4386 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/sottosezione.gifbin0 -> 3639 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/titolo.gifbin0 -> 69 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/valid-xhtml10bin0 -> 2414 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/vcssbin0 -> 1547 bytes
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins.tpl29
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins_add.tpl89
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins_admin.tpl11
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins_edit.tpl94
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/choose.tpl10
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/choose_daemon.tpl2
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/choose_distribution.tpl12
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/configfiles.tpl24
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/configfiles_file.tpl1
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers.tpl39
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers_add.tpl109
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers_customer.tpl18
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers_edit.tpl114
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains.tpl32
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains_add.tpl77
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains_domain.tpl8
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains_edit.tpl80
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/index/change_language.tpl23
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/index/change_password.tpl31
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/index/index.tpl91
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports.tpl30
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports_add.tpl25
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports_edit.tpl26
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports_ipandport.tpl6
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/settings/settings.tpl121
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates.tpl20
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_add_1.tpl21
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_add_2.tpl66
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_edit.tpl68
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_template.tpl6
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domainlist.tpl30
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains.tpl12
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_add.tpl29
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_delimiter.tpl3
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_domain.tpl6
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_edit.tpl44
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/account_add.tpl26
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/account_changepw.tpl26
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/email.tpl12
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails.tpl27
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_add.tpl25
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_domain.tpl3
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_edit.tpl40
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_edit_forwarder.tpl2
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_email.tpl8
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/forwarder_add.tpl26
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/extras.tpl12
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess.tpl21
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess_add.tpl37
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess_edit.tpl38
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess_htaccess.tpl9
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds.tpl18
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds_add.tpl29
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds_edit.tpl30
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds_htpasswd.tpl6
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts.tpl30
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts_account.tpl6
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts_add.tpl25
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts_edit.tpl26
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/ftp.tpl12
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/index/change_language.tpl23
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/index/change_password.tpl34
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/index/index.tpl76
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysql.tpl12
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls.tpl25
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls_add.tpl25
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls_database.tpl6
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls_edit.tpl30
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/footer.tpl16
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/header.tpl28
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/login/login.tpl33
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/maincss.css244
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/misc/error.tpl13
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/misc/question_yesno.tpl18
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/misc/standardcustomer/index.html11
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/navigation_element.tpl12
-rw-r--r--syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/navigation_link.tpl2
-rw-r--r--syscp/patches/gentoo-syscp-design/syscp-1.2.13-gentoo-syscp-design-r3.tar.bz2bin0 -> 104718 bytes
-rw-r--r--syscp/patches/italian-lang/italian.lng.php363
-rw-r--r--syscp/patches/mysql-ftp-patch/syscp-1.2.13-mysql-ftp-patch-r3.tar.bz2bin0 -> 6182 bytes
-rw-r--r--syscp/patches/mysql-ftp-patch/syscp-1.2.13-mysqli-ftpi.patch712
-rw-r--r--syscp/patches/options-patch/syscp-1.2.13-moreoptions.patch585
-rw-r--r--syscp/patches/options-patch/syscp-1.2.13-options-patch-r3.tar.bz2bin0 -> 6086 bytes
-rw-r--r--syscp/patches/suexec-patch/syscp-1.2.13-suexec-patch-r3.tar.bz2bin0 -> 454 bytes
-rw-r--r--syscp/patches/suexec-patch/syscp-1.2.13-suexec-support.patch11
-rw-r--r--syscp/patches/suphp-patch/syscp-1.2.13-suphp-patch-r3.tar.bz2bin0 -> 4019 bytes
-rw-r--r--syscp/patches/suphp-patch/syscp-1.2.13-suphp-support.patch370
-rw-r--r--syscp/patches/syscp-patches/syscp-1.2.13-gentoo-compatibility.patch83
-rw-r--r--syscp/patches/syscp-patches/syscp-1.2.13-patches-r3.tar.bz2bin0 -> 1971 bytes
-rw-r--r--syscp/patches/syscp-sqlfile/syscp-1.2.13-addopts-db.sql7
-rw-r--r--syscp/patches/syscp-sqlfile/syscp-1.2.13-baseinstall-db.sql646
-rw-r--r--syscp/patches/syscp-sqlfile/syscp-1.2.13-mysqlftpimp-db.sql15
-rw-r--r--syscp/patches/syscp-sqlfile/syscp-1.2.13-sqlfile-r3.tar.bz2bin0 -> 4092 bytes
-rw-r--r--syscp/patches/syscp-sqlfile/syscp-1.2.13-suphp-db.sql3
189 files changed, 11874 insertions, 0 deletions
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/etc_libnss-mysql-root.cfg b/syscp/patches/gentoo-config-files/bind-ssl/etc_libnss-mysql-root.cfg
new file mode 100644
index 0000000..6498977
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/etc_libnss-mysql-root.cfg
@@ -0,0 +1,2 @@
+username <SQL_UNPRIVILEGED_USER>
+password <SQL_UNPRIVILEGED_PASSWORD>
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/etc_libnss-mysql.cfg b/syscp/patches/gentoo-config-files/bind-ssl/etc_libnss-mysql.cfg
new file mode 100644
index 0000000..d284192
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/etc_libnss-mysql.cfg
@@ -0,0 +1,38 @@
+getpwnam SELECT username,'x',uid,gid,'MySQL User',homedir,shell \
+ FROM ftp_users \
+ WHERE username='%1$s' \
+ LIMIT 1
+getpwuid SELECT username,'x',uid,gid,'MySQL User',homedir,shell \
+ FROM ftp_users \
+ WHERE uid='%1$u' \
+ LIMIT 1
+getspnam SELECT username,password,UNIX_TIMESTAMP()-10,'1','2','7','-1','-1','0' \
+ FROM ftp_users \
+ WHERE username='%1$s' \
+ LIMIT 1
+getpwent SELECT username,'x',uid,gid,'MySQL User',homedir,shell \
+ FROM ftp_users
+getspent SELECT username,password,UNIX_TIMESTAMP()-10,'1','2','7','-1','-1','0' \
+ FROM ftp_users
+getgrnam SELECT groupname,'x',gid \
+ FROM ftp_groups \
+ WHERE groupname='%1$s' \
+ LIMIT 1
+getgrgid SELECT groupname,'x',gid \
+ FROM ftp_groups \
+ WHERE gid='%1$u' \
+ LIMIT 1
+getgrent SELECT groupname,'x',gid \
+ FROM ftp_groups
+memsbygid SELECT username \
+ FROM ftp_users \
+ WHERE gid='%1$u'
+gidsbymem SELECT gid \
+ FROM ftp_users \
+ WHERE username='%1$s'
+
+host <SQL_HOST>
+database <SQL_DB>
+username <SQL_UNPRIVILEGED_USER>
+password <SQL_UNPRIVILEGED_PASSWORD>
+socket /var/run/mysqld/mysqld.sock
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/bind/etc_bind_default.zone b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/bind/etc_bind_default.zone
new file mode 100644
index 0000000..817b9bc
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/bind/etc_bind_default.zone
@@ -0,0 +1,21 @@
+$TTL 1W
+@ IN SOA ns root (
+ 2004060501 ; serial
+ 8H ; refresh
+ 2H ; retry
+ 1W ; expiry
+ 11h) ; minimum
+
+ IN NS ns
+ IN MX 10 mail
+
+ IN A <SERVERIP>
+ IN MX 10 mail
+
+* IN A <SERVERIP>
+ IN MX 10 mail
+
+ns IN A <SERVERIP>
+
+mail IN A <SERVERIP>
+ IN MX 10 mail
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_imapd b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_imapd
new file mode 100644
index 0000000..f594e41
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_imapd
@@ -0,0 +1,376 @@
+##VERSION: $Id: imapd.dist.in,v 1.32 2004/11/25 04:57:04 mrsam Exp $
+#
+# imapd created from imapd.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# This configuration file sets various options for the Courier-IMAP server
+# when used with the couriertcpd server.
+# A lot of the stuff here is documented in the manual page for couriertcpd.
+#
+# NOTE - do not use \ to split long variable contents on multiple lines.
+# This will break the default imapd.rc script, which parses this file.
+#
+##NAME: ADDRESS:0
+#
+# Address to listen on, can be set to a single IP address.
+#
+# ADDRESS=127.0.0.1
+
+ADDRESS=0
+
+##NAME: PORT:1
+#
+# Port numbers that connections are accepted on. The default is 143,
+# the standard IMAP port.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possible to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The previous ADDRESS setting is a default for ports that do not have
+# a specified IP address.
+
+PORT=143
+
+##NAME: AUTHSERVICE:0
+#
+# It's possible to authenticate using a different 'service' parameter
+# depending on the connection's port. This only works with authentication
+# modules that use the 'service' parameter, such as PAM. Example:
+#
+# AUTHSERVICE143=imap
+# AUTHSERVICE993=imaps
+
+##NAME: MAXDAEMONS:0
+#
+# Maximum number of IMAP servers started
+#
+
+MAXDAEMONS=50
+
+##NAME: MAXPERIP:0
+#
+# Maximum number of connections to accept from the same IP address
+
+MAXPERIP=10
+
+##NAME: PIDFILE:0
+#
+# File where couriertcpd will save its process ID
+#
+
+PIDFILE=/var/run/imapd.pid
+
+##NAME: TCPDOPTS:0
+#
+# Miscellaneous couriertcpd options that shouldn't be changed.
+#
+
+TCPDOPTS="-nodnslookup -noidentlookup"
+
+##NAME: IMAP_CAPABILITY:1
+#
+# IMAP_CAPABILITY specifies what most of the response should be to the
+# CAPABILITY command.
+#
+# If you have properly configured Courier to use CRAM-MD5 or CRAM-SHA1
+# authentication (see INSTALL), set IMAP_CAPABILITY as follows:
+#
+# IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
+#
+
+IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE"
+
+##NAME: KEYWORDS_CAPABILITY:0
+#
+# IMAP_KEYWORDS=1 enables custom IMAP keywords. Set this option to 0 to
+# disable custom keywords.
+
+IMAP_KEYWORDS=1
+
+##NAME: SMAP1_CAPABILITY:0
+#
+# EXPERIMENTAL
+#
+# To enable the experimental "Simple Mail Access Protocol" extensions,
+# uncomment the following setting.
+#
+# SMAP_CAPABILITY=SMAP1
+
+##NAME: IMAP_CAPABILITY_ORIG:1
+#
+# For use by webadmin
+
+IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
+
+##NAME: IMAP_PROXY:0
+#
+# Enable proxying. See README.proxy
+
+IMAP_PROXY=0
+
+##NAME: IMAP_PROXY_FOREIGN:0
+#
+# Proxying to non-Courier servers. Re-sends the CAPABILITY command after
+# logging in to the remote server. May not work with all IMAP clients.
+
+IMAP_PROXY_FOREIGN=0
+
+##NAME: IMAP_IDLE_TIMEOUT:0
+#
+# This setting controls how often
+# the server polls for changes to the folder, in IDLE mode (in seconds).
+
+IMAP_IDLE_TIMEOUT=60
+
+##NAME: IMAP_CAPABILITY_TLS:0
+#
+# The following setting will advertise SASL PLAIN authentication after
+# STARTTLS is established. If you want to allow SASL PLAIN authentication
+# with or without TLS then just comment this out, and add AUTH=PLAIN to
+# IMAP_CAPABILITY
+
+IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
+
+##NAME: IMAP_TLS_ORIG:0
+#
+# For use by webadmin
+
+IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
+
+##NAME: IMAP_DISABLETHREADSORT:0
+#
+# Set IMAP_DISABLETHREADSORT to disable the THREAD and SORT commands -
+# server side sorting and threading.
+#
+# Those capabilities will still be advertised, but the server will reject
+# them. Set this option if you want to disable all the extra load from
+# server-side threading and sorting. Not advertising those capabilities
+# will simply result in the clients reading the entire folder, and sorting
+# it on the client side. That will still put some load on the server.
+# advertising these capabilities, but rejecting the commands, will stop this
+# silliness.
+#
+
+IMAP_DISABLETHREADSORT=0
+
+##NAME: IMAP_CHECK_ALL_FOLDERS:0
+#
+# Set IMAP_CHECK_ALL_FOLDERS to 1 if you want the server to check for new
+# mail in every folder. Not all IMAP clients use the IMAP's new mail
+# indicator, but some do. Normally new mail is checked only in INBOX,
+# because it is a comparatively time consuming operation, and it would be
+# a complete waste of time unless mail filters are used to deliver
+# mail directly to folders.
+#
+# When IMAP clients are used which support new mail indication, and when
+# mail filters are used to sort incoming mail into folders, setting
+# IMAP_CHECK_ALL_FOLDERS to 1 will allow IMAP clients to announce new
+# mail in folders. Note that this will result in slightly more load on the
+# server.
+#
+
+IMAP_CHECK_ALL_FOLDERS=0
+
+##NAME: IMAP_OBSOLETE_CLIENT:0
+#
+# Set IMAP_OBSOLETE_CLIENT if your IMAP client expects \\NoInferiors to mean
+# what \\HasNoChildren really means.
+
+IMAP_OBSOLETE_CLIENT=0
+
+##NAME: IMAP_UMASK:0
+#
+# IMAP_UMASK sets the umask of the server process. The value of IMAP_UMASK is
+# simply passed to the "umask" command. The default value is 022.
+#
+# This feature is mostly useful for shared folders, where the file permissions
+# of the messages may be important.
+
+IMAP_UMASK=027
+
+##NAME: IMAP_ULIMITD:0
+#
+# IMAP_ULIMITD sets the maximum size of the data segment of the server
+# process. The value of IMAP_ULIMITD is simply passed to the "ulimit -d"
+# command (or ulimit -v). The argument to ulimi sets the upper limit on the
+# size of the data segment of the server process, in kilobytes. The default
+# value of 65536 sets a very generous limit of 64 megabytes, which should
+# be more than plenty for anyone.
+#
+# This feature is used as an additional safety check that should stop
+# any potential denial-of-service attacks that exploit any kind of
+# a memory leak to exhaust all the available memory on the server.
+# It is theoretically possible that obscenely huge folders will also
+# result in the server running out of memory when doing server-side
+# sorting (by my calculations you have to have at least 100,000 messages
+# in a single folder, for that to happen).
+
+IMAP_ULIMITD=65536
+
+##NAME: IMAP_USELOCKS:0
+#
+# Setting IMAP_USELOCKS to 1 will use dot-locking to support concurrent
+# multiple access to the same folder. This incurs slight additional
+# overhead. Concurrent multiple access will still work without this setting,
+# however occasionally a minor race condition may result in an IMAP client
+# downloading the same message twice, or a keyword update will fail.
+#
+# IMAP_USELOCKS=1 is strongly recommended when shared folders are used.
+
+IMAP_USELOCKS=1
+
+##NAME: IMAP_SHAREDINDEXFILE:0
+#
+# The index of all accessible folders. Do not change this setting unless
+# you know what you're doing. See README.sharedfolders for additional
+# information.
+
+IMAP_SHAREDINDEXFILE=/etc/courier-imap/shared/index
+
+##NAME: IMAP_ENHANCEDIDLE:0
+#
+# If Courier was compiled with the File Alteration Monitor, setting
+# IMAP_ENHANCEDIDLE to 1 enables enhanced IDLE mode, where multiple
+# clients may open the same folder concurrently, and receive updates to
+# folder contents in realtime. See the imapd(8) man page for additional
+# information.
+#
+# IMPORTANT: IMAP_USELOCKS *MUST* also be set to 1, and IDLE must be included
+# in the IMAP_CAPABILITY list.
+#
+
+IMAP_ENHANCEDIDLE=0
+
+##NAME: IMAP_TRASHFOLDERNAME:0
+#
+# The name of the magic trash Folder. For MSOE compatibility,
+# you can set IMAP_TRASHFOLDERNAME="Deleted Items".
+#
+# IMPORTANT: If you change this, you must also change IMAP_EMPTYTRASH
+
+IMAP_TRASHFOLDERNAME=Trash
+
+##NAME: IMAP_EMPTYTRASH:0
+#
+# The following setting is optional, and causes messages from the given
+# folder to be automatically deleted after the given number of days.
+# IMAP_EMPTYTRASH is a comma-separated list of folder:days. The default
+# setting, below, purges 7 day old messages from the Trash folder.
+# Another useful setting would be:
+#
+# IMAP_EMPTYTRASH=Trash:7,Sent:30
+#
+# This would also delete messages from the Sent folder (presumably copies
+# of sent mail) after 30 days. This is a global setting that is applied to
+# every mail account, and is probably useful in a controlled, corporate
+# environment.
+#
+# Important: the purging is controlled by CTIME, not MTIME (the file time
+# as shown by ls). It is perfectly ordinary to see stuff in Trash that's
+# a year old. That's the file modification time, MTIME, that's displayed.
+# This is generally when the message was originally delivered to this
+# mailbox. Purging is controlled by a different timestamp, CTIME, which is
+# changed when the file is moved to the Trash folder (and at other times too).
+#
+# You might want to disable this setting in certain situations - it results
+# in a stat() of every file in each folder, at login and logout.
+#
+
+IMAP_EMPTYTRASH=Trash:7
+
+##NAME: IMAP_MOVE_EXPUNGE_TO_TRASH:0
+#
+# Set IMAP_MOVE_EXPUNGE_TO_TRASH to move expunged messages to Trash. This
+# effectively allows an undo of message deletion by fishing the deleted
+# mail from trash. Trash can be manually expunged as usually, and mail
+# will get automatically expunged from Trash according to IMAP_EMPTYTRASH.
+#
+# NOTE: shared folders are still expunged as usual. Shared folders are
+# not affected.
+#
+
+IMAP_MOVE_EXPUNGE_TO_TRASH=0
+
+
+##NAME: OUTBOX:0
+#
+# The next set of options deal with the "Outbox" enhancement.
+# Uncomment the following setting to create a special folder, named
+# INBOX.Outbox
+#
+# OUTBOX=.Outbox
+
+##NAME: SENDMAIL:0
+#
+# If OUTBOX is defined, mail can be sent via the IMAP connection by copying
+# a message to the INBOX.Outbox folder. For all practical matters,
+# INBOX.Outbox looks and behaves just like any other IMAP folder. If this
+# folder doesn't exist it must be created by the IMAP mail client, just
+# like any other IMAP folder. The kicker: any message copied or moved to
+# this folder is will be E-mailed by the Courier-IMAP server, by running
+# the SENDMAIL program. Therefore, messages copied or moved to this
+# folder must be well-formed RFC-2822 messages, with the recipient list
+# specified in the To:, Cc:, and Bcc: headers. Courier-IMAP relies on
+# SENDMAIL to read the recipient list from these headers (and delete the Bcc:
+# header) by running the command "$SENDMAIL -oi -t -f $SENDER", with the
+# message piped on standard input. $SENDER will be the return address
+# of the message, which is set by the authentication module.
+#
+# DO NOT MODIFY SENDMAIL, below, unless you know what you're doing.
+#
+
+SENDMAIL=/usr/sbin/sendmail
+
+##NAME: HEADERFROM:0
+#
+# For administrative and oversight purposes, the return address, $SENDER
+# will also be saved in the X-IMAP-Sender mail header. This header gets
+# added to the sent E-mail (but it doesn't get saved in the copy of the
+# message that's saved in the folder)
+#
+# WARNING - By enabling OUTBOX above, *every* IMAP mail client will receive
+# the magic OUTBOX treatment. Therefore advance LARTing is in order for
+# _all_ of your lusers, until every one of them is aware of this. Otherwise if
+# OUTBOX is left at its default setting - a folder name that might be used
+# accidentally - some people may be in for a rude surprise. You can redefine
+# the name of the magic folder by changing OUTBOX, above. You should do that
+# and pick a less-obvious name. Perhaps brand it with your organizational
+# name ( OUTBOX=.WidgetsAndSonsOutbox )
+
+HEADERFROM=X-IMAP-Sender
+
+##NAME: IMAPDSTART:0
+#
+# IMAPDSTART is not used directly. Rather, this is a convenient flag to
+# be read by your system startup script in /etc/rc.d, like this:
+#
+# . /etc/courier-imap/imapd
+#
+# case x$IMAPDSTART in
+# x[yY]*)
+# /usr/lib/courier-imap/imapd.rc start
+# ;;
+# esac
+#
+# The default setting is going to be NO, so you'll have to manually flip
+# it to yes.
+
+IMAPDSTART=YES
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIR=.maildir
+MAILDIRPATH=.maildir
+#Put any program for ${PRERUN} here
+PRERUN=
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_imapd-ssl b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_imapd-ssl
new file mode 100644
index 0000000..76dbcf7
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_imapd-ssl
@@ -0,0 +1,199 @@
+##VERSION: $Id: imapd-ssl.dist.in,v 1.11 2004/10/21 00:45:35 mrsam Exp $
+#
+# imapd-ssl created from imapd-ssl.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 2000 - 2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# This configuration file sets various options for the Courier-IMAP server
+# when used to handle SSL IMAP connections.
+#
+# SSL and non-SSL connections are handled by a dedicated instance of the
+# couriertcpd daemon. If you are accepting both SSL and non-SSL IMAP
+# connections, you will start two instances of couriertcpd, one on the
+# IMAP port 143, and another one on the IMAP-SSL port 993.
+#
+# Download OpenSSL from http://www.openssl.org/
+#
+##NAME: SSLPORT:1
+#
+# Options in the imapd-ssl configuration file AUGMENT the options in the
+# imapd configuration file. First the imapd configuration file is read,
+# then the imapd-ssl configuration file, so we do not have to redefine
+# anything.
+#
+# However, some things do have to be redefined. The port number is
+# specified by SSLPORT, instead of PORT. The default port is port 993.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possibly to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The SSLADDRESS setting is a default for ports that do not have
+# a specified IP address.
+
+SSLPORT=993
+
+##NAME: SSLADDRESS:0
+#
+# Address to listen on, can be set to a single IP address.
+#
+# SSLADDRESS=127.0.0.1
+
+SSLADDRESS=0
+
+##NAME: SSLPIDFILE:0
+#
+# That's the SSL IMAP port we'll listen on.
+# Feel free to redefine MAXDAEMONS, TCPDOPTS, and MAXPERIP.
+
+SSLPIDFILE=/var/run/imapd-ssl.pid
+
+##NAME: IMAPDSSLSTART:0
+#
+# Different pid files, so that both instances of couriertcpd can coexist
+# happily.
+#
+# You can also redefine IMAP_CAPABILITY, although I can't
+# think of why you'd want to do that.
+#
+#
+# Ok, the following settings are new to imapd-ssl:
+#
+# Whether or not to start IMAP over SSL on simap port:
+
+IMAPDSSLSTART=YES
+
+##NAME: IMAPDSTARTTLS:0
+#
+# Whether or not to implement IMAP STARTTLS extension instead:
+
+IMAPDSTARTTLS=YES
+
+##NAME: IMAP_TLS_REQUIRED:1
+#
+# Set IMAP_TLS_REQUIRED to 1 if you REQUIRE STARTTLS for everyone.
+# (this option advertises the LOGINDISABLED IMAP capability, until STARTTLS
+# is issued).
+
+IMAP_TLS_REQUIRED=0
+
+#########################################################################
+#
+# The following variables configure IMAP over SSL. If OpenSSL is available
+# during configuration, the couriertls helper gets compiled, and upon
+# installation a dummy TLS_CERTFILE gets generated. courieresmtpd will
+# automatically advertise the ESMTP STARTTLS extension if both TLS_CERTFILE
+# and COURIERTLS exist.
+#
+# WARNING: Peer certificate verification has NOT yet been tested. Proceed
+# at your own risk. Only the basic SSL/TLS functionality is known to be
+# working. Keep this in mind as you play with the following variables.
+#
+##NAME: COURIERTLS:0
+#
+
+COURIERTLS=/usr/sbin/couriertls
+
+##NAME: TLS_PROTOCOL:0
+#
+# TLS_PROTOCOL sets the protocol version. The possible versions are:
+#
+# SSL2 - SSLv2
+# SSL3 - SSLv3
+# TLS1 - TLS1
+
+TLS_PROTOCOL=SSL3
+
+##NAME: TLS_STARTTLS_PROTOCOL:0
+#
+# TLS_STARTTLS_PROTOCOL is used instead of TLS_PROTOCOL for the IMAP STARTTLS
+# extension, as opposed to IMAP over SSL on port 993.
+#
+
+TLS_STARTTLS_PROTOCOL=TLS1
+
+##NAME: TLS_CIPHER_LIST:0
+#
+# TLS_CIPHER_LIST optionally sets the list of ciphers to be used by the
+# OpenSSL library. In most situations you can leave TLS_CIPHER_LIST
+# undefined
+#
+# TLS_CIPHER_LIST="ALL:!ADH:RC4+RSA:+SSLv2:@STRENGTH"
+
+##NAME: TLS_TIMEOUT:0
+# TLS_TIMEOUT is currently not implemented, and reserved for future use.
+# This is supposed to be an inactivity timeout, but its not yet implemented.
+#
+
+##NAME: TLS_DHCERTFILE:0
+#
+# TLS_DHCERTFILE - PEM file that stores our Diffie-Hellman cipher pair.
+# When OpenSSL is compiled to use Diffie-Hellman ciphers instead of RSA
+# you must generate a DH pair that will be used. In most situations the
+# DH pair is to be treated as confidential, and the file specified by
+# TLS_DHCERTFILE must not be world-readable.
+#
+# TLS_DHCERTFILE=
+
+##NAME: TLS_CERTFILE:0
+#
+# TLS_CERTFILE - certificate to use. TLS_CERTFILE is required for SSL/TLS
+# servers, and is optional for SSL/TLS clients. TLS_CERTFILE is usually
+# treated as confidential, and must not be world-readable.
+#
+TLS_CERTFILE=/etc/ssl/server/<SERVERNAME>.crt_and_key
+
+##NAME: TLS_TRUSTCERTS:0
+#
+# TLS_TRUSTCERTS=pathname - load trusted certificates from pathname.
+# pathname can be a file or a directory. If a file, the file should
+# contain a list of trusted certificates, in PEM format. If a
+# directory, the directory should contain the trusted certificates,
+# in PEM format, one per file and hashed using OpenSSL's c_rehash
+# script. TLS_TRUSTCERTS is used by SSL/TLS clients (by specifying
+# the -domain option) and by SSL/TLS servers (TLS_VERIFYPEER is set
+# to PEER or REQUIREPEER).
+#
+#
+# TLS_TRUSTCERTS=
+
+##NAME: TLS_VERIFYPEER:0
+#
+# TLS_VERIFYPEER - how to verify client certificates. The possible values of
+# this setting are:
+#
+# NONE - do not verify anything
+#
+# PEER - verify the client certificate, if one's presented
+#
+# REQUIREPEER - require a client certificate, fail if one's not presented
+#
+#
+TLS_VERIFYPEER=NONE
+
+##NAME: TLS_CACHE:0
+#
+# A TLS/SSL session cache may slightly improve response for IMAP clients
+# that open multiple SSL sessions to the server. TLS_CACHEFILE will be
+# automatically created, TLS_CACHESIZE bytes long, and used as a cache
+# buffer.
+#
+# This is an experimental feature and should be disabled if it causes
+# problems with SSL clients. Disable SSL caching by commenting out the
+# following settings:
+
+TLS_CACHEFILE=/var/lib/courier-imap/couriersslcache
+TLS_CACHESIZE=524288
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIRPATH=.maildir
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_pop3d b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_pop3d
new file mode 100644
index 0000000..71502ae
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_pop3d
@@ -0,0 +1,127 @@
+##VERSION: $Id: pop3d.dist.in,v 1.11 2004/10/30 15:39:38 mrsam Exp $
+#
+# pop3d created from pop3d.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# Courier POP3 daemon configuration
+#
+##NAME: PIDFILE:0
+#
+
+PIDFILE=/var/run/pop3d.pid
+
+##NAME: MAXDAEMONS:0
+#
+# Maximum number of POP3 servers started
+#
+
+MAXDAEMONS=50
+
+##NAME: MAXPERIP:4
+#
+# Maximum number of connections to accept from the same IP address
+
+MAXPERIP=5
+
+##NAME: POP3AUTH:1
+#
+# To advertise the SASL capability, per RFC 2449, uncomment the POP3AUTH
+# variable:
+#
+# POP3AUTH="LOGIN"
+#
+# If you have configured the CRAM-MD5 or CRAM-SHA1, set POP3AUTH to something
+# like this:
+#
+# POP3AUTH="LOGIN CRAM-MD5 CRAM-SHA1"
+
+POP3AUTH=""
+
+##NAME: POP3AUTH_ORIG:0
+#
+# For use by webadmin
+
+POP3AUTH_ORIG="LOGIN CRAM-MD5 CRAM-SHA1"
+
+##NAME: POP3AUTH_TLS:1
+#
+# To also advertise SASL PLAIN if SSL is enabled, uncomment the
+# POP3AUTH_TLS environment variable:
+#
+# POP3AUTH_TLS="LOGIN PLAIN"
+
+POP3AUTH_TLS=""
+
+##NAME: POP3AUTH_TLS_ORIG:0
+#
+# For use by webadmin
+
+POP3AUTH_TLS_ORIG="LOGIN PLAIN"
+
+##NAME: POP3_PROXY:0
+#
+# Enable proxying. See README.proxy
+
+POP3_PROXY=0
+
+##NAME: PORT:1
+#
+# Port to listen on for connections. The default is port 110.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possibly to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The ADDRESS setting is a default for ports that do not have a specified
+# IP address.
+
+PORT=110
+
+##NAME: ADDRESS:0
+#
+# IP address to listen on. 0 means all IP addresses.
+
+ADDRESS=0
+
+##NAME: TCPDOPTS:0
+#
+# Other couriertcpd(1) options. The following defaults should be fine.
+#
+
+TCPDOPTS="-nodnslookup -noidentlookup"
+
+##NAME: POP3DSTART:0
+#
+# POP3DSTART is not referenced anywhere in the standard Courier programs
+# or scripts. Rather, this is a convenient flag to be read by your system
+# startup script in /etc/rc.d, like this:
+#
+# . /etc/courier-imap/pop3d
+# case x$POP3DSTART in
+# x[yY]*)
+# /usr/lib/courier-imap/pop3d.rc start
+# ;;
+# esac
+#
+# The default setting is going to be NO, until Courier is shipped by default
+# with enough platforms so that people get annoyed with having to flip it to
+# YES every time.
+
+POP3DSTART=YES
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIR=.maildir
+MAILDIRPATH=.maildir
+#Put any program for ${PRERUN} here
+PRERUN=
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_pop3d-ssl b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_pop3d-ssl
new file mode 100644
index 0000000..a0267a0
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier-imap_pop3d-ssl
@@ -0,0 +1,186 @@
+##VERSION: $Id: pop3d-ssl.dist.in,v 1.12 2004/10/21 00:45:35 mrsam Exp $
+#
+# pop3d-ssl created from pop3d-ssl.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 2000-2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# This configuration file sets various options for the Courier-IMAP server
+# when used to handle SSL POP3 connections.
+#
+# SSL and non-SSL connections are handled by a dedicated instance of the
+# couriertcpd daemon. If you are accepting both SSL and non-SSL POP3
+# connections, you will start two instances of couriertcpd, one on the
+# POP3 port 110, and another one on the POP3-SSL port 995.
+#
+# Download OpenSSL from http://www.openssl.org/
+#
+##NAME: SSLPORT:0
+#
+# Options in the pop3d-ssl configuration file AUGMENT the options in the
+# pop3d configuration file. First the pop3d configuration file is read,
+# then the pop3d-ssl configuration file, so we do not have to redefine
+# anything.
+#
+# However, some things do have to be redefined. The port number is
+# specified by SSLPORT, instead of PORT. The default port is port 995.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possibly to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The SSLADDRESS setting is a default for ports that do not have
+# a specified IP address.
+
+SSLPORT=995
+
+##NAME: SSLADDRESS:0
+#
+# Address to listen on, can be set to a single IP address.
+#
+# SSLADDRESS=127.0.0.1
+
+SSLADDRESS=0
+
+##NAME: SSLPIDFILE:0
+#
+#
+#
+
+SSLPIDFILE=/var/run/pop3d-ssl.pid
+
+##NAME: POP3DSSLSTART:0
+#
+# Whether or not to start POP3 over SSL on spop3 port:
+
+POP3DSSLSTART=YES
+
+##NAME: POP3_STARTTLS:0
+#
+# Whether or not to implement the POP3 STLS extension:
+
+POP3_STARTTLS=YES
+
+##NAME: POP3_TLS_REQUIRED:1
+#
+# Set POP3_TLS_REQUIRED to 1 if you REQUIRE STARTTLS for everyone.
+# (this option advertises the LOGINDISABLED POP3 capability, until STARTTLS
+# is issued).
+
+POP3_TLS_REQUIRED=0
+
+##NAME: COURIERTLS:0
+#
+# The following variables configure POP3 over SSL. If OpenSSL is available
+# during configuration, the couriertls helper gets compiled, and upon
+# installation a dummy TLS_CERTFILE gets generated. courieresmtpd will
+# automatically advertise the ESMTP STARTTLS extension if both TLS_CERTFILE
+# and COURIERTLS exist.
+#
+# WARNING: Peer certificate verification has NOT yet been tested. Proceed
+# at your own risk. Only the basic SSL/TLS functionality is known to be
+# working. Keep this in mind as you play with the following variables.
+
+COURIERTLS=/usr/sbin/couriertls
+
+##NAME: TLS_PROTOCOL:0
+#
+# TLS_PROTOCOL sets the protocol version. The possible versions are:
+#
+# SSL2 - SSLv2
+# SSL3 - SSLv3
+# TLS1 - TLS1
+
+TLS_PROTOCOL=SSL3
+
+##NAME: TLS_STARTTLS_PROTOCOL:0
+#
+# TLS_STARTTLS_PROTOCOL is used instead of TLS_PROTOCOL for the POP3 STARTTLS
+# extension, as opposed to POP3 over SSL on port 995.
+#
+
+TLS_STARTTLS_PROTOCOL=TLS1
+
+##NAME: TLS_CIPHER_LIST:0
+#
+# TLS_CIPHER_LIST optionally sets the list of ciphers to be used by the
+# OpenSSL library. In most situations you can leave TLS_CIPHER_LIST
+# undefined
+#
+# TLS_CIPHER_LIST="ALL:!ADH:RC4+RSA:+SSLv2:@STRENGTH"
+
+##NAME: TLS_TIMEOUT:0
+# TLS_TIMEOUT is currently not implemented, and reserved for future use.
+# This is supposed to be an inactivity timeout, but its not yet implemented.
+#
+
+##NAME: TLS_DHCERTFILE:0
+#
+# TLS_DHCERTFILE - PEM file that stores our Diffie-Hellman cipher pair.
+# When OpenSSL is compiled to use Diffie-Hellman ciphers instead of RSA
+# you must generate a DH pair that will be used. In most situations the
+# DH pair is to be treated as confidential, and the file specified by
+# TLS_DHCERTFILE must not be world-readable.
+#
+# TLS_DHCERTFILE=
+
+##NAME: TLS_CERTFILE:0
+#
+# TLS_CERTFILE - certificate to use. TLS_CERTFILE is required for SSL/TLS
+# servers, and is optional for SSL/TLS clients. TLS_CERTFILE is usually
+# treated as confidential, and must not be world-readable.
+#
+TLS_CERTFILE=/etc/ssl/server/<SERVERNAME>.crt_and_key
+
+##NAME: TLS_TRUSTCERTS:0
+#
+# TLS_TRUSTCERTS=pathname - load trusted certificates from pathname.
+# pathname can be a file or a directory. If a file, the file should
+# contain a list of trusted certificates, in PEM format. If a
+# directory, the directory should contain the trusted certificates,
+# in PEM format, one per file and hashed using OpenSSL's c_rehash
+# script. TLS_TRUSTCERTS is used by SSL/TLS clients (by specifying
+# the -domain option) and by SSL/TLS servers (TLS_VERIFYPEER is set
+# to PEER or REQUIREPEER).
+#
+#
+# TLS_TRUSTCERTS=
+
+##NAME: TLS_VERIFYPEER:0
+#
+# TLS_VERIFYPEER - how to verify client certificates. The possible values of
+# this setting are:
+#
+# NONE - do not verify anything
+#
+# PEER - verify the client certificate, if one's presented
+#
+# REQUIREPEER - require a client certificate, fail if one's not presented
+#
+#
+TLS_VERIFYPEER=NONE
+
+##NAME: TLS_CACHE:0
+#
+# A TLS/SSL session cache may slightly improve response for long-running
+# POP3 clients. TLS_CACHEFILE will be automatically created, TLS_CACHESIZE
+# bytes long, and used as a cache buffer.
+#
+# This is an experimental feature and should be disabled if it causes
+# problems with SSL clients. Disable SSL caching by commenting out the
+# following settings:
+
+TLS_CACHEFILE=/var/lib/courier-imap/couriersslcache
+TLS_CACHESIZE=524288
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIRPATH=.maildir
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier_authlib_authdaemonrc b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier_authlib_authdaemonrc
new file mode 100644
index 0000000..867a12d
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier_authlib_authdaemonrc
@@ -0,0 +1,93 @@
+##VERSION: $Id: authdaemonrc.in,v 1.12 2005/07/05 12:25:08 mrsam Exp $
+#
+# Copyright 2000-2005 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# authdaemonrc created from authdaemonrc.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# This file configures authdaemond, the resident authentication daemon.
+#
+# Comments in this file are ignored. Although this file is intended to
+# be sourced as a shell script, authdaemond parses it manually, so
+# the acceptable syntax is a bit limited. Multiline variable contents,
+# with the \ continuation character, are not allowed. Everything must
+# fit on one line. Do not use any additional whitespace for indentation,
+# or anything else.
+
+##NAME: authmodulelist:2
+#
+# The authentication modules that are linked into authdaemond. The
+# default list is installed. You may selectively disable modules simply
+# by removing them from the following list. The available modules you
+# can use are: authuserdb authpam authshadow authmysql authcustom authpipe
+
+authmodulelist="authmysql"
+
+##NAME: authmodulelistorig:3
+#
+# This setting is used by Courier's webadmin module, and should be left
+# alone
+
+authmodulelistorig="authuserdb authpam authshadow authmysql authcustom authpipe"
+
+##NAME: daemons:0
+#
+# The number of daemon processes that are started. authdaemon is typically
+# installed where authentication modules are relatively expensive: such
+# as authldap, or authmysql, so it's better to have a number of them running.
+# PLEASE NOTE: Some platforms may experience a problem if there's more than
+# one daemon. Specifically, SystemV derived platforms that use TLI with
+# socket emulation. I'm suspicious of TLI's ability to handle multiple
+# processes accepting connections on the same filesystem domain socket.
+#
+# You may need to increase daemons if as your system load increases. Symptoms
+# include sporadic authentication failures. If you start getting
+# authentication failures, increase daemons. However, the default of 5
+# SHOULD be sufficient. Bumping up daemon count is only a short-term
+# solution. The permanent solution is to add more resources: RAM, faster
+# disks, faster CPUs...
+
+daemons=5
+
+##NAME: authdaemonvar:2
+#
+# authdaemonvar is here, but is not used directly by authdaemond. It's
+# used by various configuration and build scripts, so don't touch it!
+
+authdaemonvar=/var/lib/courier/authdaemon
+
+##NAME: DEBUG_LOGIN:0
+#
+# Dump additional diagnostics to syslog
+#
+# DEBUG_LOGIN=0 - turn off debugging
+# DEBUG_LOGIN=1 - turn on debugging
+# DEBUG_LOGIN=2 - turn on debugging + log passwords too
+#
+# ** YES ** - DEBUG_LOGIN=2 places passwords into syslog.
+#
+# Note that most information is sent to syslog at level 'debug', so
+# you may need to modify your /etc/syslog.conf to be able to see it.
+
+DEBUG_LOGIN=0
+
+##NAME: DEFAULTOPTIONS:0
+#
+# A comma-separated list of option=value pairs. Each option is applied
+# to an account if the account does not have its own specific value for
+# that option. So for example, you can set
+# DEFAULTOPTIONS="disablewebmail=1,disableimap=1"
+# and then enable webmail and/or imap on individual accounts by setting
+# disablewebmail=0 and/or disableimap=0 on the account.
+
+DEFAULTOPTIONS=""
+
+##NAME: LOGGEROPTS:0
+#
+# courierlogger(1) options, e.g. to set syslog facility
+#
+
+LOGGEROPTS=""
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier_authlib_authmysqlrc b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier_authlib_authmysqlrc
new file mode 100644
index 0000000..fec6508
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/courier/etc_courier_authlib_authmysqlrc
@@ -0,0 +1,12 @@
+MYSQL_SERVER <SQL_HOST>
+MYSQL_USERNAME <SQL_UNPRIVILEGED_USER>
+MYSQL_PASSWORD <SQL_UNPRIVILEGED_PASSWORD>
+MYSQL_PORT 0
+MYSQL_DATABASE <SQL_DB>
+MYSQL_USER_TABLE mail_users
+MYSQL_CRYPT_PWFIELD password_enc
+MYSQL_UID_FIELD <VIRTUAL_UID_MAPS>
+MYSQL_GID_FIELD <VIRTUAL_GID_MAPS>
+MYSQL_LOGIN_FIELD username
+MYSQL_HOME_FIELD "<VIRTUAL_MAILBOX_BASE>"
+MYSQL_MAILDIR_FIELD maildir
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/cron/etc_cron.d_syscp b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/cron/etc_cron.d_syscp
new file mode 100644
index 0000000..4afe408
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/cron/etc_cron.d_syscp
@@ -0,0 +1,10 @@
+#
+# Set PATH, otherwise restart-scripts won't find start-stop-daemon
+#
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+#
+# Regular cron jobs for the syscp package
+#
+# Please check that all following paths are correct
+#
+*/5 * * * * root /usr/lib/php4/bin/php -q -c /etc/php/syscp-cronjob/php.ini /var/www/syscp/scripts/cronscript.php
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/cron/etc_php_syscp-cronjob_php.ini b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/cron/etc_php_syscp-cronjob_php.ini
new file mode 100644
index 0000000..74c8316
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/cron/etc_php_syscp-cronjob_php.ini
@@ -0,0 +1,61 @@
+short_open_tag = On
+asp_tags = Off
+precision = 14
+output_buffering = Off
+allow_call_time_pass_reference = Off
+safe_mode = Off
+safe_mode_gid = Off
+safe_mode_include_dir = "/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+safe_mode_allowed_env_vars = PHP_
+safe_mode_protected_env_vars = LD_LIBRARY_PATH
+open_basedir =
+disable_functions =
+disable_classes =
+expose_php = Off
+max_execution_time = 180
+max_input_time = 120
+memory_limit = 32M
+post_max_size = 32M
+error_reporting = E_ALL & ~E_NOTICE
+display_errors = On
+display_startup_errors = Off
+log_errors = Off
+log_errors_max_len = 1024
+ignore_repeated_errors = Off
+ignore_repeated_source = Off
+report_memleaks = On
+track_errors = Off
+html_errors = Off
+variables_order = "GPCS"
+register_globals = Off
+register_argc_argv = Off
+gpc_order = "GPC"
+magic_quotes_gpc = Off
+magic_quotes_runtime = Off
+magic_quotes_sybase = Off
+include_path = ".:/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+enable_dl = Off
+file_uploads = On
+upload_tmp_dir = "/tmp/"
+upload_max_filesize = 32M
+allow_url_fopen = Off
+session.save_handler = files
+session.save_path = "/tmp/"
+session.use_cookies = 1
+session.name = PHPSESSID
+session.auto_start = 0
+session.cookie_lifetime = 0
+session.cookie_path = /
+session.cookie_domain =
+session.serialize_handler = php
+session.gc_probability = 1
+session.gc_divisor = 1000
+session.gc_maxlifetime = 1440
+session.bug_compat_42 = 0
+session.bug_compat_warn = 1
+session.referer_check =
+session.entropy_length = 16
+session.entropy_file = /dev/urandom
+session.cache_limiter = nocache
+session.cache_expire = 180
+session.use_trans_sid = 0
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/cron/etc_php_syscp-vhost_php.ini b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/cron/etc_php_syscp-vhost_php.ini
new file mode 100644
index 0000000..048c26c
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/cron/etc_php_syscp-vhost_php.ini
@@ -0,0 +1,61 @@
+short_open_tag = On
+asp_tags = Off
+precision = 14
+output_buffering = 4096
+allow_call_time_pass_reference = Off
+safe_mode = Off
+safe_mode_gid = Off
+safe_mode_include_dir = "/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+safe_mode_allowed_env_vars = PHP_
+safe_mode_protected_env_vars = LD_LIBRARY_PATH
+open_basedir = "/var/www/syscp/:/var/www/syscp-suphp/syscp/:/var/www/syscpwebs/:/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+disable_functions = exec,passthru,shell_exec,system,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate
+disable_classes =
+expose_php = Off
+max_execution_time = 30
+max_input_time = 60
+memory_limit = 16M
+post_max_size = 12M
+error_reporting = E_ALL & ~E_NOTICE
+display_errors = Off
+display_startup_errors = Off
+log_errors = On
+log_errors_max_len = 1024
+ignore_repeated_errors = Off
+ignore_repeated_source = Off
+report_memleaks = On
+track_errors = Off
+html_errors = Off
+variables_order = "GPCS"
+register_globals = Off
+register_argc_argv = Off
+gpc_order = "GPC"
+magic_quotes_gpc = Off
+magic_quotes_runtime = Off
+magic_quotes_sybase = Off
+include_path = ".:/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+enable_dl = Off
+file_uploads = On
+upload_tmp_dir = "/var/www/syscp-suphp/syscp/"
+upload_max_filesize = 32M
+allow_url_fopen = Off
+session.save_handler = files
+session.save_path = "/var/www/syscp-suphp/syscp/"
+session.use_cookies = 1
+session.name = PHPSESSID
+session.auto_start = 0
+session.cookie_lifetime = 0
+session.cookie_path = /
+session.cookie_domain =
+session.serialize_handler = php
+session.gc_probability = 1
+session.gc_divisor = 1000
+session.gc_maxlifetime = 1440
+session.bug_compat_42 = 0
+session.bug_compat_warn = 1
+session.referer_check =
+session.entropy_length = 16
+session.entropy_file = /dev/urandom
+session.cache_limiter = nocache
+session.cache_expire = 180
+session.use_trans_sid = 0
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_main.cf b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_main.cf
new file mode 100644
index 0000000..97b10e0
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_main.cf
@@ -0,0 +1,65 @@
+# Postfix directories settings
+command_directory = /usr/sbin
+daemon_directory = /usr/lib/postfix
+queue_directory = /var/spool/postfix
+sample_directory = /etc/postfix
+manpage_directory = /usr/share/man
+readme_directory = /usr/share/doc/postfix-2.1.5-r2/readme
+html_directory = no
+
+# Postfix programs paths settings
+mailq_path = /usr/bin/mailq
+newaliases_path = /usr/bin/newaliases
+sendmail_path = /usr/sbin/sendmail
+
+# General Postfix configuration
+myhostname = <SERVERNAME>
+mydestination = $myhostname, $mydomain, localhost.$myhostname, localhost.$mydomain, localhost
+mynetworks = 127.0.0.0/8
+inet_interfaces = all
+mail_owner = postfix
+setgid_group = postdrop
+smtpd_banner = $myhostname ESMTP Mailserver
+smtpd_helo_required = yes
+append_dot_mydomain = no
+biff = no
+
+# Postfix Debugger configuration
+debug_peer_level = 2
+debugger_command =
+ PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
+ echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
+ >$config_directory/$process_name.$process_id.log & sleep 5
+
+# Postfix performance settings
+default_destination_concurrency_limit = 20
+local_destination_concurrency_limit = 2
+
+# Virtual delivery settings
+virtual_transport = virtual
+virtual_mailbox_base = <VIRTUAL_MAILBOX_BASE>
+virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
+virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
+virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
+virtual_uid_maps = static:<VIRTUAL_UID_MAPS>
+virtual_gid_maps = static:<VIRTUAL_GID_MAPS>
+
+# Local delivery settings
+local_transport = local
+alias_database = hash:/etc/mail/aliases
+alias_maps = $alias_database
+
+# SASL settings
+smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
+smtpd_sasl_auth_enable = yes
+smtpd_sasl_local_domain = $myhostname
+smtpd_sasl_security_options = noanonymous
+broken_sasl_auth_clients = yes
+
+# TLS settings
+smtpd_use_tls = yes
+smtpd_tls_cert_file = /etc/ssl/server/<SERVERNAME>.crt
+smtpd_tls_key_file = /etc/ssl/server/<SERVERNAME>.key
+smtpd_tls_auth_only = no
+smtpd_tls_session_cache_timeout = 3600s
+tls_random_source = dev:/dev/urandom
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf
new file mode 100644
index 0000000..c921e6f
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf
@@ -0,0 +1,8 @@
+user = <SQL_UNPRIVILEGED_USER>
+password = <SQL_UNPRIVILEGED_PASSWORD>
+dbname = <SQL_DB>
+table = mail_virtual
+select_field = destination
+where_field = email
+additional_conditions = and destination <> '' and destination <> ' '
+hosts = <SQL_HOST>
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf
new file mode 100644
index 0000000..4484bee
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf
@@ -0,0 +1,8 @@
+user = <SQL_UNPRIVILEGED_USER>
+password = <SQL_UNPRIVILEGED_PASSWORD>
+dbname = <SQL_DB>
+table = panel_domains
+select_field = domain
+where_field = domain
+additional_conditions = and isemaildomain = '1'
+hosts = <SQL_HOST>
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf
new file mode 100644
index 0000000..7e0f79a
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf
@@ -0,0 +1,7 @@
+user = <SQL_UNPRIVILEGED_USER>
+password = <SQL_UNPRIVILEGED_PASSWORD>
+dbname = <SQL_DB>
+table = mail_users
+select_field = maildir
+where_field = email
+hosts = <SQL_HOST>
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_sasl2_smtpd.conf b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_sasl2_smtpd.conf
new file mode 100644
index 0000000..2089cbb
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/postfix/etc_sasl2_smtpd.conf
@@ -0,0 +1,12 @@
+pwcheck_method: auxprop
+auxprop_plugin: sql
+allowanonymouslogin: no
+allowplaintext: yes
+mech_list: PLAIN LOGIN
+password_format: crypt
+sql_engine: mysql
+sql_hostnames: <SQL_HOST>
+sql_user: <SQL_UNPRIVILEGED_USER>
+sql_passwd: <SQL_UNPRIVILEGED_PASSWORD>
+sql_database: <SQL_DB>
+sql_select: SELECT password_enc FROM mail_users where username='%u@%r'
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/gentoo/proftpd/etc_proftpd_proftpd.conf b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/proftpd/etc_proftpd_proftpd.conf
new file mode 100644
index 0000000..1e04b6d
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/gentoo/proftpd/etc_proftpd_proftpd.conf
@@ -0,0 +1,89 @@
+# Server settings
+ServerName "<SERVERNAME> FTP Server"
+ServerType standalone
+ServerIdent off
+DefaultServer on
+Port 21
+MaxInstances 50
+
+# General settings
+DeferWelcome on
+MultilineRFC2228 on
+ShowSymlinks on
+AllowOverwrite on
+AllowStoreRestart on
+AllowRetrieveRestart on
+UseReverseDNS off
+IdentLookups off
+ListOptions "-al"
+DisplayFirstChdir .message
+
+# Modules settings
+#DelayEngine off
+
+# Timeout settings
+TimeoutLogin 120
+TimeoutNoTransfer 600
+TimeoutStalled 600
+TimeoutIdle 600
+
+# Security settings
+RootLogin off
+RequireValidShell off
+User syscpftpd
+Group syscpftpd
+Umask 133 022
+DefaultRoot ~
+DenyFilter \*.*/
+
+# Per-Directory settings
+<Directory /*>
+Umask 133 022
+AllowOverwrite on
+</Directory>
+
+# SQL settings
+SQLAuthTypes Crypt
+SQLAuthenticate users* groups*
+SQLConnectInfo <SQL_DB>@<SQL_HOST> <SQL_UNPRIVILEGED_USER> <SQL_UNPRIVILEGED_PASSWORD>
+SQLUserInfo ftp_users username password uid gid homedir shell
+SQLGroupInfo ftp_groups groupname gid members
+SQLUserWhereClause "login_enabled = 'y'"
+
+SQLLog PASS login
+SQLNamedQuery login UPDATE "last_login=now(), login_count=login_count+1 WHERE username='%u'" ftp_users
+
+SQLLog RETR download
+SQLNamedQuery download UPDATE "down_count=down_count+1, down_bytes=down_bytes+%b WHERE username='%u'" ftp_users
+
+SQLLog STOR upload
+SQLNamedQuery upload UPDATE "up_count=up_count+1, up_bytes=up_bytes+%b WHERE username='%u'" ftp_users
+
+# TLS settings
+<IfModule mod_tls.c>
+TLSEngine on
+TLSLog /var/log/proftpd-tls.log
+TLSProtocol SSLv23
+TLSTimeoutHandshake 120
+# Really important for WinClients
+TLSOptions NoCertRequest
+TLSRSACertificateFile /etc/ssl/server/<SERVERNAME>.crt
+TLSRSACertificateKeyFile /etc/ssl/server/<SERVERNAME>.key
+# Authenticate client that want to use FTP over TLS?
+TLSVerifyClient off
+# Uncomment the following line to force tls login
+TLSRequired off
+</IfModule>
+
+# LOG settings
+# Logging Formats
+LogFormat default "%h %1 %u %t \"%r\" %s %b"
+LogFormat auth "%v [%P] %h %t \"%r\" %s"
+LogFormat write "%h %l %u %t \"%r\" %s %b"
+# Activate Logging
+# all logins
+ExtendedLog /var/log/proftpd-auth.log AUTH auth
+# file/dir access
+ExtendedLog /var/log/proftpd-access.log WRITE,READ write
+# everything (be careful, generates_ very_ big logfiles)
+#ExtendedLog /var/log/proftpd-all.log ALL default
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/syscp-1.2.13-gentoo-admin_configfiles.php-bind-ssl b/syscp/patches/gentoo-config-files/bind-ssl/syscp-1.2.13-gentoo-admin_configfiles.php-bind-ssl
new file mode 100644
index 0000000..f13fd5a
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/syscp-1.2.13-gentoo-admin_configfiles.php-bind-ssl
@@ -0,0 +1,290 @@
+<?php
+/**
+ * filename: $Source: /syscp/syscp/admin_configfiles.php,v $
+ * begin: Wednesday, Sep 08, 2004
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version. This program is distributed in the
+ * hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details.
+ *
+ * @author Florian Lippert <flo@redenswert.de>
+ * @copyright (C) 2003-2004 Florian Lippert
+ * @package Panel
+ * @version $Id: admin_configfiles.php,v 1.9 2005/06/15 13:53:58 flo Exp $
+ * Modified to reflect the Gentoo environment by Luca Longinotti <chtekk@gentoo.org>
+ */
+
+ define('AREA', 'admin');
+
+ /**
+ * Include our init.php, which manages Sessions, Language etc.
+ */
+ require("./lib/init.php");
+
+
+ $configfiles = Array
+ (
+ 'gentoo' => Array
+ (
+ 'label' => 'Gentoo',
+ 'daemons' => Array
+ (
+ 'apache' => Array
+ (
+ 'label' => 'Apache2 Webserver (HTTP)',
+ 'commands' => Array
+ (
+ 'touch '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf',
+ 'chown root:0 '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf',
+ 'chmod 0600 '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf',
+ 'echo "Include '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf" >> /etc/apache2/httpd.conf',
+ 'mkdir -p '.$settings['system']['documentroot_prefix'],
+ 'mkdir -p '.$settings['system']['logfiles_directory']
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add apache2 default',
+ '/etc/init.d/apache2 restart'
+ )
+ ),
+ 'bind' => Array
+ (
+ 'label' => 'Bind9 Nameserver (DNS)',
+ 'files' => Array
+ (
+ 'etc_bind_default.zone' => '/etc/bind/default.zone'
+ ),
+ 'commands' => Array
+ (
+ 'echo "include \"'.$settings['system']['bindconf_directory'].'syscp_bind.conf\";" >> /etc/bind/named.conf',
+ 'touch '.$settings['system']['bindconf_directory'].'syscp_bind.conf',
+ 'chown root:0 '.$settings['system']['bindconf_directory'].'syscp_bind.conf',
+ 'chmod 0600 '.$settings['system']['bindconf_directory'].'syscp_bind.conf'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add named default',
+ '/etc/init.d/named restart'
+ )
+ ),
+ 'courier' => Array
+ (
+ 'label' => 'Courier-IMAP (POP3/IMAP)',
+ 'files' => Array
+ (
+ 'etc_courier_authlib_authdaemonrc' => '/etc/courier/authlib/authdaemonrc',
+ 'etc_courier_authlib_authmysqlrc' => '/etc/courier/authlib/authmysqlrc',
+ 'etc_courier-imap_pop3d' => '/etc/courier-imap/pop3d',
+ 'etc_courier-imap_imapd' => '/etc/courier-imap/imapd',
+ 'etc_courier-imap_pop3d-ssl' => '/etc/courier-imap/pop3d-ssl',
+ 'etc_courier-imap_imapd-ssl' => '/etc/courier-imap/imapd-ssl'
+ ),
+ 'commands' => Array
+ (
+ 'rm /etc/courier/authlib/authdaemonrc',
+ 'rm /etc/courier/authlib/authmysqlrc',
+ 'rm /etc/courier-imap/pop3d',
+ 'rm /etc/courier-imap/imapd',
+ 'rm /etc/courier-imap/pop3d-ssl',
+ 'rm /etc/courier-imap/imapd-ssl',
+ 'touch /etc/courier/authlib/authdaemonrc',
+ 'touch /etc/courier/authlib/authmysqlrc',
+ 'touch /etc/courier-imap/pop3d',
+ 'touch /etc/courier-imap/imapd',
+ 'touch /etc/courier-imap/pop3d-ssl',
+ 'touch /etc/courier-imap/imapd-ssl',
+ 'chown root:0 /etc/courier/authlib/authdaemonrc',
+ 'chown root:0 /etc/courier/authlib/authmysqlrc',
+ 'chown root:0 /etc/courier-imap/pop3d',
+ 'chown root:0 /etc/courier-imap/imapd',
+ 'chown root:0 /etc/courier-imap/pop3d-ssl',
+ 'chown root:0 /etc/courier-imap/imapd-ssl',
+ 'chmod 0600 /etc/courier/authlib/authdaemonrc',
+ 'chmod 0600 /etc/courier/authlib/authmysqlrc',
+ 'chmod 0600 /etc/courier-imap/pop3d',
+ 'chmod 0600 /etc/courier-imap/imapd',
+ 'chmod 0600 /etc/courier-imap/pop3d-ssl',
+ 'chmod 0600 /etc/courier-imap/imapd-ssl'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add courier-authlib default',
+ 'rc-update add courier-pop3d default',
+ 'rc-update add courier-imapd default',
+ 'rc-update add courier-pop3d-ssl default',
+ 'rc-update add courier-imapd-ssl default',
+ '/etc/init.d/courier-authlib restart',
+ '/etc/init.d/courier-pop3d restart',
+ '/etc/init.d/courier-imapd restart',
+ '/etc/init.d/courier-pop3d-ssl restart',
+ '/etc/init.d/courier-imapd-ssl restart'
+ )
+ ),
+ 'postfix' => Array
+ (
+ 'label' => 'Postfix (MTA)',
+ 'files' => Array
+ (
+ 'etc_postfix_main.cf' => '/etc/postfix/main.cf',
+ 'etc_postfix_mysql-virtual_alias_maps.cf' => '/etc/postfix/mysql-virtual_alias_maps.cf',
+ 'etc_postfix_mysql-virtual_mailbox_domains.cf' => '/etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'etc_postfix_mysql-virtual_mailbox_maps.cf' => '/etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'etc_sasl2_smtpd.conf' => '/etc/sasl2/smtpd.conf'
+ ),
+ 'commands' => Array
+ (
+ 'mkdir -p '.$settings['system']['vmail_homedir'],
+ 'chown -R vmail:vmail '.$settings['system']['vmail_homedir'],
+ 'chmod 0750 '.$settings['system']['vmail_homedir'],
+ 'rm /etc/postfix/main.cf',
+ 'touch /etc/postfix/main.cf',
+ 'touch /etc/postfix/master.cf',
+ 'touch /etc/postfix/mysql-virtual_alias_maps.cf',
+ 'touch /etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'touch /etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'touch /etc/sasl2/smtpd.conf',
+ 'chown root:0 /etc/postfix/main.cf',
+ 'chown root:0 /etc/postfix/master.cf',
+ 'chown root:postfix /etc/postfix/mysql-virtual_alias_maps.cf',
+ 'chown root:postfix /etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'chown root:postfix /etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'chown root:0 /etc/sasl2/smtpd.conf',
+ 'chmod 0600 /etc/postfix/main.cf',
+ 'chmod 0600 /etc/postfix/master.cf',
+ 'chmod 0640 /etc/postfix/mysql-virtual_alias_maps.cf',
+ 'chmod 0640 /etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'chmod 0640 /etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'chmod 0600 /etc/sasl2/smtpd.conf'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add postfix default',
+ '/etc/init.d/postfix restart'
+ )
+ ),
+ 'proftpd' => Array
+ (
+ 'label' => 'ProFTPd (FTP)',
+ 'files' => Array
+ (
+ 'etc_proftpd_proftpd.conf' => '/etc/proftpd/proftpd.conf'
+ ),
+ 'commands' => Array
+ (
+ 'touch /etc/proftpd/proftpd.conf',
+ 'chown root:0 /etc/proftpd/proftpd.conf',
+ 'chmod 0600 /etc/proftpd/proftpd.conf'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add proftpd default',
+ '/etc/init.d/proftpd restart'
+ )
+ ),
+ 'cron' => Array
+ (
+ 'label' => 'Crond (cronscript)',
+ 'files' => Array
+ (
+ 'etc_php_syscp-cronjob_php.ini' => '/etc/php/syscp-cronjob/php.ini',
+ 'etc_cron.d_syscp' => '/etc/cron.d/syscp'
+ ),
+ 'commands' => Array
+ (
+ 'touch /etc/cron.d/syscp',
+ 'chown root:0 /etc/cron.d/syscp',
+ 'chmod 0640 /etc/cron.d/syscp',
+ 'mkdir -p /etc/php/syscp-cronjob',
+ 'touch /etc/php/syscp-cronjob/php.ini',
+ 'chown -R root:0 /etc/php/syscp-cronjob',
+ 'chmod 0750 /etc/php/syscp-cronjob',
+ 'chmod 0640 /etc/php/syscp-cronjob/php.ini'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add vixie-cron default',
+ '/etc/init.d/vixie-cron restart'
+ )
+ )
+ )
+ )
+ );
+
+ /*echo '<pre>';
+ print_r($configfiles);
+ echo '</pre>';*/
+
+ if( ($page == 'configfiles' || $page == 'overview') && $userinfo['change_serversettings'] == '1')
+ {
+ if(isset($_GET['distribution']) && $_GET['distribution']!='' && isset($configfiles[$_GET['distribution']]) && is_array($configfiles[$_GET['distribution']]) &&
+ isset($_GET['daemon']) && $_GET['daemon']!='' && isset($configfiles[$_GET['distribution']]['daemons'][$_GET['daemon']]) && is_array($configfiles[$_GET['distribution']]['daemons'][$_GET['daemon']]))
+ {
+ $distribution = addslashes($_GET['distribution']);
+ $daemon = addslashes($_GET['daemon']);
+
+ if(isset($configfiles[$distribution]['daemons'][$daemon]['commands']) && is_array($configfiles[$distribution]['daemons'][$daemon]['commands']))
+ {
+ $commands = implode("\n", $configfiles[$distribution]['daemons'][$daemon]['commands']);
+ }
+ else
+ {
+ $commands = '';
+ }
+
+ $replace_arr = Array
+ (
+ '<SQL_UNPRIVILEGED_USER>' => $sql['user'],
+ '<SQL_UNPRIVILEGED_PASSWORD>' => 'MYSQL_PASSWORD',
+ '<SQL_DB>' => $sql['db'],
+ '<SQL_HOST>' => $sql['host'],
+ '<SERVERNAME>' => $settings['system']['hostname'],
+ '<SERVERIP>' => $settings['system']['ipaddress'],
+ '<VIRTUAL_MAILBOX_BASE>' => $settings['system']['vmail_homedir'],
+ '<VIRTUAL_UID_MAPS>' => $settings['system']['vmail_uid'],
+ '<VIRTUAL_GID_MAPS>' => $settings['system']['vmail_gid']
+ );
+ $files = '';
+ if(isset($configfiles[$distribution]['daemons'][$daemon]['files']) && is_array($configfiles[$distribution]['daemons'][$daemon]['files']))
+ {
+ while(list($filename, $realname) = each($configfiles[$distribution]['daemons'][$daemon]['files']))
+ {
+ $file_content = implode('', file('./templates/misc/configfiles/'.$distribution.'/'.$daemon.'/'.$filename));
+ $file_content = strtr($file_content, $replace_arr);
+ $file_content = htmlspecialchars($file_content);
+ $numbrows = count(explode("\n", $file_content));
+ eval("\$files.=\"".getTemplate("configfiles/configfiles_file")."\";");
+ }
+ }
+
+ if(isset($configfiles[$distribution]['daemons'][$daemon]['restart']) && is_array($configfiles[$distribution]['daemons'][$daemon]['restart']))
+ {
+ $restart = implode("\n", $configfiles[$distribution]['daemons'][$daemon]['restart']);
+ }
+ else
+ {
+ $restart = '';
+ }
+
+ eval("echo \"".getTemplate("configfiles/configfiles")."\";");
+ }
+ else
+ {
+ $distributions = '';
+ while (list($distribution_name, $distribution_details) = each($configfiles))
+ {
+ $daemons = '';
+ while(list($daemon_name, $daemon_details) = each($distribution_details['daemons']))
+ {
+ eval("\$daemons.=\"".getTemplate("configfiles/choose_daemon")."\";");
+ }
+ eval("\$distributions.=\"".getTemplate("configfiles/choose_distribution")."\";");
+ }
+ eval("echo \"".getTemplate("configfiles/choose")."\";");
+ }
+ }
+
+?>
diff --git a/syscp/patches/gentoo-config-files/bind-ssl/syscp-1.2.13-gentoo-config-bind-ssl-r2.tar.bz2 b/syscp/patches/gentoo-config-files/bind-ssl/syscp-1.2.13-gentoo-config-bind-ssl-r2.tar.bz2
new file mode 100644
index 0000000..f799689
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind-ssl/syscp-1.2.13-gentoo-config-bind-ssl-r2.tar.bz2
Binary files differ
diff --git a/syscp/patches/gentoo-config-files/bind/etc_libnss-mysql-root.cfg b/syscp/patches/gentoo-config-files/bind/etc_libnss-mysql-root.cfg
new file mode 100644
index 0000000..6498977
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/etc_libnss-mysql-root.cfg
@@ -0,0 +1,2 @@
+username <SQL_UNPRIVILEGED_USER>
+password <SQL_UNPRIVILEGED_PASSWORD>
diff --git a/syscp/patches/gentoo-config-files/bind/etc_libnss-mysql.cfg b/syscp/patches/gentoo-config-files/bind/etc_libnss-mysql.cfg
new file mode 100644
index 0000000..d284192
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/etc_libnss-mysql.cfg
@@ -0,0 +1,38 @@
+getpwnam SELECT username,'x',uid,gid,'MySQL User',homedir,shell \
+ FROM ftp_users \
+ WHERE username='%1$s' \
+ LIMIT 1
+getpwuid SELECT username,'x',uid,gid,'MySQL User',homedir,shell \
+ FROM ftp_users \
+ WHERE uid='%1$u' \
+ LIMIT 1
+getspnam SELECT username,password,UNIX_TIMESTAMP()-10,'1','2','7','-1','-1','0' \
+ FROM ftp_users \
+ WHERE username='%1$s' \
+ LIMIT 1
+getpwent SELECT username,'x',uid,gid,'MySQL User',homedir,shell \
+ FROM ftp_users
+getspent SELECT username,password,UNIX_TIMESTAMP()-10,'1','2','7','-1','-1','0' \
+ FROM ftp_users
+getgrnam SELECT groupname,'x',gid \
+ FROM ftp_groups \
+ WHERE groupname='%1$s' \
+ LIMIT 1
+getgrgid SELECT groupname,'x',gid \
+ FROM ftp_groups \
+ WHERE gid='%1$u' \
+ LIMIT 1
+getgrent SELECT groupname,'x',gid \
+ FROM ftp_groups
+memsbygid SELECT username \
+ FROM ftp_users \
+ WHERE gid='%1$u'
+gidsbymem SELECT gid \
+ FROM ftp_users \
+ WHERE username='%1$s'
+
+host <SQL_HOST>
+database <SQL_DB>
+username <SQL_UNPRIVILEGED_USER>
+password <SQL_UNPRIVILEGED_PASSWORD>
+socket /var/run/mysqld/mysqld.sock
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/bind/etc_bind_default.zone b/syscp/patches/gentoo-config-files/bind/gentoo/bind/etc_bind_default.zone
new file mode 100644
index 0000000..817b9bc
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/bind/etc_bind_default.zone
@@ -0,0 +1,21 @@
+$TTL 1W
+@ IN SOA ns root (
+ 2004060501 ; serial
+ 8H ; refresh
+ 2H ; retry
+ 1W ; expiry
+ 11h) ; minimum
+
+ IN NS ns
+ IN MX 10 mail
+
+ IN A <SERVERIP>
+ IN MX 10 mail
+
+* IN A <SERVERIP>
+ IN MX 10 mail
+
+ns IN A <SERVERIP>
+
+mail IN A <SERVERIP>
+ IN MX 10 mail
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_imapd b/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_imapd
new file mode 100644
index 0000000..f594e41
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_imapd
@@ -0,0 +1,376 @@
+##VERSION: $Id: imapd.dist.in,v 1.32 2004/11/25 04:57:04 mrsam Exp $
+#
+# imapd created from imapd.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# This configuration file sets various options for the Courier-IMAP server
+# when used with the couriertcpd server.
+# A lot of the stuff here is documented in the manual page for couriertcpd.
+#
+# NOTE - do not use \ to split long variable contents on multiple lines.
+# This will break the default imapd.rc script, which parses this file.
+#
+##NAME: ADDRESS:0
+#
+# Address to listen on, can be set to a single IP address.
+#
+# ADDRESS=127.0.0.1
+
+ADDRESS=0
+
+##NAME: PORT:1
+#
+# Port numbers that connections are accepted on. The default is 143,
+# the standard IMAP port.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possible to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The previous ADDRESS setting is a default for ports that do not have
+# a specified IP address.
+
+PORT=143
+
+##NAME: AUTHSERVICE:0
+#
+# It's possible to authenticate using a different 'service' parameter
+# depending on the connection's port. This only works with authentication
+# modules that use the 'service' parameter, such as PAM. Example:
+#
+# AUTHSERVICE143=imap
+# AUTHSERVICE993=imaps
+
+##NAME: MAXDAEMONS:0
+#
+# Maximum number of IMAP servers started
+#
+
+MAXDAEMONS=50
+
+##NAME: MAXPERIP:0
+#
+# Maximum number of connections to accept from the same IP address
+
+MAXPERIP=10
+
+##NAME: PIDFILE:0
+#
+# File where couriertcpd will save its process ID
+#
+
+PIDFILE=/var/run/imapd.pid
+
+##NAME: TCPDOPTS:0
+#
+# Miscellaneous couriertcpd options that shouldn't be changed.
+#
+
+TCPDOPTS="-nodnslookup -noidentlookup"
+
+##NAME: IMAP_CAPABILITY:1
+#
+# IMAP_CAPABILITY specifies what most of the response should be to the
+# CAPABILITY command.
+#
+# If you have properly configured Courier to use CRAM-MD5 or CRAM-SHA1
+# authentication (see INSTALL), set IMAP_CAPABILITY as follows:
+#
+# IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
+#
+
+IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE"
+
+##NAME: KEYWORDS_CAPABILITY:0
+#
+# IMAP_KEYWORDS=1 enables custom IMAP keywords. Set this option to 0 to
+# disable custom keywords.
+
+IMAP_KEYWORDS=1
+
+##NAME: SMAP1_CAPABILITY:0
+#
+# EXPERIMENTAL
+#
+# To enable the experimental "Simple Mail Access Protocol" extensions,
+# uncomment the following setting.
+#
+# SMAP_CAPABILITY=SMAP1
+
+##NAME: IMAP_CAPABILITY_ORIG:1
+#
+# For use by webadmin
+
+IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
+
+##NAME: IMAP_PROXY:0
+#
+# Enable proxying. See README.proxy
+
+IMAP_PROXY=0
+
+##NAME: IMAP_PROXY_FOREIGN:0
+#
+# Proxying to non-Courier servers. Re-sends the CAPABILITY command after
+# logging in to the remote server. May not work with all IMAP clients.
+
+IMAP_PROXY_FOREIGN=0
+
+##NAME: IMAP_IDLE_TIMEOUT:0
+#
+# This setting controls how often
+# the server polls for changes to the folder, in IDLE mode (in seconds).
+
+IMAP_IDLE_TIMEOUT=60
+
+##NAME: IMAP_CAPABILITY_TLS:0
+#
+# The following setting will advertise SASL PLAIN authentication after
+# STARTTLS is established. If you want to allow SASL PLAIN authentication
+# with or without TLS then just comment this out, and add AUTH=PLAIN to
+# IMAP_CAPABILITY
+
+IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
+
+##NAME: IMAP_TLS_ORIG:0
+#
+# For use by webadmin
+
+IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
+
+##NAME: IMAP_DISABLETHREADSORT:0
+#
+# Set IMAP_DISABLETHREADSORT to disable the THREAD and SORT commands -
+# server side sorting and threading.
+#
+# Those capabilities will still be advertised, but the server will reject
+# them. Set this option if you want to disable all the extra load from
+# server-side threading and sorting. Not advertising those capabilities
+# will simply result in the clients reading the entire folder, and sorting
+# it on the client side. That will still put some load on the server.
+# advertising these capabilities, but rejecting the commands, will stop this
+# silliness.
+#
+
+IMAP_DISABLETHREADSORT=0
+
+##NAME: IMAP_CHECK_ALL_FOLDERS:0
+#
+# Set IMAP_CHECK_ALL_FOLDERS to 1 if you want the server to check for new
+# mail in every folder. Not all IMAP clients use the IMAP's new mail
+# indicator, but some do. Normally new mail is checked only in INBOX,
+# because it is a comparatively time consuming operation, and it would be
+# a complete waste of time unless mail filters are used to deliver
+# mail directly to folders.
+#
+# When IMAP clients are used which support new mail indication, and when
+# mail filters are used to sort incoming mail into folders, setting
+# IMAP_CHECK_ALL_FOLDERS to 1 will allow IMAP clients to announce new
+# mail in folders. Note that this will result in slightly more load on the
+# server.
+#
+
+IMAP_CHECK_ALL_FOLDERS=0
+
+##NAME: IMAP_OBSOLETE_CLIENT:0
+#
+# Set IMAP_OBSOLETE_CLIENT if your IMAP client expects \\NoInferiors to mean
+# what \\HasNoChildren really means.
+
+IMAP_OBSOLETE_CLIENT=0
+
+##NAME: IMAP_UMASK:0
+#
+# IMAP_UMASK sets the umask of the server process. The value of IMAP_UMASK is
+# simply passed to the "umask" command. The default value is 022.
+#
+# This feature is mostly useful for shared folders, where the file permissions
+# of the messages may be important.
+
+IMAP_UMASK=027
+
+##NAME: IMAP_ULIMITD:0
+#
+# IMAP_ULIMITD sets the maximum size of the data segment of the server
+# process. The value of IMAP_ULIMITD is simply passed to the "ulimit -d"
+# command (or ulimit -v). The argument to ulimi sets the upper limit on the
+# size of the data segment of the server process, in kilobytes. The default
+# value of 65536 sets a very generous limit of 64 megabytes, which should
+# be more than plenty for anyone.
+#
+# This feature is used as an additional safety check that should stop
+# any potential denial-of-service attacks that exploit any kind of
+# a memory leak to exhaust all the available memory on the server.
+# It is theoretically possible that obscenely huge folders will also
+# result in the server running out of memory when doing server-side
+# sorting (by my calculations you have to have at least 100,000 messages
+# in a single folder, for that to happen).
+
+IMAP_ULIMITD=65536
+
+##NAME: IMAP_USELOCKS:0
+#
+# Setting IMAP_USELOCKS to 1 will use dot-locking to support concurrent
+# multiple access to the same folder. This incurs slight additional
+# overhead. Concurrent multiple access will still work without this setting,
+# however occasionally a minor race condition may result in an IMAP client
+# downloading the same message twice, or a keyword update will fail.
+#
+# IMAP_USELOCKS=1 is strongly recommended when shared folders are used.
+
+IMAP_USELOCKS=1
+
+##NAME: IMAP_SHAREDINDEXFILE:0
+#
+# The index of all accessible folders. Do not change this setting unless
+# you know what you're doing. See README.sharedfolders for additional
+# information.
+
+IMAP_SHAREDINDEXFILE=/etc/courier-imap/shared/index
+
+##NAME: IMAP_ENHANCEDIDLE:0
+#
+# If Courier was compiled with the File Alteration Monitor, setting
+# IMAP_ENHANCEDIDLE to 1 enables enhanced IDLE mode, where multiple
+# clients may open the same folder concurrently, and receive updates to
+# folder contents in realtime. See the imapd(8) man page for additional
+# information.
+#
+# IMPORTANT: IMAP_USELOCKS *MUST* also be set to 1, and IDLE must be included
+# in the IMAP_CAPABILITY list.
+#
+
+IMAP_ENHANCEDIDLE=0
+
+##NAME: IMAP_TRASHFOLDERNAME:0
+#
+# The name of the magic trash Folder. For MSOE compatibility,
+# you can set IMAP_TRASHFOLDERNAME="Deleted Items".
+#
+# IMPORTANT: If you change this, you must also change IMAP_EMPTYTRASH
+
+IMAP_TRASHFOLDERNAME=Trash
+
+##NAME: IMAP_EMPTYTRASH:0
+#
+# The following setting is optional, and causes messages from the given
+# folder to be automatically deleted after the given number of days.
+# IMAP_EMPTYTRASH is a comma-separated list of folder:days. The default
+# setting, below, purges 7 day old messages from the Trash folder.
+# Another useful setting would be:
+#
+# IMAP_EMPTYTRASH=Trash:7,Sent:30
+#
+# This would also delete messages from the Sent folder (presumably copies
+# of sent mail) after 30 days. This is a global setting that is applied to
+# every mail account, and is probably useful in a controlled, corporate
+# environment.
+#
+# Important: the purging is controlled by CTIME, not MTIME (the file time
+# as shown by ls). It is perfectly ordinary to see stuff in Trash that's
+# a year old. That's the file modification time, MTIME, that's displayed.
+# This is generally when the message was originally delivered to this
+# mailbox. Purging is controlled by a different timestamp, CTIME, which is
+# changed when the file is moved to the Trash folder (and at other times too).
+#
+# You might want to disable this setting in certain situations - it results
+# in a stat() of every file in each folder, at login and logout.
+#
+
+IMAP_EMPTYTRASH=Trash:7
+
+##NAME: IMAP_MOVE_EXPUNGE_TO_TRASH:0
+#
+# Set IMAP_MOVE_EXPUNGE_TO_TRASH to move expunged messages to Trash. This
+# effectively allows an undo of message deletion by fishing the deleted
+# mail from trash. Trash can be manually expunged as usually, and mail
+# will get automatically expunged from Trash according to IMAP_EMPTYTRASH.
+#
+# NOTE: shared folders are still expunged as usual. Shared folders are
+# not affected.
+#
+
+IMAP_MOVE_EXPUNGE_TO_TRASH=0
+
+
+##NAME: OUTBOX:0
+#
+# The next set of options deal with the "Outbox" enhancement.
+# Uncomment the following setting to create a special folder, named
+# INBOX.Outbox
+#
+# OUTBOX=.Outbox
+
+##NAME: SENDMAIL:0
+#
+# If OUTBOX is defined, mail can be sent via the IMAP connection by copying
+# a message to the INBOX.Outbox folder. For all practical matters,
+# INBOX.Outbox looks and behaves just like any other IMAP folder. If this
+# folder doesn't exist it must be created by the IMAP mail client, just
+# like any other IMAP folder. The kicker: any message copied or moved to
+# this folder is will be E-mailed by the Courier-IMAP server, by running
+# the SENDMAIL program. Therefore, messages copied or moved to this
+# folder must be well-formed RFC-2822 messages, with the recipient list
+# specified in the To:, Cc:, and Bcc: headers. Courier-IMAP relies on
+# SENDMAIL to read the recipient list from these headers (and delete the Bcc:
+# header) by running the command "$SENDMAIL -oi -t -f $SENDER", with the
+# message piped on standard input. $SENDER will be the return address
+# of the message, which is set by the authentication module.
+#
+# DO NOT MODIFY SENDMAIL, below, unless you know what you're doing.
+#
+
+SENDMAIL=/usr/sbin/sendmail
+
+##NAME: HEADERFROM:0
+#
+# For administrative and oversight purposes, the return address, $SENDER
+# will also be saved in the X-IMAP-Sender mail header. This header gets
+# added to the sent E-mail (but it doesn't get saved in the copy of the
+# message that's saved in the folder)
+#
+# WARNING - By enabling OUTBOX above, *every* IMAP mail client will receive
+# the magic OUTBOX treatment. Therefore advance LARTing is in order for
+# _all_ of your lusers, until every one of them is aware of this. Otherwise if
+# OUTBOX is left at its default setting - a folder name that might be used
+# accidentally - some people may be in for a rude surprise. You can redefine
+# the name of the magic folder by changing OUTBOX, above. You should do that
+# and pick a less-obvious name. Perhaps brand it with your organizational
+# name ( OUTBOX=.WidgetsAndSonsOutbox )
+
+HEADERFROM=X-IMAP-Sender
+
+##NAME: IMAPDSTART:0
+#
+# IMAPDSTART is not used directly. Rather, this is a convenient flag to
+# be read by your system startup script in /etc/rc.d, like this:
+#
+# . /etc/courier-imap/imapd
+#
+# case x$IMAPDSTART in
+# x[yY]*)
+# /usr/lib/courier-imap/imapd.rc start
+# ;;
+# esac
+#
+# The default setting is going to be NO, so you'll have to manually flip
+# it to yes.
+
+IMAPDSTART=YES
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIR=.maildir
+MAILDIRPATH=.maildir
+#Put any program for ${PRERUN} here
+PRERUN=
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_imapd-ssl b/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_imapd-ssl
new file mode 100644
index 0000000..76dbcf7
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_imapd-ssl
@@ -0,0 +1,199 @@
+##VERSION: $Id: imapd-ssl.dist.in,v 1.11 2004/10/21 00:45:35 mrsam Exp $
+#
+# imapd-ssl created from imapd-ssl.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 2000 - 2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# This configuration file sets various options for the Courier-IMAP server
+# when used to handle SSL IMAP connections.
+#
+# SSL and non-SSL connections are handled by a dedicated instance of the
+# couriertcpd daemon. If you are accepting both SSL and non-SSL IMAP
+# connections, you will start two instances of couriertcpd, one on the
+# IMAP port 143, and another one on the IMAP-SSL port 993.
+#
+# Download OpenSSL from http://www.openssl.org/
+#
+##NAME: SSLPORT:1
+#
+# Options in the imapd-ssl configuration file AUGMENT the options in the
+# imapd configuration file. First the imapd configuration file is read,
+# then the imapd-ssl configuration file, so we do not have to redefine
+# anything.
+#
+# However, some things do have to be redefined. The port number is
+# specified by SSLPORT, instead of PORT. The default port is port 993.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possibly to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The SSLADDRESS setting is a default for ports that do not have
+# a specified IP address.
+
+SSLPORT=993
+
+##NAME: SSLADDRESS:0
+#
+# Address to listen on, can be set to a single IP address.
+#
+# SSLADDRESS=127.0.0.1
+
+SSLADDRESS=0
+
+##NAME: SSLPIDFILE:0
+#
+# That's the SSL IMAP port we'll listen on.
+# Feel free to redefine MAXDAEMONS, TCPDOPTS, and MAXPERIP.
+
+SSLPIDFILE=/var/run/imapd-ssl.pid
+
+##NAME: IMAPDSSLSTART:0
+#
+# Different pid files, so that both instances of couriertcpd can coexist
+# happily.
+#
+# You can also redefine IMAP_CAPABILITY, although I can't
+# think of why you'd want to do that.
+#
+#
+# Ok, the following settings are new to imapd-ssl:
+#
+# Whether or not to start IMAP over SSL on simap port:
+
+IMAPDSSLSTART=YES
+
+##NAME: IMAPDSTARTTLS:0
+#
+# Whether or not to implement IMAP STARTTLS extension instead:
+
+IMAPDSTARTTLS=YES
+
+##NAME: IMAP_TLS_REQUIRED:1
+#
+# Set IMAP_TLS_REQUIRED to 1 if you REQUIRE STARTTLS for everyone.
+# (this option advertises the LOGINDISABLED IMAP capability, until STARTTLS
+# is issued).
+
+IMAP_TLS_REQUIRED=0
+
+#########################################################################
+#
+# The following variables configure IMAP over SSL. If OpenSSL is available
+# during configuration, the couriertls helper gets compiled, and upon
+# installation a dummy TLS_CERTFILE gets generated. courieresmtpd will
+# automatically advertise the ESMTP STARTTLS extension if both TLS_CERTFILE
+# and COURIERTLS exist.
+#
+# WARNING: Peer certificate verification has NOT yet been tested. Proceed
+# at your own risk. Only the basic SSL/TLS functionality is known to be
+# working. Keep this in mind as you play with the following variables.
+#
+##NAME: COURIERTLS:0
+#
+
+COURIERTLS=/usr/sbin/couriertls
+
+##NAME: TLS_PROTOCOL:0
+#
+# TLS_PROTOCOL sets the protocol version. The possible versions are:
+#
+# SSL2 - SSLv2
+# SSL3 - SSLv3
+# TLS1 - TLS1
+
+TLS_PROTOCOL=SSL3
+
+##NAME: TLS_STARTTLS_PROTOCOL:0
+#
+# TLS_STARTTLS_PROTOCOL is used instead of TLS_PROTOCOL for the IMAP STARTTLS
+# extension, as opposed to IMAP over SSL on port 993.
+#
+
+TLS_STARTTLS_PROTOCOL=TLS1
+
+##NAME: TLS_CIPHER_LIST:0
+#
+# TLS_CIPHER_LIST optionally sets the list of ciphers to be used by the
+# OpenSSL library. In most situations you can leave TLS_CIPHER_LIST
+# undefined
+#
+# TLS_CIPHER_LIST="ALL:!ADH:RC4+RSA:+SSLv2:@STRENGTH"
+
+##NAME: TLS_TIMEOUT:0
+# TLS_TIMEOUT is currently not implemented, and reserved for future use.
+# This is supposed to be an inactivity timeout, but its not yet implemented.
+#
+
+##NAME: TLS_DHCERTFILE:0
+#
+# TLS_DHCERTFILE - PEM file that stores our Diffie-Hellman cipher pair.
+# When OpenSSL is compiled to use Diffie-Hellman ciphers instead of RSA
+# you must generate a DH pair that will be used. In most situations the
+# DH pair is to be treated as confidential, and the file specified by
+# TLS_DHCERTFILE must not be world-readable.
+#
+# TLS_DHCERTFILE=
+
+##NAME: TLS_CERTFILE:0
+#
+# TLS_CERTFILE - certificate to use. TLS_CERTFILE is required for SSL/TLS
+# servers, and is optional for SSL/TLS clients. TLS_CERTFILE is usually
+# treated as confidential, and must not be world-readable.
+#
+TLS_CERTFILE=/etc/ssl/server/<SERVERNAME>.crt_and_key
+
+##NAME: TLS_TRUSTCERTS:0
+#
+# TLS_TRUSTCERTS=pathname - load trusted certificates from pathname.
+# pathname can be a file or a directory. If a file, the file should
+# contain a list of trusted certificates, in PEM format. If a
+# directory, the directory should contain the trusted certificates,
+# in PEM format, one per file and hashed using OpenSSL's c_rehash
+# script. TLS_TRUSTCERTS is used by SSL/TLS clients (by specifying
+# the -domain option) and by SSL/TLS servers (TLS_VERIFYPEER is set
+# to PEER or REQUIREPEER).
+#
+#
+# TLS_TRUSTCERTS=
+
+##NAME: TLS_VERIFYPEER:0
+#
+# TLS_VERIFYPEER - how to verify client certificates. The possible values of
+# this setting are:
+#
+# NONE - do not verify anything
+#
+# PEER - verify the client certificate, if one's presented
+#
+# REQUIREPEER - require a client certificate, fail if one's not presented
+#
+#
+TLS_VERIFYPEER=NONE
+
+##NAME: TLS_CACHE:0
+#
+# A TLS/SSL session cache may slightly improve response for IMAP clients
+# that open multiple SSL sessions to the server. TLS_CACHEFILE will be
+# automatically created, TLS_CACHESIZE bytes long, and used as a cache
+# buffer.
+#
+# This is an experimental feature and should be disabled if it causes
+# problems with SSL clients. Disable SSL caching by commenting out the
+# following settings:
+
+TLS_CACHEFILE=/var/lib/courier-imap/couriersslcache
+TLS_CACHESIZE=524288
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIRPATH=.maildir
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_pop3d b/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_pop3d
new file mode 100644
index 0000000..71502ae
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_pop3d
@@ -0,0 +1,127 @@
+##VERSION: $Id: pop3d.dist.in,v 1.11 2004/10/30 15:39:38 mrsam Exp $
+#
+# pop3d created from pop3d.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# Courier POP3 daemon configuration
+#
+##NAME: PIDFILE:0
+#
+
+PIDFILE=/var/run/pop3d.pid
+
+##NAME: MAXDAEMONS:0
+#
+# Maximum number of POP3 servers started
+#
+
+MAXDAEMONS=50
+
+##NAME: MAXPERIP:4
+#
+# Maximum number of connections to accept from the same IP address
+
+MAXPERIP=5
+
+##NAME: POP3AUTH:1
+#
+# To advertise the SASL capability, per RFC 2449, uncomment the POP3AUTH
+# variable:
+#
+# POP3AUTH="LOGIN"
+#
+# If you have configured the CRAM-MD5 or CRAM-SHA1, set POP3AUTH to something
+# like this:
+#
+# POP3AUTH="LOGIN CRAM-MD5 CRAM-SHA1"
+
+POP3AUTH=""
+
+##NAME: POP3AUTH_ORIG:0
+#
+# For use by webadmin
+
+POP3AUTH_ORIG="LOGIN CRAM-MD5 CRAM-SHA1"
+
+##NAME: POP3AUTH_TLS:1
+#
+# To also advertise SASL PLAIN if SSL is enabled, uncomment the
+# POP3AUTH_TLS environment variable:
+#
+# POP3AUTH_TLS="LOGIN PLAIN"
+
+POP3AUTH_TLS=""
+
+##NAME: POP3AUTH_TLS_ORIG:0
+#
+# For use by webadmin
+
+POP3AUTH_TLS_ORIG="LOGIN PLAIN"
+
+##NAME: POP3_PROXY:0
+#
+# Enable proxying. See README.proxy
+
+POP3_PROXY=0
+
+##NAME: PORT:1
+#
+# Port to listen on for connections. The default is port 110.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possibly to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The ADDRESS setting is a default for ports that do not have a specified
+# IP address.
+
+PORT=110
+
+##NAME: ADDRESS:0
+#
+# IP address to listen on. 0 means all IP addresses.
+
+ADDRESS=0
+
+##NAME: TCPDOPTS:0
+#
+# Other couriertcpd(1) options. The following defaults should be fine.
+#
+
+TCPDOPTS="-nodnslookup -noidentlookup"
+
+##NAME: POP3DSTART:0
+#
+# POP3DSTART is not referenced anywhere in the standard Courier programs
+# or scripts. Rather, this is a convenient flag to be read by your system
+# startup script in /etc/rc.d, like this:
+#
+# . /etc/courier-imap/pop3d
+# case x$POP3DSTART in
+# x[yY]*)
+# /usr/lib/courier-imap/pop3d.rc start
+# ;;
+# esac
+#
+# The default setting is going to be NO, until Courier is shipped by default
+# with enough platforms so that people get annoyed with having to flip it to
+# YES every time.
+
+POP3DSTART=YES
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIR=.maildir
+MAILDIRPATH=.maildir
+#Put any program for ${PRERUN} here
+PRERUN=
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_pop3d-ssl b/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_pop3d-ssl
new file mode 100644
index 0000000..a0267a0
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier-imap_pop3d-ssl
@@ -0,0 +1,186 @@
+##VERSION: $Id: pop3d-ssl.dist.in,v 1.12 2004/10/21 00:45:35 mrsam Exp $
+#
+# pop3d-ssl created from pop3d-ssl.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 2000-2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# This configuration file sets various options for the Courier-IMAP server
+# when used to handle SSL POP3 connections.
+#
+# SSL and non-SSL connections are handled by a dedicated instance of the
+# couriertcpd daemon. If you are accepting both SSL and non-SSL POP3
+# connections, you will start two instances of couriertcpd, one on the
+# POP3 port 110, and another one on the POP3-SSL port 995.
+#
+# Download OpenSSL from http://www.openssl.org/
+#
+##NAME: SSLPORT:0
+#
+# Options in the pop3d-ssl configuration file AUGMENT the options in the
+# pop3d configuration file. First the pop3d configuration file is read,
+# then the pop3d-ssl configuration file, so we do not have to redefine
+# anything.
+#
+# However, some things do have to be redefined. The port number is
+# specified by SSLPORT, instead of PORT. The default port is port 995.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possibly to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The SSLADDRESS setting is a default for ports that do not have
+# a specified IP address.
+
+SSLPORT=995
+
+##NAME: SSLADDRESS:0
+#
+# Address to listen on, can be set to a single IP address.
+#
+# SSLADDRESS=127.0.0.1
+
+SSLADDRESS=0
+
+##NAME: SSLPIDFILE:0
+#
+#
+#
+
+SSLPIDFILE=/var/run/pop3d-ssl.pid
+
+##NAME: POP3DSSLSTART:0
+#
+# Whether or not to start POP3 over SSL on spop3 port:
+
+POP3DSSLSTART=YES
+
+##NAME: POP3_STARTTLS:0
+#
+# Whether or not to implement the POP3 STLS extension:
+
+POP3_STARTTLS=YES
+
+##NAME: POP3_TLS_REQUIRED:1
+#
+# Set POP3_TLS_REQUIRED to 1 if you REQUIRE STARTTLS for everyone.
+# (this option advertises the LOGINDISABLED POP3 capability, until STARTTLS
+# is issued).
+
+POP3_TLS_REQUIRED=0
+
+##NAME: COURIERTLS:0
+#
+# The following variables configure POP3 over SSL. If OpenSSL is available
+# during configuration, the couriertls helper gets compiled, and upon
+# installation a dummy TLS_CERTFILE gets generated. courieresmtpd will
+# automatically advertise the ESMTP STARTTLS extension if both TLS_CERTFILE
+# and COURIERTLS exist.
+#
+# WARNING: Peer certificate verification has NOT yet been tested. Proceed
+# at your own risk. Only the basic SSL/TLS functionality is known to be
+# working. Keep this in mind as you play with the following variables.
+
+COURIERTLS=/usr/sbin/couriertls
+
+##NAME: TLS_PROTOCOL:0
+#
+# TLS_PROTOCOL sets the protocol version. The possible versions are:
+#
+# SSL2 - SSLv2
+# SSL3 - SSLv3
+# TLS1 - TLS1
+
+TLS_PROTOCOL=SSL3
+
+##NAME: TLS_STARTTLS_PROTOCOL:0
+#
+# TLS_STARTTLS_PROTOCOL is used instead of TLS_PROTOCOL for the POP3 STARTTLS
+# extension, as opposed to POP3 over SSL on port 995.
+#
+
+TLS_STARTTLS_PROTOCOL=TLS1
+
+##NAME: TLS_CIPHER_LIST:0
+#
+# TLS_CIPHER_LIST optionally sets the list of ciphers to be used by the
+# OpenSSL library. In most situations you can leave TLS_CIPHER_LIST
+# undefined
+#
+# TLS_CIPHER_LIST="ALL:!ADH:RC4+RSA:+SSLv2:@STRENGTH"
+
+##NAME: TLS_TIMEOUT:0
+# TLS_TIMEOUT is currently not implemented, and reserved for future use.
+# This is supposed to be an inactivity timeout, but its not yet implemented.
+#
+
+##NAME: TLS_DHCERTFILE:0
+#
+# TLS_DHCERTFILE - PEM file that stores our Diffie-Hellman cipher pair.
+# When OpenSSL is compiled to use Diffie-Hellman ciphers instead of RSA
+# you must generate a DH pair that will be used. In most situations the
+# DH pair is to be treated as confidential, and the file specified by
+# TLS_DHCERTFILE must not be world-readable.
+#
+# TLS_DHCERTFILE=
+
+##NAME: TLS_CERTFILE:0
+#
+# TLS_CERTFILE - certificate to use. TLS_CERTFILE is required for SSL/TLS
+# servers, and is optional for SSL/TLS clients. TLS_CERTFILE is usually
+# treated as confidential, and must not be world-readable.
+#
+TLS_CERTFILE=/etc/ssl/server/<SERVERNAME>.crt_and_key
+
+##NAME: TLS_TRUSTCERTS:0
+#
+# TLS_TRUSTCERTS=pathname - load trusted certificates from pathname.
+# pathname can be a file or a directory. If a file, the file should
+# contain a list of trusted certificates, in PEM format. If a
+# directory, the directory should contain the trusted certificates,
+# in PEM format, one per file and hashed using OpenSSL's c_rehash
+# script. TLS_TRUSTCERTS is used by SSL/TLS clients (by specifying
+# the -domain option) and by SSL/TLS servers (TLS_VERIFYPEER is set
+# to PEER or REQUIREPEER).
+#
+#
+# TLS_TRUSTCERTS=
+
+##NAME: TLS_VERIFYPEER:0
+#
+# TLS_VERIFYPEER - how to verify client certificates. The possible values of
+# this setting are:
+#
+# NONE - do not verify anything
+#
+# PEER - verify the client certificate, if one's presented
+#
+# REQUIREPEER - require a client certificate, fail if one's not presented
+#
+#
+TLS_VERIFYPEER=NONE
+
+##NAME: TLS_CACHE:0
+#
+# A TLS/SSL session cache may slightly improve response for long-running
+# POP3 clients. TLS_CACHEFILE will be automatically created, TLS_CACHESIZE
+# bytes long, and used as a cache buffer.
+#
+# This is an experimental feature and should be disabled if it causes
+# problems with SSL clients. Disable SSL caching by commenting out the
+# following settings:
+
+TLS_CACHEFILE=/var/lib/courier-imap/couriersslcache
+TLS_CACHESIZE=524288
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIRPATH=.maildir
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier_authlib_authdaemonrc b/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier_authlib_authdaemonrc
new file mode 100644
index 0000000..867a12d
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier_authlib_authdaemonrc
@@ -0,0 +1,93 @@
+##VERSION: $Id: authdaemonrc.in,v 1.12 2005/07/05 12:25:08 mrsam Exp $
+#
+# Copyright 2000-2005 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# authdaemonrc created from authdaemonrc.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# This file configures authdaemond, the resident authentication daemon.
+#
+# Comments in this file are ignored. Although this file is intended to
+# be sourced as a shell script, authdaemond parses it manually, so
+# the acceptable syntax is a bit limited. Multiline variable contents,
+# with the \ continuation character, are not allowed. Everything must
+# fit on one line. Do not use any additional whitespace for indentation,
+# or anything else.
+
+##NAME: authmodulelist:2
+#
+# The authentication modules that are linked into authdaemond. The
+# default list is installed. You may selectively disable modules simply
+# by removing them from the following list. The available modules you
+# can use are: authuserdb authpam authshadow authmysql authcustom authpipe
+
+authmodulelist="authmysql"
+
+##NAME: authmodulelistorig:3
+#
+# This setting is used by Courier's webadmin module, and should be left
+# alone
+
+authmodulelistorig="authuserdb authpam authshadow authmysql authcustom authpipe"
+
+##NAME: daemons:0
+#
+# The number of daemon processes that are started. authdaemon is typically
+# installed where authentication modules are relatively expensive: such
+# as authldap, or authmysql, so it's better to have a number of them running.
+# PLEASE NOTE: Some platforms may experience a problem if there's more than
+# one daemon. Specifically, SystemV derived platforms that use TLI with
+# socket emulation. I'm suspicious of TLI's ability to handle multiple
+# processes accepting connections on the same filesystem domain socket.
+#
+# You may need to increase daemons if as your system load increases. Symptoms
+# include sporadic authentication failures. If you start getting
+# authentication failures, increase daemons. However, the default of 5
+# SHOULD be sufficient. Bumping up daemon count is only a short-term
+# solution. The permanent solution is to add more resources: RAM, faster
+# disks, faster CPUs...
+
+daemons=5
+
+##NAME: authdaemonvar:2
+#
+# authdaemonvar is here, but is not used directly by authdaemond. It's
+# used by various configuration and build scripts, so don't touch it!
+
+authdaemonvar=/var/lib/courier/authdaemon
+
+##NAME: DEBUG_LOGIN:0
+#
+# Dump additional diagnostics to syslog
+#
+# DEBUG_LOGIN=0 - turn off debugging
+# DEBUG_LOGIN=1 - turn on debugging
+# DEBUG_LOGIN=2 - turn on debugging + log passwords too
+#
+# ** YES ** - DEBUG_LOGIN=2 places passwords into syslog.
+#
+# Note that most information is sent to syslog at level 'debug', so
+# you may need to modify your /etc/syslog.conf to be able to see it.
+
+DEBUG_LOGIN=0
+
+##NAME: DEFAULTOPTIONS:0
+#
+# A comma-separated list of option=value pairs. Each option is applied
+# to an account if the account does not have its own specific value for
+# that option. So for example, you can set
+# DEFAULTOPTIONS="disablewebmail=1,disableimap=1"
+# and then enable webmail and/or imap on individual accounts by setting
+# disablewebmail=0 and/or disableimap=0 on the account.
+
+DEFAULTOPTIONS=""
+
+##NAME: LOGGEROPTS:0
+#
+# courierlogger(1) options, e.g. to set syslog facility
+#
+
+LOGGEROPTS=""
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier_authlib_authmysqlrc b/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier_authlib_authmysqlrc
new file mode 100644
index 0000000..fec6508
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/courier/etc_courier_authlib_authmysqlrc
@@ -0,0 +1,12 @@
+MYSQL_SERVER <SQL_HOST>
+MYSQL_USERNAME <SQL_UNPRIVILEGED_USER>
+MYSQL_PASSWORD <SQL_UNPRIVILEGED_PASSWORD>
+MYSQL_PORT 0
+MYSQL_DATABASE <SQL_DB>
+MYSQL_USER_TABLE mail_users
+MYSQL_CRYPT_PWFIELD password_enc
+MYSQL_UID_FIELD <VIRTUAL_UID_MAPS>
+MYSQL_GID_FIELD <VIRTUAL_GID_MAPS>
+MYSQL_LOGIN_FIELD username
+MYSQL_HOME_FIELD "<VIRTUAL_MAILBOX_BASE>"
+MYSQL_MAILDIR_FIELD maildir
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/cron/etc_cron.d_syscp b/syscp/patches/gentoo-config-files/bind/gentoo/cron/etc_cron.d_syscp
new file mode 100644
index 0000000..4afe408
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/cron/etc_cron.d_syscp
@@ -0,0 +1,10 @@
+#
+# Set PATH, otherwise restart-scripts won't find start-stop-daemon
+#
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+#
+# Regular cron jobs for the syscp package
+#
+# Please check that all following paths are correct
+#
+*/5 * * * * root /usr/lib/php4/bin/php -q -c /etc/php/syscp-cronjob/php.ini /var/www/syscp/scripts/cronscript.php
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/cron/etc_php_syscp-cronjob_php.ini b/syscp/patches/gentoo-config-files/bind/gentoo/cron/etc_php_syscp-cronjob_php.ini
new file mode 100644
index 0000000..74c8316
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/cron/etc_php_syscp-cronjob_php.ini
@@ -0,0 +1,61 @@
+short_open_tag = On
+asp_tags = Off
+precision = 14
+output_buffering = Off
+allow_call_time_pass_reference = Off
+safe_mode = Off
+safe_mode_gid = Off
+safe_mode_include_dir = "/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+safe_mode_allowed_env_vars = PHP_
+safe_mode_protected_env_vars = LD_LIBRARY_PATH
+open_basedir =
+disable_functions =
+disable_classes =
+expose_php = Off
+max_execution_time = 180
+max_input_time = 120
+memory_limit = 32M
+post_max_size = 32M
+error_reporting = E_ALL & ~E_NOTICE
+display_errors = On
+display_startup_errors = Off
+log_errors = Off
+log_errors_max_len = 1024
+ignore_repeated_errors = Off
+ignore_repeated_source = Off
+report_memleaks = On
+track_errors = Off
+html_errors = Off
+variables_order = "GPCS"
+register_globals = Off
+register_argc_argv = Off
+gpc_order = "GPC"
+magic_quotes_gpc = Off
+magic_quotes_runtime = Off
+magic_quotes_sybase = Off
+include_path = ".:/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+enable_dl = Off
+file_uploads = On
+upload_tmp_dir = "/tmp/"
+upload_max_filesize = 32M
+allow_url_fopen = Off
+session.save_handler = files
+session.save_path = "/tmp/"
+session.use_cookies = 1
+session.name = PHPSESSID
+session.auto_start = 0
+session.cookie_lifetime = 0
+session.cookie_path = /
+session.cookie_domain =
+session.serialize_handler = php
+session.gc_probability = 1
+session.gc_divisor = 1000
+session.gc_maxlifetime = 1440
+session.bug_compat_42 = 0
+session.bug_compat_warn = 1
+session.referer_check =
+session.entropy_length = 16
+session.entropy_file = /dev/urandom
+session.cache_limiter = nocache
+session.cache_expire = 180
+session.use_trans_sid = 0
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/cron/etc_php_syscp-vhost_php.ini b/syscp/patches/gentoo-config-files/bind/gentoo/cron/etc_php_syscp-vhost_php.ini
new file mode 100644
index 0000000..048c26c
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/cron/etc_php_syscp-vhost_php.ini
@@ -0,0 +1,61 @@
+short_open_tag = On
+asp_tags = Off
+precision = 14
+output_buffering = 4096
+allow_call_time_pass_reference = Off
+safe_mode = Off
+safe_mode_gid = Off
+safe_mode_include_dir = "/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+safe_mode_allowed_env_vars = PHP_
+safe_mode_protected_env_vars = LD_LIBRARY_PATH
+open_basedir = "/var/www/syscp/:/var/www/syscp-suphp/syscp/:/var/www/syscpwebs/:/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+disable_functions = exec,passthru,shell_exec,system,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate
+disable_classes =
+expose_php = Off
+max_execution_time = 30
+max_input_time = 60
+memory_limit = 16M
+post_max_size = 12M
+error_reporting = E_ALL & ~E_NOTICE
+display_errors = Off
+display_startup_errors = Off
+log_errors = On
+log_errors_max_len = 1024
+ignore_repeated_errors = Off
+ignore_repeated_source = Off
+report_memleaks = On
+track_errors = Off
+html_errors = Off
+variables_order = "GPCS"
+register_globals = Off
+register_argc_argv = Off
+gpc_order = "GPC"
+magic_quotes_gpc = Off
+magic_quotes_runtime = Off
+magic_quotes_sybase = Off
+include_path = ".:/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+enable_dl = Off
+file_uploads = On
+upload_tmp_dir = "/var/www/syscp-suphp/syscp/"
+upload_max_filesize = 32M
+allow_url_fopen = Off
+session.save_handler = files
+session.save_path = "/var/www/syscp-suphp/syscp/"
+session.use_cookies = 1
+session.name = PHPSESSID
+session.auto_start = 0
+session.cookie_lifetime = 0
+session.cookie_path = /
+session.cookie_domain =
+session.serialize_handler = php
+session.gc_probability = 1
+session.gc_divisor = 1000
+session.gc_maxlifetime = 1440
+session.bug_compat_42 = 0
+session.bug_compat_warn = 1
+session.referer_check =
+session.entropy_length = 16
+session.entropy_file = /dev/urandom
+session.cache_limiter = nocache
+session.cache_expire = 180
+session.use_trans_sid = 0
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_main.cf b/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_main.cf
new file mode 100644
index 0000000..9013dd6
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_main.cf
@@ -0,0 +1,65 @@
+# Postfix directories settings
+command_directory = /usr/sbin
+daemon_directory = /usr/lib/postfix
+queue_directory = /var/spool/postfix
+sample_directory = /etc/postfix
+manpage_directory = /usr/share/man
+readme_directory = /usr/share/doc/postfix-2.1.5-r2/readme
+html_directory = no
+
+# Postfix programs paths settings
+mailq_path = /usr/bin/mailq
+newaliases_path = /usr/bin/newaliases
+sendmail_path = /usr/sbin/sendmail
+
+# General Postfix configuration
+myhostname = <SERVERNAME>
+mydestination = $myhostname, $mydomain, localhost.$myhostname, localhost.$mydomain, localhost
+mynetworks = 127.0.0.0/8
+inet_interfaces = all
+mail_owner = postfix
+setgid_group = postdrop
+smtpd_banner = $myhostname ESMTP Mailserver
+smtpd_helo_required = yes
+append_dot_mydomain = no
+biff = no
+
+# Postfix Debugger configuration
+debug_peer_level = 2
+debugger_command =
+ PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
+ echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
+ >$config_directory/$process_name.$process_id.log & sleep 5
+
+# Postfix performance settings
+default_destination_concurrency_limit = 20
+local_destination_concurrency_limit = 2
+
+# Virtual delivery settings
+virtual_transport = virtual
+virtual_mailbox_base = <VIRTUAL_MAILBOX_BASE>
+virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
+virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
+virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
+virtual_uid_maps = static:<VIRTUAL_UID_MAPS>
+virtual_gid_maps = static:<VIRTUAL_GID_MAPS>
+
+# Local delivery settings
+local_transport = local
+alias_database = hash:/etc/mail/aliases
+alias_maps = $alias_database
+
+# SASL settings
+smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
+smtpd_sasl_auth_enable = yes
+smtpd_sasl_local_domain = $myhostname
+smtpd_sasl_security_options = noanonymous
+broken_sasl_auth_clients = yes
+
+# TLS settings
+#smtpd_use_tls = yes
+#smtpd_tls_cert_file = /etc/ssl/server/<SERVERNAME>.crt
+#smtpd_tls_key_file = /etc/ssl/server/<SERVERNAME>.key
+#smtpd_tls_auth_only = no
+#smtpd_tls_session_cache_timeout = 3600s
+#tls_random_source = dev:/dev/urandom
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf b/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf
new file mode 100644
index 0000000..c921e6f
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf
@@ -0,0 +1,8 @@
+user = <SQL_UNPRIVILEGED_USER>
+password = <SQL_UNPRIVILEGED_PASSWORD>
+dbname = <SQL_DB>
+table = mail_virtual
+select_field = destination
+where_field = email
+additional_conditions = and destination <> '' and destination <> ' '
+hosts = <SQL_HOST>
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf b/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf
new file mode 100644
index 0000000..4484bee
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf
@@ -0,0 +1,8 @@
+user = <SQL_UNPRIVILEGED_USER>
+password = <SQL_UNPRIVILEGED_PASSWORD>
+dbname = <SQL_DB>
+table = panel_domains
+select_field = domain
+where_field = domain
+additional_conditions = and isemaildomain = '1'
+hosts = <SQL_HOST>
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf b/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf
new file mode 100644
index 0000000..7e0f79a
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf
@@ -0,0 +1,7 @@
+user = <SQL_UNPRIVILEGED_USER>
+password = <SQL_UNPRIVILEGED_PASSWORD>
+dbname = <SQL_DB>
+table = mail_users
+select_field = maildir
+where_field = email
+hosts = <SQL_HOST>
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_sasl2_smtpd.conf b/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_sasl2_smtpd.conf
new file mode 100644
index 0000000..2089cbb
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/postfix/etc_sasl2_smtpd.conf
@@ -0,0 +1,12 @@
+pwcheck_method: auxprop
+auxprop_plugin: sql
+allowanonymouslogin: no
+allowplaintext: yes
+mech_list: PLAIN LOGIN
+password_format: crypt
+sql_engine: mysql
+sql_hostnames: <SQL_HOST>
+sql_user: <SQL_UNPRIVILEGED_USER>
+sql_passwd: <SQL_UNPRIVILEGED_PASSWORD>
+sql_database: <SQL_DB>
+sql_select: SELECT password_enc FROM mail_users where username='%u@%r'
diff --git a/syscp/patches/gentoo-config-files/bind/gentoo/proftpd/etc_proftpd_proftpd.conf b/syscp/patches/gentoo-config-files/bind/gentoo/proftpd/etc_proftpd_proftpd.conf
new file mode 100644
index 0000000..5e56215
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/gentoo/proftpd/etc_proftpd_proftpd.conf
@@ -0,0 +1,89 @@
+# Server settings
+ServerName "<SERVERNAME> FTP Server"
+ServerType standalone
+ServerIdent off
+DefaultServer on
+Port 21
+MaxInstances 50
+
+# General settings
+DeferWelcome on
+MultilineRFC2228 on
+ShowSymlinks on
+AllowOverwrite on
+AllowStoreRestart on
+AllowRetrieveRestart on
+UseReverseDNS off
+IdentLookups off
+ListOptions "-al"
+DisplayFirstChdir .message
+
+# Modules settings
+#DelayEngine off
+
+# Timeout settings
+TimeoutLogin 120
+TimeoutNoTransfer 600
+TimeoutStalled 600
+TimeoutIdle 600
+
+# Security settings
+RootLogin off
+RequireValidShell off
+User syscpftpd
+Group syscpftpd
+Umask 133 022
+DefaultRoot ~
+DenyFilter \*.*/
+
+# Per-Directory settings
+<Directory /*>
+Umask 133 022
+AllowOverwrite on
+</Directory>
+
+# SQL settings
+SQLAuthTypes Crypt
+SQLAuthenticate users* groups*
+SQLConnectInfo <SQL_DB>@<SQL_HOST> <SQL_UNPRIVILEGED_USER> <SQL_UNPRIVILEGED_PASSWORD>
+SQLUserInfo ftp_users username password uid gid homedir shell
+SQLGroupInfo ftp_groups groupname gid members
+SQLUserWhereClause "login_enabled = 'y'"
+
+SQLLog PASS login
+SQLNamedQuery login UPDATE "last_login=now(), login_count=login_count+1 WHERE username='%u'" ftp_users
+
+SQLLog RETR download
+SQLNamedQuery download UPDATE "down_count=down_count+1, down_bytes=down_bytes+%b WHERE username='%u'" ftp_users
+
+SQLLog STOR upload
+SQLNamedQuery upload UPDATE "up_count=up_count+1, up_bytes=up_bytes+%b WHERE username='%u'" ftp_users
+
+# TLS settings
+#<IfModule mod_tls.c>
+#TLSEngine on
+#TLSLog /var/log/proftpd-tls.log
+#TLSProtocol SSLv23
+#TLSTimeoutHandshake 120
+# Really important for WinClients
+#TLSOptions NoCertRequest
+#TLSRSACertificateFile /etc/ssl/server/<SERVERNAME>.crt
+#TLSRSACertificateKeyFile /etc/ssl/server/<SERVERNAME>.key
+# Authenticate client that want to use FTP over TLS?
+#TLSVerifyClient off
+# Uncomment the following line to force tls login
+#TLSRequired off
+#</IfModule>
+
+# LOG settings
+# Logging Formats
+LogFormat default "%h %1 %u %t \"%r\" %s %b"
+LogFormat auth "%v [%P] %h %t \"%r\" %s"
+LogFormat write "%h %l %u %t \"%r\" %s %b"
+# Activate Logging
+# all logins
+ExtendedLog /var/log/proftpd-auth.log AUTH auth
+# file/dir access
+ExtendedLog /var/log/proftpd-access.log WRITE,READ write
+# everything (be careful, generates_ very_ big logfiles)
+#ExtendedLog /var/log/proftpd-all.log ALL default
diff --git a/syscp/patches/gentoo-config-files/bind/syscp-1.2.13-gentoo-admin_configfiles.php-bind b/syscp/patches/gentoo-config-files/bind/syscp-1.2.13-gentoo-admin_configfiles.php-bind
new file mode 100644
index 0000000..ff64f20
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/syscp-1.2.13-gentoo-admin_configfiles.php-bind
@@ -0,0 +1,286 @@
+<?php
+/**
+ * filename: $Source: /syscp/syscp/admin_configfiles.php,v $
+ * begin: Wednesday, Sep 08, 2004
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version. This program is distributed in the
+ * hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details.
+ *
+ * @author Florian Lippert <flo@redenswert.de>
+ * @copyright (C) 2003-2004 Florian Lippert
+ * @package Panel
+ * @version $Id: admin_configfiles.php,v 1.9 2005/06/15 13:53:58 flo Exp $
+ * Modified to reflect the Gentoo environment by Luca Longinotti <chtekk@gentoo.org>
+ */
+
+ define('AREA', 'admin');
+
+ /**
+ * Include our init.php, which manages Sessions, Language etc.
+ */
+ require("./lib/init.php");
+
+
+ $configfiles = Array
+ (
+ 'gentoo' => Array
+ (
+ 'label' => 'Gentoo',
+ 'daemons' => Array
+ (
+ 'apache' => Array
+ (
+ 'label' => 'Apache2 Webserver (HTTP)',
+ 'commands' => Array
+ (
+ 'touch '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf',
+ 'chown root:0 '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf',
+ 'chmod 0600 '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf',
+ 'echo "Include '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf" >> /etc/apache2/httpd.conf',
+ 'mkdir -p '.$settings['system']['documentroot_prefix'],
+ 'mkdir -p '.$settings['system']['logfiles_directory']
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add apache2 default',
+ '/etc/init.d/apache2 restart'
+ )
+ ),
+ 'bind' => Array
+ (
+ 'label' => 'Bind9 Nameserver (DNS)',
+ 'files' => Array
+ (
+ 'etc_bind_default.zone' => '/etc/bind/default.zone'
+ ),
+ 'commands' => Array
+ (
+ 'echo "include \"'.$settings['system']['bindconf_directory'].'syscp_bind.conf\";" >> /etc/bind/named.conf',
+ 'touch '.$settings['system']['bindconf_directory'].'syscp_bind.conf',
+ 'chown root:0 '.$settings['system']['bindconf_directory'].'syscp_bind.conf',
+ 'chmod 0600 '.$settings['system']['bindconf_directory'].'syscp_bind.conf'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add named default',
+ '/etc/init.d/named restart'
+ )
+ ),
+ 'courier' => Array
+ (
+ 'label' => 'Courier-IMAP (POP3/IMAP)',
+ 'files' => Array
+ (
+ 'etc_courier_authlib_authdaemonrc' => '/etc/courier/authlib/authdaemonrc',
+ 'etc_courier_authlib_authmysqlrc' => '/etc/courier/authlib/authmysqlrc',
+ 'etc_courier-imap_pop3d' => '/etc/courier-imap/pop3d',
+ 'etc_courier-imap_imapd' => '/etc/courier-imap/imapd',
+ 'etc_courier-imap_pop3d-ssl' => '/etc/courier-imap/pop3d-ssl',
+ 'etc_courier-imap_imapd-ssl' => '/etc/courier-imap/imapd-ssl'
+ ),
+ 'commands' => Array
+ (
+ 'rm /etc/courier/authlib/authdaemonrc',
+ 'rm /etc/courier/authlib/authmysqlrc',
+ 'rm /etc/courier-imap/pop3d',
+ 'rm /etc/courier-imap/imapd',
+ 'rm /etc/courier-imap/pop3d-ssl',
+ 'rm /etc/courier-imap/imapd-ssl',
+ 'touch /etc/courier/authlib/authdaemonrc',
+ 'touch /etc/courier/authlib/authmysqlrc',
+ 'touch /etc/courier-imap/pop3d',
+ 'touch /etc/courier-imap/imapd',
+ 'touch /etc/courier-imap/pop3d-ssl',
+ 'touch /etc/courier-imap/imapd-ssl',
+ 'chown root:0 /etc/courier/authlib/authdaemonrc',
+ 'chown root:0 /etc/courier/authlib/authmysqlrc',
+ 'chown root:0 /etc/courier-imap/pop3d',
+ 'chown root:0 /etc/courier-imap/imapd',
+ 'chown root:0 /etc/courier-imap/pop3d-ssl',
+ 'chown root:0 /etc/courier-imap/imapd-ssl',
+ 'chmod 0600 /etc/courier/authlib/authdaemonrc',
+ 'chmod 0600 /etc/courier/authlib/authmysqlrc',
+ 'chmod 0600 /etc/courier-imap/pop3d',
+ 'chmod 0600 /etc/courier-imap/imapd',
+ 'chmod 0600 /etc/courier-imap/pop3d-ssl',
+ 'chmod 0600 /etc/courier-imap/imapd-ssl'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add courier-authlib default',
+ 'rc-update add courier-pop3d default',
+ 'rc-update add courier-imapd default',
+ '/etc/init.d/courier-authlib restart',
+ '/etc/init.d/courier-pop3d restart',
+ '/etc/init.d/courier-imapd restart'
+ )
+ ),
+ 'postfix' => Array
+ (
+ 'label' => 'Postfix (MTA)',
+ 'files' => Array
+ (
+ 'etc_postfix_main.cf' => '/etc/postfix/main.cf',
+ 'etc_postfix_mysql-virtual_alias_maps.cf' => '/etc/postfix/mysql-virtual_alias_maps.cf',
+ 'etc_postfix_mysql-virtual_mailbox_domains.cf' => '/etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'etc_postfix_mysql-virtual_mailbox_maps.cf' => '/etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'etc_sasl2_smtpd.conf' => '/etc/sasl2/smtpd.conf'
+ ),
+ 'commands' => Array
+ (
+ 'mkdir -p '.$settings['system']['vmail_homedir'],
+ 'chown -R vmail:vmail '.$settings['system']['vmail_homedir'],
+ 'chmod 0750 '.$settings['system']['vmail_homedir'],
+ 'rm /etc/postfix/main.cf',
+ 'touch /etc/postfix/main.cf',
+ 'touch /etc/postfix/master.cf',
+ 'touch /etc/postfix/mysql-virtual_alias_maps.cf',
+ 'touch /etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'touch /etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'touch /etc/sasl2/smtpd.conf',
+ 'chown root:0 /etc/postfix/main.cf',
+ 'chown root:0 /etc/postfix/master.cf',
+ 'chown root:postfix /etc/postfix/mysql-virtual_alias_maps.cf',
+ 'chown root:postfix /etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'chown root:postfix /etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'chown root:0 /etc/sasl2/smtpd.conf',
+ 'chmod 0600 /etc/postfix/main.cf',
+ 'chmod 0600 /etc/postfix/master.cf',
+ 'chmod 0640 /etc/postfix/mysql-virtual_alias_maps.cf',
+ 'chmod 0640 /etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'chmod 0640 /etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'chmod 0600 /etc/sasl2/smtpd.conf'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add postfix default',
+ '/etc/init.d/postfix restart'
+ )
+ ),
+ 'proftpd' => Array
+ (
+ 'label' => 'ProFTPd (FTP)',
+ 'files' => Array
+ (
+ 'etc_proftpd_proftpd.conf' => '/etc/proftpd/proftpd.conf'
+ ),
+ 'commands' => Array
+ (
+ 'touch /etc/proftpd/proftpd.conf',
+ 'chown root:0 /etc/proftpd/proftpd.conf',
+ 'chmod 0600 /etc/proftpd/proftpd.conf'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add proftpd default',
+ '/etc/init.d/proftpd restart'
+ )
+ ),
+ 'cron' => Array
+ (
+ 'label' => 'Crond (cronscript)',
+ 'files' => Array
+ (
+ 'etc_php_syscp-cronjob_php.ini' => '/etc/php/syscp-cronjob/php.ini',
+ 'etc_cron.d_syscp' => '/etc/cron.d/syscp'
+ ),
+ 'commands' => Array
+ (
+ 'touch /etc/cron.d/syscp',
+ 'chown root:0 /etc/cron.d/syscp',
+ 'chmod 0640 /etc/cron.d/syscp',
+ 'mkdir -p /etc/php/syscp-cronjob',
+ 'touch /etc/php/syscp-cronjob/php.ini',
+ 'chown -R root:0 /etc/php/syscp-cronjob',
+ 'chmod 0750 /etc/php/syscp-cronjob',
+ 'chmod 0640 /etc/php/syscp-cronjob/php.ini'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add vixie-cron default',
+ '/etc/init.d/vixie-cron restart'
+ )
+ )
+ )
+ )
+ );
+
+ /*echo '<pre>';
+ print_r($configfiles);
+ echo '</pre>';*/
+
+ if( ($page == 'configfiles' || $page == 'overview') && $userinfo['change_serversettings'] == '1')
+ {
+ if(isset($_GET['distribution']) && $_GET['distribution']!='' && isset($configfiles[$_GET['distribution']]) && is_array($configfiles[$_GET['distribution']]) &&
+ isset($_GET['daemon']) && $_GET['daemon']!='' && isset($configfiles[$_GET['distribution']]['daemons'][$_GET['daemon']]) && is_array($configfiles[$_GET['distribution']]['daemons'][$_GET['daemon']]))
+ {
+ $distribution = addslashes($_GET['distribution']);
+ $daemon = addslashes($_GET['daemon']);
+
+ if(isset($configfiles[$distribution]['daemons'][$daemon]['commands']) && is_array($configfiles[$distribution]['daemons'][$daemon]['commands']))
+ {
+ $commands = implode("\n", $configfiles[$distribution]['daemons'][$daemon]['commands']);
+ }
+ else
+ {
+ $commands = '';
+ }
+
+ $replace_arr = Array
+ (
+ '<SQL_UNPRIVILEGED_USER>' => $sql['user'],
+ '<SQL_UNPRIVILEGED_PASSWORD>' => 'MYSQL_PASSWORD',
+ '<SQL_DB>' => $sql['db'],
+ '<SQL_HOST>' => $sql['host'],
+ '<SERVERNAME>' => $settings['system']['hostname'],
+ '<SERVERIP>' => $settings['system']['ipaddress'],
+ '<VIRTUAL_MAILBOX_BASE>' => $settings['system']['vmail_homedir'],
+ '<VIRTUAL_UID_MAPS>' => $settings['system']['vmail_uid'],
+ '<VIRTUAL_GID_MAPS>' => $settings['system']['vmail_gid']
+ );
+ $files = '';
+ if(isset($configfiles[$distribution]['daemons'][$daemon]['files']) && is_array($configfiles[$distribution]['daemons'][$daemon]['files']))
+ {
+ while(list($filename, $realname) = each($configfiles[$distribution]['daemons'][$daemon]['files']))
+ {
+ $file_content = implode('', file('./templates/misc/configfiles/'.$distribution.'/'.$daemon.'/'.$filename));
+ $file_content = strtr($file_content, $replace_arr);
+ $file_content = htmlspecialchars($file_content);
+ $numbrows = count(explode("\n", $file_content));
+ eval("\$files.=\"".getTemplate("configfiles/configfiles_file")."\";");
+ }
+ }
+
+ if(isset($configfiles[$distribution]['daemons'][$daemon]['restart']) && is_array($configfiles[$distribution]['daemons'][$daemon]['restart']))
+ {
+ $restart = implode("\n", $configfiles[$distribution]['daemons'][$daemon]['restart']);
+ }
+ else
+ {
+ $restart = '';
+ }
+
+ eval("echo \"".getTemplate("configfiles/configfiles")."\";");
+ }
+ else
+ {
+ $distributions = '';
+ while (list($distribution_name, $distribution_details) = each($configfiles))
+ {
+ $daemons = '';
+ while(list($daemon_name, $daemon_details) = each($distribution_details['daemons']))
+ {
+ eval("\$daemons.=\"".getTemplate("configfiles/choose_daemon")."\";");
+ }
+ eval("\$distributions.=\"".getTemplate("configfiles/choose_distribution")."\";");
+ }
+ eval("echo \"".getTemplate("configfiles/choose")."\";");
+ }
+ }
+
+?>
diff --git a/syscp/patches/gentoo-config-files/bind/syscp-1.2.13-gentoo-config-bind-r2.tar.bz2 b/syscp/patches/gentoo-config-files/bind/syscp-1.2.13-gentoo-config-bind-r2.tar.bz2
new file mode 100644
index 0000000..e859f7c
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/bind/syscp-1.2.13-gentoo-config-bind-r2.tar.bz2
Binary files differ
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/etc_libnss-mysql-root.cfg b/syscp/patches/gentoo-config-files/nodns-ssl/etc_libnss-mysql-root.cfg
new file mode 100644
index 0000000..6498977
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/etc_libnss-mysql-root.cfg
@@ -0,0 +1,2 @@
+username <SQL_UNPRIVILEGED_USER>
+password <SQL_UNPRIVILEGED_PASSWORD>
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/etc_libnss-mysql.cfg b/syscp/patches/gentoo-config-files/nodns-ssl/etc_libnss-mysql.cfg
new file mode 100644
index 0000000..d284192
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/etc_libnss-mysql.cfg
@@ -0,0 +1,38 @@
+getpwnam SELECT username,'x',uid,gid,'MySQL User',homedir,shell \
+ FROM ftp_users \
+ WHERE username='%1$s' \
+ LIMIT 1
+getpwuid SELECT username,'x',uid,gid,'MySQL User',homedir,shell \
+ FROM ftp_users \
+ WHERE uid='%1$u' \
+ LIMIT 1
+getspnam SELECT username,password,UNIX_TIMESTAMP()-10,'1','2','7','-1','-1','0' \
+ FROM ftp_users \
+ WHERE username='%1$s' \
+ LIMIT 1
+getpwent SELECT username,'x',uid,gid,'MySQL User',homedir,shell \
+ FROM ftp_users
+getspent SELECT username,password,UNIX_TIMESTAMP()-10,'1','2','7','-1','-1','0' \
+ FROM ftp_users
+getgrnam SELECT groupname,'x',gid \
+ FROM ftp_groups \
+ WHERE groupname='%1$s' \
+ LIMIT 1
+getgrgid SELECT groupname,'x',gid \
+ FROM ftp_groups \
+ WHERE gid='%1$u' \
+ LIMIT 1
+getgrent SELECT groupname,'x',gid \
+ FROM ftp_groups
+memsbygid SELECT username \
+ FROM ftp_users \
+ WHERE gid='%1$u'
+gidsbymem SELECT gid \
+ FROM ftp_users \
+ WHERE username='%1$s'
+
+host <SQL_HOST>
+database <SQL_DB>
+username <SQL_UNPRIVILEGED_USER>
+password <SQL_UNPRIVILEGED_PASSWORD>
+socket /var/run/mysqld/mysqld.sock
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_imapd b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_imapd
new file mode 100644
index 0000000..f594e41
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_imapd
@@ -0,0 +1,376 @@
+##VERSION: $Id: imapd.dist.in,v 1.32 2004/11/25 04:57:04 mrsam Exp $
+#
+# imapd created from imapd.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# This configuration file sets various options for the Courier-IMAP server
+# when used with the couriertcpd server.
+# A lot of the stuff here is documented in the manual page for couriertcpd.
+#
+# NOTE - do not use \ to split long variable contents on multiple lines.
+# This will break the default imapd.rc script, which parses this file.
+#
+##NAME: ADDRESS:0
+#
+# Address to listen on, can be set to a single IP address.
+#
+# ADDRESS=127.0.0.1
+
+ADDRESS=0
+
+##NAME: PORT:1
+#
+# Port numbers that connections are accepted on. The default is 143,
+# the standard IMAP port.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possible to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The previous ADDRESS setting is a default for ports that do not have
+# a specified IP address.
+
+PORT=143
+
+##NAME: AUTHSERVICE:0
+#
+# It's possible to authenticate using a different 'service' parameter
+# depending on the connection's port. This only works with authentication
+# modules that use the 'service' parameter, such as PAM. Example:
+#
+# AUTHSERVICE143=imap
+# AUTHSERVICE993=imaps
+
+##NAME: MAXDAEMONS:0
+#
+# Maximum number of IMAP servers started
+#
+
+MAXDAEMONS=50
+
+##NAME: MAXPERIP:0
+#
+# Maximum number of connections to accept from the same IP address
+
+MAXPERIP=10
+
+##NAME: PIDFILE:0
+#
+# File where couriertcpd will save its process ID
+#
+
+PIDFILE=/var/run/imapd.pid
+
+##NAME: TCPDOPTS:0
+#
+# Miscellaneous couriertcpd options that shouldn't be changed.
+#
+
+TCPDOPTS="-nodnslookup -noidentlookup"
+
+##NAME: IMAP_CAPABILITY:1
+#
+# IMAP_CAPABILITY specifies what most of the response should be to the
+# CAPABILITY command.
+#
+# If you have properly configured Courier to use CRAM-MD5 or CRAM-SHA1
+# authentication (see INSTALL), set IMAP_CAPABILITY as follows:
+#
+# IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
+#
+
+IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE"
+
+##NAME: KEYWORDS_CAPABILITY:0
+#
+# IMAP_KEYWORDS=1 enables custom IMAP keywords. Set this option to 0 to
+# disable custom keywords.
+
+IMAP_KEYWORDS=1
+
+##NAME: SMAP1_CAPABILITY:0
+#
+# EXPERIMENTAL
+#
+# To enable the experimental "Simple Mail Access Protocol" extensions,
+# uncomment the following setting.
+#
+# SMAP_CAPABILITY=SMAP1
+
+##NAME: IMAP_CAPABILITY_ORIG:1
+#
+# For use by webadmin
+
+IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
+
+##NAME: IMAP_PROXY:0
+#
+# Enable proxying. See README.proxy
+
+IMAP_PROXY=0
+
+##NAME: IMAP_PROXY_FOREIGN:0
+#
+# Proxying to non-Courier servers. Re-sends the CAPABILITY command after
+# logging in to the remote server. May not work with all IMAP clients.
+
+IMAP_PROXY_FOREIGN=0
+
+##NAME: IMAP_IDLE_TIMEOUT:0
+#
+# This setting controls how often
+# the server polls for changes to the folder, in IDLE mode (in seconds).
+
+IMAP_IDLE_TIMEOUT=60
+
+##NAME: IMAP_CAPABILITY_TLS:0
+#
+# The following setting will advertise SASL PLAIN authentication after
+# STARTTLS is established. If you want to allow SASL PLAIN authentication
+# with or without TLS then just comment this out, and add AUTH=PLAIN to
+# IMAP_CAPABILITY
+
+IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
+
+##NAME: IMAP_TLS_ORIG:0
+#
+# For use by webadmin
+
+IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
+
+##NAME: IMAP_DISABLETHREADSORT:0
+#
+# Set IMAP_DISABLETHREADSORT to disable the THREAD and SORT commands -
+# server side sorting and threading.
+#
+# Those capabilities will still be advertised, but the server will reject
+# them. Set this option if you want to disable all the extra load from
+# server-side threading and sorting. Not advertising those capabilities
+# will simply result in the clients reading the entire folder, and sorting
+# it on the client side. That will still put some load on the server.
+# advertising these capabilities, but rejecting the commands, will stop this
+# silliness.
+#
+
+IMAP_DISABLETHREADSORT=0
+
+##NAME: IMAP_CHECK_ALL_FOLDERS:0
+#
+# Set IMAP_CHECK_ALL_FOLDERS to 1 if you want the server to check for new
+# mail in every folder. Not all IMAP clients use the IMAP's new mail
+# indicator, but some do. Normally new mail is checked only in INBOX,
+# because it is a comparatively time consuming operation, and it would be
+# a complete waste of time unless mail filters are used to deliver
+# mail directly to folders.
+#
+# When IMAP clients are used which support new mail indication, and when
+# mail filters are used to sort incoming mail into folders, setting
+# IMAP_CHECK_ALL_FOLDERS to 1 will allow IMAP clients to announce new
+# mail in folders. Note that this will result in slightly more load on the
+# server.
+#
+
+IMAP_CHECK_ALL_FOLDERS=0
+
+##NAME: IMAP_OBSOLETE_CLIENT:0
+#
+# Set IMAP_OBSOLETE_CLIENT if your IMAP client expects \\NoInferiors to mean
+# what \\HasNoChildren really means.
+
+IMAP_OBSOLETE_CLIENT=0
+
+##NAME: IMAP_UMASK:0
+#
+# IMAP_UMASK sets the umask of the server process. The value of IMAP_UMASK is
+# simply passed to the "umask" command. The default value is 022.
+#
+# This feature is mostly useful for shared folders, where the file permissions
+# of the messages may be important.
+
+IMAP_UMASK=027
+
+##NAME: IMAP_ULIMITD:0
+#
+# IMAP_ULIMITD sets the maximum size of the data segment of the server
+# process. The value of IMAP_ULIMITD is simply passed to the "ulimit -d"
+# command (or ulimit -v). The argument to ulimi sets the upper limit on the
+# size of the data segment of the server process, in kilobytes. The default
+# value of 65536 sets a very generous limit of 64 megabytes, which should
+# be more than plenty for anyone.
+#
+# This feature is used as an additional safety check that should stop
+# any potential denial-of-service attacks that exploit any kind of
+# a memory leak to exhaust all the available memory on the server.
+# It is theoretically possible that obscenely huge folders will also
+# result in the server running out of memory when doing server-side
+# sorting (by my calculations you have to have at least 100,000 messages
+# in a single folder, for that to happen).
+
+IMAP_ULIMITD=65536
+
+##NAME: IMAP_USELOCKS:0
+#
+# Setting IMAP_USELOCKS to 1 will use dot-locking to support concurrent
+# multiple access to the same folder. This incurs slight additional
+# overhead. Concurrent multiple access will still work without this setting,
+# however occasionally a minor race condition may result in an IMAP client
+# downloading the same message twice, or a keyword update will fail.
+#
+# IMAP_USELOCKS=1 is strongly recommended when shared folders are used.
+
+IMAP_USELOCKS=1
+
+##NAME: IMAP_SHAREDINDEXFILE:0
+#
+# The index of all accessible folders. Do not change this setting unless
+# you know what you're doing. See README.sharedfolders for additional
+# information.
+
+IMAP_SHAREDINDEXFILE=/etc/courier-imap/shared/index
+
+##NAME: IMAP_ENHANCEDIDLE:0
+#
+# If Courier was compiled with the File Alteration Monitor, setting
+# IMAP_ENHANCEDIDLE to 1 enables enhanced IDLE mode, where multiple
+# clients may open the same folder concurrently, and receive updates to
+# folder contents in realtime. See the imapd(8) man page for additional
+# information.
+#
+# IMPORTANT: IMAP_USELOCKS *MUST* also be set to 1, and IDLE must be included
+# in the IMAP_CAPABILITY list.
+#
+
+IMAP_ENHANCEDIDLE=0
+
+##NAME: IMAP_TRASHFOLDERNAME:0
+#
+# The name of the magic trash Folder. For MSOE compatibility,
+# you can set IMAP_TRASHFOLDERNAME="Deleted Items".
+#
+# IMPORTANT: If you change this, you must also change IMAP_EMPTYTRASH
+
+IMAP_TRASHFOLDERNAME=Trash
+
+##NAME: IMAP_EMPTYTRASH:0
+#
+# The following setting is optional, and causes messages from the given
+# folder to be automatically deleted after the given number of days.
+# IMAP_EMPTYTRASH is a comma-separated list of folder:days. The default
+# setting, below, purges 7 day old messages from the Trash folder.
+# Another useful setting would be:
+#
+# IMAP_EMPTYTRASH=Trash:7,Sent:30
+#
+# This would also delete messages from the Sent folder (presumably copies
+# of sent mail) after 30 days. This is a global setting that is applied to
+# every mail account, and is probably useful in a controlled, corporate
+# environment.
+#
+# Important: the purging is controlled by CTIME, not MTIME (the file time
+# as shown by ls). It is perfectly ordinary to see stuff in Trash that's
+# a year old. That's the file modification time, MTIME, that's displayed.
+# This is generally when the message was originally delivered to this
+# mailbox. Purging is controlled by a different timestamp, CTIME, which is
+# changed when the file is moved to the Trash folder (and at other times too).
+#
+# You might want to disable this setting in certain situations - it results
+# in a stat() of every file in each folder, at login and logout.
+#
+
+IMAP_EMPTYTRASH=Trash:7
+
+##NAME: IMAP_MOVE_EXPUNGE_TO_TRASH:0
+#
+# Set IMAP_MOVE_EXPUNGE_TO_TRASH to move expunged messages to Trash. This
+# effectively allows an undo of message deletion by fishing the deleted
+# mail from trash. Trash can be manually expunged as usually, and mail
+# will get automatically expunged from Trash according to IMAP_EMPTYTRASH.
+#
+# NOTE: shared folders are still expunged as usual. Shared folders are
+# not affected.
+#
+
+IMAP_MOVE_EXPUNGE_TO_TRASH=0
+
+
+##NAME: OUTBOX:0
+#
+# The next set of options deal with the "Outbox" enhancement.
+# Uncomment the following setting to create a special folder, named
+# INBOX.Outbox
+#
+# OUTBOX=.Outbox
+
+##NAME: SENDMAIL:0
+#
+# If OUTBOX is defined, mail can be sent via the IMAP connection by copying
+# a message to the INBOX.Outbox folder. For all practical matters,
+# INBOX.Outbox looks and behaves just like any other IMAP folder. If this
+# folder doesn't exist it must be created by the IMAP mail client, just
+# like any other IMAP folder. The kicker: any message copied or moved to
+# this folder is will be E-mailed by the Courier-IMAP server, by running
+# the SENDMAIL program. Therefore, messages copied or moved to this
+# folder must be well-formed RFC-2822 messages, with the recipient list
+# specified in the To:, Cc:, and Bcc: headers. Courier-IMAP relies on
+# SENDMAIL to read the recipient list from these headers (and delete the Bcc:
+# header) by running the command "$SENDMAIL -oi -t -f $SENDER", with the
+# message piped on standard input. $SENDER will be the return address
+# of the message, which is set by the authentication module.
+#
+# DO NOT MODIFY SENDMAIL, below, unless you know what you're doing.
+#
+
+SENDMAIL=/usr/sbin/sendmail
+
+##NAME: HEADERFROM:0
+#
+# For administrative and oversight purposes, the return address, $SENDER
+# will also be saved in the X-IMAP-Sender mail header. This header gets
+# added to the sent E-mail (but it doesn't get saved in the copy of the
+# message that's saved in the folder)
+#
+# WARNING - By enabling OUTBOX above, *every* IMAP mail client will receive
+# the magic OUTBOX treatment. Therefore advance LARTing is in order for
+# _all_ of your lusers, until every one of them is aware of this. Otherwise if
+# OUTBOX is left at its default setting - a folder name that might be used
+# accidentally - some people may be in for a rude surprise. You can redefine
+# the name of the magic folder by changing OUTBOX, above. You should do that
+# and pick a less-obvious name. Perhaps brand it with your organizational
+# name ( OUTBOX=.WidgetsAndSonsOutbox )
+
+HEADERFROM=X-IMAP-Sender
+
+##NAME: IMAPDSTART:0
+#
+# IMAPDSTART is not used directly. Rather, this is a convenient flag to
+# be read by your system startup script in /etc/rc.d, like this:
+#
+# . /etc/courier-imap/imapd
+#
+# case x$IMAPDSTART in
+# x[yY]*)
+# /usr/lib/courier-imap/imapd.rc start
+# ;;
+# esac
+#
+# The default setting is going to be NO, so you'll have to manually flip
+# it to yes.
+
+IMAPDSTART=YES
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIR=.maildir
+MAILDIRPATH=.maildir
+#Put any program for ${PRERUN} here
+PRERUN=
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_imapd-ssl b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_imapd-ssl
new file mode 100644
index 0000000..76dbcf7
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_imapd-ssl
@@ -0,0 +1,199 @@
+##VERSION: $Id: imapd-ssl.dist.in,v 1.11 2004/10/21 00:45:35 mrsam Exp $
+#
+# imapd-ssl created from imapd-ssl.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 2000 - 2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# This configuration file sets various options for the Courier-IMAP server
+# when used to handle SSL IMAP connections.
+#
+# SSL and non-SSL connections are handled by a dedicated instance of the
+# couriertcpd daemon. If you are accepting both SSL and non-SSL IMAP
+# connections, you will start two instances of couriertcpd, one on the
+# IMAP port 143, and another one on the IMAP-SSL port 993.
+#
+# Download OpenSSL from http://www.openssl.org/
+#
+##NAME: SSLPORT:1
+#
+# Options in the imapd-ssl configuration file AUGMENT the options in the
+# imapd configuration file. First the imapd configuration file is read,
+# then the imapd-ssl configuration file, so we do not have to redefine
+# anything.
+#
+# However, some things do have to be redefined. The port number is
+# specified by SSLPORT, instead of PORT. The default port is port 993.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possibly to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The SSLADDRESS setting is a default for ports that do not have
+# a specified IP address.
+
+SSLPORT=993
+
+##NAME: SSLADDRESS:0
+#
+# Address to listen on, can be set to a single IP address.
+#
+# SSLADDRESS=127.0.0.1
+
+SSLADDRESS=0
+
+##NAME: SSLPIDFILE:0
+#
+# That's the SSL IMAP port we'll listen on.
+# Feel free to redefine MAXDAEMONS, TCPDOPTS, and MAXPERIP.
+
+SSLPIDFILE=/var/run/imapd-ssl.pid
+
+##NAME: IMAPDSSLSTART:0
+#
+# Different pid files, so that both instances of couriertcpd can coexist
+# happily.
+#
+# You can also redefine IMAP_CAPABILITY, although I can't
+# think of why you'd want to do that.
+#
+#
+# Ok, the following settings are new to imapd-ssl:
+#
+# Whether or not to start IMAP over SSL on simap port:
+
+IMAPDSSLSTART=YES
+
+##NAME: IMAPDSTARTTLS:0
+#
+# Whether or not to implement IMAP STARTTLS extension instead:
+
+IMAPDSTARTTLS=YES
+
+##NAME: IMAP_TLS_REQUIRED:1
+#
+# Set IMAP_TLS_REQUIRED to 1 if you REQUIRE STARTTLS for everyone.
+# (this option advertises the LOGINDISABLED IMAP capability, until STARTTLS
+# is issued).
+
+IMAP_TLS_REQUIRED=0
+
+#########################################################################
+#
+# The following variables configure IMAP over SSL. If OpenSSL is available
+# during configuration, the couriertls helper gets compiled, and upon
+# installation a dummy TLS_CERTFILE gets generated. courieresmtpd will
+# automatically advertise the ESMTP STARTTLS extension if both TLS_CERTFILE
+# and COURIERTLS exist.
+#
+# WARNING: Peer certificate verification has NOT yet been tested. Proceed
+# at your own risk. Only the basic SSL/TLS functionality is known to be
+# working. Keep this in mind as you play with the following variables.
+#
+##NAME: COURIERTLS:0
+#
+
+COURIERTLS=/usr/sbin/couriertls
+
+##NAME: TLS_PROTOCOL:0
+#
+# TLS_PROTOCOL sets the protocol version. The possible versions are:
+#
+# SSL2 - SSLv2
+# SSL3 - SSLv3
+# TLS1 - TLS1
+
+TLS_PROTOCOL=SSL3
+
+##NAME: TLS_STARTTLS_PROTOCOL:0
+#
+# TLS_STARTTLS_PROTOCOL is used instead of TLS_PROTOCOL for the IMAP STARTTLS
+# extension, as opposed to IMAP over SSL on port 993.
+#
+
+TLS_STARTTLS_PROTOCOL=TLS1
+
+##NAME: TLS_CIPHER_LIST:0
+#
+# TLS_CIPHER_LIST optionally sets the list of ciphers to be used by the
+# OpenSSL library. In most situations you can leave TLS_CIPHER_LIST
+# undefined
+#
+# TLS_CIPHER_LIST="ALL:!ADH:RC4+RSA:+SSLv2:@STRENGTH"
+
+##NAME: TLS_TIMEOUT:0
+# TLS_TIMEOUT is currently not implemented, and reserved for future use.
+# This is supposed to be an inactivity timeout, but its not yet implemented.
+#
+
+##NAME: TLS_DHCERTFILE:0
+#
+# TLS_DHCERTFILE - PEM file that stores our Diffie-Hellman cipher pair.
+# When OpenSSL is compiled to use Diffie-Hellman ciphers instead of RSA
+# you must generate a DH pair that will be used. In most situations the
+# DH pair is to be treated as confidential, and the file specified by
+# TLS_DHCERTFILE must not be world-readable.
+#
+# TLS_DHCERTFILE=
+
+##NAME: TLS_CERTFILE:0
+#
+# TLS_CERTFILE - certificate to use. TLS_CERTFILE is required for SSL/TLS
+# servers, and is optional for SSL/TLS clients. TLS_CERTFILE is usually
+# treated as confidential, and must not be world-readable.
+#
+TLS_CERTFILE=/etc/ssl/server/<SERVERNAME>.crt_and_key
+
+##NAME: TLS_TRUSTCERTS:0
+#
+# TLS_TRUSTCERTS=pathname - load trusted certificates from pathname.
+# pathname can be a file or a directory. If a file, the file should
+# contain a list of trusted certificates, in PEM format. If a
+# directory, the directory should contain the trusted certificates,
+# in PEM format, one per file and hashed using OpenSSL's c_rehash
+# script. TLS_TRUSTCERTS is used by SSL/TLS clients (by specifying
+# the -domain option) and by SSL/TLS servers (TLS_VERIFYPEER is set
+# to PEER or REQUIREPEER).
+#
+#
+# TLS_TRUSTCERTS=
+
+##NAME: TLS_VERIFYPEER:0
+#
+# TLS_VERIFYPEER - how to verify client certificates. The possible values of
+# this setting are:
+#
+# NONE - do not verify anything
+#
+# PEER - verify the client certificate, if one's presented
+#
+# REQUIREPEER - require a client certificate, fail if one's not presented
+#
+#
+TLS_VERIFYPEER=NONE
+
+##NAME: TLS_CACHE:0
+#
+# A TLS/SSL session cache may slightly improve response for IMAP clients
+# that open multiple SSL sessions to the server. TLS_CACHEFILE will be
+# automatically created, TLS_CACHESIZE bytes long, and used as a cache
+# buffer.
+#
+# This is an experimental feature and should be disabled if it causes
+# problems with SSL clients. Disable SSL caching by commenting out the
+# following settings:
+
+TLS_CACHEFILE=/var/lib/courier-imap/couriersslcache
+TLS_CACHESIZE=524288
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIRPATH=.maildir
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_pop3d b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_pop3d
new file mode 100644
index 0000000..71502ae
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_pop3d
@@ -0,0 +1,127 @@
+##VERSION: $Id: pop3d.dist.in,v 1.11 2004/10/30 15:39:38 mrsam Exp $
+#
+# pop3d created from pop3d.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# Courier POP3 daemon configuration
+#
+##NAME: PIDFILE:0
+#
+
+PIDFILE=/var/run/pop3d.pid
+
+##NAME: MAXDAEMONS:0
+#
+# Maximum number of POP3 servers started
+#
+
+MAXDAEMONS=50
+
+##NAME: MAXPERIP:4
+#
+# Maximum number of connections to accept from the same IP address
+
+MAXPERIP=5
+
+##NAME: POP3AUTH:1
+#
+# To advertise the SASL capability, per RFC 2449, uncomment the POP3AUTH
+# variable:
+#
+# POP3AUTH="LOGIN"
+#
+# If you have configured the CRAM-MD5 or CRAM-SHA1, set POP3AUTH to something
+# like this:
+#
+# POP3AUTH="LOGIN CRAM-MD5 CRAM-SHA1"
+
+POP3AUTH=""
+
+##NAME: POP3AUTH_ORIG:0
+#
+# For use by webadmin
+
+POP3AUTH_ORIG="LOGIN CRAM-MD5 CRAM-SHA1"
+
+##NAME: POP3AUTH_TLS:1
+#
+# To also advertise SASL PLAIN if SSL is enabled, uncomment the
+# POP3AUTH_TLS environment variable:
+#
+# POP3AUTH_TLS="LOGIN PLAIN"
+
+POP3AUTH_TLS=""
+
+##NAME: POP3AUTH_TLS_ORIG:0
+#
+# For use by webadmin
+
+POP3AUTH_TLS_ORIG="LOGIN PLAIN"
+
+##NAME: POP3_PROXY:0
+#
+# Enable proxying. See README.proxy
+
+POP3_PROXY=0
+
+##NAME: PORT:1
+#
+# Port to listen on for connections. The default is port 110.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possibly to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The ADDRESS setting is a default for ports that do not have a specified
+# IP address.
+
+PORT=110
+
+##NAME: ADDRESS:0
+#
+# IP address to listen on. 0 means all IP addresses.
+
+ADDRESS=0
+
+##NAME: TCPDOPTS:0
+#
+# Other couriertcpd(1) options. The following defaults should be fine.
+#
+
+TCPDOPTS="-nodnslookup -noidentlookup"
+
+##NAME: POP3DSTART:0
+#
+# POP3DSTART is not referenced anywhere in the standard Courier programs
+# or scripts. Rather, this is a convenient flag to be read by your system
+# startup script in /etc/rc.d, like this:
+#
+# . /etc/courier-imap/pop3d
+# case x$POP3DSTART in
+# x[yY]*)
+# /usr/lib/courier-imap/pop3d.rc start
+# ;;
+# esac
+#
+# The default setting is going to be NO, until Courier is shipped by default
+# with enough platforms so that people get annoyed with having to flip it to
+# YES every time.
+
+POP3DSTART=YES
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIR=.maildir
+MAILDIRPATH=.maildir
+#Put any program for ${PRERUN} here
+PRERUN=
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_pop3d-ssl b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_pop3d-ssl
new file mode 100644
index 0000000..a0267a0
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier-imap_pop3d-ssl
@@ -0,0 +1,186 @@
+##VERSION: $Id: pop3d-ssl.dist.in,v 1.12 2004/10/21 00:45:35 mrsam Exp $
+#
+# pop3d-ssl created from pop3d-ssl.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 2000-2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# This configuration file sets various options for the Courier-IMAP server
+# when used to handle SSL POP3 connections.
+#
+# SSL and non-SSL connections are handled by a dedicated instance of the
+# couriertcpd daemon. If you are accepting both SSL and non-SSL POP3
+# connections, you will start two instances of couriertcpd, one on the
+# POP3 port 110, and another one on the POP3-SSL port 995.
+#
+# Download OpenSSL from http://www.openssl.org/
+#
+##NAME: SSLPORT:0
+#
+# Options in the pop3d-ssl configuration file AUGMENT the options in the
+# pop3d configuration file. First the pop3d configuration file is read,
+# then the pop3d-ssl configuration file, so we do not have to redefine
+# anything.
+#
+# However, some things do have to be redefined. The port number is
+# specified by SSLPORT, instead of PORT. The default port is port 995.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possibly to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The SSLADDRESS setting is a default for ports that do not have
+# a specified IP address.
+
+SSLPORT=995
+
+##NAME: SSLADDRESS:0
+#
+# Address to listen on, can be set to a single IP address.
+#
+# SSLADDRESS=127.0.0.1
+
+SSLADDRESS=0
+
+##NAME: SSLPIDFILE:0
+#
+#
+#
+
+SSLPIDFILE=/var/run/pop3d-ssl.pid
+
+##NAME: POP3DSSLSTART:0
+#
+# Whether or not to start POP3 over SSL on spop3 port:
+
+POP3DSSLSTART=YES
+
+##NAME: POP3_STARTTLS:0
+#
+# Whether or not to implement the POP3 STLS extension:
+
+POP3_STARTTLS=YES
+
+##NAME: POP3_TLS_REQUIRED:1
+#
+# Set POP3_TLS_REQUIRED to 1 if you REQUIRE STARTTLS for everyone.
+# (this option advertises the LOGINDISABLED POP3 capability, until STARTTLS
+# is issued).
+
+POP3_TLS_REQUIRED=0
+
+##NAME: COURIERTLS:0
+#
+# The following variables configure POP3 over SSL. If OpenSSL is available
+# during configuration, the couriertls helper gets compiled, and upon
+# installation a dummy TLS_CERTFILE gets generated. courieresmtpd will
+# automatically advertise the ESMTP STARTTLS extension if both TLS_CERTFILE
+# and COURIERTLS exist.
+#
+# WARNING: Peer certificate verification has NOT yet been tested. Proceed
+# at your own risk. Only the basic SSL/TLS functionality is known to be
+# working. Keep this in mind as you play with the following variables.
+
+COURIERTLS=/usr/sbin/couriertls
+
+##NAME: TLS_PROTOCOL:0
+#
+# TLS_PROTOCOL sets the protocol version. The possible versions are:
+#
+# SSL2 - SSLv2
+# SSL3 - SSLv3
+# TLS1 - TLS1
+
+TLS_PROTOCOL=SSL3
+
+##NAME: TLS_STARTTLS_PROTOCOL:0
+#
+# TLS_STARTTLS_PROTOCOL is used instead of TLS_PROTOCOL for the POP3 STARTTLS
+# extension, as opposed to POP3 over SSL on port 995.
+#
+
+TLS_STARTTLS_PROTOCOL=TLS1
+
+##NAME: TLS_CIPHER_LIST:0
+#
+# TLS_CIPHER_LIST optionally sets the list of ciphers to be used by the
+# OpenSSL library. In most situations you can leave TLS_CIPHER_LIST
+# undefined
+#
+# TLS_CIPHER_LIST="ALL:!ADH:RC4+RSA:+SSLv2:@STRENGTH"
+
+##NAME: TLS_TIMEOUT:0
+# TLS_TIMEOUT is currently not implemented, and reserved for future use.
+# This is supposed to be an inactivity timeout, but its not yet implemented.
+#
+
+##NAME: TLS_DHCERTFILE:0
+#
+# TLS_DHCERTFILE - PEM file that stores our Diffie-Hellman cipher pair.
+# When OpenSSL is compiled to use Diffie-Hellman ciphers instead of RSA
+# you must generate a DH pair that will be used. In most situations the
+# DH pair is to be treated as confidential, and the file specified by
+# TLS_DHCERTFILE must not be world-readable.
+#
+# TLS_DHCERTFILE=
+
+##NAME: TLS_CERTFILE:0
+#
+# TLS_CERTFILE - certificate to use. TLS_CERTFILE is required for SSL/TLS
+# servers, and is optional for SSL/TLS clients. TLS_CERTFILE is usually
+# treated as confidential, and must not be world-readable.
+#
+TLS_CERTFILE=/etc/ssl/server/<SERVERNAME>.crt_and_key
+
+##NAME: TLS_TRUSTCERTS:0
+#
+# TLS_TRUSTCERTS=pathname - load trusted certificates from pathname.
+# pathname can be a file or a directory. If a file, the file should
+# contain a list of trusted certificates, in PEM format. If a
+# directory, the directory should contain the trusted certificates,
+# in PEM format, one per file and hashed using OpenSSL's c_rehash
+# script. TLS_TRUSTCERTS is used by SSL/TLS clients (by specifying
+# the -domain option) and by SSL/TLS servers (TLS_VERIFYPEER is set
+# to PEER or REQUIREPEER).
+#
+#
+# TLS_TRUSTCERTS=
+
+##NAME: TLS_VERIFYPEER:0
+#
+# TLS_VERIFYPEER - how to verify client certificates. The possible values of
+# this setting are:
+#
+# NONE - do not verify anything
+#
+# PEER - verify the client certificate, if one's presented
+#
+# REQUIREPEER - require a client certificate, fail if one's not presented
+#
+#
+TLS_VERIFYPEER=NONE
+
+##NAME: TLS_CACHE:0
+#
+# A TLS/SSL session cache may slightly improve response for long-running
+# POP3 clients. TLS_CACHEFILE will be automatically created, TLS_CACHESIZE
+# bytes long, and used as a cache buffer.
+#
+# This is an experimental feature and should be disabled if it causes
+# problems with SSL clients. Disable SSL caching by commenting out the
+# following settings:
+
+TLS_CACHEFILE=/var/lib/courier-imap/couriersslcache
+TLS_CACHESIZE=524288
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIRPATH=.maildir
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier_authlib_authdaemonrc b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier_authlib_authdaemonrc
new file mode 100644
index 0000000..867a12d
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier_authlib_authdaemonrc
@@ -0,0 +1,93 @@
+##VERSION: $Id: authdaemonrc.in,v 1.12 2005/07/05 12:25:08 mrsam Exp $
+#
+# Copyright 2000-2005 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# authdaemonrc created from authdaemonrc.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# This file configures authdaemond, the resident authentication daemon.
+#
+# Comments in this file are ignored. Although this file is intended to
+# be sourced as a shell script, authdaemond parses it manually, so
+# the acceptable syntax is a bit limited. Multiline variable contents,
+# with the \ continuation character, are not allowed. Everything must
+# fit on one line. Do not use any additional whitespace for indentation,
+# or anything else.
+
+##NAME: authmodulelist:2
+#
+# The authentication modules that are linked into authdaemond. The
+# default list is installed. You may selectively disable modules simply
+# by removing them from the following list. The available modules you
+# can use are: authuserdb authpam authshadow authmysql authcustom authpipe
+
+authmodulelist="authmysql"
+
+##NAME: authmodulelistorig:3
+#
+# This setting is used by Courier's webadmin module, and should be left
+# alone
+
+authmodulelistorig="authuserdb authpam authshadow authmysql authcustom authpipe"
+
+##NAME: daemons:0
+#
+# The number of daemon processes that are started. authdaemon is typically
+# installed where authentication modules are relatively expensive: such
+# as authldap, or authmysql, so it's better to have a number of them running.
+# PLEASE NOTE: Some platforms may experience a problem if there's more than
+# one daemon. Specifically, SystemV derived platforms that use TLI with
+# socket emulation. I'm suspicious of TLI's ability to handle multiple
+# processes accepting connections on the same filesystem domain socket.
+#
+# You may need to increase daemons if as your system load increases. Symptoms
+# include sporadic authentication failures. If you start getting
+# authentication failures, increase daemons. However, the default of 5
+# SHOULD be sufficient. Bumping up daemon count is only a short-term
+# solution. The permanent solution is to add more resources: RAM, faster
+# disks, faster CPUs...
+
+daemons=5
+
+##NAME: authdaemonvar:2
+#
+# authdaemonvar is here, but is not used directly by authdaemond. It's
+# used by various configuration and build scripts, so don't touch it!
+
+authdaemonvar=/var/lib/courier/authdaemon
+
+##NAME: DEBUG_LOGIN:0
+#
+# Dump additional diagnostics to syslog
+#
+# DEBUG_LOGIN=0 - turn off debugging
+# DEBUG_LOGIN=1 - turn on debugging
+# DEBUG_LOGIN=2 - turn on debugging + log passwords too
+#
+# ** YES ** - DEBUG_LOGIN=2 places passwords into syslog.
+#
+# Note that most information is sent to syslog at level 'debug', so
+# you may need to modify your /etc/syslog.conf to be able to see it.
+
+DEBUG_LOGIN=0
+
+##NAME: DEFAULTOPTIONS:0
+#
+# A comma-separated list of option=value pairs. Each option is applied
+# to an account if the account does not have its own specific value for
+# that option. So for example, you can set
+# DEFAULTOPTIONS="disablewebmail=1,disableimap=1"
+# and then enable webmail and/or imap on individual accounts by setting
+# disablewebmail=0 and/or disableimap=0 on the account.
+
+DEFAULTOPTIONS=""
+
+##NAME: LOGGEROPTS:0
+#
+# courierlogger(1) options, e.g. to set syslog facility
+#
+
+LOGGEROPTS=""
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier_authlib_authmysqlrc b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier_authlib_authmysqlrc
new file mode 100644
index 0000000..fec6508
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/courier/etc_courier_authlib_authmysqlrc
@@ -0,0 +1,12 @@
+MYSQL_SERVER <SQL_HOST>
+MYSQL_USERNAME <SQL_UNPRIVILEGED_USER>
+MYSQL_PASSWORD <SQL_UNPRIVILEGED_PASSWORD>
+MYSQL_PORT 0
+MYSQL_DATABASE <SQL_DB>
+MYSQL_USER_TABLE mail_users
+MYSQL_CRYPT_PWFIELD password_enc
+MYSQL_UID_FIELD <VIRTUAL_UID_MAPS>
+MYSQL_GID_FIELD <VIRTUAL_GID_MAPS>
+MYSQL_LOGIN_FIELD username
+MYSQL_HOME_FIELD "<VIRTUAL_MAILBOX_BASE>"
+MYSQL_MAILDIR_FIELD maildir
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/cron/etc_cron.d_syscp b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/cron/etc_cron.d_syscp
new file mode 100644
index 0000000..4afe408
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/cron/etc_cron.d_syscp
@@ -0,0 +1,10 @@
+#
+# Set PATH, otherwise restart-scripts won't find start-stop-daemon
+#
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+#
+# Regular cron jobs for the syscp package
+#
+# Please check that all following paths are correct
+#
+*/5 * * * * root /usr/lib/php4/bin/php -q -c /etc/php/syscp-cronjob/php.ini /var/www/syscp/scripts/cronscript.php
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/cron/etc_php_syscp-cronjob_php.ini b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/cron/etc_php_syscp-cronjob_php.ini
new file mode 100644
index 0000000..74c8316
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/cron/etc_php_syscp-cronjob_php.ini
@@ -0,0 +1,61 @@
+short_open_tag = On
+asp_tags = Off
+precision = 14
+output_buffering = Off
+allow_call_time_pass_reference = Off
+safe_mode = Off
+safe_mode_gid = Off
+safe_mode_include_dir = "/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+safe_mode_allowed_env_vars = PHP_
+safe_mode_protected_env_vars = LD_LIBRARY_PATH
+open_basedir =
+disable_functions =
+disable_classes =
+expose_php = Off
+max_execution_time = 180
+max_input_time = 120
+memory_limit = 32M
+post_max_size = 32M
+error_reporting = E_ALL & ~E_NOTICE
+display_errors = On
+display_startup_errors = Off
+log_errors = Off
+log_errors_max_len = 1024
+ignore_repeated_errors = Off
+ignore_repeated_source = Off
+report_memleaks = On
+track_errors = Off
+html_errors = Off
+variables_order = "GPCS"
+register_globals = Off
+register_argc_argv = Off
+gpc_order = "GPC"
+magic_quotes_gpc = Off
+magic_quotes_runtime = Off
+magic_quotes_sybase = Off
+include_path = ".:/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+enable_dl = Off
+file_uploads = On
+upload_tmp_dir = "/tmp/"
+upload_max_filesize = 32M
+allow_url_fopen = Off
+session.save_handler = files
+session.save_path = "/tmp/"
+session.use_cookies = 1
+session.name = PHPSESSID
+session.auto_start = 0
+session.cookie_lifetime = 0
+session.cookie_path = /
+session.cookie_domain =
+session.serialize_handler = php
+session.gc_probability = 1
+session.gc_divisor = 1000
+session.gc_maxlifetime = 1440
+session.bug_compat_42 = 0
+session.bug_compat_warn = 1
+session.referer_check =
+session.entropy_length = 16
+session.entropy_file = /dev/urandom
+session.cache_limiter = nocache
+session.cache_expire = 180
+session.use_trans_sid = 0
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/cron/etc_php_syscp-vhost_php.ini b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/cron/etc_php_syscp-vhost_php.ini
new file mode 100644
index 0000000..048c26c
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/cron/etc_php_syscp-vhost_php.ini
@@ -0,0 +1,61 @@
+short_open_tag = On
+asp_tags = Off
+precision = 14
+output_buffering = 4096
+allow_call_time_pass_reference = Off
+safe_mode = Off
+safe_mode_gid = Off
+safe_mode_include_dir = "/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+safe_mode_allowed_env_vars = PHP_
+safe_mode_protected_env_vars = LD_LIBRARY_PATH
+open_basedir = "/var/www/syscp/:/var/www/syscp-suphp/syscp/:/var/www/syscpwebs/:/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+disable_functions = exec,passthru,shell_exec,system,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate
+disable_classes =
+expose_php = Off
+max_execution_time = 30
+max_input_time = 60
+memory_limit = 16M
+post_max_size = 12M
+error_reporting = E_ALL & ~E_NOTICE
+display_errors = Off
+display_startup_errors = Off
+log_errors = On
+log_errors_max_len = 1024
+ignore_repeated_errors = Off
+ignore_repeated_source = Off
+report_memleaks = On
+track_errors = Off
+html_errors = Off
+variables_order = "GPCS"
+register_globals = Off
+register_argc_argv = Off
+gpc_order = "GPC"
+magic_quotes_gpc = Off
+magic_quotes_runtime = Off
+magic_quotes_sybase = Off
+include_path = ".:/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+enable_dl = Off
+file_uploads = On
+upload_tmp_dir = "/var/www/syscp-suphp/syscp/"
+upload_max_filesize = 32M
+allow_url_fopen = Off
+session.save_handler = files
+session.save_path = "/var/www/syscp-suphp/syscp/"
+session.use_cookies = 1
+session.name = PHPSESSID
+session.auto_start = 0
+session.cookie_lifetime = 0
+session.cookie_path = /
+session.cookie_domain =
+session.serialize_handler = php
+session.gc_probability = 1
+session.gc_divisor = 1000
+session.gc_maxlifetime = 1440
+session.bug_compat_42 = 0
+session.bug_compat_warn = 1
+session.referer_check =
+session.entropy_length = 16
+session.entropy_file = /dev/urandom
+session.cache_limiter = nocache
+session.cache_expire = 180
+session.use_trans_sid = 0
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_main.cf b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_main.cf
new file mode 100644
index 0000000..97b10e0
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_main.cf
@@ -0,0 +1,65 @@
+# Postfix directories settings
+command_directory = /usr/sbin
+daemon_directory = /usr/lib/postfix
+queue_directory = /var/spool/postfix
+sample_directory = /etc/postfix
+manpage_directory = /usr/share/man
+readme_directory = /usr/share/doc/postfix-2.1.5-r2/readme
+html_directory = no
+
+# Postfix programs paths settings
+mailq_path = /usr/bin/mailq
+newaliases_path = /usr/bin/newaliases
+sendmail_path = /usr/sbin/sendmail
+
+# General Postfix configuration
+myhostname = <SERVERNAME>
+mydestination = $myhostname, $mydomain, localhost.$myhostname, localhost.$mydomain, localhost
+mynetworks = 127.0.0.0/8
+inet_interfaces = all
+mail_owner = postfix
+setgid_group = postdrop
+smtpd_banner = $myhostname ESMTP Mailserver
+smtpd_helo_required = yes
+append_dot_mydomain = no
+biff = no
+
+# Postfix Debugger configuration
+debug_peer_level = 2
+debugger_command =
+ PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
+ echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
+ >$config_directory/$process_name.$process_id.log & sleep 5
+
+# Postfix performance settings
+default_destination_concurrency_limit = 20
+local_destination_concurrency_limit = 2
+
+# Virtual delivery settings
+virtual_transport = virtual
+virtual_mailbox_base = <VIRTUAL_MAILBOX_BASE>
+virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
+virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
+virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
+virtual_uid_maps = static:<VIRTUAL_UID_MAPS>
+virtual_gid_maps = static:<VIRTUAL_GID_MAPS>
+
+# Local delivery settings
+local_transport = local
+alias_database = hash:/etc/mail/aliases
+alias_maps = $alias_database
+
+# SASL settings
+smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
+smtpd_sasl_auth_enable = yes
+smtpd_sasl_local_domain = $myhostname
+smtpd_sasl_security_options = noanonymous
+broken_sasl_auth_clients = yes
+
+# TLS settings
+smtpd_use_tls = yes
+smtpd_tls_cert_file = /etc/ssl/server/<SERVERNAME>.crt
+smtpd_tls_key_file = /etc/ssl/server/<SERVERNAME>.key
+smtpd_tls_auth_only = no
+smtpd_tls_session_cache_timeout = 3600s
+tls_random_source = dev:/dev/urandom
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf
new file mode 100644
index 0000000..c921e6f
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf
@@ -0,0 +1,8 @@
+user = <SQL_UNPRIVILEGED_USER>
+password = <SQL_UNPRIVILEGED_PASSWORD>
+dbname = <SQL_DB>
+table = mail_virtual
+select_field = destination
+where_field = email
+additional_conditions = and destination <> '' and destination <> ' '
+hosts = <SQL_HOST>
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf
new file mode 100644
index 0000000..4484bee
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf
@@ -0,0 +1,8 @@
+user = <SQL_UNPRIVILEGED_USER>
+password = <SQL_UNPRIVILEGED_PASSWORD>
+dbname = <SQL_DB>
+table = panel_domains
+select_field = domain
+where_field = domain
+additional_conditions = and isemaildomain = '1'
+hosts = <SQL_HOST>
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf
new file mode 100644
index 0000000..7e0f79a
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf
@@ -0,0 +1,7 @@
+user = <SQL_UNPRIVILEGED_USER>
+password = <SQL_UNPRIVILEGED_PASSWORD>
+dbname = <SQL_DB>
+table = mail_users
+select_field = maildir
+where_field = email
+hosts = <SQL_HOST>
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_sasl2_smtpd.conf b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_sasl2_smtpd.conf
new file mode 100644
index 0000000..2089cbb
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/postfix/etc_sasl2_smtpd.conf
@@ -0,0 +1,12 @@
+pwcheck_method: auxprop
+auxprop_plugin: sql
+allowanonymouslogin: no
+allowplaintext: yes
+mech_list: PLAIN LOGIN
+password_format: crypt
+sql_engine: mysql
+sql_hostnames: <SQL_HOST>
+sql_user: <SQL_UNPRIVILEGED_USER>
+sql_passwd: <SQL_UNPRIVILEGED_PASSWORD>
+sql_database: <SQL_DB>
+sql_select: SELECT password_enc FROM mail_users where username='%u@%r'
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/proftpd/etc_proftpd_proftpd.conf b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/proftpd/etc_proftpd_proftpd.conf
new file mode 100644
index 0000000..1e04b6d
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/gentoo/proftpd/etc_proftpd_proftpd.conf
@@ -0,0 +1,89 @@
+# Server settings
+ServerName "<SERVERNAME> FTP Server"
+ServerType standalone
+ServerIdent off
+DefaultServer on
+Port 21
+MaxInstances 50
+
+# General settings
+DeferWelcome on
+MultilineRFC2228 on
+ShowSymlinks on
+AllowOverwrite on
+AllowStoreRestart on
+AllowRetrieveRestart on
+UseReverseDNS off
+IdentLookups off
+ListOptions "-al"
+DisplayFirstChdir .message
+
+# Modules settings
+#DelayEngine off
+
+# Timeout settings
+TimeoutLogin 120
+TimeoutNoTransfer 600
+TimeoutStalled 600
+TimeoutIdle 600
+
+# Security settings
+RootLogin off
+RequireValidShell off
+User syscpftpd
+Group syscpftpd
+Umask 133 022
+DefaultRoot ~
+DenyFilter \*.*/
+
+# Per-Directory settings
+<Directory /*>
+Umask 133 022
+AllowOverwrite on
+</Directory>
+
+# SQL settings
+SQLAuthTypes Crypt
+SQLAuthenticate users* groups*
+SQLConnectInfo <SQL_DB>@<SQL_HOST> <SQL_UNPRIVILEGED_USER> <SQL_UNPRIVILEGED_PASSWORD>
+SQLUserInfo ftp_users username password uid gid homedir shell
+SQLGroupInfo ftp_groups groupname gid members
+SQLUserWhereClause "login_enabled = 'y'"
+
+SQLLog PASS login
+SQLNamedQuery login UPDATE "last_login=now(), login_count=login_count+1 WHERE username='%u'" ftp_users
+
+SQLLog RETR download
+SQLNamedQuery download UPDATE "down_count=down_count+1, down_bytes=down_bytes+%b WHERE username='%u'" ftp_users
+
+SQLLog STOR upload
+SQLNamedQuery upload UPDATE "up_count=up_count+1, up_bytes=up_bytes+%b WHERE username='%u'" ftp_users
+
+# TLS settings
+<IfModule mod_tls.c>
+TLSEngine on
+TLSLog /var/log/proftpd-tls.log
+TLSProtocol SSLv23
+TLSTimeoutHandshake 120
+# Really important for WinClients
+TLSOptions NoCertRequest
+TLSRSACertificateFile /etc/ssl/server/<SERVERNAME>.crt
+TLSRSACertificateKeyFile /etc/ssl/server/<SERVERNAME>.key
+# Authenticate client that want to use FTP over TLS?
+TLSVerifyClient off
+# Uncomment the following line to force tls login
+TLSRequired off
+</IfModule>
+
+# LOG settings
+# Logging Formats
+LogFormat default "%h %1 %u %t \"%r\" %s %b"
+LogFormat auth "%v [%P] %h %t \"%r\" %s"
+LogFormat write "%h %l %u %t \"%r\" %s %b"
+# Activate Logging
+# all logins
+ExtendedLog /var/log/proftpd-auth.log AUTH auth
+# file/dir access
+ExtendedLog /var/log/proftpd-access.log WRITE,READ write
+# everything (be careful, generates_ very_ big logfiles)
+#ExtendedLog /var/log/proftpd-all.log ALL default
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/syscp-1.2.13-gentoo-admin_configfiles.php-nodns-ssl b/syscp/patches/gentoo-config-files/nodns-ssl/syscp-1.2.13-gentoo-admin_configfiles.php-nodns-ssl
new file mode 100644
index 0000000..83565e4
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/syscp-1.2.13-gentoo-admin_configfiles.php-nodns-ssl
@@ -0,0 +1,270 @@
+<?php
+/**
+ * filename: $Source: /syscp/syscp/admin_configfiles.php,v $
+ * begin: Wednesday, Sep 08, 2004
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version. This program is distributed in the
+ * hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details.
+ *
+ * @author Florian Lippert <flo@redenswert.de>
+ * @copyright (C) 2003-2004 Florian Lippert
+ * @package Panel
+ * @version $Id: admin_configfiles.php,v 1.9 2005/06/15 13:53:58 flo Exp $
+ * Modified to reflect the Gentoo environment by Luca Longinotti <chtekk@gentoo.org>
+ */
+
+ define('AREA', 'admin');
+
+ /**
+ * Include our init.php, which manages Sessions, Language etc.
+ */
+ require("./lib/init.php");
+
+
+ $configfiles = Array
+ (
+ 'gentoo' => Array
+ (
+ 'label' => 'Gentoo',
+ 'daemons' => Array
+ (
+ 'apache' => Array
+ (
+ 'label' => 'Apache2 Webserver (HTTP)',
+ 'commands' => Array
+ (
+ 'touch '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf',
+ 'chown root:0 '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf',
+ 'chmod 0600 '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf',
+ 'echo "Include '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf" >> /etc/apache2/httpd.conf',
+ 'mkdir -p '.$settings['system']['documentroot_prefix'],
+ 'mkdir -p '.$settings['system']['logfiles_directory']
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add apache2 default',
+ '/etc/init.d/apache2 restart'
+ )
+ ),
+ 'courier' => Array
+ (
+ 'label' => 'Courier-IMAP (POP3/IMAP)',
+ 'files' => Array
+ (
+ 'etc_courier_authlib_authdaemonrc' => '/etc/courier/authlib/authdaemonrc',
+ 'etc_courier_authlib_authmysqlrc' => '/etc/courier/authlib/authmysqlrc',
+ 'etc_courier-imap_pop3d' => '/etc/courier-imap/pop3d',
+ 'etc_courier-imap_imapd' => '/etc/courier-imap/imapd',
+ 'etc_courier-imap_pop3d-ssl' => '/etc/courier-imap/pop3d-ssl',
+ 'etc_courier-imap_imapd-ssl' => '/etc/courier-imap/imapd-ssl'
+ ),
+ 'commands' => Array
+ (
+ 'rm /etc/courier/authlib/authdaemonrc',
+ 'rm /etc/courier/authlib/authmysqlrc',
+ 'rm /etc/courier-imap/pop3d',
+ 'rm /etc/courier-imap/imapd',
+ 'rm /etc/courier-imap/pop3d-ssl',
+ 'rm /etc/courier-imap/imapd-ssl',
+ 'touch /etc/courier/authlib/authdaemonrc',
+ 'touch /etc/courier/authlib/authmysqlrc',
+ 'touch /etc/courier-imap/pop3d',
+ 'touch /etc/courier-imap/imapd',
+ 'touch /etc/courier-imap/pop3d-ssl',
+ 'touch /etc/courier-imap/imapd-ssl',
+ 'chown root:0 /etc/courier/authlib/authdaemonrc',
+ 'chown root:0 /etc/courier/authlib/authmysqlrc',
+ 'chown root:0 /etc/courier-imap/pop3d',
+ 'chown root:0 /etc/courier-imap/imapd',
+ 'chown root:0 /etc/courier-imap/pop3d-ssl',
+ 'chown root:0 /etc/courier-imap/imapd-ssl',
+ 'chmod 0600 /etc/courier/authlib/authdaemonrc',
+ 'chmod 0600 /etc/courier/authlib/authmysqlrc',
+ 'chmod 0600 /etc/courier-imap/pop3d',
+ 'chmod 0600 /etc/courier-imap/imapd',
+ 'chmod 0600 /etc/courier-imap/pop3d-ssl',
+ 'chmod 0600 /etc/courier-imap/imapd-ssl'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add courier-authlib default',
+ 'rc-update add courier-pop3d default',
+ 'rc-update add courier-imapd default',
+ 'rc-update add courier-pop3d-ssl default',
+ 'rc-update add courier-imapd-ssl default',
+ '/etc/init.d/courier-authlib restart',
+ '/etc/init.d/courier-pop3d restart',
+ '/etc/init.d/courier-imapd restart',
+ '/etc/init.d/courier-pop3d-ssl restart',
+ '/etc/init.d/courier-imapd-ssl restart'
+ )
+ ),
+ 'postfix' => Array
+ (
+ 'label' => 'Postfix (MTA)',
+ 'files' => Array
+ (
+ 'etc_postfix_main.cf' => '/etc/postfix/main.cf',
+ 'etc_postfix_mysql-virtual_alias_maps.cf' => '/etc/postfix/mysql-virtual_alias_maps.cf',
+ 'etc_postfix_mysql-virtual_mailbox_domains.cf' => '/etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'etc_postfix_mysql-virtual_mailbox_maps.cf' => '/etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'etc_sasl2_smtpd.conf' => '/etc/sasl2/smtpd.conf'
+ ),
+ 'commands' => Array
+ (
+ 'mkdir -p '.$settings['system']['vmail_homedir'],
+ 'chown -R vmail:vmail '.$settings['system']['vmail_homedir'],
+ 'chmod 0750 '.$settings['system']['vmail_homedir'],
+ 'rm /etc/postfix/main.cf',
+ 'touch /etc/postfix/main.cf',
+ 'touch /etc/postfix/master.cf',
+ 'touch /etc/postfix/mysql-virtual_alias_maps.cf',
+ 'touch /etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'touch /etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'touch /etc/sasl2/smtpd.conf',
+ 'chown root:0 /etc/postfix/main.cf',
+ 'chown root:0 /etc/postfix/master.cf',
+ 'chown root:postfix /etc/postfix/mysql-virtual_alias_maps.cf',
+ 'chown root:postfix /etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'chown root:postfix /etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'chown root:0 /etc/sasl2/smtpd.conf',
+ 'chmod 0600 /etc/postfix/main.cf',
+ 'chmod 0600 /etc/postfix/master.cf',
+ 'chmod 0640 /etc/postfix/mysql-virtual_alias_maps.cf',
+ 'chmod 0640 /etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'chmod 0640 /etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'chmod 0600 /etc/sasl2/smtpd.conf'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add postfix default',
+ '/etc/init.d/postfix restart'
+ )
+ ),
+ 'proftpd' => Array
+ (
+ 'label' => 'ProFTPd (FTP)',
+ 'files' => Array
+ (
+ 'etc_proftpd_proftpd.conf' => '/etc/proftpd/proftpd.conf'
+ ),
+ 'commands' => Array
+ (
+ 'touch /etc/proftpd/proftpd.conf',
+ 'chown root:0 /etc/proftpd/proftpd.conf',
+ 'chmod 0600 /etc/proftpd/proftpd.conf'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add proftpd default',
+ '/etc/init.d/proftpd restart'
+ )
+ ),
+ 'cron' => Array
+ (
+ 'label' => 'Crond (cronscript)',
+ 'files' => Array
+ (
+ 'etc_php_syscp-cronjob_php.ini' => '/etc/php/syscp-cronjob/php.ini',
+ 'etc_cron.d_syscp' => '/etc/cron.d/syscp'
+ ),
+ 'commands' => Array
+ (
+ 'touch /etc/cron.d/syscp',
+ 'chown root:0 /etc/cron.d/syscp',
+ 'chmod 0640 /etc/cron.d/syscp',
+ 'mkdir -p /etc/php/syscp-cronjob',
+ 'touch /etc/php/syscp-cronjob/php.ini',
+ 'chown -R root:0 /etc/php/syscp-cronjob',
+ 'chmod 0750 /etc/php/syscp-cronjob',
+ 'chmod 0640 /etc/php/syscp-cronjob/php.ini'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add vixie-cron default',
+ '/etc/init.d/vixie-cron restart'
+ )
+ )
+ )
+ )
+ );
+
+ /*echo '<pre>';
+ print_r($configfiles);
+ echo '</pre>';*/
+
+ if( ($page == 'configfiles' || $page == 'overview') && $userinfo['change_serversettings'] == '1')
+ {
+ if(isset($_GET['distribution']) && $_GET['distribution']!='' && isset($configfiles[$_GET['distribution']]) && is_array($configfiles[$_GET['distribution']]) &&
+ isset($_GET['daemon']) && $_GET['daemon']!='' && isset($configfiles[$_GET['distribution']]['daemons'][$_GET['daemon']]) && is_array($configfiles[$_GET['distribution']]['daemons'][$_GET['daemon']]))
+ {
+ $distribution = addslashes($_GET['distribution']);
+ $daemon = addslashes($_GET['daemon']);
+
+ if(isset($configfiles[$distribution]['daemons'][$daemon]['commands']) && is_array($configfiles[$distribution]['daemons'][$daemon]['commands']))
+ {
+ $commands = implode("\n", $configfiles[$distribution]['daemons'][$daemon]['commands']);
+ }
+ else
+ {
+ $commands = '';
+ }
+
+ $replace_arr = Array
+ (
+ '<SQL_UNPRIVILEGED_USER>' => $sql['user'],
+ '<SQL_UNPRIVILEGED_PASSWORD>' => 'MYSQL_PASSWORD',
+ '<SQL_DB>' => $sql['db'],
+ '<SQL_HOST>' => $sql['host'],
+ '<SERVERNAME>' => $settings['system']['hostname'],
+ '<SERVERIP>' => $settings['system']['ipaddress'],
+ '<VIRTUAL_MAILBOX_BASE>' => $settings['system']['vmail_homedir'],
+ '<VIRTUAL_UID_MAPS>' => $settings['system']['vmail_uid'],
+ '<VIRTUAL_GID_MAPS>' => $settings['system']['vmail_gid']
+ );
+ $files = '';
+ if(isset($configfiles[$distribution]['daemons'][$daemon]['files']) && is_array($configfiles[$distribution]['daemons'][$daemon]['files']))
+ {
+ while(list($filename, $realname) = each($configfiles[$distribution]['daemons'][$daemon]['files']))
+ {
+ $file_content = implode('', file('./templates/misc/configfiles/'.$distribution.'/'.$daemon.'/'.$filename));
+ $file_content = strtr($file_content, $replace_arr);
+ $file_content = htmlspecialchars($file_content);
+ $numbrows = count(explode("\n", $file_content));
+ eval("\$files.=\"".getTemplate("configfiles/configfiles_file")."\";");
+ }
+ }
+
+ if(isset($configfiles[$distribution]['daemons'][$daemon]['restart']) && is_array($configfiles[$distribution]['daemons'][$daemon]['restart']))
+ {
+ $restart = implode("\n", $configfiles[$distribution]['daemons'][$daemon]['restart']);
+ }
+ else
+ {
+ $restart = '';
+ }
+
+ eval("echo \"".getTemplate("configfiles/configfiles")."\";");
+ }
+ else
+ {
+ $distributions = '';
+ while (list($distribution_name, $distribution_details) = each($configfiles))
+ {
+ $daemons = '';
+ while(list($daemon_name, $daemon_details) = each($distribution_details['daemons']))
+ {
+ eval("\$daemons.=\"".getTemplate("configfiles/choose_daemon")."\";");
+ }
+ eval("\$distributions.=\"".getTemplate("configfiles/choose_distribution")."\";");
+ }
+ eval("echo \"".getTemplate("configfiles/choose")."\";");
+ }
+ }
+
+?>
diff --git a/syscp/patches/gentoo-config-files/nodns-ssl/syscp-1.2.13-gentoo-config-nodns-ssl-r2.tar.bz2 b/syscp/patches/gentoo-config-files/nodns-ssl/syscp-1.2.13-gentoo-config-nodns-ssl-r2.tar.bz2
new file mode 100644
index 0000000..b81c77e
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns-ssl/syscp-1.2.13-gentoo-config-nodns-ssl-r2.tar.bz2
Binary files differ
diff --git a/syscp/patches/gentoo-config-files/nodns/etc_libnss-mysql-root.cfg b/syscp/patches/gentoo-config-files/nodns/etc_libnss-mysql-root.cfg
new file mode 100644
index 0000000..6498977
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/etc_libnss-mysql-root.cfg
@@ -0,0 +1,2 @@
+username <SQL_UNPRIVILEGED_USER>
+password <SQL_UNPRIVILEGED_PASSWORD>
diff --git a/syscp/patches/gentoo-config-files/nodns/etc_libnss-mysql.cfg b/syscp/patches/gentoo-config-files/nodns/etc_libnss-mysql.cfg
new file mode 100644
index 0000000..d284192
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/etc_libnss-mysql.cfg
@@ -0,0 +1,38 @@
+getpwnam SELECT username,'x',uid,gid,'MySQL User',homedir,shell \
+ FROM ftp_users \
+ WHERE username='%1$s' \
+ LIMIT 1
+getpwuid SELECT username,'x',uid,gid,'MySQL User',homedir,shell \
+ FROM ftp_users \
+ WHERE uid='%1$u' \
+ LIMIT 1
+getspnam SELECT username,password,UNIX_TIMESTAMP()-10,'1','2','7','-1','-1','0' \
+ FROM ftp_users \
+ WHERE username='%1$s' \
+ LIMIT 1
+getpwent SELECT username,'x',uid,gid,'MySQL User',homedir,shell \
+ FROM ftp_users
+getspent SELECT username,password,UNIX_TIMESTAMP()-10,'1','2','7','-1','-1','0' \
+ FROM ftp_users
+getgrnam SELECT groupname,'x',gid \
+ FROM ftp_groups \
+ WHERE groupname='%1$s' \
+ LIMIT 1
+getgrgid SELECT groupname,'x',gid \
+ FROM ftp_groups \
+ WHERE gid='%1$u' \
+ LIMIT 1
+getgrent SELECT groupname,'x',gid \
+ FROM ftp_groups
+memsbygid SELECT username \
+ FROM ftp_users \
+ WHERE gid='%1$u'
+gidsbymem SELECT gid \
+ FROM ftp_users \
+ WHERE username='%1$s'
+
+host <SQL_HOST>
+database <SQL_DB>
+username <SQL_UNPRIVILEGED_USER>
+password <SQL_UNPRIVILEGED_PASSWORD>
+socket /var/run/mysqld/mysqld.sock
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_imapd b/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_imapd
new file mode 100644
index 0000000..f594e41
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_imapd
@@ -0,0 +1,376 @@
+##VERSION: $Id: imapd.dist.in,v 1.32 2004/11/25 04:57:04 mrsam Exp $
+#
+# imapd created from imapd.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# This configuration file sets various options for the Courier-IMAP server
+# when used with the couriertcpd server.
+# A lot of the stuff here is documented in the manual page for couriertcpd.
+#
+# NOTE - do not use \ to split long variable contents on multiple lines.
+# This will break the default imapd.rc script, which parses this file.
+#
+##NAME: ADDRESS:0
+#
+# Address to listen on, can be set to a single IP address.
+#
+# ADDRESS=127.0.0.1
+
+ADDRESS=0
+
+##NAME: PORT:1
+#
+# Port numbers that connections are accepted on. The default is 143,
+# the standard IMAP port.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possible to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The previous ADDRESS setting is a default for ports that do not have
+# a specified IP address.
+
+PORT=143
+
+##NAME: AUTHSERVICE:0
+#
+# It's possible to authenticate using a different 'service' parameter
+# depending on the connection's port. This only works with authentication
+# modules that use the 'service' parameter, such as PAM. Example:
+#
+# AUTHSERVICE143=imap
+# AUTHSERVICE993=imaps
+
+##NAME: MAXDAEMONS:0
+#
+# Maximum number of IMAP servers started
+#
+
+MAXDAEMONS=50
+
+##NAME: MAXPERIP:0
+#
+# Maximum number of connections to accept from the same IP address
+
+MAXPERIP=10
+
+##NAME: PIDFILE:0
+#
+# File where couriertcpd will save its process ID
+#
+
+PIDFILE=/var/run/imapd.pid
+
+##NAME: TCPDOPTS:0
+#
+# Miscellaneous couriertcpd options that shouldn't be changed.
+#
+
+TCPDOPTS="-nodnslookup -noidentlookup"
+
+##NAME: IMAP_CAPABILITY:1
+#
+# IMAP_CAPABILITY specifies what most of the response should be to the
+# CAPABILITY command.
+#
+# If you have properly configured Courier to use CRAM-MD5 or CRAM-SHA1
+# authentication (see INSTALL), set IMAP_CAPABILITY as follows:
+#
+# IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
+#
+
+IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE"
+
+##NAME: KEYWORDS_CAPABILITY:0
+#
+# IMAP_KEYWORDS=1 enables custom IMAP keywords. Set this option to 0 to
+# disable custom keywords.
+
+IMAP_KEYWORDS=1
+
+##NAME: SMAP1_CAPABILITY:0
+#
+# EXPERIMENTAL
+#
+# To enable the experimental "Simple Mail Access Protocol" extensions,
+# uncomment the following setting.
+#
+# SMAP_CAPABILITY=SMAP1
+
+##NAME: IMAP_CAPABILITY_ORIG:1
+#
+# For use by webadmin
+
+IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
+
+##NAME: IMAP_PROXY:0
+#
+# Enable proxying. See README.proxy
+
+IMAP_PROXY=0
+
+##NAME: IMAP_PROXY_FOREIGN:0
+#
+# Proxying to non-Courier servers. Re-sends the CAPABILITY command after
+# logging in to the remote server. May not work with all IMAP clients.
+
+IMAP_PROXY_FOREIGN=0
+
+##NAME: IMAP_IDLE_TIMEOUT:0
+#
+# This setting controls how often
+# the server polls for changes to the folder, in IDLE mode (in seconds).
+
+IMAP_IDLE_TIMEOUT=60
+
+##NAME: IMAP_CAPABILITY_TLS:0
+#
+# The following setting will advertise SASL PLAIN authentication after
+# STARTTLS is established. If you want to allow SASL PLAIN authentication
+# with or without TLS then just comment this out, and add AUTH=PLAIN to
+# IMAP_CAPABILITY
+
+IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
+
+##NAME: IMAP_TLS_ORIG:0
+#
+# For use by webadmin
+
+IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
+
+##NAME: IMAP_DISABLETHREADSORT:0
+#
+# Set IMAP_DISABLETHREADSORT to disable the THREAD and SORT commands -
+# server side sorting and threading.
+#
+# Those capabilities will still be advertised, but the server will reject
+# them. Set this option if you want to disable all the extra load from
+# server-side threading and sorting. Not advertising those capabilities
+# will simply result in the clients reading the entire folder, and sorting
+# it on the client side. That will still put some load on the server.
+# advertising these capabilities, but rejecting the commands, will stop this
+# silliness.
+#
+
+IMAP_DISABLETHREADSORT=0
+
+##NAME: IMAP_CHECK_ALL_FOLDERS:0
+#
+# Set IMAP_CHECK_ALL_FOLDERS to 1 if you want the server to check for new
+# mail in every folder. Not all IMAP clients use the IMAP's new mail
+# indicator, but some do. Normally new mail is checked only in INBOX,
+# because it is a comparatively time consuming operation, and it would be
+# a complete waste of time unless mail filters are used to deliver
+# mail directly to folders.
+#
+# When IMAP clients are used which support new mail indication, and when
+# mail filters are used to sort incoming mail into folders, setting
+# IMAP_CHECK_ALL_FOLDERS to 1 will allow IMAP clients to announce new
+# mail in folders. Note that this will result in slightly more load on the
+# server.
+#
+
+IMAP_CHECK_ALL_FOLDERS=0
+
+##NAME: IMAP_OBSOLETE_CLIENT:0
+#
+# Set IMAP_OBSOLETE_CLIENT if your IMAP client expects \\NoInferiors to mean
+# what \\HasNoChildren really means.
+
+IMAP_OBSOLETE_CLIENT=0
+
+##NAME: IMAP_UMASK:0
+#
+# IMAP_UMASK sets the umask of the server process. The value of IMAP_UMASK is
+# simply passed to the "umask" command. The default value is 022.
+#
+# This feature is mostly useful for shared folders, where the file permissions
+# of the messages may be important.
+
+IMAP_UMASK=027
+
+##NAME: IMAP_ULIMITD:0
+#
+# IMAP_ULIMITD sets the maximum size of the data segment of the server
+# process. The value of IMAP_ULIMITD is simply passed to the "ulimit -d"
+# command (or ulimit -v). The argument to ulimi sets the upper limit on the
+# size of the data segment of the server process, in kilobytes. The default
+# value of 65536 sets a very generous limit of 64 megabytes, which should
+# be more than plenty for anyone.
+#
+# This feature is used as an additional safety check that should stop
+# any potential denial-of-service attacks that exploit any kind of
+# a memory leak to exhaust all the available memory on the server.
+# It is theoretically possible that obscenely huge folders will also
+# result in the server running out of memory when doing server-side
+# sorting (by my calculations you have to have at least 100,000 messages
+# in a single folder, for that to happen).
+
+IMAP_ULIMITD=65536
+
+##NAME: IMAP_USELOCKS:0
+#
+# Setting IMAP_USELOCKS to 1 will use dot-locking to support concurrent
+# multiple access to the same folder. This incurs slight additional
+# overhead. Concurrent multiple access will still work without this setting,
+# however occasionally a minor race condition may result in an IMAP client
+# downloading the same message twice, or a keyword update will fail.
+#
+# IMAP_USELOCKS=1 is strongly recommended when shared folders are used.
+
+IMAP_USELOCKS=1
+
+##NAME: IMAP_SHAREDINDEXFILE:0
+#
+# The index of all accessible folders. Do not change this setting unless
+# you know what you're doing. See README.sharedfolders for additional
+# information.
+
+IMAP_SHAREDINDEXFILE=/etc/courier-imap/shared/index
+
+##NAME: IMAP_ENHANCEDIDLE:0
+#
+# If Courier was compiled with the File Alteration Monitor, setting
+# IMAP_ENHANCEDIDLE to 1 enables enhanced IDLE mode, where multiple
+# clients may open the same folder concurrently, and receive updates to
+# folder contents in realtime. See the imapd(8) man page for additional
+# information.
+#
+# IMPORTANT: IMAP_USELOCKS *MUST* also be set to 1, and IDLE must be included
+# in the IMAP_CAPABILITY list.
+#
+
+IMAP_ENHANCEDIDLE=0
+
+##NAME: IMAP_TRASHFOLDERNAME:0
+#
+# The name of the magic trash Folder. For MSOE compatibility,
+# you can set IMAP_TRASHFOLDERNAME="Deleted Items".
+#
+# IMPORTANT: If you change this, you must also change IMAP_EMPTYTRASH
+
+IMAP_TRASHFOLDERNAME=Trash
+
+##NAME: IMAP_EMPTYTRASH:0
+#
+# The following setting is optional, and causes messages from the given
+# folder to be automatically deleted after the given number of days.
+# IMAP_EMPTYTRASH is a comma-separated list of folder:days. The default
+# setting, below, purges 7 day old messages from the Trash folder.
+# Another useful setting would be:
+#
+# IMAP_EMPTYTRASH=Trash:7,Sent:30
+#
+# This would also delete messages from the Sent folder (presumably copies
+# of sent mail) after 30 days. This is a global setting that is applied to
+# every mail account, and is probably useful in a controlled, corporate
+# environment.
+#
+# Important: the purging is controlled by CTIME, not MTIME (the file time
+# as shown by ls). It is perfectly ordinary to see stuff in Trash that's
+# a year old. That's the file modification time, MTIME, that's displayed.
+# This is generally when the message was originally delivered to this
+# mailbox. Purging is controlled by a different timestamp, CTIME, which is
+# changed when the file is moved to the Trash folder (and at other times too).
+#
+# You might want to disable this setting in certain situations - it results
+# in a stat() of every file in each folder, at login and logout.
+#
+
+IMAP_EMPTYTRASH=Trash:7
+
+##NAME: IMAP_MOVE_EXPUNGE_TO_TRASH:0
+#
+# Set IMAP_MOVE_EXPUNGE_TO_TRASH to move expunged messages to Trash. This
+# effectively allows an undo of message deletion by fishing the deleted
+# mail from trash. Trash can be manually expunged as usually, and mail
+# will get automatically expunged from Trash according to IMAP_EMPTYTRASH.
+#
+# NOTE: shared folders are still expunged as usual. Shared folders are
+# not affected.
+#
+
+IMAP_MOVE_EXPUNGE_TO_TRASH=0
+
+
+##NAME: OUTBOX:0
+#
+# The next set of options deal with the "Outbox" enhancement.
+# Uncomment the following setting to create a special folder, named
+# INBOX.Outbox
+#
+# OUTBOX=.Outbox
+
+##NAME: SENDMAIL:0
+#
+# If OUTBOX is defined, mail can be sent via the IMAP connection by copying
+# a message to the INBOX.Outbox folder. For all practical matters,
+# INBOX.Outbox looks and behaves just like any other IMAP folder. If this
+# folder doesn't exist it must be created by the IMAP mail client, just
+# like any other IMAP folder. The kicker: any message copied or moved to
+# this folder is will be E-mailed by the Courier-IMAP server, by running
+# the SENDMAIL program. Therefore, messages copied or moved to this
+# folder must be well-formed RFC-2822 messages, with the recipient list
+# specified in the To:, Cc:, and Bcc: headers. Courier-IMAP relies on
+# SENDMAIL to read the recipient list from these headers (and delete the Bcc:
+# header) by running the command "$SENDMAIL -oi -t -f $SENDER", with the
+# message piped on standard input. $SENDER will be the return address
+# of the message, which is set by the authentication module.
+#
+# DO NOT MODIFY SENDMAIL, below, unless you know what you're doing.
+#
+
+SENDMAIL=/usr/sbin/sendmail
+
+##NAME: HEADERFROM:0
+#
+# For administrative and oversight purposes, the return address, $SENDER
+# will also be saved in the X-IMAP-Sender mail header. This header gets
+# added to the sent E-mail (but it doesn't get saved in the copy of the
+# message that's saved in the folder)
+#
+# WARNING - By enabling OUTBOX above, *every* IMAP mail client will receive
+# the magic OUTBOX treatment. Therefore advance LARTing is in order for
+# _all_ of your lusers, until every one of them is aware of this. Otherwise if
+# OUTBOX is left at its default setting - a folder name that might be used
+# accidentally - some people may be in for a rude surprise. You can redefine
+# the name of the magic folder by changing OUTBOX, above. You should do that
+# and pick a less-obvious name. Perhaps brand it with your organizational
+# name ( OUTBOX=.WidgetsAndSonsOutbox )
+
+HEADERFROM=X-IMAP-Sender
+
+##NAME: IMAPDSTART:0
+#
+# IMAPDSTART is not used directly. Rather, this is a convenient flag to
+# be read by your system startup script in /etc/rc.d, like this:
+#
+# . /etc/courier-imap/imapd
+#
+# case x$IMAPDSTART in
+# x[yY]*)
+# /usr/lib/courier-imap/imapd.rc start
+# ;;
+# esac
+#
+# The default setting is going to be NO, so you'll have to manually flip
+# it to yes.
+
+IMAPDSTART=YES
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIR=.maildir
+MAILDIRPATH=.maildir
+#Put any program for ${PRERUN} here
+PRERUN=
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_imapd-ssl b/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_imapd-ssl
new file mode 100644
index 0000000..76dbcf7
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_imapd-ssl
@@ -0,0 +1,199 @@
+##VERSION: $Id: imapd-ssl.dist.in,v 1.11 2004/10/21 00:45:35 mrsam Exp $
+#
+# imapd-ssl created from imapd-ssl.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 2000 - 2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# This configuration file sets various options for the Courier-IMAP server
+# when used to handle SSL IMAP connections.
+#
+# SSL and non-SSL connections are handled by a dedicated instance of the
+# couriertcpd daemon. If you are accepting both SSL and non-SSL IMAP
+# connections, you will start two instances of couriertcpd, one on the
+# IMAP port 143, and another one on the IMAP-SSL port 993.
+#
+# Download OpenSSL from http://www.openssl.org/
+#
+##NAME: SSLPORT:1
+#
+# Options in the imapd-ssl configuration file AUGMENT the options in the
+# imapd configuration file. First the imapd configuration file is read,
+# then the imapd-ssl configuration file, so we do not have to redefine
+# anything.
+#
+# However, some things do have to be redefined. The port number is
+# specified by SSLPORT, instead of PORT. The default port is port 993.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possibly to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The SSLADDRESS setting is a default for ports that do not have
+# a specified IP address.
+
+SSLPORT=993
+
+##NAME: SSLADDRESS:0
+#
+# Address to listen on, can be set to a single IP address.
+#
+# SSLADDRESS=127.0.0.1
+
+SSLADDRESS=0
+
+##NAME: SSLPIDFILE:0
+#
+# That's the SSL IMAP port we'll listen on.
+# Feel free to redefine MAXDAEMONS, TCPDOPTS, and MAXPERIP.
+
+SSLPIDFILE=/var/run/imapd-ssl.pid
+
+##NAME: IMAPDSSLSTART:0
+#
+# Different pid files, so that both instances of couriertcpd can coexist
+# happily.
+#
+# You can also redefine IMAP_CAPABILITY, although I can't
+# think of why you'd want to do that.
+#
+#
+# Ok, the following settings are new to imapd-ssl:
+#
+# Whether or not to start IMAP over SSL on simap port:
+
+IMAPDSSLSTART=YES
+
+##NAME: IMAPDSTARTTLS:0
+#
+# Whether or not to implement IMAP STARTTLS extension instead:
+
+IMAPDSTARTTLS=YES
+
+##NAME: IMAP_TLS_REQUIRED:1
+#
+# Set IMAP_TLS_REQUIRED to 1 if you REQUIRE STARTTLS for everyone.
+# (this option advertises the LOGINDISABLED IMAP capability, until STARTTLS
+# is issued).
+
+IMAP_TLS_REQUIRED=0
+
+#########################################################################
+#
+# The following variables configure IMAP over SSL. If OpenSSL is available
+# during configuration, the couriertls helper gets compiled, and upon
+# installation a dummy TLS_CERTFILE gets generated. courieresmtpd will
+# automatically advertise the ESMTP STARTTLS extension if both TLS_CERTFILE
+# and COURIERTLS exist.
+#
+# WARNING: Peer certificate verification has NOT yet been tested. Proceed
+# at your own risk. Only the basic SSL/TLS functionality is known to be
+# working. Keep this in mind as you play with the following variables.
+#
+##NAME: COURIERTLS:0
+#
+
+COURIERTLS=/usr/sbin/couriertls
+
+##NAME: TLS_PROTOCOL:0
+#
+# TLS_PROTOCOL sets the protocol version. The possible versions are:
+#
+# SSL2 - SSLv2
+# SSL3 - SSLv3
+# TLS1 - TLS1
+
+TLS_PROTOCOL=SSL3
+
+##NAME: TLS_STARTTLS_PROTOCOL:0
+#
+# TLS_STARTTLS_PROTOCOL is used instead of TLS_PROTOCOL for the IMAP STARTTLS
+# extension, as opposed to IMAP over SSL on port 993.
+#
+
+TLS_STARTTLS_PROTOCOL=TLS1
+
+##NAME: TLS_CIPHER_LIST:0
+#
+# TLS_CIPHER_LIST optionally sets the list of ciphers to be used by the
+# OpenSSL library. In most situations you can leave TLS_CIPHER_LIST
+# undefined
+#
+# TLS_CIPHER_LIST="ALL:!ADH:RC4+RSA:+SSLv2:@STRENGTH"
+
+##NAME: TLS_TIMEOUT:0
+# TLS_TIMEOUT is currently not implemented, and reserved for future use.
+# This is supposed to be an inactivity timeout, but its not yet implemented.
+#
+
+##NAME: TLS_DHCERTFILE:0
+#
+# TLS_DHCERTFILE - PEM file that stores our Diffie-Hellman cipher pair.
+# When OpenSSL is compiled to use Diffie-Hellman ciphers instead of RSA
+# you must generate a DH pair that will be used. In most situations the
+# DH pair is to be treated as confidential, and the file specified by
+# TLS_DHCERTFILE must not be world-readable.
+#
+# TLS_DHCERTFILE=
+
+##NAME: TLS_CERTFILE:0
+#
+# TLS_CERTFILE - certificate to use. TLS_CERTFILE is required for SSL/TLS
+# servers, and is optional for SSL/TLS clients. TLS_CERTFILE is usually
+# treated as confidential, and must not be world-readable.
+#
+TLS_CERTFILE=/etc/ssl/server/<SERVERNAME>.crt_and_key
+
+##NAME: TLS_TRUSTCERTS:0
+#
+# TLS_TRUSTCERTS=pathname - load trusted certificates from pathname.
+# pathname can be a file or a directory. If a file, the file should
+# contain a list of trusted certificates, in PEM format. If a
+# directory, the directory should contain the trusted certificates,
+# in PEM format, one per file and hashed using OpenSSL's c_rehash
+# script. TLS_TRUSTCERTS is used by SSL/TLS clients (by specifying
+# the -domain option) and by SSL/TLS servers (TLS_VERIFYPEER is set
+# to PEER or REQUIREPEER).
+#
+#
+# TLS_TRUSTCERTS=
+
+##NAME: TLS_VERIFYPEER:0
+#
+# TLS_VERIFYPEER - how to verify client certificates. The possible values of
+# this setting are:
+#
+# NONE - do not verify anything
+#
+# PEER - verify the client certificate, if one's presented
+#
+# REQUIREPEER - require a client certificate, fail if one's not presented
+#
+#
+TLS_VERIFYPEER=NONE
+
+##NAME: TLS_CACHE:0
+#
+# A TLS/SSL session cache may slightly improve response for IMAP clients
+# that open multiple SSL sessions to the server. TLS_CACHEFILE will be
+# automatically created, TLS_CACHESIZE bytes long, and used as a cache
+# buffer.
+#
+# This is an experimental feature and should be disabled if it causes
+# problems with SSL clients. Disable SSL caching by commenting out the
+# following settings:
+
+TLS_CACHEFILE=/var/lib/courier-imap/couriersslcache
+TLS_CACHESIZE=524288
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIRPATH=.maildir
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_pop3d b/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_pop3d
new file mode 100644
index 0000000..71502ae
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_pop3d
@@ -0,0 +1,127 @@
+##VERSION: $Id: pop3d.dist.in,v 1.11 2004/10/30 15:39:38 mrsam Exp $
+#
+# pop3d created from pop3d.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# Courier POP3 daemon configuration
+#
+##NAME: PIDFILE:0
+#
+
+PIDFILE=/var/run/pop3d.pid
+
+##NAME: MAXDAEMONS:0
+#
+# Maximum number of POP3 servers started
+#
+
+MAXDAEMONS=50
+
+##NAME: MAXPERIP:4
+#
+# Maximum number of connections to accept from the same IP address
+
+MAXPERIP=5
+
+##NAME: POP3AUTH:1
+#
+# To advertise the SASL capability, per RFC 2449, uncomment the POP3AUTH
+# variable:
+#
+# POP3AUTH="LOGIN"
+#
+# If you have configured the CRAM-MD5 or CRAM-SHA1, set POP3AUTH to something
+# like this:
+#
+# POP3AUTH="LOGIN CRAM-MD5 CRAM-SHA1"
+
+POP3AUTH=""
+
+##NAME: POP3AUTH_ORIG:0
+#
+# For use by webadmin
+
+POP3AUTH_ORIG="LOGIN CRAM-MD5 CRAM-SHA1"
+
+##NAME: POP3AUTH_TLS:1
+#
+# To also advertise SASL PLAIN if SSL is enabled, uncomment the
+# POP3AUTH_TLS environment variable:
+#
+# POP3AUTH_TLS="LOGIN PLAIN"
+
+POP3AUTH_TLS=""
+
+##NAME: POP3AUTH_TLS_ORIG:0
+#
+# For use by webadmin
+
+POP3AUTH_TLS_ORIG="LOGIN PLAIN"
+
+##NAME: POP3_PROXY:0
+#
+# Enable proxying. See README.proxy
+
+POP3_PROXY=0
+
+##NAME: PORT:1
+#
+# Port to listen on for connections. The default is port 110.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possibly to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The ADDRESS setting is a default for ports that do not have a specified
+# IP address.
+
+PORT=110
+
+##NAME: ADDRESS:0
+#
+# IP address to listen on. 0 means all IP addresses.
+
+ADDRESS=0
+
+##NAME: TCPDOPTS:0
+#
+# Other couriertcpd(1) options. The following defaults should be fine.
+#
+
+TCPDOPTS="-nodnslookup -noidentlookup"
+
+##NAME: POP3DSTART:0
+#
+# POP3DSTART is not referenced anywhere in the standard Courier programs
+# or scripts. Rather, this is a convenient flag to be read by your system
+# startup script in /etc/rc.d, like this:
+#
+# . /etc/courier-imap/pop3d
+# case x$POP3DSTART in
+# x[yY]*)
+# /usr/lib/courier-imap/pop3d.rc start
+# ;;
+# esac
+#
+# The default setting is going to be NO, until Courier is shipped by default
+# with enough platforms so that people get annoyed with having to flip it to
+# YES every time.
+
+POP3DSTART=YES
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIR=.maildir
+MAILDIRPATH=.maildir
+#Put any program for ${PRERUN} here
+PRERUN=
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_pop3d-ssl b/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_pop3d-ssl
new file mode 100644
index 0000000..a0267a0
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier-imap_pop3d-ssl
@@ -0,0 +1,186 @@
+##VERSION: $Id: pop3d-ssl.dist.in,v 1.12 2004/10/21 00:45:35 mrsam Exp $
+#
+# pop3d-ssl created from pop3d-ssl.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# Copyright 2000-2004 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# This configuration file sets various options for the Courier-IMAP server
+# when used to handle SSL POP3 connections.
+#
+# SSL and non-SSL connections are handled by a dedicated instance of the
+# couriertcpd daemon. If you are accepting both SSL and non-SSL POP3
+# connections, you will start two instances of couriertcpd, one on the
+# POP3 port 110, and another one on the POP3-SSL port 995.
+#
+# Download OpenSSL from http://www.openssl.org/
+#
+##NAME: SSLPORT:0
+#
+# Options in the pop3d-ssl configuration file AUGMENT the options in the
+# pop3d configuration file. First the pop3d configuration file is read,
+# then the pop3d-ssl configuration file, so we do not have to redefine
+# anything.
+#
+# However, some things do have to be redefined. The port number is
+# specified by SSLPORT, instead of PORT. The default port is port 995.
+#
+# Multiple port numbers can be separated by commas. When multiple port
+# numbers are used it is possibly to select a specific IP address for a
+# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
+# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
+# The SSLADDRESS setting is a default for ports that do not have
+# a specified IP address.
+
+SSLPORT=995
+
+##NAME: SSLADDRESS:0
+#
+# Address to listen on, can be set to a single IP address.
+#
+# SSLADDRESS=127.0.0.1
+
+SSLADDRESS=0
+
+##NAME: SSLPIDFILE:0
+#
+#
+#
+
+SSLPIDFILE=/var/run/pop3d-ssl.pid
+
+##NAME: POP3DSSLSTART:0
+#
+# Whether or not to start POP3 over SSL on spop3 port:
+
+POP3DSSLSTART=YES
+
+##NAME: POP3_STARTTLS:0
+#
+# Whether or not to implement the POP3 STLS extension:
+
+POP3_STARTTLS=YES
+
+##NAME: POP3_TLS_REQUIRED:1
+#
+# Set POP3_TLS_REQUIRED to 1 if you REQUIRE STARTTLS for everyone.
+# (this option advertises the LOGINDISABLED POP3 capability, until STARTTLS
+# is issued).
+
+POP3_TLS_REQUIRED=0
+
+##NAME: COURIERTLS:0
+#
+# The following variables configure POP3 over SSL. If OpenSSL is available
+# during configuration, the couriertls helper gets compiled, and upon
+# installation a dummy TLS_CERTFILE gets generated. courieresmtpd will
+# automatically advertise the ESMTP STARTTLS extension if both TLS_CERTFILE
+# and COURIERTLS exist.
+#
+# WARNING: Peer certificate verification has NOT yet been tested. Proceed
+# at your own risk. Only the basic SSL/TLS functionality is known to be
+# working. Keep this in mind as you play with the following variables.
+
+COURIERTLS=/usr/sbin/couriertls
+
+##NAME: TLS_PROTOCOL:0
+#
+# TLS_PROTOCOL sets the protocol version. The possible versions are:
+#
+# SSL2 - SSLv2
+# SSL3 - SSLv3
+# TLS1 - TLS1
+
+TLS_PROTOCOL=SSL3
+
+##NAME: TLS_STARTTLS_PROTOCOL:0
+#
+# TLS_STARTTLS_PROTOCOL is used instead of TLS_PROTOCOL for the POP3 STARTTLS
+# extension, as opposed to POP3 over SSL on port 995.
+#
+
+TLS_STARTTLS_PROTOCOL=TLS1
+
+##NAME: TLS_CIPHER_LIST:0
+#
+# TLS_CIPHER_LIST optionally sets the list of ciphers to be used by the
+# OpenSSL library. In most situations you can leave TLS_CIPHER_LIST
+# undefined
+#
+# TLS_CIPHER_LIST="ALL:!ADH:RC4+RSA:+SSLv2:@STRENGTH"
+
+##NAME: TLS_TIMEOUT:0
+# TLS_TIMEOUT is currently not implemented, and reserved for future use.
+# This is supposed to be an inactivity timeout, but its not yet implemented.
+#
+
+##NAME: TLS_DHCERTFILE:0
+#
+# TLS_DHCERTFILE - PEM file that stores our Diffie-Hellman cipher pair.
+# When OpenSSL is compiled to use Diffie-Hellman ciphers instead of RSA
+# you must generate a DH pair that will be used. In most situations the
+# DH pair is to be treated as confidential, and the file specified by
+# TLS_DHCERTFILE must not be world-readable.
+#
+# TLS_DHCERTFILE=
+
+##NAME: TLS_CERTFILE:0
+#
+# TLS_CERTFILE - certificate to use. TLS_CERTFILE is required for SSL/TLS
+# servers, and is optional for SSL/TLS clients. TLS_CERTFILE is usually
+# treated as confidential, and must not be world-readable.
+#
+TLS_CERTFILE=/etc/ssl/server/<SERVERNAME>.crt_and_key
+
+##NAME: TLS_TRUSTCERTS:0
+#
+# TLS_TRUSTCERTS=pathname - load trusted certificates from pathname.
+# pathname can be a file or a directory. If a file, the file should
+# contain a list of trusted certificates, in PEM format. If a
+# directory, the directory should contain the trusted certificates,
+# in PEM format, one per file and hashed using OpenSSL's c_rehash
+# script. TLS_TRUSTCERTS is used by SSL/TLS clients (by specifying
+# the -domain option) and by SSL/TLS servers (TLS_VERIFYPEER is set
+# to PEER or REQUIREPEER).
+#
+#
+# TLS_TRUSTCERTS=
+
+##NAME: TLS_VERIFYPEER:0
+#
+# TLS_VERIFYPEER - how to verify client certificates. The possible values of
+# this setting are:
+#
+# NONE - do not verify anything
+#
+# PEER - verify the client certificate, if one's presented
+#
+# REQUIREPEER - require a client certificate, fail if one's not presented
+#
+#
+TLS_VERIFYPEER=NONE
+
+##NAME: TLS_CACHE:0
+#
+# A TLS/SSL session cache may slightly improve response for long-running
+# POP3 clients. TLS_CACHEFILE will be automatically created, TLS_CACHESIZE
+# bytes long, and used as a cache buffer.
+#
+# This is an experimental feature and should be disabled if it causes
+# problems with SSL clients. Disable SSL caching by commenting out the
+# following settings:
+
+TLS_CACHEFILE=/var/lib/courier-imap/couriersslcache
+TLS_CACHESIZE=524288
+
+##NAME: MAILDIRPATH:0
+#
+# MAILDIRPATH - directory name of the maildir directory.
+#
+MAILDIRPATH=Maildir
+
+#Hardwire a value for ${MAILDIR}
+MAILDIRPATH=.maildir
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier_authlib_authdaemonrc b/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier_authlib_authdaemonrc
new file mode 100644
index 0000000..867a12d
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier_authlib_authdaemonrc
@@ -0,0 +1,93 @@
+##VERSION: $Id: authdaemonrc.in,v 1.12 2005/07/05 12:25:08 mrsam Exp $
+#
+# Copyright 2000-2005 Double Precision, Inc. See COPYING for
+# distribution information.
+#
+# authdaemonrc created from authdaemonrc.dist by sysconftool
+#
+# Do not alter lines that begin with ##, they are used when upgrading
+# this configuration.
+#
+# This file configures authdaemond, the resident authentication daemon.
+#
+# Comments in this file are ignored. Although this file is intended to
+# be sourced as a shell script, authdaemond parses it manually, so
+# the acceptable syntax is a bit limited. Multiline variable contents,
+# with the \ continuation character, are not allowed. Everything must
+# fit on one line. Do not use any additional whitespace for indentation,
+# or anything else.
+
+##NAME: authmodulelist:2
+#
+# The authentication modules that are linked into authdaemond. The
+# default list is installed. You may selectively disable modules simply
+# by removing them from the following list. The available modules you
+# can use are: authuserdb authpam authshadow authmysql authcustom authpipe
+
+authmodulelist="authmysql"
+
+##NAME: authmodulelistorig:3
+#
+# This setting is used by Courier's webadmin module, and should be left
+# alone
+
+authmodulelistorig="authuserdb authpam authshadow authmysql authcustom authpipe"
+
+##NAME: daemons:0
+#
+# The number of daemon processes that are started. authdaemon is typically
+# installed where authentication modules are relatively expensive: such
+# as authldap, or authmysql, so it's better to have a number of them running.
+# PLEASE NOTE: Some platforms may experience a problem if there's more than
+# one daemon. Specifically, SystemV derived platforms that use TLI with
+# socket emulation. I'm suspicious of TLI's ability to handle multiple
+# processes accepting connections on the same filesystem domain socket.
+#
+# You may need to increase daemons if as your system load increases. Symptoms
+# include sporadic authentication failures. If you start getting
+# authentication failures, increase daemons. However, the default of 5
+# SHOULD be sufficient. Bumping up daemon count is only a short-term
+# solution. The permanent solution is to add more resources: RAM, faster
+# disks, faster CPUs...
+
+daemons=5
+
+##NAME: authdaemonvar:2
+#
+# authdaemonvar is here, but is not used directly by authdaemond. It's
+# used by various configuration and build scripts, so don't touch it!
+
+authdaemonvar=/var/lib/courier/authdaemon
+
+##NAME: DEBUG_LOGIN:0
+#
+# Dump additional diagnostics to syslog
+#
+# DEBUG_LOGIN=0 - turn off debugging
+# DEBUG_LOGIN=1 - turn on debugging
+# DEBUG_LOGIN=2 - turn on debugging + log passwords too
+#
+# ** YES ** - DEBUG_LOGIN=2 places passwords into syslog.
+#
+# Note that most information is sent to syslog at level 'debug', so
+# you may need to modify your /etc/syslog.conf to be able to see it.
+
+DEBUG_LOGIN=0
+
+##NAME: DEFAULTOPTIONS:0
+#
+# A comma-separated list of option=value pairs. Each option is applied
+# to an account if the account does not have its own specific value for
+# that option. So for example, you can set
+# DEFAULTOPTIONS="disablewebmail=1,disableimap=1"
+# and then enable webmail and/or imap on individual accounts by setting
+# disablewebmail=0 and/or disableimap=0 on the account.
+
+DEFAULTOPTIONS=""
+
+##NAME: LOGGEROPTS:0
+#
+# courierlogger(1) options, e.g. to set syslog facility
+#
+
+LOGGEROPTS=""
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier_authlib_authmysqlrc b/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier_authlib_authmysqlrc
new file mode 100644
index 0000000..fec6508
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/courier/etc_courier_authlib_authmysqlrc
@@ -0,0 +1,12 @@
+MYSQL_SERVER <SQL_HOST>
+MYSQL_USERNAME <SQL_UNPRIVILEGED_USER>
+MYSQL_PASSWORD <SQL_UNPRIVILEGED_PASSWORD>
+MYSQL_PORT 0
+MYSQL_DATABASE <SQL_DB>
+MYSQL_USER_TABLE mail_users
+MYSQL_CRYPT_PWFIELD password_enc
+MYSQL_UID_FIELD <VIRTUAL_UID_MAPS>
+MYSQL_GID_FIELD <VIRTUAL_GID_MAPS>
+MYSQL_LOGIN_FIELD username
+MYSQL_HOME_FIELD "<VIRTUAL_MAILBOX_BASE>"
+MYSQL_MAILDIR_FIELD maildir
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/cron/etc_cron.d_syscp b/syscp/patches/gentoo-config-files/nodns/gentoo/cron/etc_cron.d_syscp
new file mode 100644
index 0000000..4afe408
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/cron/etc_cron.d_syscp
@@ -0,0 +1,10 @@
+#
+# Set PATH, otherwise restart-scripts won't find start-stop-daemon
+#
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+#
+# Regular cron jobs for the syscp package
+#
+# Please check that all following paths are correct
+#
+*/5 * * * * root /usr/lib/php4/bin/php -q -c /etc/php/syscp-cronjob/php.ini /var/www/syscp/scripts/cronscript.php
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/cron/etc_php_syscp-cronjob_php.ini b/syscp/patches/gentoo-config-files/nodns/gentoo/cron/etc_php_syscp-cronjob_php.ini
new file mode 100644
index 0000000..74c8316
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/cron/etc_php_syscp-cronjob_php.ini
@@ -0,0 +1,61 @@
+short_open_tag = On
+asp_tags = Off
+precision = 14
+output_buffering = Off
+allow_call_time_pass_reference = Off
+safe_mode = Off
+safe_mode_gid = Off
+safe_mode_include_dir = "/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+safe_mode_allowed_env_vars = PHP_
+safe_mode_protected_env_vars = LD_LIBRARY_PATH
+open_basedir =
+disable_functions =
+disable_classes =
+expose_php = Off
+max_execution_time = 180
+max_input_time = 120
+memory_limit = 32M
+post_max_size = 32M
+error_reporting = E_ALL & ~E_NOTICE
+display_errors = On
+display_startup_errors = Off
+log_errors = Off
+log_errors_max_len = 1024
+ignore_repeated_errors = Off
+ignore_repeated_source = Off
+report_memleaks = On
+track_errors = Off
+html_errors = Off
+variables_order = "GPCS"
+register_globals = Off
+register_argc_argv = Off
+gpc_order = "GPC"
+magic_quotes_gpc = Off
+magic_quotes_runtime = Off
+magic_quotes_sybase = Off
+include_path = ".:/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+enable_dl = Off
+file_uploads = On
+upload_tmp_dir = "/tmp/"
+upload_max_filesize = 32M
+allow_url_fopen = Off
+session.save_handler = files
+session.save_path = "/tmp/"
+session.use_cookies = 1
+session.name = PHPSESSID
+session.auto_start = 0
+session.cookie_lifetime = 0
+session.cookie_path = /
+session.cookie_domain =
+session.serialize_handler = php
+session.gc_probability = 1
+session.gc_divisor = 1000
+session.gc_maxlifetime = 1440
+session.bug_compat_42 = 0
+session.bug_compat_warn = 1
+session.referer_check =
+session.entropy_length = 16
+session.entropy_file = /dev/urandom
+session.cache_limiter = nocache
+session.cache_expire = 180
+session.use_trans_sid = 0
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/cron/etc_php_syscp-vhost_php.ini b/syscp/patches/gentoo-config-files/nodns/gentoo/cron/etc_php_syscp-vhost_php.ini
new file mode 100644
index 0000000..048c26c
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/cron/etc_php_syscp-vhost_php.ini
@@ -0,0 +1,61 @@
+short_open_tag = On
+asp_tags = Off
+precision = 14
+output_buffering = 4096
+allow_call_time_pass_reference = Off
+safe_mode = Off
+safe_mode_gid = Off
+safe_mode_include_dir = "/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+safe_mode_allowed_env_vars = PHP_
+safe_mode_protected_env_vars = LD_LIBRARY_PATH
+open_basedir = "/var/www/syscp/:/var/www/syscp-suphp/syscp/:/var/www/syscpwebs/:/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+disable_functions = exec,passthru,shell_exec,system,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate
+disable_classes =
+expose_php = Off
+max_execution_time = 30
+max_input_time = 60
+memory_limit = 16M
+post_max_size = 12M
+error_reporting = E_ALL & ~E_NOTICE
+display_errors = Off
+display_startup_errors = Off
+log_errors = On
+log_errors_max_len = 1024
+ignore_repeated_errors = Off
+ignore_repeated_source = Off
+report_memleaks = On
+track_errors = Off
+html_errors = Off
+variables_order = "GPCS"
+register_globals = Off
+register_argc_argv = Off
+gpc_order = "GPC"
+magic_quotes_gpc = Off
+magic_quotes_runtime = Off
+magic_quotes_sybase = Off
+include_path = ".:/usr/share/php/:/usr/share/php4/:/usr/share/php5/"
+enable_dl = Off
+file_uploads = On
+upload_tmp_dir = "/var/www/syscp-suphp/syscp/"
+upload_max_filesize = 32M
+allow_url_fopen = Off
+session.save_handler = files
+session.save_path = "/var/www/syscp-suphp/syscp/"
+session.use_cookies = 1
+session.name = PHPSESSID
+session.auto_start = 0
+session.cookie_lifetime = 0
+session.cookie_path = /
+session.cookie_domain =
+session.serialize_handler = php
+session.gc_probability = 1
+session.gc_divisor = 1000
+session.gc_maxlifetime = 1440
+session.bug_compat_42 = 0
+session.bug_compat_warn = 1
+session.referer_check =
+session.entropy_length = 16
+session.entropy_file = /dev/urandom
+session.cache_limiter = nocache
+session.cache_expire = 180
+session.use_trans_sid = 0
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_main.cf b/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_main.cf
new file mode 100644
index 0000000..9013dd6
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_main.cf
@@ -0,0 +1,65 @@
+# Postfix directories settings
+command_directory = /usr/sbin
+daemon_directory = /usr/lib/postfix
+queue_directory = /var/spool/postfix
+sample_directory = /etc/postfix
+manpage_directory = /usr/share/man
+readme_directory = /usr/share/doc/postfix-2.1.5-r2/readme
+html_directory = no
+
+# Postfix programs paths settings
+mailq_path = /usr/bin/mailq
+newaliases_path = /usr/bin/newaliases
+sendmail_path = /usr/sbin/sendmail
+
+# General Postfix configuration
+myhostname = <SERVERNAME>
+mydestination = $myhostname, $mydomain, localhost.$myhostname, localhost.$mydomain, localhost
+mynetworks = 127.0.0.0/8
+inet_interfaces = all
+mail_owner = postfix
+setgid_group = postdrop
+smtpd_banner = $myhostname ESMTP Mailserver
+smtpd_helo_required = yes
+append_dot_mydomain = no
+biff = no
+
+# Postfix Debugger configuration
+debug_peer_level = 2
+debugger_command =
+ PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
+ echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
+ >$config_directory/$process_name.$process_id.log & sleep 5
+
+# Postfix performance settings
+default_destination_concurrency_limit = 20
+local_destination_concurrency_limit = 2
+
+# Virtual delivery settings
+virtual_transport = virtual
+virtual_mailbox_base = <VIRTUAL_MAILBOX_BASE>
+virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
+virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
+virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
+virtual_uid_maps = static:<VIRTUAL_UID_MAPS>
+virtual_gid_maps = static:<VIRTUAL_GID_MAPS>
+
+# Local delivery settings
+local_transport = local
+alias_database = hash:/etc/mail/aliases
+alias_maps = $alias_database
+
+# SASL settings
+smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
+smtpd_sasl_auth_enable = yes
+smtpd_sasl_local_domain = $myhostname
+smtpd_sasl_security_options = noanonymous
+broken_sasl_auth_clients = yes
+
+# TLS settings
+#smtpd_use_tls = yes
+#smtpd_tls_cert_file = /etc/ssl/server/<SERVERNAME>.crt
+#smtpd_tls_key_file = /etc/ssl/server/<SERVERNAME>.key
+#smtpd_tls_auth_only = no
+#smtpd_tls_session_cache_timeout = 3600s
+#tls_random_source = dev:/dev/urandom
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf b/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf
new file mode 100644
index 0000000..c921e6f
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_mysql-virtual_alias_maps.cf
@@ -0,0 +1,8 @@
+user = <SQL_UNPRIVILEGED_USER>
+password = <SQL_UNPRIVILEGED_PASSWORD>
+dbname = <SQL_DB>
+table = mail_virtual
+select_field = destination
+where_field = email
+additional_conditions = and destination <> '' and destination <> ' '
+hosts = <SQL_HOST>
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf b/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf
new file mode 100644
index 0000000..4484bee
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_domains.cf
@@ -0,0 +1,8 @@
+user = <SQL_UNPRIVILEGED_USER>
+password = <SQL_UNPRIVILEGED_PASSWORD>
+dbname = <SQL_DB>
+table = panel_domains
+select_field = domain
+where_field = domain
+additional_conditions = and isemaildomain = '1'
+hosts = <SQL_HOST>
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf b/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf
new file mode 100644
index 0000000..7e0f79a
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_postfix_mysql-virtual_mailbox_maps.cf
@@ -0,0 +1,7 @@
+user = <SQL_UNPRIVILEGED_USER>
+password = <SQL_UNPRIVILEGED_PASSWORD>
+dbname = <SQL_DB>
+table = mail_users
+select_field = maildir
+where_field = email
+hosts = <SQL_HOST>
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_sasl2_smtpd.conf b/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_sasl2_smtpd.conf
new file mode 100644
index 0000000..2089cbb
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/postfix/etc_sasl2_smtpd.conf
@@ -0,0 +1,12 @@
+pwcheck_method: auxprop
+auxprop_plugin: sql
+allowanonymouslogin: no
+allowplaintext: yes
+mech_list: PLAIN LOGIN
+password_format: crypt
+sql_engine: mysql
+sql_hostnames: <SQL_HOST>
+sql_user: <SQL_UNPRIVILEGED_USER>
+sql_passwd: <SQL_UNPRIVILEGED_PASSWORD>
+sql_database: <SQL_DB>
+sql_select: SELECT password_enc FROM mail_users where username='%u@%r'
diff --git a/syscp/patches/gentoo-config-files/nodns/gentoo/proftpd/etc_proftpd_proftpd.conf b/syscp/patches/gentoo-config-files/nodns/gentoo/proftpd/etc_proftpd_proftpd.conf
new file mode 100644
index 0000000..5e56215
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/gentoo/proftpd/etc_proftpd_proftpd.conf
@@ -0,0 +1,89 @@
+# Server settings
+ServerName "<SERVERNAME> FTP Server"
+ServerType standalone
+ServerIdent off
+DefaultServer on
+Port 21
+MaxInstances 50
+
+# General settings
+DeferWelcome on
+MultilineRFC2228 on
+ShowSymlinks on
+AllowOverwrite on
+AllowStoreRestart on
+AllowRetrieveRestart on
+UseReverseDNS off
+IdentLookups off
+ListOptions "-al"
+DisplayFirstChdir .message
+
+# Modules settings
+#DelayEngine off
+
+# Timeout settings
+TimeoutLogin 120
+TimeoutNoTransfer 600
+TimeoutStalled 600
+TimeoutIdle 600
+
+# Security settings
+RootLogin off
+RequireValidShell off
+User syscpftpd
+Group syscpftpd
+Umask 133 022
+DefaultRoot ~
+DenyFilter \*.*/
+
+# Per-Directory settings
+<Directory /*>
+Umask 133 022
+AllowOverwrite on
+</Directory>
+
+# SQL settings
+SQLAuthTypes Crypt
+SQLAuthenticate users* groups*
+SQLConnectInfo <SQL_DB>@<SQL_HOST> <SQL_UNPRIVILEGED_USER> <SQL_UNPRIVILEGED_PASSWORD>
+SQLUserInfo ftp_users username password uid gid homedir shell
+SQLGroupInfo ftp_groups groupname gid members
+SQLUserWhereClause "login_enabled = 'y'"
+
+SQLLog PASS login
+SQLNamedQuery login UPDATE "last_login=now(), login_count=login_count+1 WHERE username='%u'" ftp_users
+
+SQLLog RETR download
+SQLNamedQuery download UPDATE "down_count=down_count+1, down_bytes=down_bytes+%b WHERE username='%u'" ftp_users
+
+SQLLog STOR upload
+SQLNamedQuery upload UPDATE "up_count=up_count+1, up_bytes=up_bytes+%b WHERE username='%u'" ftp_users
+
+# TLS settings
+#<IfModule mod_tls.c>
+#TLSEngine on
+#TLSLog /var/log/proftpd-tls.log
+#TLSProtocol SSLv23
+#TLSTimeoutHandshake 120
+# Really important for WinClients
+#TLSOptions NoCertRequest
+#TLSRSACertificateFile /etc/ssl/server/<SERVERNAME>.crt
+#TLSRSACertificateKeyFile /etc/ssl/server/<SERVERNAME>.key
+# Authenticate client that want to use FTP over TLS?
+#TLSVerifyClient off
+# Uncomment the following line to force tls login
+#TLSRequired off
+#</IfModule>
+
+# LOG settings
+# Logging Formats
+LogFormat default "%h %1 %u %t \"%r\" %s %b"
+LogFormat auth "%v [%P] %h %t \"%r\" %s"
+LogFormat write "%h %l %u %t \"%r\" %s %b"
+# Activate Logging
+# all logins
+ExtendedLog /var/log/proftpd-auth.log AUTH auth
+# file/dir access
+ExtendedLog /var/log/proftpd-access.log WRITE,READ write
+# everything (be careful, generates_ very_ big logfiles)
+#ExtendedLog /var/log/proftpd-all.log ALL default
diff --git a/syscp/patches/gentoo-config-files/nodns/syscp-1.2.13-gentoo-admin_configfiles.php-nodns b/syscp/patches/gentoo-config-files/nodns/syscp-1.2.13-gentoo-admin_configfiles.php-nodns
new file mode 100644
index 0000000..1541fa8
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/syscp-1.2.13-gentoo-admin_configfiles.php-nodns
@@ -0,0 +1,266 @@
+<?php
+/**
+ * filename: $Source: /syscp/syscp/admin_configfiles.php,v $
+ * begin: Wednesday, Sep 08, 2004
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version. This program is distributed in the
+ * hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details.
+ *
+ * @author Florian Lippert <flo@redenswert.de>
+ * @copyright (C) 2003-2004 Florian Lippert
+ * @package Panel
+ * @version $Id: admin_configfiles.php,v 1.9 2005/06/15 13:53:58 flo Exp $
+ * Modified to reflect the Gentoo environment by Luca Longinotti <chtekk@gentoo.org>
+ */
+
+ define('AREA', 'admin');
+
+ /**
+ * Include our init.php, which manages Sessions, Language etc.
+ */
+ require("./lib/init.php");
+
+
+ $configfiles = Array
+ (
+ 'gentoo' => Array
+ (
+ 'label' => 'Gentoo',
+ 'daemons' => Array
+ (
+ 'apache' => Array
+ (
+ 'label' => 'Apache2 Webserver (HTTP)',
+ 'commands' => Array
+ (
+ 'touch '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf',
+ 'chown root:0 '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf',
+ 'chmod 0600 '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf',
+ 'echo "Include '.$settings['system']['apacheconf_directory'].'vhosts.d/99_syscp-vhosts.conf" >> /etc/apache2/httpd.conf',
+ 'mkdir -p '.$settings['system']['documentroot_prefix'],
+ 'mkdir -p '.$settings['system']['logfiles_directory']
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add apache2 default',
+ '/etc/init.d/apache2 restart'
+ )
+ ),
+ 'courier' => Array
+ (
+ 'label' => 'Courier-IMAP (POP3/IMAP)',
+ 'files' => Array
+ (
+ 'etc_courier_authlib_authdaemonrc' => '/etc/courier/authlib/authdaemonrc',
+ 'etc_courier_authlib_authmysqlrc' => '/etc/courier/authlib/authmysqlrc',
+ 'etc_courier-imap_pop3d' => '/etc/courier-imap/pop3d',
+ 'etc_courier-imap_imapd' => '/etc/courier-imap/imapd',
+ 'etc_courier-imap_pop3d-ssl' => '/etc/courier-imap/pop3d-ssl',
+ 'etc_courier-imap_imapd-ssl' => '/etc/courier-imap/imapd-ssl'
+ ),
+ 'commands' => Array
+ (
+ 'rm /etc/courier/authlib/authdaemonrc',
+ 'rm /etc/courier/authlib/authmysqlrc',
+ 'rm /etc/courier-imap/pop3d',
+ 'rm /etc/courier-imap/imapd',
+ 'rm /etc/courier-imap/pop3d-ssl',
+ 'rm /etc/courier-imap/imapd-ssl',
+ 'touch /etc/courier/authlib/authdaemonrc',
+ 'touch /etc/courier/authlib/authmysqlrc',
+ 'touch /etc/courier-imap/pop3d',
+ 'touch /etc/courier-imap/imapd',
+ 'touch /etc/courier-imap/pop3d-ssl',
+ 'touch /etc/courier-imap/imapd-ssl',
+ 'chown root:0 /etc/courier/authlib/authdaemonrc',
+ 'chown root:0 /etc/courier/authlib/authmysqlrc',
+ 'chown root:0 /etc/courier-imap/pop3d',
+ 'chown root:0 /etc/courier-imap/imapd',
+ 'chown root:0 /etc/courier-imap/pop3d-ssl',
+ 'chown root:0 /etc/courier-imap/imapd-ssl',
+ 'chmod 0600 /etc/courier/authlib/authdaemonrc',
+ 'chmod 0600 /etc/courier/authlib/authmysqlrc',
+ 'chmod 0600 /etc/courier-imap/pop3d',
+ 'chmod 0600 /etc/courier-imap/imapd',
+ 'chmod 0600 /etc/courier-imap/pop3d-ssl',
+ 'chmod 0600 /etc/courier-imap/imapd-ssl'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add courier-authlib default',
+ 'rc-update add courier-pop3d default',
+ 'rc-update add courier-imapd default',
+ '/etc/init.d/courier-authlib restart',
+ '/etc/init.d/courier-pop3d restart',
+ '/etc/init.d/courier-imapd restart'
+ )
+ ),
+ 'postfix' => Array
+ (
+ 'label' => 'Postfix (MTA)',
+ 'files' => Array
+ (
+ 'etc_postfix_main.cf' => '/etc/postfix/main.cf',
+ 'etc_postfix_mysql-virtual_alias_maps.cf' => '/etc/postfix/mysql-virtual_alias_maps.cf',
+ 'etc_postfix_mysql-virtual_mailbox_domains.cf' => '/etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'etc_postfix_mysql-virtual_mailbox_maps.cf' => '/etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'etc_sasl2_smtpd.conf' => '/etc/sasl2/smtpd.conf'
+ ),
+ 'commands' => Array
+ (
+ 'mkdir -p '.$settings['system']['vmail_homedir'],
+ 'chown -R vmail:vmail '.$settings['system']['vmail_homedir'],
+ 'chmod 0750 '.$settings['system']['vmail_homedir'],
+ 'rm /etc/postfix/main.cf',
+ 'touch /etc/postfix/main.cf',
+ 'touch /etc/postfix/master.cf',
+ 'touch /etc/postfix/mysql-virtual_alias_maps.cf',
+ 'touch /etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'touch /etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'touch /etc/sasl2/smtpd.conf',
+ 'chown root:0 /etc/postfix/main.cf',
+ 'chown root:0 /etc/postfix/master.cf',
+ 'chown root:postfix /etc/postfix/mysql-virtual_alias_maps.cf',
+ 'chown root:postfix /etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'chown root:postfix /etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'chown root:0 /etc/sasl2/smtpd.conf',
+ 'chmod 0600 /etc/postfix/main.cf',
+ 'chmod 0600 /etc/postfix/master.cf',
+ 'chmod 0640 /etc/postfix/mysql-virtual_alias_maps.cf',
+ 'chmod 0640 /etc/postfix/mysql-virtual_mailbox_domains.cf',
+ 'chmod 0640 /etc/postfix/mysql-virtual_mailbox_maps.cf',
+ 'chmod 0600 /etc/sasl2/smtpd.conf'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add postfix default',
+ '/etc/init.d/postfix restart'
+ )
+ ),
+ 'proftpd' => Array
+ (
+ 'label' => 'ProFTPd (FTP)',
+ 'files' => Array
+ (
+ 'etc_proftpd_proftpd.conf' => '/etc/proftpd/proftpd.conf'
+ ),
+ 'commands' => Array
+ (
+ 'touch /etc/proftpd/proftpd.conf',
+ 'chown root:0 /etc/proftpd/proftpd.conf',
+ 'chmod 0600 /etc/proftpd/proftpd.conf'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add proftpd default',
+ '/etc/init.d/proftpd restart'
+ )
+ ),
+ 'cron' => Array
+ (
+ 'label' => 'Crond (cronscript)',
+ 'files' => Array
+ (
+ 'etc_php_syscp-cronjob_php.ini' => '/etc/php/syscp-cronjob/php.ini',
+ 'etc_cron.d_syscp' => '/etc/cron.d/syscp'
+ ),
+ 'commands' => Array
+ (
+ 'touch /etc/cron.d/syscp',
+ 'chown root:0 /etc/cron.d/syscp',
+ 'chmod 0640 /etc/cron.d/syscp',
+ 'mkdir -p /etc/php/syscp-cronjob',
+ 'touch /etc/php/syscp-cronjob/php.ini',
+ 'chown -R root:0 /etc/php/syscp-cronjob',
+ 'chmod 0750 /etc/php/syscp-cronjob',
+ 'chmod 0640 /etc/php/syscp-cronjob/php.ini'
+ ),
+ 'restart' => Array
+ (
+ 'rc-update add vixie-cron default',
+ '/etc/init.d/vixie-cron restart'
+ )
+ )
+ )
+ )
+ );
+
+ /*echo '<pre>';
+ print_r($configfiles);
+ echo '</pre>';*/
+
+ if( ($page == 'configfiles' || $page == 'overview') && $userinfo['change_serversettings'] == '1')
+ {
+ if(isset($_GET['distribution']) && $_GET['distribution']!='' && isset($configfiles[$_GET['distribution']]) && is_array($configfiles[$_GET['distribution']]) &&
+ isset($_GET['daemon']) && $_GET['daemon']!='' && isset($configfiles[$_GET['distribution']]['daemons'][$_GET['daemon']]) && is_array($configfiles[$_GET['distribution']]['daemons'][$_GET['daemon']]))
+ {
+ $distribution = addslashes($_GET['distribution']);
+ $daemon = addslashes($_GET['daemon']);
+
+ if(isset($configfiles[$distribution]['daemons'][$daemon]['commands']) && is_array($configfiles[$distribution]['daemons'][$daemon]['commands']))
+ {
+ $commands = implode("\n", $configfiles[$distribution]['daemons'][$daemon]['commands']);
+ }
+ else
+ {
+ $commands = '';
+ }
+
+ $replace_arr = Array
+ (
+ '<SQL_UNPRIVILEGED_USER>' => $sql['user'],
+ '<SQL_UNPRIVILEGED_PASSWORD>' => 'MYSQL_PASSWORD',
+ '<SQL_DB>' => $sql['db'],
+ '<SQL_HOST>' => $sql['host'],
+ '<SERVERNAME>' => $settings['system']['hostname'],
+ '<SERVERIP>' => $settings['system']['ipaddress'],
+ '<VIRTUAL_MAILBOX_BASE>' => $settings['system']['vmail_homedir'],
+ '<VIRTUAL_UID_MAPS>' => $settings['system']['vmail_uid'],
+ '<VIRTUAL_GID_MAPS>' => $settings['system']['vmail_gid']
+ );
+ $files = '';
+ if(isset($configfiles[$distribution]['daemons'][$daemon]['files']) && is_array($configfiles[$distribution]['daemons'][$daemon]['files']))
+ {
+ while(list($filename, $realname) = each($configfiles[$distribution]['daemons'][$daemon]['files']))
+ {
+ $file_content = implode('', file('./templates/misc/configfiles/'.$distribution.'/'.$daemon.'/'.$filename));
+ $file_content = strtr($file_content, $replace_arr);
+ $file_content = htmlspecialchars($file_content);
+ $numbrows = count(explode("\n", $file_content));
+ eval("\$files.=\"".getTemplate("configfiles/configfiles_file")."\";");
+ }
+ }
+
+ if(isset($configfiles[$distribution]['daemons'][$daemon]['restart']) && is_array($configfiles[$distribution]['daemons'][$daemon]['restart']))
+ {
+ $restart = implode("\n", $configfiles[$distribution]['daemons'][$daemon]['restart']);
+ }
+ else
+ {
+ $restart = '';
+ }
+
+ eval("echo \"".getTemplate("configfiles/configfiles")."\";");
+ }
+ else
+ {
+ $distributions = '';
+ while (list($distribution_name, $distribution_details) = each($configfiles))
+ {
+ $daemons = '';
+ while(list($daemon_name, $daemon_details) = each($distribution_details['daemons']))
+ {
+ eval("\$daemons.=\"".getTemplate("configfiles/choose_daemon")."\";");
+ }
+ eval("\$distributions.=\"".getTemplate("configfiles/choose_distribution")."\";");
+ }
+ eval("echo \"".getTemplate("configfiles/choose")."\";");
+ }
+ }
+
+?>
diff --git a/syscp/patches/gentoo-config-files/nodns/syscp-1.2.13-gentoo-config-nodns-r2.tar.bz2 b/syscp/patches/gentoo-config-files/nodns/syscp-1.2.13-gentoo-config-nodns-r2.tar.bz2
new file mode 100644
index 0000000..92af781
--- /dev/null
+++ b/syscp/patches/gentoo-config-files/nodns/syscp-1.2.13-gentoo-config-nodns-r2.tar.bz2
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/ball.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/ball.gif
new file mode 100644
index 0000000..2a681e4
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/ball.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/cambialingua.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/cambialingua.gif
new file mode 100644
index 0000000..a9baccf
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/cambialingua.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/errore.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/errore.gif
new file mode 100644
index 0000000..694a789
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/errore.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/finesezione.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/finesezione.gif
new file mode 100644
index 0000000..5e26ce7
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/finesezione.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/footer.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/footer.gif
new file mode 100644
index 0000000..ab1a51a
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/footer.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/header.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/header.gif
new file mode 100644
index 0000000..7737ca0
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/header.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/header_r.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/header_r.gif
new file mode 100644
index 0000000..16a8ee2
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/header_r.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/login.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/login.gif
new file mode 100644
index 0000000..07c8014
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/login.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/logininterno.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/logininterno.gif
new file mode 100644
index 0000000..4a368c3
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/logininterno.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/ombra.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/ombra.gif
new file mode 100644
index 0000000..7805f7f
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/ombra.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/order_asc.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/order_asc.gif
new file mode 100644
index 0000000..470e978
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/order_asc.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/order_desc.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/order_desc.gif
new file mode 100644
index 0000000..a2d17da
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/order_desc.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/sezione.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/sezione.gif
new file mode 100644
index 0000000..bd67ead
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/sezione.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/sottosezione.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/sottosezione.gif
new file mode 100644
index 0000000..1396bc3
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/sottosezione.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/titolo.gif b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/titolo.gif
new file mode 100644
index 0000000..c686057
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/titolo.gif
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/valid-xhtml10 b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/valid-xhtml10
new file mode 100644
index 0000000..2275ee6
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/valid-xhtml10
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/vcss b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/vcss
new file mode 100644
index 0000000..020c75a
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/images/vcss
Binary files differ
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins.tpl
new file mode 100644
index 0000000..d411bff
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins.tpl
@@ -0,0 +1,29 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td colspan="9" class="install_titolo"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['admins']}</b></td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">ID&nbsp;&nbsp;<a href="admin_admins.php?page=admins&amp;sortby=loginname&amp;sortorder=desc&amp;s=$s"><img src="../images/order_desc.gif" border="0" alt="" /></a><a href="admin_admins.php?page=admins&amp;sortby=loginname&amp;sortorder=asc&amp;s=$s"><img src="../images/order_asc.gif" border="0" alt="" /></a></td>
+ <td class="campodisplay">{$lng['customer']['name']}&nbsp;&nbsp;<a href="admin_admins.php?page=admins&amp;sortby=name&amp;sortorder=desc&amp;s=$s"><img src="../images/order_desc.gif" border="0" alt="" /></a><a href="admin_admins.php?page=admins&amp;sortby=name&amp;sortorder=asc&amp;s=$s"><img src="../images/order_asc.gif" border="0" alt="" /></a></td>
+ <td class="campodisplay">{$lng['admin']['customers']}<br />{$lng['admin']['domains']}</td>
+ <td class="campodisplay">Space<br />Traffic</td>
+ <td class="campodisplay">MySQL<br />FTP</td>
+ <td class="campodisplay">eMails<br />Subdomains</td>
+ <td class="campodisplay">Accounts<br />Forwarders</td>
+ <td class="campodisplay">Active&nbsp;&nbsp;<a href="admin_admins.php?page=admins&amp;sortby=deactivated&amp;sortorder=desc&amp;s=$s"><img src="../images/order_desc.gif" border="0" alt="" /></a><a href="admin_admins.php?page=admins&amp;sortby=deactivated&amp;sortorder=asc&amp;s=$s"><img src="../images/order_asc.gif" border="0" alt="" /></a></td>
+ <td class="campodisplay">&nbsp;</td>
+ </tr>
+ $admins
+ <if 0 < $pages>
+ <tr>
+ <td colspan="9" class="campodisplay">{$paging}</td>
+ </tr>
+ </if>
+ <tr>
+ <td colspan="9" class="campodisplay_bordosx"><a href="$filename?page=$page&amp;action=add&amp;s=$s">{$lng['admin']['admin_add']}</a></td>
+ </tr>
+ </table>
+ <br />
+ <br />
+$footer
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins_add.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins_add.tpl
new file mode 100644
index 0000000..112e6b1
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins_add.tpl
@@ -0,0 +1,89 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['admin_add']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['username']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="loginname" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['name']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="name" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['email']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="email" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['language']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="def_language">$language_options</select></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['change_serversettings']}</td>
+ <td class="install_campodisplay" nowrap="nowrap">$change_serversettings</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['customers']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="customers" value="0" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['customers_see_all']}</td>
+ <td class="install_campodisplay" nowrap="nowrap">$customers_see_all</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['domains']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="domains" value="0" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['domains_see_all']}</td>
+ <td class="install_campodisplay" nowrap="nowrap">$domains_see_all</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['diskspace']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="diskspace" value="0" maxlength="6" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['traffic']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="traffic" value="0" maxlength="3" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['subdomains']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="subdomains" value="0" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['emails']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="emails" value="0" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['accounts']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="email_accounts" value="0" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['forwarders']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="email_forwarders" value="0" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['ftps']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="ftps" value="0" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['mysqls']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="mysqls" value="0" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['password']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['panel']['save']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins_admin.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins_admin.tpl
new file mode 100644
index 0000000..dd42ebf
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins_admin.tpl
@@ -0,0 +1,11 @@
+<tr>
+ <td class="nomecampo_bordosx">{$row['loginname']}</td>
+ <td class="nomecampo">{$row['name']}</td>
+ <td class="nomecampo"><b><font color="green">{$row['customers_used']}</font></b>/<b><font color="#FD6204">{$row['customers']}</font></b><br /><b><font color="green">{$row['domains_used']}</font></b>/<b><font color="#FD6204">{$row['domains']}</font></b></td>
+ <td class="nomecampo"><b><font color="green">{$row['diskspace_used']}</font></b>/<b><font color="#FD6204">{$row['diskspace']}</font></b> (MB)<br /><b><font color="green">{$row['traffic_used']}</font></b>/<b><font color="#FD6204">{$row['traffic']}</font></b> (GB)</td>
+ <td class="nomecampo"><b><font color="green">{$row['mysqls_used']}</font></b>/<b><font color="#FD6204">{$row['mysqls']}</font></b><br /><b><font color="green">{$row['ftps_used']}</font></b>/<b><font color="#FD6204">{$row['ftps']}</font></b></td>
+ <td class="nomecampo"><b><font color="green">{$row['emails_used']}</font></b>/<b><font color="#FD6204">{$row['emails']}</font></b><br /><b><font color="green">{$row['subdomains_used']}</font></b>/<b><font color="#FD6204">{$row['subdomains']}</font></b></td>
+ <td class="nomecampo"><b><font color="green">{$row['email_accounts_used']}</font></b>/<b><font color="#FD6204">{$row['email_accounts']}</font></b><br /><b><font color="green">{$row['email_forwarders_used']}</font></b>/<b><font color="#FD6204">{$row['email_forwarders']}</font></b></td>
+ <td class="nomecampo">{$row['deactivated']}</td>
+ <td class="nomecampo"><a href="$filename?s=$s&amp;page=$page&amp;action=delete&amp;id={$row['adminid']}">{$lng['panel']['delete']}</a><br /><a href="$filename?s=$s&amp;page=$page&amp;action=edit&amp;id={$row['adminid']}">{$lng['panel']['edit']}</a></td>
+</tr> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins_edit.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins_edit.tpl
new file mode 100644
index 0000000..245f6c9
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/admins/admins_edit.tpl
@@ -0,0 +1,94 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <input type="hidden" name="id" value="$id" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['admin_edit']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['username']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['loginname']}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['name']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="name" value="{$result['name']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['email']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="email" value="{$result['email']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['language']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="def_language">$language_options</select></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['change_serversettings']}</td>
+ <td class="install_campodisplay" nowrap="nowrap">$change_serversettings</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['customers']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="customers" value="{$result['customers']}" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['customers_see_all']}</td>
+ <td class="install_campodisplay" nowrap="nowrap">$customers_see_all</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['domains']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="domains" value="{$result['domains']}" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['domains_see_all']}</td>
+ <td class="install_campodisplay" nowrap="nowrap">$domains_see_all</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['diskspace']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="diskspace" value="{$result['diskspace']}" maxlength="6" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['traffic']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="traffic" value="{$result['traffic']}" maxlength="3" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['subdomains']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="subdomains" value="{$result['subdomains']}" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['emails']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="emails" value="{$result['emails']}" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['accounts']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="email_accounts" value="{$result['email_accounts']}" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['forwarders']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="email_forwarders" value="{$result['email_forwarders']}" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['ftps']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="ftps" value="{$result['ftps']}" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['mysqls']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="mysqls" value="{$result['mysqls']}" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['deactivated_user']}?</td>
+ <td class="install_campodisplay" nowrap="nowrap">$deactivated</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['password']} ({$lng['panel']['emptyfornochanges']}):</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="newpassword" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['panel']['save']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/choose.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/choose.tpl
new file mode 100644
index 0000000..1bb6450
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/choose.tpl
@@ -0,0 +1,10 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella_40">
+ <tr>
+ <td class="install_titolo"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['configfiles']['serverconfiguration']}</b></td>
+ </tr>
+ $distributions
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/choose_daemon.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/choose_daemon.tpl
new file mode 100644
index 0000000..bc0d257
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/choose_daemon.tpl
@@ -0,0 +1,2 @@
+&nbsp;&nbsp;&nbsp;&raquo;&nbsp;<a href="$filename?distribution=$distribution_name&amp;daemon=$daemon_name&amp;s=$s">{$daemon_details['label']}</a>
+<br /> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/choose_distribution.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/choose_distribution.tpl
new file mode 100644
index 0000000..cfb64d6
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/choose_distribution.tpl
@@ -0,0 +1,12 @@
+<tr>
+ <td class="campodisplay_bordosx">
+ <table cellpadding="5" cellspacing="0" border="0" align="center">
+ <tr>
+ <td class="install_titolo">&raquo;&nbsp;{$distribution_details['label']}</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">$daemons</td>
+ </tr>
+ </table>
+ </td>
+</tr> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/configfiles.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/configfiles.tpl
new file mode 100644
index 0000000..27360f7
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/configfiles.tpl
@@ -0,0 +1,24 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$configfiles[$distribution]['daemons'][$daemon]['label']}</b></td>
+ </tr>
+ <if $commands != ''>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['admin']['configfiles']['commands']}<br /><br /><textarea class="textarea_bordo" rows="6" cols="70" readonly="readonly">$commands</textarea></td>
+ </tr>
+ </if>
+ <if $files != ''>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['admin']['configfiles']['files']}<br />{$files}</td>
+ </tr>
+ </if>
+ <if $restart != ''>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['admin']['configfiles']['restart']}<br /><br /><textarea class="textarea_bordo" rows="3" cols="70" readonly="readonly">$restart</textarea></td>
+ </tr>
+ </if>
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/configfiles_file.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/configfiles_file.tpl
new file mode 100644
index 0000000..1d57e10
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/configfiles/configfiles_file.tpl
@@ -0,0 +1 @@
+<p><b>$realname:</b><br /><textarea class="textarea_bordo" rows="<if $numbrows <= 8 >{$numbrows}</if><if 8 < $numbrows >8</if>" cols="70" readonly="readonly">$file_content</textarea></p> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers.tpl
new file mode 100644
index 0000000..2851d7f
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers.tpl
@@ -0,0 +1,39 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td colspan="10" class="install_titolo"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['customers']}</b></td>
+ </tr>
+ <if ($userinfo['customers_used'] < $userinfo['customers'] || $userinfo['customers'] == '-1') && 15 < $userinfo['customers_used']>
+ <tr>
+ <td colspan="10" class="campodisplay_bordosx"><a href="$filename?page=$page&amp;action=add&amp;s=$s">{$lng['admin']['customer_add']}</a></td>
+ </tr>
+ </if>
+ <tr>
+ <td class="campodisplay_bordosx">ID&nbsp;&nbsp;<a href="admin_customers.php?page=customers&amp;sortby=loginname&amp;sortorder=desc&amp;s=$s"><img src="../images/order_desc.gif" border="0" alt="" /></a><a href="admin_customers.php?page=customers&amp;sortby=loginname&amp;sortorder=asc&amp;s=$s"><img src="../images/order_asc.gif" border="0" alt="" /></a></td>
+ <if $userinfo['customers_see_all']>
+ <td class="campodisplay">{$lng['admin']['admin']}&nbsp;&nbsp;<a href="admin_customers.php?page=customers&amp;sortby=adminid&amp;sortorder=desc&amp;s=$s"><img src="../images/order_desc.gif" border="0" alt="" /></a><a href="admin_customers.php?page=customers&amp;sortby=adminid&amp;sortorder=asc&amp;s=$s"><img src="../images/order_asc.gif" border="0" alt="" /></a></td>
+ </if>
+ <td class="campodisplay">{$lng['customer']['name']}</td>
+ <td class="campodisplay">Domains</td>
+ <td class="campodisplay">Space Traffic</td>
+ <td class="campodisplay">MySQL<br />FTP</td>
+ <td class="campodisplay">eMails<br />Subdomains</td>
+ <td class="campodisplay">Accounts<br />Forwarders</td>
+ <td class="campodisplay">Active&nbsp;&nbsp;<a href="admin_customers.php?page=customers&amp;sortby=deactivated&amp;sortorder=desc&amp;s=$s"><img src="../images/order_desc.gif" border="0" alt="" /></a><a href="admin_customers.php?page=customers&amp;sortby=deactivated&amp;sortorder=asc&amp;s=$s"><img src="../images/order_asc.gif" border="0" alt="" /></a></td>
+ <td class="campodisplay">&nbsp;</td>
+ </tr>
+ $customers
+ <if 0 < $pages>
+ <tr>
+ <td colspan="10" class="campodisplay">{$paging}</td>
+ </tr>
+ </if>
+ <if $userinfo['customers_used'] < $userinfo['customers'] || $userinfo['customers'] == '-1'>
+ <tr>
+ <td colspan="10" class="campodisplay_bordosx"><a href="$filename?page=$page&amp;action=add&amp;s=$s">{$lng['admin']['customer_add']}</a></td>
+ </tr>
+ </if>
+ </table>
+ <br />
+ <br />
+$footer
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers_add.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers_add.tpl
new file mode 100644
index 0000000..977ae7e
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers_add.tpl
@@ -0,0 +1,109 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['customer_add']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['username']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="loginname" value="" maxlength="10" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['name']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="name" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['firstname']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="firstname" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['company']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="company" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['street']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="street" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['zipcode']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="zipcode" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['city']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="city" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['phone']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="phone" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['fax']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="fax" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['email']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="email" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['customernumber']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="customernumber" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['language']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="def_language">$language_options</select></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['diskspace']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="diskspace" value="0" maxlength="6" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['traffic']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="traffic" value="0" maxlength="3" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['subdomains']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="subdomains" value="0" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['emails']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="emails" value="0" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['accounts']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="email_accounts" value="0" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['forwarders']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="email_forwarders" value="0" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['ftps']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="ftps" value="0" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['mysqls']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="mysqls" value="0" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['stdsubdomain_add']}?</td>
+ <td class="install_campodisplay" nowrap="nowrap">$createstdsubdomain</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['password']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['sendpassword']}?</td>
+ <td class="install_campodisplay" nowrap="nowrap">$sendpassword</td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['panel']['save']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers_customer.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers_customer.tpl
new file mode 100644
index 0000000..9233b0e
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers_customer.tpl
@@ -0,0 +1,18 @@
+<tr>
+ <td class="nomecampo_bordosx"><a href="$filename?s=$s&amp;page=$page&amp;action=su&amp;id={$row['customerid']}" target="_blank">{$row['loginname']}</a></td>
+ <if $userinfo['customers_see_all']>
+ <td class="nomecampo">{$row['adminname']}</td>
+ </if>
+ <td class="nomecampo">{$row['name']}<br />{$row['firstname']}</td>
+ <td class="nomecampo">{$row['domains']}</td>
+ <td class="nomecampo">
+ <span<if $row['diskspace'] < $row['diskspace_used'] && $row['diskspace'] != 'UL'> style="color:red"</if><if $row['diskspace_used'] < $row['diskspace'] || $row['diskspace'] == 'UL'> style="color:green"</if>><b>{$row['diskspace_used']}</b>/<b><font color="#FD6204">{$row['diskspace']}</font></b></span> (MB)
+ <br />
+ <span<if $row['traffic'] < $row['traffic_used'] && $row['traffic'] != 'UL'> style="color:red"</if><if $row['traffic_used'] < $row['traffic'] || $row['traffic'] == 'UL'> style="color:green"</if>><b>{$row['traffic_used']}</b>/<b><font color="#FD6204">{$row['traffic']}</font></b></span> (GB)
+ </td>
+ <td class="nomecampo"><b><font color="green">{$row['mysqls_used']}</font></b>/<b><font color="#FD6204">{$row['mysqls']}</font></b><br /><b><font color="green">{$row['ftps_used']}</font></b>/<b><font color="#FD6204">{$row['ftps']}</font></b></td>
+ <td class="nomecampo"><b><font color="green">{$row['emails_used']}</font></b>/<b><font color="#FD6204">{$row['emails']}</font></b><br /><b><font color="green">{$row['subdomains_used']}</font></b>/<b><font color="#FD6204">{$row['subdomains']}</font></b></td>
+ <td class="nomecampo"><b><font color="green">{$row['email_accounts_used']}</font></b>/<b><font color="#FD6204">{$row['email_accounts']}</font></b><br /><b><font color="green">{$row['email_forwarders_used']}</font></b>/<b><font color="#FD6204">{$row['email_forwarders']}</font></b></td>
+ <td class="nomecampo"><center>{$row['deactivated']}</center></td>
+ <td class="nomecampo"><a href="$filename?s=$s&amp;page=$page&amp;action=delete&amp;id={$row['customerid']}">{$lng['panel']['delete']}</a><br /><a href="$filename?s=$s&amp;page=$page&amp;action=edit&amp;id={$row['customerid']}">{$lng['panel']['edit']}</a></td>
+</tr>
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers_edit.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers_edit.tpl
new file mode 100644
index 0000000..297b966
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/customers/customers_edit.tpl
@@ -0,0 +1,114 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <input type="hidden" name="id" value="$id" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['customer_edit']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['username']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['loginname']}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['documentroot']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['documentroot']}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['name']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="name" value="{$result['name']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['firstname']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="firstname" value="{$result['firstname']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['company']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="company" value="{$result['company']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['street']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="street" value="{$result['street']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['zipcode']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="zipcode" value="{$result['zipcode']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['city']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="city" value="{$result['city']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['phone']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="phone" value="{$result['phone']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['fax']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="fax" value="{$result['fax']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['email']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="email" value="{$result['email']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['customernumber']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="customernumber" value="{$result['customernumber']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['language']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="def_language">$language_options</select></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['diskspace']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="diskspace" value="{$result['diskspace']}" maxlength="6" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['traffic']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="traffic" value="{$result['traffic']}" maxlength="3" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['subdomains']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="subdomains" value="{$result['subdomains']}" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['emails']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="emails" value="{$result['emails']}" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['accounts']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="email_accounts" value="{$result['email_accounts']}" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['forwarders']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="email_forwarders" value="{$result['email_forwarders']}" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['ftps']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="ftps" value="{$result['ftps']}" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['mysqls']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="mysqls" value="{$result['mysqls']}" maxlength="9" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['stdsubdomain_add']}?<br />({$result['loginname']}.{$settings['system']['hostname']})</td>
+ <td class="install_campodisplay" nowrap="nowrap">$createstdsubdomain</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['deactivated_user']}?</td>
+ <td class="install_campodisplay" nowrap="nowrap">$deactivated</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['password']} ({$lng['panel']['emptyfornochanges']}):</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="newpassword" value="" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['panel']['save']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains.tpl
new file mode 100644
index 0000000..d2ac311
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains.tpl
@@ -0,0 +1,32 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="6"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['domains']}</b></td>
+ </tr>
+ <if ($userinfo['domains_used'] < $userinfo['domains'] || $userinfo['domains'] == '-1') && 15 < $userinfo['domains_used']>
+ <tr>
+ <td class="campodisplay_bordosx" colspan="6"><a href="$filename?page=$page&amp;action=add&amp;s=$s">{$lng['admin']['domain_add']}</a></td>
+ </tr>
+ </if>
+ <tr>
+ <td class="campodisplay_bordosx">ID&nbsp;&nbsp;<a href="admin_domains.php?page=domains&amp;sortby=id&amp;sortorder=desc&amp;s=$s"><img src="../images/order_desc.gif" border="0" alt="" /></a><a href="admin_domains.php?page=domains&amp;sortby=id&amp;sortorder=asc&amp;s=$s"><img src="../images/order_asc.gif" border="0" alt="" /></a></td>
+ <td class="campodisplay">Domain&nbsp;&nbsp;<a href="admin_domains.php?page=domains&amp;sortby=domain&amp;sortorder=desc&amp;s=$s"><img src="../images/order_desc.gif" border="0" alt="" /></a><a href="admin_domains.php?page=domains&amp;sortby=domain&amp;sortorder=asc&amp;s=$s"><img src="../images/order_asc.gif" border="0" alt="" /></a></td>
+ <td class="campodisplay">{$lng['admin']['ipsandports']['ip']}&nbsp;&nbsp;<a href="admin_domains.php?page=domains&amp;sortby=ip&amp;sortorder=desc&amp;s=$s"><img src="../images/order_desc.gif" border="0" alt="" /></a><a href="admin_domains.php?page=domains&amp;sortby=ip&amp;sortorder=asc&amp;s=$s"><img src="../images/order_asc.gif" border="0" alt="" /></a></td>
+ <td class="campodisplay">{$lng['admin']['customer']}&nbsp;&nbsp;<a href="admin_domains.php?page=domains&amp;sortby=loginname&amp;sortorder=desc&amp;s=$s"><img src="../images/order_desc.gif" border="0" alt="" /></a><a href="admin_domains.php?page=domains&amp;sortby=loginname&amp;sortorder=asc&amp;s=$s"><img src="../images/order_asc.gif" border="0" alt="" /></a></td>
+ <td class="campodisplay" colspan="2">&nbsp;</td>
+ </tr>
+ $domains
+ <if 0 < $pages>
+ <tr>
+ <td colspan="6" class="campodisplay">{$paging}</td>
+ </tr>
+ </if>
+ <if $userinfo['domains_used'] < $userinfo['domains'] || $userinfo['domains'] == '-1'>
+ <tr>
+ <td class="campodisplay_bordosx" colspan="6"><a href="$filename?page=$page&amp;action=add&amp;s=$s">{$lng['admin']['domain_add']}</a></td>
+ </tr>
+ </if>
+ </table>
+ <br />
+ <br />
+$footer
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains_add.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains_add.tpl
new file mode 100644
index 0000000..ee29269
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains_add.tpl
@@ -0,0 +1,77 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['domain_add']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['customer']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="customerid">$customers</select></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">Domain:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="domain" value="" size="60" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['domains']['aliasdomain']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="alias">$domains</select></td>
+ </tr>
+ <if $userinfo['change_serversettings'] == '1'>
+ <tr>
+ <td class="install_nomecampo">DocumentRoot:<br />({$lng['panel']['emptyfordefault']})</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="documentroot" value="" size="60" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">IP/Port:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select name="ipandport">$ipsandports</select></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">Nameserver:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$isbinddomain</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">Zonefile:<br />({$lng['panel']['emptyfordefault']})</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="zonefile" value="" size="60" /></td>
+ </tr>
+ </if>
+ <tr>
+ <td class="install_nomecampo">Emaildomain:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$isemaildomain</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['subdomainforemail']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$subcanemaildomain</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['domain_edit']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$caneditdomain</td>
+ </tr>
+ <if $userinfo['change_serversettings'] == '1'>
+ <tr>
+ <td class="install_nomecampo">OpenBasedir:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$openbasedir</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">Safemode:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$safemode</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">Speciallogfile:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$speciallogfile</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['ownvhostsettings']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><textarea class="textarea_nobordo" rows="12" cols="60" name="specialsettings"></textarea></td>
+ </tr>
+ </if>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['panel']['save']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains_domain.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains_domain.tpl
new file mode 100644
index 0000000..156d25b
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains_domain.tpl
@@ -0,0 +1,8 @@
+<tr>
+ <td class="nomecampo_bordosx"><font size="-1">{$row['id']}</font></td>
+ <td class="nomecampo"><font size="-1">{$row['domain']}</font></td>
+ <td class="nomecampo"><font size="-1">{$row['ipandport']}</font></td>
+ <td class="nomecampo"><font size="-1">{$row['name']} {$row['firstname']} ({$row['loginname']})</font></td>
+ <td class="nomecampo"><if (!$standardsubdomain && !$aliasdomain)><a href="$filename?s=$s&amp;page=$page&amp;action=delete&amp;id={$row['id']}">{$lng['panel']['delete']}</a></if>&nbsp;</td>
+ <td class="nomecampo"><a href="$filename?s=$s&amp;page=$page&amp;action=edit&amp;id={$row['id']}">{$lng['panel']['edit']}</a></td>
+</tr>
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains_edit.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains_edit.tpl
new file mode 100644
index 0000000..894d188
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/domains/domains_edit.tpl
@@ -0,0 +1,80 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <input type="hidden" name="id" value="$id" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['domain_edit']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['customer']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['name']} {$result['firstname']} ({$result['loginname']})</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">Domain:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['domain']}</td>
+ </tr>
+ <if $alias_check == '0'>
+ <tr>
+ <td class="install_nomecampo">{$lng['domains']['aliasdomain']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="alias">$domains</select></td>
+ </tr>
+ </if>
+ <if $userinfo['change_serversettings'] == '1'>
+ <tr>
+ <td class="install_nomecampo">DocumentRoot:<br />({$lng['panel']['emptyfordefault']})</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="documentroot" value="{$result['documentroot']}" size="60" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">IP/Port:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select name="ipandport">$ipsandports</select></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">Nameserver:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$isbinddomain</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">Zonefile:<br />({$lng['panel']['emptyfordefault']})</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="zonefile" value="{$result['zonefile']}" size="60" /></td>
+ </tr>
+ </if>
+ <tr>
+ <td class="install_nomecampo">Emaildomain:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$isemaildomain</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['subdomainforemail']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$subcanemaildomain</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['domain_edit']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$caneditdomain</td>
+ </tr>
+ <if $userinfo['change_serversettings'] == '1'>
+ <tr>
+ <td class="install_nomecampo">OpenBasedir:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$openbasedir</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">Safemode:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$safemode</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">Speciallogfile:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><b>$speciallogfile</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['ownvhostsettings']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><textarea class="textarea_nobordo" rows="12" cols="60" name="specialsettings">{$result['specialsettings']}</textarea></td>
+ </tr>
+ </if>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['panel']['save']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/index/change_language.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/index/change_language.tpl
new file mode 100644
index 0000000..c2c45d9
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/index/change_language.tpl
@@ -0,0 +1,23 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="none" rowspan="4"><img src="../images/cambialingua.gif" alt="" /></td>
+ </tr>
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['main']['changelanguage']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['language']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="def_language">$language_options</select></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['menue']['main']['changelanguage']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/index/change_password.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/index/change_password.tpl
new file mode 100644
index 0000000..c4a2aa2
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/index/change_password.tpl
@@ -0,0 +1,31 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="none" rowspan="6"><img src="../images/logininterno.gif" alt="" /></td>
+ </tr>
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['main']['changepassword']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['changepassword']['old_password']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="old_password" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['changepassword']['new_password']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="new_password" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['changepassword']['new_password_confirm']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="new_password_confirm" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['menue']['main']['changepassword']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/index/index.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/index/index.tpl
new file mode 100644
index 0000000..d0c0937
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/index/index.tpl
@@ -0,0 +1,91 @@
+$header
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella">
+ <tr>
+ <td colspan="2" class="install_titolo"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['ressourcedetails']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['customers']}:</td>
+ <td class="install_campodisplay">{$overview['number_customers']} ({$userinfo['customers']})</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['domains']}:</td>
+ <td class="install_campodisplay">{$overview['number_domains']} ({$userinfo['domains']})</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['diskspace']}:</td>
+ <td class="install_campodisplay">{$overview['diskspace_used']} ({$userinfo['diskspace_used']}/{$userinfo['diskspace']})</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['traffic']}:</td>
+ <td class="install_campodisplay">{$overview['traffic_used']} ({$userinfo['traffic_used']}/{$userinfo['traffic']})</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['mysqls']}:</td>
+ <td class="install_campodisplay">{$overview['mysqls_used']} ({$userinfo['mysqls_used']}/{$userinfo['mysqls']})</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['emails']}:</td>
+ <td class="install_campodisplay">{$overview['emails_used']} ({$userinfo['emails_used']}/{$userinfo['emails']})</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['accounts']}:</td>
+ <td class="install_campodisplay">{$overview['email_accounts_used']} ({$userinfo['email_accounts_used']}/{$userinfo['email_accounts']})</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['forwarders']}:</td>
+ <td class="install_campodisplay">{$overview['email_forwarders_used']} ({$userinfo['email_forwarders_used']}/{$userinfo['email_forwarders']})</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['ftps']}:</td>
+ <td class="install_campodisplay">{$overview['ftps_used']} ({$userinfo['ftps_used']}/{$userinfo['ftps']})</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['customer']['subdomains']}:</td>
+ <td class="install_campodisplay">{$overview['subdomains_used']} ({$userinfo['subdomains_used']}/{$userinfo['subdomains']})</td>
+ </tr>
+ <tr>
+ <td colspan="2" class="install_titolo"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['systemdetails']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">Serversoftware:</td>
+ <td class="install_campodisplay">{$_SERVER['SERVER_SOFTWARE']}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">PHP-Version:</td>
+ <td class="install_campodisplay">$phpversion</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">PHP-Memory-Limit:</td>
+ <td class="install_campodisplay">$phpmemorylimit</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">MySQL Server Version:</td>
+ <td class="install_campodisplay">$mysqlserverversion</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">MySQL Client Version:</td>
+ <td class="install_campodisplay">$mysqlclientversion</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">Webserver Interface:</td>
+ <td class="install_campodisplay">$webserverinterface</td>
+ </tr>
+ <tr>
+ <td colspan="2" class="install_titolo"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['syscpdetails']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['cronlastrun']}:</td>
+ <td class="install_campodisplay">$cronlastrun</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['installedversion']}:</td>
+ <td class="install_campodisplay">$version</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['latestversion']}:</td>
+ <td class="install_campodisplay"><a href="$lookfornewversion_link">$lookfornewversion_lable</a></td>
+ </tr>
+ </table>
+ <br />
+ <br />
+$footer
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports.tpl
new file mode 100644
index 0000000..8237d55
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports.tpl
@@ -0,0 +1,30 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="4"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['ipsandports']['ipsandports']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="4" nowrap="nowrap">
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ {$lng['admin']['ipsandports']['default']}:
+ <select name="defaultipandport">$ipsandports_default</select>
+ <input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['panel']['save']}" />
+ </form>
+ </td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">ID</td>
+ <td class="campodisplay">{$lng['admin']['ipsandports']['ipandport']}</td>
+ <td class="campodisplay" colspan="2">&nbsp;</td>
+ </tr>
+ $ipsandports
+ <tr>
+ <td class="campodisplay_bordosx" colspan="4"><a href="$filename?page=$page&amp;action=add&amp;s=$s">{$lng['admin']['ipsandports']['add']}</a></td>
+ </tr>
+ </table>
+ <br />
+ <br />
+$footer
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports_add.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports_add.tpl
new file mode 100644
index 0000000..47595f9
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports_add.tpl
@@ -0,0 +1,25 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_40">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['ipsandports']['add']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['ipsandports']['ip']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="ip" value="" size="15" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['ipsandports']['port']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="port" value="" size="5" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['panel']['save']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports_edit.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports_edit.tpl
new file mode 100644
index 0000000..0fe5ab8
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports_edit.tpl
@@ -0,0 +1,26 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <input type="hidden" name="id" value="$id" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_40">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['ipsandports']['edit']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['ipsandports']['ip']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="ip" value="{$result['ip']}" size="15" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['ipsandports']['port']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="port" value="{$result['port']}" size="5" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['panel']['save']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports_ipandport.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports_ipandport.tpl
new file mode 100644
index 0000000..c61f8bc
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/ipsandports/ipsandports_ipandport.tpl
@@ -0,0 +1,6 @@
+<tr>
+ <td class="nomecampo_bordosx"><font size="-1">{$row['id']}</font></td>
+ <td class="nomecampo"><font size="-1">{$row['ip']}:{$row['port']}</font></td>
+ <td class="nomecampo"><a href="$filename?s=$s&amp;page=$page&amp;action=delete&amp;id={$row['id']}">{$lng['panel']['delete']}</a></td>
+ <td class="nomecampo"><a href="$filename?s=$s&amp;page=$page&amp;action=edit&amp;id={$row['id']}">{$lng['panel']['edit']}</a></td>
+</tr>
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/settings/settings.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/settings/settings.tpl
new file mode 100644
index 0000000..343d8f4
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/settings/settings.tpl
@@ -0,0 +1,121 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['serversettings']} {$lng['panel']['edit']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['session_timeout']['title']}:</b><br />{$lng['serversettings']['session_timeout']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="session_sessiontimeout" value="{$settings['session']['sessiontimeout']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['maxloginattempts']['title']}:</b><br />{$lng['serversettings']['maxloginattempts']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="login_maxloginattempts" value="{$settings['login']['maxloginattempts']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['deactivatetime']['title']}:</b><br />{$lng['serversettings']['deactivatetime']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="login_deactivatetime" value="{$settings['login']['deactivatetime']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['accountprefix']['title']}:</b><br />{$lng['serversettings']['accountprefix']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="customer_accountprefix" value="{$settings['customer']['accountprefix']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['mysqlprefix']['title']}:</b><br />{$lng['serversettings']['mysqlprefix']['description']} ({$settings['customer']['accountprefix']}X{$settings['customer']['mysqlprefix']}Y)</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="customer_mysqlprefix" value="{$settings['customer']['mysqlprefix']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['ftpprefix']['title']}:</b><br />{$lng['serversettings']['ftpprefix']['description']} ({$settings['customer']['accountprefix']}X{$settings['customer']['ftpprefix']}Y)</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="customer_ftpprefix" value="{$settings['customer']['ftpprefix']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['documentroot_prefix']['title']}:</b><br />{$lng['serversettings']['documentroot_prefix']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="system_documentroot_prefix" value="{$settings['system']['documentroot_prefix']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['logfiles_directory']['title']}:</b><br />{$lng['serversettings']['logfiles_directory']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="system_logfiles_directory" value="{$settings['system']['logfiles_directory']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['ipaddress']['title']}:</b><br />{$lng['serversettings']['ipaddress']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select name="system_ipaddress">$system_ipaddress</select></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['hostname']['title']}:</b><br />{$lng['serversettings']['hostname']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="system_hostname" value="{$settings['system']['hostname']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['apacheconf_directory']['title']}:</b><br />{$lng['serversettings']['apacheconf_directory']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="system_apacheconf_directory" value="{$settings['system']['apacheconf_directory']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['apacheconf_filename']['title']}:</b><br />{$lng['serversettings']['apacheconf_filename']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="system_apacheconf_filename" value="{$settings['system']['apacheconf_filename']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['apachereload_command']['title']}:</b><br />{$lng['serversettings']['apachereload_command']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="system_apachereload_command" value="{$settings['system']['apachereload_command']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['bindconf_directory']['title']}:</b><br />{$lng['serversettings']['bindconf_directory']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="system_bindconf_directory" value="{$settings['system']['bindconf_directory']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['bindreload_command']['title']}:</b><br />{$lng['serversettings']['bindreload_command']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="system_bindreload_command" value="{$settings['system']['bindreload_command']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['binddefaultzone']['title']}:</b><br />{$lng['serversettings']['binddefaultzone']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="system_binddefaultzone" value="{$settings['system']['binddefaultzone']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['vmail_uid']['title']}:</b><br />{$lng['serversettings']['vmail_uid']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="system_vmail_uid" value="{$settings['system']['vmail_uid']}" maxlength="5" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['vmail_gid']['title']}:</b><br />{$lng['serversettings']['vmail_gid']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="system_vmail_gid" value="{$settings['system']['vmail_gid']}" maxlength="5" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['vmail_homedir']['title']}:</b><br />{$lng['serversettings']['vmail_homedir']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="system_vmail_homedir" value="{$settings['system']['vmail_homedir']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['adminmail']['title']}:</b><br />{$lng['serversettings']['adminmail']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="panel_adminmail" value="{$settings['panel']['adminmail']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['paging']['title']}:</b><br />{$lng['serversettings']['paging']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="panel_paging" value="{$settings['panel']['paging']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['login']['language']}:</b><br />{$lng['serversettings']['language']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="panel_standardlanguage">$languages2</select></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['pathedit']['title']}:</b><br />{$lng['serversettings']['pathedit']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="panel_pathedit">$pathedit</select></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['phpmyadmin_url']['title']}:</b><br />{$lng['serversettings']['phpmyadmin_url']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="panel_phpmyadmin_url" value="{$settings['panel']['phpmyadmin_url']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['webmail_url']['title']}:</b><br />{$lng['serversettings']['webmail_url']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="panel_webmail_url" value="{$settings['panel']['webmail_url']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['serversettings']['webftp_url']['title']}:</b><br />{$lng['serversettings']['webftp_url']['description']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="panel_webftp_url" value="{$settings['panel']['webftp_url']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['panel']['save']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates.tpl
new file mode 100644
index 0000000..8b202c7
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates.tpl
@@ -0,0 +1,20 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td colspan="4" class="install_titolo"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['templates']['templates']}</b></td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['login']['language']}</td>
+ <td class="campodisplay">{$lng['admin']['templates']['action']}</td>
+ <td class="campodisplay" colspan="2">&nbsp;</td>
+ </tr>
+ $templates
+ <if $add>
+ <tr>
+ <td colspan="4" class="campodisplay_bordosx"><a href="$filename?page=$page&amp;action=add&amp;s=$s">{$lng['admin']['templates']['template_add']}</a></td>
+ </tr>
+ </if>
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_add_1.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_add_1.tpl
new file mode 100644
index 0000000..ff6c74d
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_add_1.tpl
@@ -0,0 +1,21 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_40">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['templates']['template_add']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['language']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="language">$language_options</select></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="prepare" value="prepare" /><input class="bottone" type="submit" value="{$lng['panel']['next']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_add_2.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_add_2.tpl
new file mode 100644
index 0000000..c23e688
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_add_2.tpl
@@ -0,0 +1,66 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['templates']['template_add']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['language']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><b>$language</b><input type="hidden" name="language" value="$language" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['templates']['action']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="template">$template_options</select></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['templates']['subject']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="subject" value="" maxlength="255" size="100" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['templates']['mailbody']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><textarea class="textarea_nobordo" name="mailbody" rows="20" cols="75"></textarea></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['panel']['save']}" /></td>
+ </tr>
+ </table>
+ <br />
+ <br />
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="2"><b>&nbsp;<img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['templates']['template_replace_vars']}</b></td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx" colspan="2"><b>{$lng['admin']['templates']['createcustomer']}</b></td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx"><i>{FIRSTNAME}</i>:</td>
+ <td class="nomecampo">{$lng['admin']['templates']['FIRSTNAME']}</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx"><i>{NAME}</i>:</td>
+ <td class="nomecampo">{$lng['admin']['templates']['NAME']}</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx"><i>{USERNAME}</i>:</td>
+ <td class="nomecampo">{$lng['admin']['templates']['USERNAME']}</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx"><i>{PASSWORD}</i>:</td>
+ <td class="nomecampo">{$lng['admin']['templates']['PASSWORD']}</td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx" colspan="2"><b>{$lng['admin']['templates']['pop_success']}</b></td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx"><i>{EMAIL}</i>:</td>
+ <td class="nomecampo">{$lng['admin']['templates']['EMAIL']}</td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_edit.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_edit.tpl
new file mode 100644
index 0000000..34f3778
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_edit.tpl
@@ -0,0 +1,68 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <input type="hidden" name="subjectid" value="$subjectid" />
+ <input type="hidden" name="mailbodyid" value="$mailbodyid" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['templates']['template_edit']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['language']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><b>{$result['language']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['templates']['action']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><b>$template</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['templates']['subject']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="subject" value="$subject" maxlength="255" size="100" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['admin']['templates']['mailbody']}: *</td>
+ <td class="install_campodisplay" nowrap="nowrap"><textarea class="textarea_nobordo" name="mailbody" rows="20" cols="75">$mailbody</textarea></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['panel']['save']}" /></td>
+ </tr>
+ </table>
+ <br />
+ <br />
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="2"><b>&nbsp;<img src="../images/titolo.gif" alt="" />&nbsp;{$lng['admin']['templates']['template_replace_vars']}</b></td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx" colspan="2"><b>{$lng['admin']['templates']['createcustomer']}</b></td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx"><i>{FIRSTNAME}</i>:</td>
+ <td class="nomecampo">{$lng['admin']['templates']['FIRSTNAME']}</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx"><i>{NAME}</i>:</td>
+ <td class="nomecampo">{$lng['admin']['templates']['NAME']}</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx"><i>{USERNAME}</i>:</td>
+ <td class="nomecampo">{$lng['admin']['templates']['USERNAME']}</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx"><i>{PASSWORD}</i>:</td>
+ <td class="nomecampo">{$lng['admin']['templates']['PASSWORD']}</td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx" colspan="2"><b>{$lng['admin']['templates']['pop_success']}</b></td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx"><i>{EMAIL}</i>:</td>
+ <td class="nomecampo">{$lng['admin']['templates']['EMAIL']}</td>
+ </tr>
+ </table>
+ </form>
+<br />
+<br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_template.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_template.tpl
new file mode 100644
index 0000000..a5e0c2b
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/admin/templates/templates_template.tpl
@@ -0,0 +1,6 @@
+<tr>
+ <td class="nomecampo_bordosx">{$language}</td>
+ <td class="nomecampo">{$template}</td>
+ <td class="nomecampo"><a href="$filename?s=$s&amp;page=$page&amp;action=delete&amp;subjectid=$subjectid&amp;mailbodyid=$mailbodyid">{$lng['panel']['delete']}</a></td>
+ <td class="nomecampo"><a href="$filename?s=$s&amp;page=$page&amp;action=edit&amp;subjectid=$subjectid&amp;mailbodyid=$mailbodyid">{$lng['panel']['edit']}</a></td>
+</tr> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domainlist.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domainlist.tpl
new file mode 100644
index 0000000..e31e042
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domainlist.tpl
@@ -0,0 +1,30 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="4"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['domains']['domainsettings']}</b></td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['domains']['domainname']}</td>
+ <td class="campodisplay">{$lng['panel']['path']}</td>
+ <td class="campodisplay" colspan="2">&nbsp;</td>
+ </tr>
+ <if ($userinfo['subdomains_used'] < $userinfo['subdomains'] || $userinfo['subdomains'] == '-1') && 15 < $domains_count && $parentdomains_count != 0 >
+ <tr>
+ <td class="campodisplay_bordosx" colspan="4"><a href="$filename?page=domains&amp;action=add&amp;s=$s">{$lng['domains']['subdomain_add']}</a></td>
+ </tr>
+ </if>
+ $domains
+ <if 0 < $pages>
+ <tr>
+ <td colspan="4" class="campodisplay">{$paging}</td>
+ </tr>
+ </if>
+ <if ($userinfo['subdomains_used'] < $userinfo['subdomains'] || $userinfo['subdomains'] == '-1') && $parentdomains_count != 0 >
+ <tr>
+ <td class="campodisplay_bordosx" colspan="4"><a href="$filename?page=domains&amp;action=add&amp;s=$s">{$lng['domains']['subdomain_add']}</a></td>
+ </tr>
+ </if>
+ </table>
+ <br />
+ <br />
+$footer
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains.tpl
new file mode 100644
index 0000000..fed081b
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains.tpl
@@ -0,0 +1,12 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['domains']['domains']}</b></td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['domains']['description']}</td>
+ </tr>
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_add.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_add.tpl
new file mode 100644
index 0000000..a75f21e
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_add.tpl
@@ -0,0 +1,29 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['domains']['subdomain_add']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['domains']['domainname']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="subdomain" value="" size="15" maxlength="50" /> <b>.</b> <select class="tendina_nobordo" name="domain">$domains</select></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['domains']['aliasdomain']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="alias">$aliasdomains</select></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['panel']['path']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$pathSelect}</td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['domains']['subdomain_add']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_delimiter.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_delimiter.tpl
new file mode 100644
index 0000000..dd3e5ba
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_delimiter.tpl
@@ -0,0 +1,3 @@
+<tr>
+ <td class="titolo" colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;<b>{$row['domain']}</b></td>
+</tr> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_domain.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_domain.tpl
new file mode 100644
index 0000000..8df2e43
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_domain.tpl
@@ -0,0 +1,6 @@
+<tr>
+ <td class="nomecampo_bordosx">{$row['domain']}</td>
+ <td class="nomecampo"><if $row['aliasdomain'] == ''>{$row['documentroot']}</if><if $row['aliasdomain'] != ''>{$lng['domains']['aliasdomain']} {$row['aliasdomain']}</if></td>
+ <td class="nomecampo"><if $row['caneditdomain'] == '1'><a href="$filename?page=domains&amp;action=edit&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['edit']}</a></if></td>
+ <td class="nomecampo"><if $row['parentdomainid'] != '0' && !$aliasdomain><a href="$filename?page=domains&amp;action=delete&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['delete']}</a></if></td>
+</tr> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_edit.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_edit.tpl
new file mode 100644
index 0000000..4c31697
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/domains/domains_edit.tpl
@@ -0,0 +1,44 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <input type="hidden" name="id" value="$id" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['domains']['subdomain_edit']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['domains']['domainname']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['domain']}</td>
+ </tr>
+ <if $alias_check == '0'>
+ <tr>
+ <td class="install_nomecampo">{$lng['domains']['aliasdomain']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="alias">$domains</select></td>
+ </tr>
+ </if>
+ <tr>
+ <td class="install_nomecampo">{$lng['panel']['path']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$pathSelect}</td>
+ </tr>
+ <if $result['parentdomainid'] == '0' && $userinfo['subdomains'] != '0' >
+ <tr>
+ <td class="install_nomecampo">{$lng['domains']['wildcarddomain']}</td>
+ <td class="install_campodisplay" nowrap="nowrap">$iswildcarddomain</td>
+ </tr>
+ </if>
+ <if $result['subcanemaildomain'] == '1' && $result['parentdomainid'] != '0' >
+ <tr>
+ <td class="install_nomecampo">Emaildomain:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$isemaildomain</td>
+ </tr>
+ </if>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['panel']['save']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/account_add.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/account_add.tpl
new file mode 100644
index 0000000..56e366c
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/account_add.tpl
@@ -0,0 +1,26 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <input type="hidden" name="id" value="$id" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['emails']['account_add']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['emails']['emailaddress']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['email_full']}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['password']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['emails']['account_add']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/account_changepw.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/account_changepw.tpl
new file mode 100644
index 0000000..b2f3b10
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/account_changepw.tpl
@@ -0,0 +1,26 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <input type="hidden" name="id" value="$id" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['main']['changepassword']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['emails']['emailaddress']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['email_full']}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['password']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['menue']['main']['changepassword']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/email.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/email.tpl
new file mode 100644
index 0000000..f49a7a0
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/email.tpl
@@ -0,0 +1,12 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['email']['email']}</b></td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['emails']['description']}</td>
+ </tr>
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails.tpl
new file mode 100644
index 0000000..69dd6e2
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails.tpl
@@ -0,0 +1,27 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="6"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['email']['emails']}</b></td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['emails']['emailaddress']}</td>
+ <td class="campodisplay">{$lng['emails']['forwarders']}</td>
+ <td class="campodisplay">{$lng['emails']['account']}</td>
+ <td class="campodisplay">{$lng['emails']['catchall']}</td>
+ <td class="campodisplay" colspan="2">&nbsp;</td>
+ </tr>
+ <if ($userinfo['emails_used'] < $userinfo['emails'] || $userinfo['emails'] == '-1') && 15 < $emails_count && $emaildomains_count !=0 >
+ <tr>
+ <td class="campodisplay_bordosx" colspan="6"><a href="$filename?page={$page}&amp;action=add&amp;s=$s">{$lng['emails']['emails_add']}</a></td>
+ </tr>
+ </if>
+ $accounts
+ <if ($userinfo['emails_used'] < $userinfo['emails'] || $userinfo['emails'] == '-1') && $emaildomains_count !=0 >
+ <tr>
+ <td class="campodisplay_bordosx" colspan="6"><a href="$filename?page={$page}&amp;action=add&amp;s=$s">{$lng['emails']['emails_add']}</a></td>
+ </tr>
+ </if>
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_add.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_add.tpl
new file mode 100644
index 0000000..4c8636e
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_add.tpl
@@ -0,0 +1,25 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['emails']['emails_add']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['emails']['emailaddress']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="email_part" value="" size="15" /> @ <select class="tendina_nobordo" name="domain">$domains</select></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['emails']['iscatchall']}</td>
+ <td class="install_campodisplay" nowrap="nowrap">$iscatchall</td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['emails']['emails_add']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_domain.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_domain.tpl
new file mode 100644
index 0000000..3c01c0b
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_domain.tpl
@@ -0,0 +1,3 @@
+<tr>
+ <td class="titolo" colspan="6">&nbsp;&nbsp;&nbsp;&nbsp;<b>{$domainname}</b></td>
+</tr> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_edit.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_edit.tpl
new file mode 100644
index 0000000..e5c5853
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_edit.tpl
@@ -0,0 +1,40 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['emails']['emails_edit']}</b></td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['emails']['emailaddress']}:</td>
+ <td class="nomecampo" nowrap="nowrap">{$result['email_full']}</td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['emails']['account']}:</td>
+ <td class="nomecampo" nowrap="nowrap">
+ <if $result['popaccountid'] != 0>
+ {$lng['panel']['yes']} [<a href="$filename?page=accounts&amp;action=changepw&amp;id={$result['id']}&amp;s=$s">{$lng['menue']['main']['changepassword']}</a>] [<a href="$filename?page=accounts&amp;action=delete&amp;id={$result['id']}&amp;s=$s">{$lng['emails']['account_delete']}</a>]
+ </if>
+ <if $result['popaccountid'] == 0>
+ {$lng['panel']['no']} [<a href="$filename?page=accounts&amp;action=add&amp;id={$result['id']}&amp;s=$s">{$lng['emails']['account_add']}</a>]
+ </if>
+ </td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['emails']['catchall']}:</td>
+ <td class="nomecampo" nowrap="nowrap">
+ <if $result['iscatchall'] != 0>
+ {$lng['panel']['yes']}
+ </if>
+ <if $result['iscatchall'] == 0>
+ {$lng['panel']['no']}
+ </if>
+ [<a href="$filename?page=$page&amp;action=togglecatchall&amp;id={$result['id']}&amp;s=$s">{$lng['panel']['toggle']}</a>]
+ </td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['emails']['forwarders']} ({$forwarders_count}):</td>
+ <td class="nomecampo">$forwarders<a href="$filename?page=forwarders&amp;action=add&amp;id={$result['id']}&amp;s=$s">{$lng['emails']['forwarder_add']}</a></td>
+ </tr>
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_edit_forwarder.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_edit_forwarder.tpl
new file mode 100644
index 0000000..3800fd6
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_edit_forwarder.tpl
@@ -0,0 +1,2 @@
+$destination [<a href="$filename?page=forwarders&amp;action=delete&amp;id={$result['id']}&amp;forwarderid={$forwarderid}&amp;s=$s">{$lng['panel']['delete']}</a>]
+<br /> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_email.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_email.tpl
new file mode 100644
index 0000000..4c74758
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/emails_email.tpl
@@ -0,0 +1,8 @@
+<tr>
+ <td class="nomecampo_bordosx">{$row['email_full']}</td>
+ <td class="nomecampo">{$row['destination']}</td>
+ <td class="nomecampo"><if $row['popaccountid'] != 0>{$lng['panel']['yes']}</if><if $row['popaccountid'] == 0>{$lng['panel']['no']}</if></td>
+ <td class="nomecampo"><if $row['iscatchall'] != 0>{$lng['panel']['yes']}</if><if $row['iscatchall'] == 0>{$lng['panel']['no']}</if></td>
+ <td class="nomecampo"><a href="$filename?page={$page}&amp;action=edit&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['edit']}</a></td>
+ <td class="nomecampo"><a href="$filename?page={$page}&amp;action=delete&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['delete']}</a></td>
+</tr> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/forwarder_add.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/forwarder_add.tpl
new file mode 100644
index 0000000..7410d14
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/email/forwarder_add.tpl
@@ -0,0 +1,26 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <input type="hidden" name="id" value="$id" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['emails']['forwarder_add']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['emails']['from']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['email_full']}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['emails']['to']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="destination" size="30" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['emails']['forwarder_add']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/extras.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/extras.tpl
new file mode 100644
index 0000000..0fa7bf4
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/extras.tpl
@@ -0,0 +1,12 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['extras']['extras']}</b></td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['extras']['description']}</td>
+ </tr>
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess.tpl
new file mode 100644
index 0000000..03e776f
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess.tpl
@@ -0,0 +1,21 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="7"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['extras']['pathoptions']}</b></td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['panel']['path']}</td>
+ <td class="campodisplay">{$lng['extras']['view_directory']}</td>
+ <td class="campodisplay">{$lng['extras']['error404path']}</td>
+ <td class="campodisplay">{$lng['extras']['error403path']}</td>
+ <td class="campodisplay">{$lng['extras']['error500path']}</td>
+ <td class="campodisplay" colspan="2">&nbsp;</td>
+ </tr>
+ $htaccess
+ <tr>
+ <td class="campodisplay_bordosx" colspan="7"><a href="$filename?page=htaccess&amp;action=add&amp;s=$s">{$lng['extras']['pathoptions_add']}</a></td>
+ </tr>
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess_add.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess_add.tpl
new file mode 100644
index 0000000..93f3ca3
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess_add.tpl
@@ -0,0 +1,37 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['extras']['pathoptions_add']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['panel']['path']}:</b></td>
+ <td class="install_campodisplay" nowrap="nowrap">{$pathSelect}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['extras']['directory_browsing']}:</b></td>
+ <td class="install_campodisplay" nowrap="nowrap">$options_indexes</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['extras']['errordocument404path']}:</b><br />{$lng['panel']['emptyfordefault']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="error404path" value="" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['extras']['errordocument403path']}:</b><br />{$lng['panel']['emptyfordefault']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="error403path" value="" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['extras']['errordocument500path']}:</b><br />{$lng['panel']['emptyfordefault']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="error500path" value="" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['extras']['pathoptions_add']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess_edit.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess_edit.tpl
new file mode 100644
index 0000000..5f0e3b7
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess_edit.tpl
@@ -0,0 +1,38 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <input type="hidden" name="id" value="$id" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['extras']['pathoptions_edit']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['panel']['path']}:</b></td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['path']}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['extras']['directory_browsing']}:</b></td>
+ <td class="install_campodisplay" nowrap="nowrap">$options_indexes</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['extras']['errordocument404path']}:</b><br />{$lng['panel']['emptyfordefault']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="error404path" value="{$result['error404path']}" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['extras']['errordocument403path']}:</b><br />{$lng['panel']['emptyfordefault']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="error403path" value="{$result['error403path']}" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo"><b>{$lng['extras']['errordocument500path']}:</b><br />{$lng['panel']['emptyfordefault']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="error500path" value="{$result['error500path']}" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['extras']['pathoptions_edit']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess_htaccess.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess_htaccess.tpl
new file mode 100644
index 0000000..3577809
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htaccess_htaccess.tpl
@@ -0,0 +1,9 @@
+<tr>
+ <td class="nomecampo_bordosx">{$row['path']}</td>
+ <td class="nomecampo">{$row['options_indexes']}</td>
+ <td class="nomecampo">{$row['error404path']}</td>
+ <td class="nomecampo">{$row['error403path']}</td>
+ <td class="nomecampo">{$row['error500path']}</td>
+ <td class="nomecampo"><a href="$filename?page=htaccess&amp;action=edit&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['edit']}</a></td>
+ <td class="nomecampo"><a href="$filename?page=htaccess&amp;action=delete&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['delete']}</a></td>
+</tr> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds.tpl
new file mode 100644
index 0000000..0899db9
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds.tpl
@@ -0,0 +1,18 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="4"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['extras']['directoryprotection']}</b></td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['login']['username']}</td>
+ <td class="campodisplay">{$lng['panel']['path']}</td>
+ <td class="campodisplay" colspan="2">&nbsp;</td>
+ </tr>
+ $htpasswds
+ <tr>
+ <td class="campodisplay_bordosx" colspan="4"><a href="$filename?page=htpasswds&amp;action=add&amp;s=$s">{$lng['extras']['directoryprotection_add']}</a></td>
+ </tr>
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds_add.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds_add.tpl
new file mode 100644
index 0000000..bab5063
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds_add.tpl
@@ -0,0 +1,29 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['extras']['directoryprotection_add']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['panel']['path']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$pathSelect}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['username']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="username" size="30" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['password']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" size="30" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['extras']['directoryprotection_add']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds_edit.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds_edit.tpl
new file mode 100644
index 0000000..39bbbb9
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds_edit.tpl
@@ -0,0 +1,30 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <input type="hidden" name="id" value="$id" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['main']['changepassword']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['panel']['path']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['path']}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['username']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['username']}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['password']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['menue']['main']['changepassword']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds_htpasswd.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds_htpasswd.tpl
new file mode 100644
index 0000000..fb9b004
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/extras/htpasswds_htpasswd.tpl
@@ -0,0 +1,6 @@
+<tr>
+ <td class="nomecampo_bordosx">{$row['username']}</td>
+ <td class="nomecampo">{$row['path']}</td>
+ <td class="nomecampo"><a href="$filename?page=htpasswds&amp;action=edit&amp;id={$row['id']}&amp;s=$s">{$lng['menue']['main']['changepassword']}</a></td>
+ <td class="nomecampo"><a href="$filename?page=htpasswds&amp;action=delete&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['delete']}</a></td>
+</tr> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts.tpl
new file mode 100644
index 0000000..3502729
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts.tpl
@@ -0,0 +1,30 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="4"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['ftp']['accounts']}</b></td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['login']['username']}</td>
+ <td class="campodisplay">{$lng['panel']['path']}</td>
+ <td class="campodisplay" colspan="2">&nbsp;</td>
+ </tr>
+ <if ($userinfo['ftps_used'] < $userinfo['ftps'] || $userinfo['ftps'] == '-1') && 15 < $ftps_count >
+ <tr>
+ <td class="campodisplay_bordosx" colspan="4"><a href="$filename?page=accounts&amp;action=add&amp;s=$s">{$lng['ftp']['account_add']}</a></td>
+ </tr>
+ </if>
+ $accounts
+ <if 0 < $pages>
+ <tr>
+ <td colspan="4" class="campodisplay">{$paging}</td>
+ </tr>
+ </if>
+ <if ($userinfo['ftps_used'] < $userinfo['ftps'] || $userinfo['ftps'] == '-1') >
+ <tr>
+ <td class="campodisplay_bordosx" colspan="4"><a href="$filename?page=accounts&amp;action=add&amp;s=$s">{$lng['ftp']['account_add']}</a></td>
+ </tr>
+ </if>
+ </table>
+ <br />
+ <br />
+$footer
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts_account.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts_account.tpl
new file mode 100644
index 0000000..5c637cd
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts_account.tpl
@@ -0,0 +1,6 @@
+<tr>
+ <td class="nomecampo_bordosx">{$row['username']}</td>
+ <td class="nomecampo">{$row['documentroot']}</td>
+ <td class="nomecampo"><a href="$filename?page=accounts&amp;action=edit&amp;id={$row['id']}&amp;s=$s">{$lng['menue']['main']['changepassword']}</a></td>
+ <td class="nomecampo"><a href="$filename?page=accounts&amp;action=delete&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['delete']}</a></td>
+</tr> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts_add.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts_add.tpl
new file mode 100644
index 0000000..24d6cf8
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts_add.tpl
@@ -0,0 +1,25 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['ftp']['account_add']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['panel']['path']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$pathSelect}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['password']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" size="30" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['ftp']['account_add']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts_edit.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts_edit.tpl
new file mode 100644
index 0000000..ffc75de
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/accounts_edit.tpl
@@ -0,0 +1,26 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <input type="hidden" name="id" value="$id" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['main']['changepassword']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['username']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['username']}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['password']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['menue']['main']['changepassword']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/ftp.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/ftp.tpl
new file mode 100644
index 0000000..4ea0215
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/ftp/ftp.tpl
@@ -0,0 +1,12 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['ftp']['ftp']}</b></td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['ftp']['description']}</td>
+ </tr>
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/index/change_language.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/index/change_language.tpl
new file mode 100644
index 0000000..c2c45d9
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/index/change_language.tpl
@@ -0,0 +1,23 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="none" rowspan="4"><img src="../images/cambialingua.gif" alt="" /></td>
+ </tr>
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['main']['changelanguage']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['language']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><select class="tendina_nobordo" name="def_language">$language_options</select></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottone" type="submit" value="{$lng['menue']['main']['changelanguage']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/index/change_password.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/index/change_password.tpl
new file mode 100644
index 0000000..7aeebde
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/index/change_password.tpl
@@ -0,0 +1,34 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="none" rowspan="7"><img src="../images/logininterno.gif" alt="" /></td>
+ </tr>
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['main']['changepassword']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['changepassword']['old_password']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="old_password" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['changepassword']['new_password']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="new_password" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['changepassword']['new_password_confirm']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="new_password_confirm" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo" colspan="2"><input type="checkbox" name="change_main_ftp" value="true" />{$lng['changepassword']['also_change_ftp']}</td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['menue']['main']['changepassword']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/index/index.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/index/index.tpl
new file mode 100644
index 0000000..22bb133
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/index/index.tpl
@@ -0,0 +1,76 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['index']['customerdetails']}</b></td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['customer']['name']}:</td>
+ <td class="campodisplay">{$userinfo['firstname']} {$userinfo['name']}</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['customer']['company']}:</td>
+ <td class="campodisplay">{$userinfo['company']}</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['customer']['street']}:</td>
+ <td class="campodisplay">{$userinfo['street']}</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['customer']['zipcode']}/{$lng['customer']['city']}:</td>
+ <td class="campodisplay">{$userinfo['zipcode']} {$userinfo['city']}</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['customer']['email']}:</td>
+ <td class="campodisplay">{$userinfo['email']}</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_nobordobasso">{$lng['customer']['customernumber']}:</td>
+ <td class="campodisplay_nobordobasso">{$userinfo['customernumber']}</td>
+ </tr>
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['index']['accountdetails']}</b></td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['login']['username']}:</td>
+ <td class="campodisplay">{$userinfo['loginname']}</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['customer']['domains']}:</td>
+ <td class="campodisplay">$domains</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['customer']['subdomains']}:</td>
+ <td class="campodisplay">{$userinfo['subdomains_used']} ({$userinfo['subdomains']})</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['customer']['diskspace']}:</td>
+ <td class="campodisplay">{$userinfo['diskspace_used']} ({$userinfo['diskspace']})</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['customer']['traffic']} ($month):</td>
+ <td class="campodisplay">{$userinfo['traffic_used']} ({$userinfo['traffic']})</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['customer']['emails']}:</td>
+ <td class="campodisplay">{$userinfo['emails_used']} ({$userinfo['emails']})</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['customer']['accounts']}:</td>
+ <td class="campodisplay">{$userinfo['email_accounts_used']} ({$userinfo['email_accounts']})</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['customer']['forwarders']}:</td>
+ <td class="campodisplay">{$userinfo['email_forwarders_used']} ({$userinfo['email_forwarders']})</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['customer']['mysqls']}:</td>
+ <td class="campodisplay">{$userinfo['mysqls_used']} ({$userinfo['mysqls']})</td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['customer']['ftps']}:</td>
+ <td class="campodisplay">{$userinfo['ftps_used']} ({$userinfo['ftps']})</td>
+ </tr>
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysql.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysql.tpl
new file mode 100644
index 0000000..29bcfeb
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysql.tpl
@@ -0,0 +1,12 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['mysql']['mysql']}</b></td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">{$lng['mysql']['description']}</td>
+ </tr>
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls.tpl
new file mode 100644
index 0000000..ffa7c27
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls.tpl
@@ -0,0 +1,25 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+ <td class="install_titolo" colspan="4"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['mysql']['databases']}</b></td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['mysql']['databasename']}</td>
+ <td class="campodisplay">{$lng['mysql']['databasedescription']}</td>
+ <td class="campodisplay" colspan="2">&nbsp;</td>
+ </tr>
+ <if ($userinfo['mysqls_used'] < $userinfo['mysqls'] || $userinfo['mysqls'] == '-1') && 15 < $mysqls_count >
+ <tr>
+ <td class="campodisplay_bordosx" colspan="4"><a href="$filename?page=mysqls&amp;action=add&amp;s=$s">{$lng['mysql']['database_create']}</a></td>
+ </tr>
+ </if>
+ $mysqls
+ <if ($userinfo['mysqls_used'] < $userinfo['mysqls'] || $userinfo['mysqls'] == '-1') >
+ <tr>
+ <td class="campodisplay_bordosx" colspan="4"><a href="$filename?page=mysqls&amp;action=add&amp;s=$s">{$lng['mysql']['database_create']}</a></td>
+ </tr>
+ </if>
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls_add.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls_add.tpl
new file mode 100644
index 0000000..c046a8f
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls_add.tpl
@@ -0,0 +1,25 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['mysql']['database_create']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['mysql']['databasedescription']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="description" maxlength="100" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['password']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['mysql']['database_create']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls_database.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls_database.tpl
new file mode 100644
index 0000000..a0d13f3
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls_database.tpl
@@ -0,0 +1,6 @@
+<tr>
+ <td class="nomecampo_bordosx">{$row['databasename']}</td>
+ <td class="nomecampo">{$row['description']}</td>
+ <td class="nomecampo"><a href="$filename?page=mysqls&amp;action=edit&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['edit']}</a></td>
+ <td class="nomecampo"><a href="$filename?page=mysqls&amp;action=delete&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['delete']}</a></td>
+</tr> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls_edit.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls_edit.tpl
new file mode 100644
index 0000000..5f100de
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/customer/mysql/mysqls_edit.tpl
@@ -0,0 +1,30 @@
+$header
+ <form method="post" action="$filename">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="page" value="$page" />
+ <input type="hidden" name="action" value="$action" />
+ <input type="hidden" name="id" value="$id" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['main']['changepassword']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['mysql']['databasename']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['databasename']}</td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['mysql']['databasedescription']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="description" maxlength="100" value="{$result['description']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['changepassword']['new_password_ifnotempty']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['panel']['save']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/footer.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/footer.tpl
new file mode 100644
index 0000000..0c539c0
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/footer.tpl
@@ -0,0 +1,16 @@
+ </td>
+ </tr>
+ </table>
+ <table cellspacing="0" cellpadding="0" border="0" width="100%">
+ <tr>
+ <td width="100%" class="footer">
+ <br />SysCP $version &copy; 2003-2006 by <a href="http://www.syscp.org/" target="_blank">the SysCP Team</a>
+ <br />Templates by <a href="mailto:info@havanastudio.ch">Luca Piona</a> &amp; <a href="mailto:chtekk@gentoo.org">Luca Longinotti</a>
+ <br />&nbsp;
+ <br /><a href="http://validator.w3.org/check?uri=referer" target="_blank"><img src="../images/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" border="0" /></a>&nbsp;&nbsp;<a href="http://jigsaw.w3.org/css-validator/" target="_blank"><img style="border:0;width:88px;height:31px" src="../images/vcss" alt="Valid CSS!" border="0" /></a>
+ <br />&nbsp;
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/header.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/header.tpl
new file mode 100644
index 0000000..4d70ce6
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/header.tpl
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />
+ <link rel="stylesheet" href="templates/maincss.css" type="text/css" />
+ <title>SysCP</title>
+</head>
+<body style="margin: 0; padding: 0;" onload="document.loginform.loginname.focus()">
+<!--
+ We request you retain the full copyright notice below including the link to www.syscp.org.
+ This not only gives respect to the large amount of time given freely by the developers
+ but also helps build interest, traffic and use of SysCP. If you refuse
+ to include even this then support on our forums may be affected.
+ The SysCP Team : 2003-2006
+// -->
+<table cellspacing="0" cellpadding="0" border="0" width="100%">
+ <tr>
+ <td width="800"><img src="../images/header.gif" width="800" height="90" alt="" /></td>
+ <td class="header">&nbsp;</td>
+ </tr>
+</table>
+<table cellspacing="0" cellpadding="0" border="0" width="100%">
+ <tr>
+ <td width="240" valign="top" bgcolor="#EBECF5">$navigation<br /></td>
+ <td width="15" class="linea_ombra">&nbsp;</td>
+ <td valign="top" bgcolor="#FFFFFF">
+ <br />
+ <br />
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/login/login.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/login/login.tpl
new file mode 100644
index 0000000..97ac4d8
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/login/login.tpl
@@ -0,0 +1,33 @@
+$header
+ <br />
+ <br />
+ <br />
+ <form method="post" action="$filename" name="loginform">
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella_40">
+ <tr>
+ <td class="install_titolo" colspan="3"><b><img src="../images/titolo.gif" alt="" />&nbsp;SysCP&nbsp;-&nbsp;Login</b></td>
+ </tr>
+ <tr>
+ <td rowspan="3" class="nomecampo_acenter"><img src="../images/login.gif" alt="" /></td>
+ <td class="nomecampo"><font size="-1">{$lng['login']['username']}:</font></td>
+ <td class="campodisplay"><input type="text" name="loginname" value="" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="nomecampo"><font size="-1">{$lng['login']['password']}:</font></td>
+ <td class="campodisplay"><input type="password" name="password" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="nomecampo"><font size="-1">{$lng['login']['language']}:</font></td>
+ <td class="campodisplay"><select class="tendina_nobordo" name="language">$language_options</select></td>
+ </tr>
+ <tr>
+ <td class="nomecampo_acenter" colspan="3"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['login']['login']}" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+$footer
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/maincss.css b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/maincss.css
new file mode 100644
index 0000000..6b71d74
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/maincss.css
@@ -0,0 +1,244 @@
+body {
+ color : #000000;
+ font-family : Verdana, Arial, Helvetica, sans-serif;
+ font-size : 12px;
+}
+
+.header {
+ background-image : url( '../images/header_r.gif' );
+ background-repeat : repeat-x;
+}
+
+.footer {
+ text-align : center;
+ border-color : #EBECF5;
+ border-style : solid;
+ border-width : 1px;
+ border-right : none;
+ border-left : none;
+ background-image : url( '../images/footer.gif' );
+ background-repeat : repeat-y;
+}
+
+.linea_ombra {
+ background-image : url( '../images/ombra.gif' );
+ background-repeat : repeat-y;
+ background-position : top left;
+}
+
+.sezione {
+ height : 25px;
+ background-image : url( '../images/sezione.gif' );
+}
+
+.sottosezione {
+ height : 25px;
+ background-image : url( '../images/sottosezione.gif' );
+}
+
+.finesezione {
+ height : 25px;
+ background-image : url( '../images/finesezione.gif' );
+}
+
+a,a:visited,a:active {
+ color : #000000;
+ text-decoration : underline;
+}
+
+a:hover {
+ color : #F89826;
+ text-decoration : none;
+}
+
+select,textarea {
+ color : black;
+ text-decoration : none;
+ font-family : Verdana, Arial, Helvetica, sans-serif;
+ font-size : 12px;
+ font-weight : bold;
+ border : 1px solid #B7B7B7;
+ background-color : #C6DEFF;
+}
+
+select.tendina_nobordo {
+ color : black;
+ text-decoration : none;
+ font-family : Verdana, Arial, Helvetica, sans-serif;
+ font-size : 12px;
+ font-weight : bold;
+ border : 0px solid #B7B7B7;
+ background-color : #C6DEFF;
+}
+
+textarea.textarea_nobordo {
+ color : black;
+ text-decoration : none;
+ font-family : Verdana, Arial, Helvetica, sans-serif;
+ font-size : 12px;
+ font-weight : bold;
+ border : 0px solid #B7B7B7;
+ background-color : #C6DEFF;
+}
+
+textarea.textarea_bordo {
+ color : black;
+ text-decoration : none;
+ font-family : Verdana, Arial, Helvetica, sans-serif;
+ font-size : 12px;
+ font-weight : bold;
+ border : 1px solid #B7B7B7;
+ background-color : #C6DEFF;
+}
+
+input {
+ color : black;
+ text-decoration : none;
+ font-family : Verdana, Arial, Helvetica, sans-serif;
+ font-size : 12px;
+ font-weight : bold;
+ border : 0px solid #B7B7B7;
+ background-color : #C6DEFF;
+}
+
+input.bottone {
+ color : black;
+ text-decoration : none;
+ font-family : Verdana, Arial, Helvetica, sans-serif;
+ font-size : 12px;
+ font-weight : bold;
+ border : 1px solid #000000;
+ background-color : #C6DEFF;
+}
+
+.install_tabella {
+ width : 90%;
+}
+
+.install_tabella_60 {
+ width : 60%;
+}
+
+.install_tabella_40 {
+ width : 40%;
+}
+
+.install_titolo {
+ width : 90%;
+ background-color : #ABC9E8;
+ border-color : #000000;
+ border-style : solid;
+ border-width : 1px;
+ text-align : left;
+}
+
+.titolo {
+ background-color : #ABC9E8;
+ border-color : #B7B7B7;
+ border-style : solid;
+ border-width : 1px;
+ border-top : none;
+ text-align : left;
+}
+
+.install_nomecampo {
+ width : 84%;
+ background-color : #EBECF5;
+ border-color : #B7B7B7;
+ border-style : solid;
+ border-width : 1px;
+ text-align : left;
+}
+
+.install_confermacampo {
+ width : 84%;
+ background-color : #EBECF5;
+ border-color : #B7B7B7;
+ border-style : solid;
+ border-width : 1px;
+ text-align : right;
+}
+
+.nomecampo {
+ background-color : #EBECF5;
+ border-color : #B7B7B7;
+ border-style : solid;
+ border-width : 1px;
+ text-align : left;
+ border-top : none;
+ border-left : none;
+}
+
+.nomecampo_nobordobasso {
+ background-color : #EBECF5;
+ border-color : #B7B7B7;
+ border-style : solid;
+ border-width : 1px;
+ text-align : left;
+ border-top : none;
+ border-bottom : none;
+}
+
+.nomecampo_acenter {
+ background-color : #EBECF5;
+ border-color : #B7B7B7;
+ border-style : solid;
+ border-width : 1px;
+ text-align : center;
+ border-top : none;
+}
+
+.nomecampo_acenter_nobordo {
+ height : 30px;
+ background-color : #EBECF5;
+ border-color : #B7B7B7;
+ border-style : solid;
+ border-width : 1px;
+ text-align : center;
+ border-top : none;
+ border-right : none;
+}
+
+.nomecampo_bordosx {
+ background-color : #EBECF5;
+ border-color : #B7B7B7;
+ border-style : solid;
+ border-width : 1px;
+ text-align : left;
+ border-top : none;
+}
+
+.install_campodisplay {
+ width : 6%;
+ background-color : #C6DEFF;
+ border-color : #B7B7B7;
+ border-style : solid;
+ border-width : 1px;
+}
+
+.campodisplay {
+ background-color : #C6DEFF;
+ border-color : #B7B7B7;
+ border-style : solid;
+ border-width : 1px;
+ border-top : none;
+ border-left : none;
+}
+
+.campodisplay_bordosx {
+ background-color : #C6DEFF;
+ border-color : #B7B7B7;
+ border-style : solid;
+ border-width : 1px;
+ border-top : none;
+}
+
+.campodisplay_nobordobasso {
+ background-color : #C6DEFF;
+ border-color : #B7B7B7;
+ border-style : solid;
+ border-width : 1px;
+ border-top : none;
+ border-left : none;
+ border-bottom : none;
+}
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/misc/error.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/misc/error.tpl
new file mode 100644
index 0000000..60f95f3
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/misc/error.tpl
@@ -0,0 +1,13 @@
+$header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b>&nbsp;<img src="../images/titolo.gif" alt="" />&nbsp;{$lng['error']['error']}</b></td>
+ </tr>
+ <tr>
+ <td class="nomecampo_acenter_nobordo"><img src="../images/errore.gif" alt="" /></td>
+ <td class="nomecampo">$error</td>
+ </tr>
+ </table>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/misc/question_yesno.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/misc/question_yesno.tpl
new file mode 100644
index 0000000..a0f3511
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/misc/question_yesno.tpl
@@ -0,0 +1,18 @@
+$header
+ <form action="$yesfile" method="post">
+ <input type="hidden" name="s" value="$s" />
+ <input type="hidden" name="send" value="send" />
+ $hiddenparams
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella_60">
+ <tr>
+ <td class="install_titolo" colspan="2"><b>&nbsp;<img src="../images/titolo.gif" alt="" />&nbsp;{$lng['question']['question']}</b></td>
+ </tr>
+ <tr>
+ <td class="nomecampo_bordosx">$text</td>
+ <td class="nomecampo" nowrap="nowrap"><input type="submit" class="bottone" name="submitbutton" value="{$lng['panel']['yes']}" />&nbsp;<input type="button" class="bottone" value="{$lng['panel']['no']}" onclick="history.back();" /></td>
+ </tr>
+ </table>
+ </form>
+ <br />
+ <br />
+$footer \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/misc/standardcustomer/index.html b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/misc/standardcustomer/index.html
new file mode 100644
index 0000000..82e2710
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/misc/standardcustomer/index.html
@@ -0,0 +1,11 @@
+<html>
+<head>
+ <title>Gentoo-SysCP Defaultpage</title>
+</head>
+<body>
+ <p align="center" style="font-family: Verdana,Helvetica,sans-serif; font-size: 14px;">
+ <br />This domain was created using Gentoo-SysCP.
+ <br />There is no content on this domain yet.
+ </p>
+</body>
+</html> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/navigation_element.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/navigation_element.tpl
new file mode 100644
index 0000000..26e1904
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/navigation_element.tpl
@@ -0,0 +1,12 @@
+<br />
+<table cellspacing="0" cellpadding="0" border="0" width="200" align="center">
+ <tr>
+ <td class="sezione"><b>&nbsp;&nbsp;<img src="../images/titolo.gif" alt="" />&nbsp;$completeLink_ElementTitle</b></td>
+ </tr>
+ <tr>
+ <td class="sottosezione"><br />$navigation_links</td>
+ </tr>
+ <tr>
+ <td class="finesezione">&nbsp;</td>
+ </tr>
+</table> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/navigation_link.tpl b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/navigation_link.tpl
new file mode 100644
index 0000000..fded1da
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/gentoo-syscp-design/templates/navigation_link.tpl
@@ -0,0 +1,2 @@
+&nbsp;&nbsp;<img src="../images/ball.gif" alt="" />&nbsp;{$completeLink}
+<br /> \ No newline at end of file
diff --git a/syscp/patches/gentoo-syscp-design/syscp-1.2.13-gentoo-syscp-design-r3.tar.bz2 b/syscp/patches/gentoo-syscp-design/syscp-1.2.13-gentoo-syscp-design-r3.tar.bz2
new file mode 100644
index 0000000..0994344
--- /dev/null
+++ b/syscp/patches/gentoo-syscp-design/syscp-1.2.13-gentoo-syscp-design-r3.tar.bz2
Binary files differ
diff --git a/syscp/patches/italian-lang/italian.lng.php b/syscp/patches/italian-lang/italian.lng.php
new file mode 100644
index 0000000..951482f
--- /dev/null
+++ b/syscp/patches/italian-lang/italian.lng.php
@@ -0,0 +1,363 @@
+<?php
+/**
+ * filename: $Source: /cvsroot/syscp/syscp/lng/italian.lng.php,v $
+ * begin: Friday, Dec 02, 2005
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version. This program is distributed in the
+ * hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details.
+ *
+ * @author Luca Piona <info@havanastudio.ch> & Luca Longinotti <chtekk@gentoo.org>
+ * @copyright (C) 2005 Luca Piona & Luca Longinotti
+ * @package Language
+ * @version $Id: $
+ */
+
+
+/**
+ * Global
+ */
+$lng['panel']['edit'] = 'Modifica';
+$lng['panel']['delete'] = 'Cancella';
+$lng['panel']['create'] = 'Crea';
+$lng['panel']['save'] = 'Salva';
+$lng['panel']['yes'] = 'Si';
+$lng['panel']['no'] = 'No';
+$lng['panel']['emptyfornochanges'] = 'lasciare vuoro se non si vuole cambiare';
+$lng['panel']['emptyfordefault'] = 'lasciare vuota per l\'impostazione di default';
+$lng['panel']['path'] = 'Percorso';
+$lng['panel']['toggle'] = 'Cambia';
+$lng['panel']['next'] = 'Prossimo';
+$lng['panel']['dirsmissing'] = 'Impossibile trovare o leggere la directory!';
+
+/**
+ * Login
+ */
+$lng['login']['username'] = 'Nome Utente';
+$lng['login']['password'] = 'Password';
+$lng['login']['language'] = 'Lingua';
+$lng['login']['login'] = 'Login';
+$lng['login']['logout'] = 'Logout';
+$lng['login']['profile_lng'] = 'Scegli la lingua';
+
+/**
+ * Customer
+ */
+$lng['customer']['documentroot'] = 'Cartella Principale';
+$lng['customer']['name'] = 'Cognome';
+$lng['customer']['firstname'] = 'Nome';
+$lng['customer']['company'] = 'Ditta';
+$lng['customer']['street'] = 'Via';
+$lng['customer']['zipcode'] = 'CAP';
+$lng['customer']['city'] = 'Città';
+$lng['customer']['phone'] = 'Telefono';
+$lng['customer']['fax'] = 'Fax';
+$lng['customer']['email'] = 'Email';
+$lng['customer']['customernumber'] = 'ID Cliente';
+$lng['customer']['diskspace'] = 'Spazio Web (MB)';
+$lng['customer']['traffic'] = 'Traffico (GB)';
+$lng['customer']['mysqls'] = 'MySQL-Databases';
+$lng['customer']['emails'] = 'Indirizzi eMail';
+$lng['customer']['accounts'] = 'Account eMail';
+$lng['customer']['forwarders'] = 'Reindirizzamenti eMail';
+$lng['customer']['ftps'] = 'FTP-Account';
+$lng['customer']['subdomains'] = 'Sotto-Domini';
+$lng['customer']['domains'] = 'Domini';
+$lng['customer']['unlimited'] = 'illimitati';
+
+/**
+ * Customermenue
+ */
+$lng['menue']['main']['main'] = 'Principale';
+$lng['menue']['main']['changepassword'] = 'Cambia la password';
+$lng['menue']['main']['changelanguage'] = 'Cambia la lingua';
+$lng['menue']['email']['email'] = 'eMail';
+$lng['menue']['email']['emails'] = 'Indirizzi';
+$lng['menue']['email']['webmail'] = 'WebMail';
+$lng['menue']['mysql']['mysql'] = 'MySQL';
+$lng['menue']['mysql']['databases'] = 'Databases';
+$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin';
+$lng['menue']['domains']['domains'] = 'Domini';
+$lng['menue']['domains']['settings'] = 'Opzioni';
+$lng['menue']['ftp']['ftp'] = 'FTP';
+$lng['menue']['ftp']['accounts'] = 'Account';
+$lng['menue']['ftp']['webftp'] = 'WebFTP';
+$lng['menue']['extras']['extras'] = 'Extras';
+$lng['menue']['extras']['directoryprotection'] = 'Cartelle Protette';
+$lng['menue']['extras']['pathoptions'] = 'Opzioni della Directory';
+
+/**
+ * Index
+ */
+$lng['index']['customerdetails'] = 'Dettagli Cliente';
+$lng['index']['accountdetails'] = 'Dettagli dell\'Account';
+
+/**
+ * Change Password
+ */
+$lng['changepassword']['old_password'] = 'Vecchia password';
+$lng['changepassword']['new_password'] = 'Nuova password';
+$lng['changepassword']['new_password_confirm'] = 'Nuova password (verifica)';
+$lng['changepassword']['new_password_ifnotempty'] = 'Nuova password (vuota = non cambia)';
+$lng['changepassword']['also_change_ftp'] = ' cambiare anche la password del principale account FTP';
+
+/**
+ * Domains
+ */
+$lng['domains']['description'] = 'Qui puoi creare (sotto-)domini e cambiare il loro percorso.<br/>Il sistema, dopo ogni cambiamento, necessita di un po\' di tempo per applicare le nuove opzioni.';
+$lng['domains']['domainsettings'] = 'Opzioni del Dominio';
+$lng['domains']['domainname'] = 'Nome del Dominio';
+$lng['domains']['subdomain_add'] = 'Crea un Sotto-Dominio';
+$lng['domains']['subdomain_edit'] = 'Modifica il (sotto)dominio';
+$lng['domains']['wildcarddomain'] = 'Crea una wildcarddomain?';
+$lng['domains']['aliasdomain'] = 'Alias per questo dominio';
+$lng['domains']['noaliasdomain'] = 'Nessun alias per il dominio';
+
+/**
+ * eMails
+ */
+$lng['emails']['description'] = 'Qui puoi creare e cambiare i tuoi indirizzi eMail.<br />Un account è come la bucalettere davanti a casa tua. Se qualcuno ti manda un eMail sarà recapitata all\'interno del tuo account.<br /><br />Per scaricare le tue mail usa le seguenti impostazioni nel tuo programma di posta elettronica: (I dati scritti in <i>italico</i> vanno cambiati con i tuoi!)<br />Hostname: <b><i>Nome del Dominio</i></b><br />Username: <b><i>Nome dell\'Account / Indirizzo eMail</i></b><br />Password: <b><i>La password scelta</i></b>';
+$lng['emails']['emailaddress'] = 'Indirizzo eMail';
+$lng['emails']['emails_add'] = 'Crea Indirizzo eMail';
+$lng['emails']['emails_edit'] = 'Modifica Indirizzo eMail';
+$lng['emails']['catchall'] = 'Catchall';
+$lng['emails']['iscatchall'] = 'Definisci come indirizzo catchall?';
+$lng['emails']['account'] = 'Account';
+$lng['emails']['account_add'] = 'Crea account';
+$lng['emails']['account_delete'] = 'Cancella account';
+$lng['emails']['from'] = 'Da';
+$lng['emails']['to'] = 'Per';
+$lng['emails']['forwarders'] = 'Reindirizzamenti';
+$lng['emails']['forwarder_add'] = 'Crea Reindirizzamento';
+
+/**
+ * FTP
+ */
+$lng['ftp']['description'] = 'Qui puoi creare e modificare i tuoi FTP accounts.<br />I cambiamenti sono effettuati in tempo reale e gli account si possono usare immediatamente.';
+$lng['ftp']['account_add'] = 'Crea un Account';
+
+/**
+ * MySQL
+ */
+$lng['mysql']['description'] = 'Qui puoi creare e cambiare i tuoi Database MySQL.<br />I cambiamenti sono effettuati in tempo reale e i databases si possono usare immediatamente.<br />At the menu A sinistra trovi il tool PhpMyAdmin con il quale potrai amministrare i tuoi databases via web-browser.<br /><br />Per usare i databases nei vistri script php utilizzate le seguenti impostazioni: (I dati scritti in <i>italico</i> vanno cambiati con i tuoi!)<br />Hostname: <b>localhost</b><br />Username: <b><i>Username</i></b><br />Password: <b><i>La password scelta</i></b><br />Database: <b><i>Nome del database';
+$lng['mysql']['databasename'] = 'user/database name';
+$lng['mysql']['databasedescription'] = 'Descrizione database';
+$lng['mysql']['database_create'] = 'Crea database';
+
+/**
+ * Extras
+ */
+$lng['extras']['description'] = 'Qui puoi aggiungere alcune opzioni extra, per esempio settare delle cartelle protette.<br />Il sistema, dopo ogni cambiamento, necessita di un po\' di tempo per applicare le nuove opzioni.';
+$lng['extras']['directoryprotection_add'] = 'Aggiungi protezione cartella';
+$lng['extras']['view_directory'] = 'mostra protezione cartella';
+$lng['extras']['pathoptions_add'] = 'aggiungi opzioni del percorso';
+$lng['extras']['directory_browsing'] = 'directory content browsing';
+$lng['extras']['pathoptions_edit'] = 'Modifica opzioni del percorso';
+$lng['extras']['error404path'] = '404';
+$lng['extras']['error403path'] = '403';
+$lng['extras']['error500path'] = '500';
+$lng['extras']['error401path'] = '401';
+$lng['extras']['errordocument404path'] = 'URL to ErrorDocument 404';
+$lng['extras']['errordocument403path'] = 'URL to ErrorDocument 403';
+$lng['extras']['errordocument500path'] = 'URL to ErrorDocument 500';
+$lng['extras']['errordocument401path'] = 'URL to ErrorDocument 401';
+
+/**
+ * Errors
+ */
+$lng['error']['error'] = 'Errore';
+$lng['error']['directorymustexist'] = 'La cartella %s deve esistere. Per favore creala tramite il tuo client FTP.';
+$lng['error']['filemustexist'] = 'Il file %s deve esistere.';
+$lng['error']['allresourcesused'] = 'Hai già usato tutte le tue risorse.';
+$lng['error']['domains_cantdeletemaindomain'] = 'Non puoi cancellare un dominio usato come dominio eMail.';
+$lng['error']['domains_canteditdomain'] = 'Non puoi modificare questo dominio. È stato disabilitato dall\'admin.';
+$lng['error']['domains_cantdeletedomainwithemail'] = 'Non puoi cancellare un dominio usato come dominio eMail. Cancella prima tutti gli indirizzi eMail.';
+$lng['error']['firstdeleteallsubdomains'] = 'Prima di creare un dominio wildcard cancella tutti i sotto-domini.';
+$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Hai già definito un catchall per questo dominio.';
+$lng['error']['ftp_cantdeletemainaccount'] = 'Non puoi cancellare il tuo account FTP principale';
+$lng['error']['login'] = 'Il nome utente o la password da te immessi sono sbagliati. Per favore riprovaci!';
+$lng['error']['login_blocked'] = 'Questo account è stato sospeso per i troppi tentativi di login falliti. <br />Riprovi tra '.$settings['login']['deactivatetime'].' seconds.';
+$lng['error']['notallreqfieldsorerrors'] = 'Alcuni cambi sono stati lasciati vuoti o riempiti scorrettamente.';
+$lng['error']['oldpasswordnotcorrect'] = 'La vecchia password non è corretta.';
+$lng['error']['youcantallocatemorethanyouhave'] = 'You cannot allocate more resources than you own for yourself.';
+$lng['error']['youcantdeletechangemainadmin'] = 'Non puoi cancellare o modificare l\'admin principale per ragioni di sicurezza.';
+
+$lng['error']['mustbeurl'] = 'You have not typed a valid or complete url (e.g. http://somedomain.com/error404.htm)';
+$lng['error']['invalidpath'] = 'You have not choosen a valid url (maybe problems with the dirlisting?)';
+$lng['error']['stringisempty'] ='Manca il dato nel campo';
+$lng['error']['stringiswrong'] ='Dato sbagliato';
+$lng['error']['myloginname'] = '\''.$lng['login']['username'].'\'';
+$lng['error']['mypassword'] = '\''.$lng['login']['password'].'\'';
+$lng['error']['oldpassword'] = '\''.$lng['changepassword']['old_password'].'\'';
+$lng['error']['newpassword'] = '\''.$lng['changepassword']['new_password'].'\'';
+$lng['error']['newpasswordconfirm']= '\''.$lng['changepassword']['new_password_confirm'].'\'';
+$lng['error']['newpasswordconfirmerror']='La nuova password non corrisponde alla vecchia';
+$lng['error']['myname'] = '\''.$lng['customer']['name'].'\'';
+$lng['error']['myfirstname'] = '\''.$lng['customer']['firstname'].'\'';
+$lng['error']['emailadd'] = '\''.$lng['customer']['email'].'\'';
+$lng['error']['mydomain'] = '\'Domain\'';
+$lng['error']['mydocumentroot'] = '\'Documentroot\'';
+$lng['error']['loginnameexists']= 'Il nome login %s esiste già';
+$lng['error']['emailiswrong']= 'L\'indirizzo eMail %s contiene caratteri invalidi o è incompleto';
+$lng['error']['loginnameiswrong']= 'Il nome login %s contiene caratteri non validi';
+$lng['error']['userpathcombinationdupe']='La combinazione tra nome utente e percorso esiste già';
+$lng['error']['patherror']='Errore Generale! Il percorso non può essere vuoto';
+$lng['error']['errordocpathdupe']='Le opzioni per il percorso %s esistono già';
+$lng['error']['adduserfirst']='Per favore crea prima un utente';
+$lng['error']['domainalreadyexists']= 'Il dominio %s è già assegnato ad un cliente';
+$lng['error']['nolanguageselect']='Nessuna lingua selezionata.';
+$lng['error']['nosubjectcreate']='Devi definire un titolo per questo Mail-Template.';
+$lng['error']['nomailbodycreate']='Devi definiro un testo per questo mail template.';
+$lng['error']['templatenotfound']='Il template non è stato trovato.';
+$lng['error']['alltemplatesdefined']='Non puoi definire altri template, tutte le lingue sono già supportate.';
+$lng['error']['wwwnotallowed']='www non ê accettato come sotto-dominio.';
+$lng['error']['subdomainiswrong']='Il sotto-dominio %s contiene caratteri invalidi.';
+$lng['error']['domaincantbeempty']='Il nome dominio non può essere vuoto.';
+$lng['error']['domainexistalready']='Il dominio %s esiste già.';
+$lng['error']['domainisaliasorothercustomer']='The selected alias domain is either itself an alias domain or belongs to another customer.';
+$lng['error']['emailexistalready']='L\'indirizzo eMail %s esiste già.';
+$lng['error']['maindomainnonexist']='Il dominio principale %s non esiste.';
+$lng['error']['destinationnonexist']='Please create your forwarder in the field \'Destination\'.';
+$lng['error']['destinationalreadyexistasmail']='Il reindirizzamento a %s esiste già come indirizzo eMail attivo.';
+$lng['error']['destinationalreadyexist']='Hai già definito un reindirizzamento per %s .';
+$lng['error']['destinationiswrong']= 'Il reindirizzamento %s contiene caratteri invalidi o è incompleto.';
+$lng['error']['domainname']=$lng['domains']['domainname'];
+
+/**
+ * Questions
+ */
+$lng['question']['question'] = 'Domanda di sicurezza';
+$lng['question']['admin_customer_reallydelete'] = 'Sei sicuro di voler cancellare il cliente %s? Quest\'azione non potrà essere annullata!';
+$lng['question']['admin_domain_reallydelete'] = 'Sei sicuro di voler cancellare il dominio %s?';
+$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Sei sicuro di voler disattivare queste opzioni di sicurezza (OpenBasedir e/o SafeMode)?';
+$lng['question']['admin_admin_reallydelete'] = 'Sei sicuro di voler cancellare l\'admin %s? Tutti i clienti e i domini saranno affidati all\'amministratore principale.';
+$lng['question']['admin_template_reallydelete'] = 'Sei sicuro di voler cancellare il template \'%s\'?';
+$lng['question']['domains_reallydelete'] = 'Sei sicuro di voler cancellare il dominio %s?';
+$lng['question']['email_reallydelete'] = 'Sei sicuro di voler cancellare l\'indirizzo eMail %s?';
+$lng['question']['email_reallydelete_account'] = 'Sei sicuro di voler cancellare l\'indirizzo eMail di %s?';
+$lng['question']['email_reallydelete_forwarder'] = 'Sei sicuro di voler cancellare il reindirizzamento a %s?';
+$lng['question']['extras_reallydelete'] = 'Sei sicuro di voler cancellare la protezione per la cartella %s?';
+$lng['question']['extras_reallydelete_pathoptions'] = 'Sei sicuro di voler cancellare le opzioni di percorso per %s?';
+$lng['question']['ftp_reallydelete'] = 'Sei sicuro di voler cancellare l\'FTP account %s?';
+$lng['question']['mysql_reallydelete'] = 'Sei sicuro di voler cancellare il database %s? Quest\'azione non potrà essere annullata!';
+$lng['question']['admin_configs_reallyrebuild'] = 'Sei sicuro di voler ricompilare i files di configurazione per apache e bind?';
+
+/**
+ * Mails
+ */
+$lng['mails']['pop_success']['mailbody'] = 'Salve,\n\nyour Indirizzo eMail {EMAIL}\nè stato configurato con successo.\n\nQuesta è una eMail creata automaticamente,\n Per favore non rispondere!\n\nCordiali saluri, SysCP-Team';
+$lng['mails']['pop_success']['subject'] = 'Indirizzo eMail configurato con successo';
+$lng['mails']['createcustomer']['mailbody'] = 'Salve {FIRSTNAME} {NAME},\n\nqueste sono le tue informazioni per l\'account:\n\nNome Utente: {USERNAME}\nPassword: {PASSWORD}\n\nGrazie,\nSysCP-Team';
+$lng['mails']['createcustomer']['subject'] = 'Informazioni account';
+
+/**
+ * Admin
+ */
+$lng['admin']['overview'] = 'Overview';
+$lng['admin']['ressourcedetails'] = 'Risorse utilizzate';
+$lng['admin']['systemdetails'] = 'Dettagli di Sistema';
+$lng['admin']['syscpdetails'] = 'Dettagli SysCP';
+$lng['admin']['installedversion'] = 'Versione Installata';
+$lng['admin']['latestversion'] = 'Ultima Versione';
+$lng['admin']['lookfornewversion']['clickhere'] = 'Cerca tramite webservice';
+$lng['admin']['lookfornewversion']['error'] = 'Errore durante la lettura';
+$lng['admin']['resources'] = 'Risorse';
+$lng['admin']['customer'] = 'Cliente';
+$lng['admin']['customers'] = 'Clienti';
+$lng['admin']['customer_add'] = 'Crea Cliente';
+$lng['admin']['customer_edit'] = 'Modifica Cliente';
+$lng['admin']['domains'] = 'Domini';
+$lng['admin']['domain_add'] = 'Crea Dominio';
+$lng['admin']['domain_edit'] = 'Modifica Dominio';
+$lng['admin']['subdomainforemail'] = 'Sotto-Dominio come Dominio-eMail';
+$lng['admin']['admin'] = 'Admin';
+$lng['admin']['admins'] = 'Admins';
+$lng['admin']['admin_add'] = 'Crea admin';
+$lng['admin']['admin_edit'] = 'Modifica admin';
+$lng['admin']['customers_see_all'] = 'Vedere tutti i clienti?';
+$lng['admin']['domains_see_all'] = 'Vedere tutti i domains?';
+$lng['admin']['change_serversettings'] = 'Can change server settings?';
+$lng['admin']['server'] = 'Server';
+$lng['admin']['serversettings'] = 'Opzioni';
+$lng['admin']['rebuildconf'] = 'Ricarica Config Files';
+$lng['admin']['stdsubdomain'] = 'Sotto-Domini Standard';
+$lng['admin']['stdsubdomain_add'] = 'Crea Sotto-Domini Standard';
+$lng['admin']['deactivated'] = 'Disattiva';
+$lng['admin']['deactivated_user'] = 'Disattiva Utente';
+$lng['admin']['sendpassword'] = 'Invia password';
+$lng['admin']['ownvhostsettings'] = 'Own vHost-Settings';
+$lng['admin']['configfiles']['serverconfiguration'] = 'Configurazione';
+$lng['admin']['configfiles']['files'] = '<b>Configfiles:</b> Per favore cambia questi file o creali con<br />se non esiste il seguente contenuto.<br /><b>Prendi nota:</b> La password di MySQL non è stata rimpiazzata per ragioni di sicurezza.<br />Per favore rimpiazza &quot;MYSQL_PASSWORD&quot; con la tua. Se dimentichi la tua password per MySQL<br />la trovi in &quot;lib/userdata.inc.php&quot;.';
+$lng['admin']['configfiles']['commands'] = '<b>Commandi:</b> Per favore esegui i seguenti comandi in una shell.';
+$lng['admin']['configfiles']['restart'] = '<b>Restart:</b> Per favore esegui i seguenti comandi (in ordine) in una shell per ricaricare la configurazione.';
+$lng['admin']['templates']['templates'] = 'Templates';
+$lng['admin']['templates']['template_add'] = 'Aggiungi template';
+$lng['admin']['templates']['template_edit'] = 'Modifica template';
+$lng['admin']['templates']['action'] = 'Action';
+$lng['admin']['templates']['email'] = 'E-Mail';
+$lng['admin']['templates']['subject'] = 'Soggetto:';
+$lng['admin']['templates']['mailbody'] = 'Testo dell\'eMail';
+$lng['admin']['templates']['createcustomer'] = 'Mail di benvenuto per i nuovi clienti';
+$lng['admin']['templates']['pop_success'] = 'Benevenuto per ogni nuovo account eMail';
+$lng['admin']['templates']['template_replace_vars'] = 'Variabili da cambiare nel Template:';
+$lng['admin']['templates']['FIRSTNAME'] = 'Rimpiazzato con il nome del cliente.';
+$lng['admin']['templates']['NAME'] = 'Rimpiazzato con il cognome del cliente.';
+$lng['admin']['templates']['USERNAME'] = 'Rimpiazzato con il nome utente dell\'account cliente.';
+$lng['admin']['templates']['PASSWORD'] = 'Rimpiazzato con la password dell\'account cliente.';
+$lng['admin']['templates']['EMAIL'] = 'Rimapiazzalo con l\'indirizzo dell\'account POP3/IMAP.';
+
+/**
+ * Serversettings
+ */
+$lng['serversettings']['session_timeout']['title'] = 'Timeout di Sessione';
+$lng['serversettings']['session_timeout']['description'] = 'Quando tempo un utente deve rimanere inattivo prima che la sessione diventi non più valida (secondi)?';
+$lng['serversettings']['accountprefix']['title'] = 'CustomerPrefix';
+$lng['serversettings']['accountprefix']['description'] = 'Which prefix should customeraccounts have?';
+$lng['serversettings']['mysqlprefix']['title'] = 'SQL Prefix';
+$lng['serversettings']['mysqlprefix']['description'] = 'Which prefix should mysql accounts have?';
+$lng['serversettings']['ftpprefix']['title'] = 'FTP Prefix';
+$lng['serversettings']['ftpprefix']['description'] = 'Which prefix should ftp accounts have?';
+$lng['serversettings']['documentroot_prefix']['title'] = 'Document directory';
+$lng['serversettings']['documentroot_prefix']['description'] = 'Dove devono essere immagazzinati tutti i dati?';
+$lng['serversettings']['logfiles_directory']['title'] = 'Cartella per i files di Log';
+$lng['serversettings']['logfiles_directory']['description'] = 'Dove devono essere immagazzinati tutti i log?';
+$lng['serversettings']['ipaddress']['title'] = 'Indirizzo IP';
+$lng['serversettings']['ipaddress']['description'] = 'Qual\'è l\'indirizzo IP di questo server?';
+$lng['serversettings']['hostname']['title'] = 'Hostname';
+$lng['serversettings']['hostname']['description'] = 'QUal\'è l\'hostname di questo server?';
+$lng['serversettings']['apacheconf_directory']['title'] = 'Cartella della configurazione di Apache';
+$lng['serversettings']['apacheconf_directory']['description'] = 'Dove sono i file di configurazione per Apache?';
+$lng['serversettings']['apachereload_command']['title'] = 'Comando per riavviare Apache';
+$lng['serversettings']['apachereload_command']['description'] = 'Qual\'è il comando per riavviare Apache?';
+$lng['serversettings']['bindconf_directory']['title'] = 'Cartella della configurazione di Bind';
+$lng['serversettings']['bindconf_directory']['description'] = 'Dove sono i file di configurazione per Bind?';
+$lng['serversettings']['bindreload_command']['title'] = 'Comando per riavviare Bind';
+$lng['serversettings']['bindreload_command']['description'] = 'Qual\'è il comando per riavviare Bind?';
+$lng['serversettings']['binddefaultzone']['title'] = 'Zona di default per Bind';
+$lng['serversettings']['binddefaultzone']['description'] = 'QUal\'è il nome della zona di default?';
+$lng['serversettings']['vmail_uid']['title'] = 'Mails-Uid';
+$lng['serversettings']['vmail_uid']['description'] = 'Which UserID should mails have?';
+$lng['serversettings']['vmail_gid']['title'] = 'Mails-Gid';
+$lng['serversettings']['vmail_gid']['description'] = 'Which GroupID should mails have?';
+$lng['serversettings']['vmail_homedir']['title'] = 'Mails-Homedir';
+$lng['serversettings']['vmail_homedir']['description'] = 'Dove devono essere immagazzinati tutte le eMail?';
+$lng['serversettings']['adminmail']['title'] = 'Sender';
+$lng['serversettings']['adminmail']['description'] = 'What\'s the senderaddress for emails sent from the Panel?';
+$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL';
+$lng['serversettings']['phpmyadmin_url']['description'] = 'What\'s the URL to phpMyAdmin? (have to start with http://)';
+$lng['serversettings']['webmail_url']['title'] = 'WebMail URL';
+$lng['serversettings']['webmail_url']['description'] = 'What\'s the URL to WebMail? (have to start with http://)';
+$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL';
+$lng['serversettings']['webftp_url']['description'] = 'What\'s the URL to WebFTP? (have to start with http://)';
+$lng['serversettings']['language']['description'] = 'Qual\'è la lingua standard del tuo server?';
+$lng['serversettings']['maxloginattempts']['title'] = 'Massimo tentativo di login';
+$lng['serversettings']['maxloginattempts']['description'] = 'Massimo tentativo di login prima che l\'account sia disattivato.';
+$lng['serversettings']['deactivatetime']['title'] = 'Tempo della durata del disattivamento';
+$lng['serversettings']['deactivatetime']['description'] = 'Tempo (sec.) di disattivazione dell\'account dopo troppi tentativi di login.';
+$lng['serversettings']['pathedit']['title'] = 'Tipo del percorso inserito';
+$lng['serversettings']['pathedit']['description'] = 'Should a path be choosen by a dropdown menu or by an input field?';
+?>
diff --git a/syscp/patches/mysql-ftp-patch/syscp-1.2.13-mysql-ftp-patch-r3.tar.bz2 b/syscp/patches/mysql-ftp-patch/syscp-1.2.13-mysql-ftp-patch-r3.tar.bz2
new file mode 100644
index 0000000..7f76972
--- /dev/null
+++ b/syscp/patches/mysql-ftp-patch/syscp-1.2.13-mysql-ftp-patch-r3.tar.bz2
Binary files differ
diff --git a/syscp/patches/mysql-ftp-patch/syscp-1.2.13-mysqli-ftpi.patch b/syscp/patches/mysql-ftp-patch/syscp-1.2.13-mysqli-ftpi.patch
new file mode 100644
index 0000000..eeaf12e
--- /dev/null
+++ b/syscp/patches/mysql-ftp-patch/syscp-1.2.13-mysqli-ftpi.patch
@@ -0,0 +1,712 @@
+diff -Nru syscp-gentoo-comp/admin_customers.php syscp-mysql-ftp-imp/admin_customers.php
+--- syscp-gentoo-comp/admin_customers.php 2006-03-26 00:52:39.000000000 +0100
++++ syscp-mysql-ftp-imp/admin_customers.php 2006-03-26 00:54:43.000000000 +0100
+@@ -158,20 +158,24 @@
+ if(isset($_POST['send']) && $_POST['send']=='send')
+ {
+ $databases=$db->query("SELECT * FROM ".TABLE_PANEL_DATABASES." WHERE customerid='$id'");
++ $databasesusers=$db->query("SELECT * FROM ".TABLE_PANEL_DATABASES_USERS." WHERE customerid='$id'");
+ $db_root=new db($sql['host'],$sql['root_user'],$sql['root_password'],'');
+ unset($db_root->password);
+ while($row_database=$db->fetch_array($databases))
+ {
+- $db_root->query( 'REVOKE ALL PRIVILEGES ON * . * FROM `' . $row_database['databasename'] . '`@' . $settings['system']['mysql_access_host'] . ';' );
+- $db_root->query( 'REVOKE ALL PRIVILEGES ON `' . str_replace ( '_' , '\_' , $row_database['databasename'] ) . '` . * FROM `' . $row_database['databasename'] . '`@' . $settings['system']['mysql_access_host'] . ';' );
+- $db_root->query( 'DELETE FROM `mysql`.`user` WHERE `User` = "' . $row_database['databasename'] . '" AND `Host` = "' . $settings['system']['mysql_access_host'] . '"' );
+ $db_root->query( 'DROP DATABASE IF EXISTS `' . $row_database['databasename'] . '`' );
+ }
++ while($row_databaseuser=$db->fetch_array($databasesusers))
++ {
++ $db_root->query( 'REVOKE ALL PRIVILEGES ON * . * FROM `' . $row_databaseuser['databaseuser'] . '`@' . $settings['system']['mysql_access_host'] . ';' );
++ $db_root->query( 'DELETE FROM `mysql`.`user` WHERE `User` = "' . $row_databaseuser['databaseuser'] . '" AND `Host` = "' . $settings['system']['mysql_access_host'] . '"' );
++ }
+ $db_root->query('FLUSH PRIVILEGES;');
+ $db_root->close();
+
+ $db->query("DELETE FROM `".TABLE_PANEL_CUSTOMERS."` WHERE `customerid`='$id'");
+ $db->query("DELETE FROM `".TABLE_PANEL_DATABASES."` WHERE `customerid`='$id'");
++ $db->query("DELETE FROM `".TABLE_PANEL_DATABASES_USERS."` WHERE `customerid`='$id'");
+ $db->query("DELETE FROM `".TABLE_PANEL_DOMAINS."` WHERE `customerid`='$id'");
+ $domains_deleted = $db->affected_rows();
+ $db->query("DELETE FROM `".TABLE_PANEL_HTPASSWDS."` WHERE `customerid`='$id'");
+diff -Nru syscp-gentoo-comp/admin_settings.php syscp-mysql-ftp-imp/admin_settings.php
+--- syscp-gentoo-comp/admin_settings.php 2006-03-26 00:52:22.000000000 +0100
++++ syscp-mysql-ftp-imp/admin_settings.php 2006-03-26 00:54:43.000000000 +0100
+@@ -111,10 +111,10 @@
+ $update_users = '"' . $sql['user'] . '", "' . $sql['root_user'] . '"' ;
+
+ // Update all customer databases
+- $databases = $db->query('SELECT `databasename` FROM `' . TABLE_PANEL_DATABASES . '`;');
++ $databases = $db->query('SELECT `databaseuser` FROM `' . TABLE_PANEL_DATABASES_USERS . '`;');
+ while ( $database = $db->fetch_array ( $databases ) )
+ {
+- $update_users .= ', "' . $database['databasename'] .'"' ;
++ $update_users .= ', "' . $database['databaseuser'] .'"' ;
+ }
+
+ // Do the update
+diff -Nru syscp-gentoo-comp/customer_ftp.php syscp-mysql-ftp-imp/customer_ftp.php
+--- syscp-gentoo-comp/customer_ftp.php 2006-03-26 00:52:22.000000000 +0100
++++ syscp-mysql-ftp-imp/customer_ftp.php 2006-03-26 00:54:43.000000000 +0100
+@@ -162,10 +162,17 @@
+ {
+ standard_error('patherror');
+ }
+-
+ else
+ {
+- $username=$userinfo['loginname'].$settings['customer']['ftpprefix'].(intval($userinfo['ftp_lastaccountnumber'])+1);
++ $usernamesuffix=addslashes($_POST['usernamesuffix']);
++ if($usernamesuffix=='')
++ {
++ $username=$userinfo['loginname'].$settings['customer']['ftpprefix'].(intval($userinfo['ftp_lastaccountnumber'])+1);
++ }
++ else
++ {
++ $username=$userinfo['loginname'].$settings['customer']['ftpprefix'].(intval($userinfo['ftp_lastaccountnumber'])+1).'_'.$usernamesuffix;
++ }
+ $db->query("INSERT INTO `".TABLE_FTP_USERS."` (`customerid`, `username`, `password`, `homedir`, `login_enabled`, `uid`, `gid`) VALUES ('".$userinfo['customerid']."', '$username', ENCRYPT('$password'), '$path', 'y', '".$userinfo['guid']."', '".$userinfo['guid']."')");
+ $db->query("UPDATE `".TABLE_FTP_GROUPS."` SET `members`=CONCAT_WS(',',`members`,'".$username."') WHERE `customerid`='".$userinfo['customerid']."' AND `gid`='".$userinfo['guid']."'");
+ // $db->query("INSERT INTO `".TABLE_FTP_GROUPS."` (`customerid`, `groupname`, `gid`, `members`) VALUES ('".$userinfo['customerid']."', '$username', '$uid', '$username')");
+diff -Nru syscp-gentoo-comp/customer_mysql.php syscp-mysql-ftp-imp/customer_mysql.php
+--- syscp-gentoo-comp/customer_mysql.php 2006-03-26 00:52:22.000000000 +0100
++++ syscp-mysql-ftp-imp/customer_mysql.php 2006-03-26 00:54:43.000000000 +0100
+@@ -11,8 +11,9 @@
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details.
+ *
+- * @author Florian Lippert <flo@redenswert.de>
++ * @author Florian Lippert <flo@redenswert.de>, Luca Longinotti <chtekk@gentoo.org>
+ * @copyright (C) 2003-2004 Florian Lippert
++ * @copyright (C) 2006 Luca Longinotti
+ * @package Panel
+ * @version $Id: customer_mysql.php 213 2005-08-11 21:28:10Z flo $
+ */
+@@ -42,7 +43,7 @@
+ {
+ if($action=='')
+ {
+- $result=$db->query( "SELECT `id`, `databasename`, `description` FROM `" . TABLE_PANEL_DATABASES . "` WHERE `customerid`='" . $userinfo['customerid'] . "' ORDER BY `databasename` ASC" );
++ $result=$db->query( 'SELECT `id`, `databaseuser`, `databasename`, `description` FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . $userinfo['customerid'] . '" ORDER BY `databasename` ASC' );
+ $mysqls='';
+ while($row=$db->fetch_array($result))
+ {
+@@ -50,13 +51,177 @@
+ }
+ $mysqls_count = $db->num_rows($result);
+
++ $result2=$db->query( 'SELECT `id`, `databaseuser` FROM `' . TABLE_PANEL_DATABASES_USERS . '` WHERE `customerid`="' . $userinfo['customerid'] . '" ORDER BY `databaseuser` ASC' );
++ $mysqlsusers='';
++ while($row=$db->fetch_array($result2))
++ {
++ eval("\$mysqlsusers.=\"".getTemplate("mysql/mysqls_database_user")."\";");
++ }
++ $mysqls_count_users = $db->num_rows($result2);
++
+ eval("echo \"".getTemplate("mysql/mysqls")."\";");
+ }
+
++ elseif($action=='adduser')
++ {
++ if($userinfo['mysqls_used_users'] < $userinfo['mysqls'] || $userinfo['mysqls'] == '-1')
++ {
++ if(isset($_POST['send']) && $_POST['send']=='send')
++ {
++ $password=addslashes($_POST['password']);
++ $passwordconfirm=addslashes($_POST['passwordconfirm']);
++ if($password=='' || $passwordconfirm=='')
++ {
++ standard_error(array('stringisempty','mypassword'));
++ }
++ elseif($password != $passwordconfirm)
++ {
++ standard_error('passwordnomatch');
++ }
++ else
++ {
++ $username=$userinfo['loginname'].$settings['customer']['mysqlprefix'].(intval($userinfo['mysql_lastusernumber'])+1);
++
++ // Begin root-session
++ $db_root=new db($sql['host'],$sql['root_user'],$sql['root_password'],'');
++ unset($db_root->password);
++
++ $db_root->query( 'GRANT USAGE ON *.* TO `' . $username . '`@' . $settings['system']['mysql_access_host'] );
++ $db_root->query( 'SET PASSWORD FOR `' . $username . '`@' . $settings['system']['mysql_access_host'] . ' = PASSWORD(\'' . $password . '\')' );
++ $db_root->query( 'FLUSH PRIVILEGES' );
++
++ $db_root->close();
++ // End root-session
++
++ $result=$db->query( 'INSERT INTO `' . TABLE_PANEL_DATABASES_USERS . '` (`customerid`, `databaseuser`) VALUES ("' . $userinfo['customerid'] . '", "' . $username . '")' );
++ $result=$db->query( 'UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `mysqls_used_users`=`mysqls_used_users`+1, `mysql_lastusernumber`=`mysql_lastusernumber`+1 WHERE `customerid`="' . $userinfo['customerid'] . '"' );
++
++ redirectTo ( $filename , Array ( 'page' => $page , 's' => $s ) ) ;
++ }
++ }
++ else
++ {
++ eval("echo \"".getTemplate("mysql/mysqls_add_user")."\";");
++ }
++ }
++ }
++
++ elseif($action=='add')
++ {
++ if($userinfo['mysqls_used'] < $userinfo['mysqls'] || $userinfo['mysqls'] == '-1')
++ {
++ if(isset($_POST['send']) && $_POST['send']=='send')
++ {
++ $databaseuser=addslashes($_POST['databaseuser']);
++ if($databaseuser=='')
++ {
++ standard_error('missingdbuser');
++ }
++ else
++ {
++ $databasesuffix=addslashes($_POST['databasesuffix']);
++ if($databasesuffix=='')
++ {
++ $databasename=$userinfo['loginname'].$settings['customer']['mysqlprefix'].(intval($userinfo['mysql_lastaccountnumber'])+1);
++ }
++ else
++ {
++ $databasename=$userinfo['loginname'].$settings['customer']['mysqlprefix'].(intval($userinfo['mysql_lastaccountnumber'])+1).'_'.$databasesuffix;
++ }
++
++ // Begin root-session
++ $db_root=new db($sql['host'],$sql['root_user'],$sql['root_password'],'');
++ unset($db_root->password);
++
++ $db_root->query( 'CREATE DATABASE `' . $databasename . '`' );
++ $db_root->query( 'GRANT ALL PRIVILEGES ON `' . str_replace ( '_' , '\_' , $databasename ) . '`.* TO `' . $databaseuser . '`@' . $settings['system']['mysql_access_host'] . ';' );
++ $db_root->query( 'FLUSH PRIVILEGES' );
++
++ $db_root->close();
++ // End root-session
++
++ $databasedescription=addslashes($_POST['description']);
++ $result=$db->query( 'INSERT INTO `' . TABLE_PANEL_DATABASES . '` (`customerid`, `databaseuser`, `databasename`, `description`) VALUES ("' . $userinfo['customerid'] . '", "' . $databaseuser . '", "' . $databasename . '", "' . $databasedescription . '")' );
++ $result=$db->query( 'UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `mysqls_used`=`mysqls_used`+1, `mysql_lastaccountnumber`=`mysql_lastaccountnumber`+1 WHERE `customerid`="' . $userinfo['customerid'] . '"' );
++
++ redirectTo ( $filename , Array ( 'page' => $page , 's' => $s ) ) ;
++ }
++ }
++ else
++ {
++ $result=$db->query_first( 'SELECT `id`, `databaseuser` FROM `' . TABLE_PANEL_DATABASES_USERS . '` WHERE `customerid`="' . $userinfo['customerid'] . '" ORDER BY `databaseuser` ASC' );
++ if(isset($result['databaseuser']) && $result['databaseuser'] != '')
++ {
++ $result2=$db->query( 'SELECT `id`, `databaseuser` FROM `' . TABLE_PANEL_DATABASES_USERS . '` WHERE `customerid`="' . $userinfo['customerid'] . '" ORDER BY `databaseuser` ASC' );
++ $databaseuser='';
++ while($row=$db->fetch_array($result2))
++ {
++ $databaseuser.=makeoption($row['databaseuser'],$row['databaseuser']);
++ }
++
++ eval("echo \"".getTemplate("mysql/mysqls_add")."\";");
++ }
++ else
++ {
++ standard_error('nodbuseryet');
++ }
++
++ }
++ }
++ }
++
++ elseif($action=='deleteuser' && $id!=0)
++ {
++ $result=$db->query_first( 'SELECT `id`, `databaseuser` FROM `' . TABLE_PANEL_DATABASES_USERS . '` WHERE `customerid`="' . $userinfo['customerid'] . '" AND `id`="' . $id . '"' );
++ if(isset($result['databaseuser']) && $result['databaseuser'] != '')
++ {
++ if(isset($_POST['send']) && $_POST['send']=='send')
++ {
++ $result2=$db->query_first( 'SELECT `id`, `databasename` FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . $userinfo['customerid'] . '" AND `databaseuser`="' . $result['databaseuser'] . '"' );
++ if(isset($result2['databasename']) && $result2['databasename'] != '')
++ {
++ standard_error('dbuserstillhasdb');
++ }
++ else
++ {
++ // Begin root-session
++ $db_root=new db($sql['host'],$sql['root_user'],$sql['root_password'],'');
++ unset($db_root->password);
++
++ $db_root->query( 'REVOKE ALL PRIVILEGES ON * . * FROM `' . $result['databaseuser'] . '`@' . $settings['system']['mysql_access_host'] . ';' );
++ $db_root->query( 'DELETE FROM `mysql`.`user` WHERE `User` = "' . $result['databaseuser'] . '" AND `Host` = "' . $settings['system']['mysql_access_host'] . '"' );
++ $db_root->query( 'FLUSH PRIVILEGES' );
++
++ $db_root->close();
++ // End root-session
++
++ $result=$db->query( 'DELETE FROM `' . TABLE_PANEL_DATABASES_USERS . '` WHERE `customerid`="' . $userinfo['customerid'] . '" AND `databaseuser`="' . $result['databaseuser'] . '"' );
++
++ if($userinfo['mysqls_used_users']=='1')
++ {
++ $resetusrnumber=" , `mysql_lastusernumber`='0' ";
++ }
++ else
++ {
++ $resetusrnumber='';
++ }
++
++ $result=$db->query( 'UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `mysqls_used_users`=`mysqls_used_users`-1 ' . $resetusrnumber . 'WHERE `customerid`="' . $userinfo['customerid'] .'"' );
++
++ redirectTo ( $filename , Array ( 'page' => $page , 's' => $s ) ) ;
++ }
++ }
++ else
++ {
++ ask_yesno('mysql_reallydelete_user', $filename, "id=$id;page=$page;action=$action", $result['databaseuser']);
++ }
++ }
++ }
++
+ elseif($action=='delete' && $id!=0)
+ {
+- $result=$db->query_first( 'SELECT `id`, `databasename` FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . $userinfo['customerid'] . '" AND `id`="' . $id . '"' );
+- if(isset($result['databasename']) && $result['databasename'] != '')
++ $result=$db->query_first( 'SELECT `id`, `databasename`, `databaseuser` FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . $userinfo['customerid'] . '" AND `id`="' . $id . '"' );
++ if(isset($result['databasename']) && $result['databasename'] != '' && isset($result['databaseuser']) && $result['databaseuser'] != '')
+ {
+ if(isset($_POST['send']) && $_POST['send']=='send')
+ {
+@@ -64,16 +229,14 @@
+ $db_root=new db($sql['host'],$sql['root_user'],$sql['root_password'],'');
+ unset($db_root->password);
+
+- $db_root->query( 'REVOKE ALL PRIVILEGES ON * . * FROM `' . $result['databasename'] . '`@' . $settings['system']['mysql_access_host'] . ';' );
+- $db_root->query( 'REVOKE ALL PRIVILEGES ON `' . str_replace ( '_' , '\_' , $result['databasename'] ) . '` . * FROM `' . $result['databasename'] . '`@' . $settings['system']['mysql_access_host'] . ';' );
+- $db_root->query( 'DELETE FROM `mysql`.`user` WHERE `User` = "' . $result['databasename'] . '" AND `Host` = "' . $settings['system']['mysql_access_host'] . '"' );
++ $db_root->query( 'REVOKE ALL PRIVILEGES ON `' . str_replace ( '_' , '\_' , $result['databasename'] ) . '` . * FROM `' . $result['databaseuser'] . '`@' . $settings['system']['mysql_access_host'] . ';' );
+ $db_root->query( 'DROP DATABASE IF EXISTS `' . $result['databasename'] . '`' );
+ $db_root->query( 'FLUSH PRIVILEGES' );
+
+ $db_root->close();
+ // End root-session
+-
+- $db->query( 'DELETE FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . $userinfo['customerid'] . '" AND `id`="' . $id . '"' );
++
++ $result=$db->query( 'DELETE FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . $userinfo['customerid'] . '" AND `databasename`="' . $result['databasename'] . '"' );
+
+ if($userinfo['mysqls_used']=='1')
+ {
+@@ -88,89 +251,97 @@
+
+ redirectTo ( $filename , Array ( 'page' => $page , 's' => $s ) ) ;
+ }
+- else
++ else
+ {
+ ask_yesno('mysql_reallydelete', $filename, "id=$id;page=$page;action=$action", $result['databasename']);
+ }
+ }
+ }
+
+- elseif($action=='add')
++ elseif($action=='edituser' && $id!=0)
+ {
+- if($userinfo['mysqls_used'] < $userinfo['mysqls'] || $userinfo['mysqls'] == '-1')
++ $result=$db->query_first( 'SELECT `id`, `databaseuser` FROM `' . TABLE_PANEL_DATABASES_USERS . '` WHERE `customerid`="' . $userinfo['customerid'] . '" AND `id`="' . $id . '"' );
++ if(isset($result['databaseuser']) && $result['databaseuser'] != '')
+ {
+ if(isset($_POST['send']) && $_POST['send']=='send')
+ {
+ $password=addslashes($_POST['password']);
+- if($password=='')
++ $passwordconfirm=addslashes($_POST['passwordconfirm']);
++ if($password=='' || $passwordconfirm=='')
+ {
+ standard_error(array('stringisempty','mypassword'));
+ }
++ elseif($password != $passwordconfirm)
++ {
++ standard_error('passwordnomatch');
++ }
+ else
+ {
+- $username=$userinfo['loginname'].$settings['customer']['mysqlprefix'].(intval($userinfo['mysql_lastaccountnumber'])+1);
+-
+ // Begin root-session
+ $db_root=new db($sql['host'],$sql['root_user'],$sql['root_password'],'');
+ unset($db_root->password);
+
+- $db_root->query( 'CREATE DATABASE `' . $username . '`' );
+- $db_root->query( 'GRANT ALL PRIVILEGES ON `' . str_replace ( '_' , '\_' , $username ) . '`.* TO `' . $username . '`@' . $settings['system']['mysql_access_host'] . ' IDENTIFIED BY \'password\'' );
+- $db_root->query( 'SET PASSWORD FOR `' . $username .'`@' . $settings['system']['mysql_access_host'] . ' = PASSWORD(\'' . $password . '\')' );
+- $db_root->query( 'FLUSH PRIVILEGES' );
++ $db_root->query('SET PASSWORD FOR `' . $result['databaseuser'] . '`@' . $settings['system']['mysql_access_host'] . ' = PASSWORD(\'' . $password .'\')');
++ $db_root->query('FLUSH PRIVILEGES');
+
+ $db_root->close();
+ // End root-session
+-
+- // Statement modifyed for Database description -- PH 2004-11-29
+- $databasedescription=addslashes($_POST['description']);
+- $result=$db->query( 'INSERT INTO `' . TABLE_PANEL_DATABASES . '` (`customerid`, `databasename`, `description`) VALUES ("' . $userinfo['customerid'] .'", "' . $username .'", "' . $databasedescription .'")' );
+- $result=$db->query( 'UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `mysqls_used`=`mysqls_used`+1, `mysql_lastaccountnumber`=`mysql_lastaccountnumber`+1 WHERE `customerid`="' . $userinfo['customerid'] . '"' );
+-
+- redirectTo ( $filename , Array ( 'page' => $page , 's' => $s ) ) ;
+ }
++
++ redirectTo ( $filename , Array ( 'page' => $page , 's' => $s ) ) ;
+ }
+- else
++ else
+ {
+- eval("echo \"".getTemplate("mysql/mysqls_add")."\";");
++ eval("echo \"".getTemplate("mysql/mysqls_edit_user")."\";");
+ }
+ }
+ }
+
+ elseif($action=='edit' && $id!=0)
+ {
+- $result=$db->query_first( 'SELECT `id`, `databasename`, `description` FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . $userinfo['customerid'] . '" AND `id`="' . $id . '"' );
+- if(isset($result['databasename']) && $result['databasename'] != '')
++ $result=$db->query_first( 'SELECT `id`, `databasename`, `databaseuser`, `description` FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . $userinfo['customerid'] . '" AND `id`="' . $id . '"' );
++ if(isset($result['databasename']) && $result['databasename'] != '' && isset($result['databaseuser']) && $result['databaseuser'] != '')
+ {
+ if(isset($_POST['send']) && $_POST['send']=='send')
+ {
+- // Only change Password if it is set, do nothing if it is empty! -- PH 2004-11-29
+- $password=addslashes($_POST['password']);
+- if($password!='')
++ $databaseuser=addslashes($_POST['databaseuser']);
++ if($databaseuser=='')
++ {
++ standard_error('missingdbuser');
++ }
++ else
+ {
+ // Begin root-session
+ $db_root=new db($sql['host'],$sql['root_user'],$sql['root_password'],'');
+ unset($db_root->password);
+
+- $db_root->query('SET PASSWORD FOR `'.$result['databasename'].'`@' . $settings['system']['mysql_access_host'] . ' = PASSWORD(\'' . $password .'\')');
+- $db_root->query('FLUSH PRIVILEGES');
++ $db_root->query( 'REVOKE ALL PRIVILEGES ON `' . str_replace ( '_' , '\_' , $result['databasename'] ) . '` . * FROM `' . $result['databaseuser'] . '`@' . $settings['system']['mysql_access_host'] . ';' );
++ $db_root->query( 'GRANT ALL PRIVILEGES ON `' . str_replace ( '_' , '\_' , $result['databasename'] ) . '`.* TO `' . $databaseuser . '`@' . $settings['system']['mysql_access_host'] . ';' );
++ $db_root->query( 'FLUSH PRIVILEGES' );
+
+ $db_root->close();
+ // End root-session
++
++ $result=$db->query( 'UPDATE `' . TABLE_PANEL_DATABASES . '` SET `databaseuser`="' . $databaseuser . '" WHERE `customerid`="' . $userinfo['customerid'] . '" AND `id`="' . $id . '"');
+ }
+
+- // Update the Database description -- PH 2004-11-29
+ $databasedescription=addslashes($_POST['description']);
+ $result=$db->query( 'UPDATE `' . TABLE_PANEL_DATABASES . '` SET `description`="' . $databasedescription . '" WHERE `customerid`="' . $userinfo['customerid'] . '" AND `id`="' . $id . '"');
+
+- redirectTo ( $filename , Array ( 'page' => $page , 's' => $s ) ) ;
++ redirectTo ( $filename , Array ( 'page' => $page , 's' => $s ) ) ;
+ }
+- else
++ else
+ {
++ $result2=$db->query( 'SELECT `id`, `databaseuser` FROM `' . TABLE_PANEL_DATABASES_USERS . '` WHERE `customerid`="' . $userinfo['customerid'] . '" ORDER BY `databaseuser` ASC' );
++ $databaseuser='';
++ while($row=$db->fetch_array($result2))
++ {
++ $databaseuser.=makeoption($row['databaseuser'],$row['databaseuser'],$result['databaseuser']);
++ }
++
+ eval("echo \"".getTemplate("mysql/mysqls_edit")."\";");
+ }
+ }
+ }
+ }
+-
+ ?>
+\ No newline at end of file
+diff -Nru syscp-gentoo-comp/lib/functions.php syscp-mysql-ftp-imp/lib/functions.php
+--- syscp-gentoo-comp/lib/functions.php 2006-03-26 00:52:22.000000000 +0100
++++ syscp-mysql-ftp-imp/lib/functions.php 2006-03-26 00:54:43.000000000 +0100
+@@ -650,6 +650,12 @@
+ 'FROM `'.TABLE_PANEL_DATABASES.'` ' .
+ 'WHERE `customerid` = "'.$customer['customerid'].'"'
+ );
++
++ $customer_mysqls_users = $db->query_first(
++ 'SELECT COUNT(*) AS `number_mysqls_users` ' .
++ 'FROM `'.TABLE_PANEL_DATABASES_USERS.'` ' .
++ 'WHERE `customerid` = "'.$customer['customerid'].'"'
++ );
+
+ $customer_emails = $db->query_first(
+ 'SELECT COUNT(*) AS `number_emails` ' .
+@@ -695,6 +701,7 @@
+ $db->query(
+ 'UPDATE `'.TABLE_PANEL_CUSTOMERS.'` ' .
+ 'SET `mysqls_used` = "'.$customer_mysqls['number_mysqls'].'", ' .
++ ' `mysqls_used_users` = "'.$customer_mysqls_users['number_mysqls_users'].'", ' .
+ ' `emails_used` = "'.$customer_emails['number_emails'].'", ' .
+ ' `email_accounts_used` = "'.$customer_email_accounts.'", ' .
+ ' `email_forwarders_used` = "'.$customer_email_forwarders.'", ' .
+diff -Nru syscp-gentoo-comp/lib/tables.inc.php syscp-mysql-ftp-imp/lib/tables.inc.php
+--- syscp-gentoo-comp/lib/tables.inc.php 2006-03-26 00:52:22.000000000 +0100
++++ syscp-mysql-ftp-imp/lib/tables.inc.php 2006-03-26 00:54:43.000000000 +0100
+@@ -24,6 +24,7 @@
+ define('TABLE_PANEL_ADMINS','panel_admins');
+ define('TABLE_PANEL_CUSTOMERS','panel_customers');
+ define('TABLE_PANEL_DATABASES','panel_databases');
++define('TABLE_PANEL_DATABASES_USERS','panel_databases_users');
+ define('TABLE_PANEL_DOMAINS','panel_domains');
+ define('TABLE_PANEL_HTACCESS','panel_htaccess');
+ define('TABLE_PANEL_HTPASSWDS','panel_htpasswds');
+diff -Nru syscp-gentoo-comp/lng/english.lng.php syscp-mysql-ftp-imp/lng/english.lng.php
+--- syscp-gentoo-comp/lng/english.lng.php 2006-03-26 00:52:22.000000000 +0100
++++ syscp-mysql-ftp-imp/lng/english.lng.php 2006-03-26 01:00:45.000000000 +0100
+@@ -143,8 +143,6 @@
+ /**
+ * MySQL
+ */
+-$lng['mysql']['databasename'] = 'user/database name';
+-$lng['mysql']['databasedescription'] = 'database description';
+ $lng['mysql']['database_create'] = 'Create database';
+
+ /**
+@@ -363,7 +361,6 @@
+ /**
+ * CHANGED BETWEEN 1.2.12 and 1.2.13
+ */
+-$lng['mysql']['description'] = 'Here you can create and change your MySQL-Databases.<br />The changes are made instantly and the database can be used immediately.<br />At the menu on the left side you find the tool phpMyAdmin with which you can easily administer your database.<br /><br />To use your databases in your own php-scripts use the following settings: (The data in <i>italics</i> have to be changed into the equivalents you typed in!)<br />Hostname: <b>localhost</b><br />Username: <b><i>Databasename</i></b><br />Password: <b><i>the password you\'ve chosen</i></b><br />Database: <b><i>Databasename</i></b>';
+
+ /**
+ * ADDED BETWEEN 1.2.12 and 1.2.13
+@@ -392,4 +389,28 @@
+ // ADDED IN 1.2.13-rc3
+ $lng['error']['cantchangesystemip'] = 'You cannot change the last system IP, either create another new IP/Port combination for the system IP or change the system IP.';
+ $lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Are you sure, you want the document root for this domain, not being within the customerroot of the customer?';
++
++/**
++ * CHANGED FOR MYSQL/FTP IMPROVED PATCH
++ */
++$lng['mysql']['description'] = 'Here you can create and change your MySQL databases.<br />The changes are made instantly and the databases can be used immediately.<br />At the menu on the left side you\'ll find the tool phpMyAdmin with which you can easily administer your databases.<br /><br />To use your databases in your own PHP scripts use the following settings: (The data in <i>italics</i> have to be changed into the equivalents you typed in!)<br />Hostname: <b>localhost</b><br />Username: <b><i>the username you\'ve chosen for that database</i></b><br />Password: <b><i>the password you\'ve chosen for that user</i></b><br />Database: <b><i>the name of the database</i></b>';
++$lng['mysql']['databasename'] = 'Database name';
++$lng['mysql']['databasedescription'] = 'Database description';
++
++/**
++ * ADDED FOR MYSQL/FTP IMPROVED PATCH
++ */
++$lng['menue']['mysql']['users'] = 'Users';
++$lng['mysql']['databaseuser'] = 'Database user';
++$lng['mysql']['databasesuffix'] = 'Database suffix';
++$lng['mysql']['password_confirm'] = 'Password (confirm)';
++$lng['mysql']['database_create_user'] = 'Create user';
++$lng['mysql']['database_change'] = 'Change database settings';
++$lng['mysql']['database_change_user'] = 'Change user settings';
++$lng['error']['passwordnomatch'] = 'The passwords you inserted do not match.';
++$lng['error']['missingdbuser'] = 'You need to select an user for the database.';
++$lng['error']['nodbuseryet'] = 'You need to create a database user first!';
++$lng['error']['dbuserstillhasdb'] = 'You cannot delete this database user, databases are still assigned to it!<br />Please reassign or delete all databases assigned to this user first.';
++$lng['question']['mysql_reallydelete_user'] = 'Do you really want to delete the user %s? This cannot be undone!';
++$lng['ftp']['ftpsuffix'] = 'Account suffix';
+ ?>
+\ No newline at end of file
+diff -Nru syscp-gentoo-comp/templates/customer/ftp/accounts_add.tpl syscp-mysql-ftp-imp/templates/customer/ftp/accounts_add.tpl
+--- syscp-gentoo-comp/templates/customer/ftp/accounts_add.tpl 2006-03-26 00:54:10.000000000 +0100
++++ syscp-mysql-ftp-imp/templates/customer/ftp/accounts_add.tpl 2006-03-26 00:54:43.000000000 +0100
+@@ -13,7 +13,11 @@
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['login']['password']}:</td>
+- <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" size="30" /></td>
++ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" size="30" maxlength="50" /></td>
++ </tr>
++ <tr>
++ <td class="install_nomecampo">{$lng['ftp']['ftpsuffix']}:<br />({$lng['panel']['emptyfordefault']})</td>
++ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="usernamesuffix" size="30" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['ftp']['account_add']}" /></td>
+diff -Nru syscp-gentoo-comp/templates/customer/mysql/mysqls_add.tpl syscp-mysql-ftp-imp/templates/customer/mysql/mysqls_add.tpl
+--- syscp-gentoo-comp/templates/customer/mysql/mysqls_add.tpl 2006-03-26 00:54:10.000000000 +0100
++++ syscp-mysql-ftp-imp/templates/customer/mysql/mysqls_add.tpl 2006-03-26 00:54:43.000000000 +0100
+@@ -8,12 +8,16 @@
+ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['mysql']['database_create']}</b></td>
+ </tr>
+ <tr>
+- <td class="install_nomecampo">{$lng['mysql']['databasedescription']}:</td>
+- <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="description" maxlength="100" /></td>
++ <td class="install_nomecampo">{$lng['mysql']['databasesuffix']}:<br />({$lng['panel']['emptyfordefault']})</td>
++ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="databasesuffix" maxlength="50" /></td>
++ </tr>
++ <tr>
++ <td class="install_nomecampo">{$lng['login']['username']}:</td>
++ <td class="install_campodisplay" nowrap="nowrap"><select name="databaseuser">$databaseuser</select></td>
+ </tr>
+ <tr>
+- <td class="install_nomecampo">{$lng['login']['password']}:</td>
+- <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" maxlength="50" /></td>
++ <td class="install_nomecampo">{$lng['mysql']['databasedescription']}:</td>
++ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="description" maxlength="100" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['mysql']['database_create']}" /></td>
+diff -Nru syscp-gentoo-comp/templates/customer/mysql/mysqls_add_user.tpl syscp-mysql-ftp-imp/templates/customer/mysql/mysqls_add_user.tpl
+--- syscp-gentoo-comp/templates/customer/mysql/mysqls_add_user.tpl 1970-01-01 01:00:00.000000000 +0100
++++ syscp-mysql-ftp-imp/templates/customer/mysql/mysqls_add_user.tpl 2006-03-26 00:54:43.000000000 +0100
+@@ -0,0 +1,25 @@
++$header
++ <form method="post" action="$filename">
++ <input type="hidden" name="s" value="$s" />
++ <input type="hidden" name="page" value="$page" />
++ <input type="hidden" name="action" value="$action" />
++ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
++ <tr>
++ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['mysql']['database_create_user']}</b></td>
++ </tr>
++ <tr>
++ <td class="install_nomecampo">{$lng['login']['password']}:</td>
++ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" maxlength="50" /></td>
++ </tr>
++ <tr>
++ <td class="install_nomecampo">{$lng['mysql']['password_confirm']}:</td>
++ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="passwordconfirm" maxlength="50" /></td>
++ </tr>
++ <tr>
++ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['mysql']['database_create_user']}" /></td>
++ </tr>
++ </table>
++ </form>
++ <br />
++ <br />
++$footer
+\ No newline at end of file
+diff -Nru syscp-gentoo-comp/templates/customer/mysql/mysqls_database.tpl syscp-mysql-ftp-imp/templates/customer/mysql/mysqls_database.tpl
+--- syscp-gentoo-comp/templates/customer/mysql/mysqls_database.tpl 2006-03-26 00:54:10.000000000 +0100
++++ syscp-mysql-ftp-imp/templates/customer/mysql/mysqls_database.tpl 2006-03-26 00:54:43.000000000 +0100
+@@ -1,5 +1,6 @@
+ <tr>
+ <td class="nomecampo_bordosx">{$row['databasename']}</td>
++ <td class="nomecampo">{$row['databaseuser']}</td>
+ <td class="nomecampo">{$row['description']}</td>
+ <td class="nomecampo"><a href="$filename?page=mysqls&amp;action=edit&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['edit']}</a></td>
+ <td class="nomecampo"><a href="$filename?page=mysqls&amp;action=delete&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['delete']}</a></td>
+diff -Nru syscp-gentoo-comp/templates/customer/mysql/mysqls_database_user.tpl syscp-mysql-ftp-imp/templates/customer/mysql/mysqls_database_user.tpl
+--- syscp-gentoo-comp/templates/customer/mysql/mysqls_database_user.tpl 1970-01-01 01:00:00.000000000 +0100
++++ syscp-mysql-ftp-imp/templates/customer/mysql/mysqls_database_user.tpl 2006-03-26 00:54:43.000000000 +0100
+@@ -0,0 +1,5 @@
++<tr>
++ <td class="nomecampo_bordosx">{$row['databaseuser']}</td>
++ <td class="nomecampo"><a href="$filename?page=mysqls&amp;action=edituser&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['edit']}</a></td>
++ <td class="nomecampo"><a href="$filename?page=mysqls&amp;action=deleteuser&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['delete']}</a></td>
++</tr>
+\ No newline at end of file
+diff -Nru syscp-gentoo-comp/templates/customer/mysql/mysqls_edit.tpl syscp-mysql-ftp-imp/templates/customer/mysql/mysqls_edit.tpl
+--- syscp-gentoo-comp/templates/customer/mysql/mysqls_edit.tpl 2006-03-26 00:54:10.000000000 +0100
++++ syscp-mysql-ftp-imp/templates/customer/mysql/mysqls_edit.tpl 2006-03-26 00:54:43.000000000 +0100
+@@ -6,19 +6,19 @@
+ <input type="hidden" name="id" value="$id" />
+ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
+ <tr>
+- <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['main']['changepassword']}</b></td>
++ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['mysql']['database_change']}</b></td>
+ </tr>
+ <tr>
+ <td class="install_nomecampo">{$lng['mysql']['databasename']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">{$result['databasename']}</td>
+ </tr>
+ <tr>
+- <td class="install_nomecampo">{$lng['mysql']['databasedescription']}:</td>
+- <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="description" maxlength="100" value="{$result['description']}" /></td>
++ <td class="install_nomecampo">{$lng['login']['username']}:</td>
++ <td class="install_campodisplay" nowrap="nowrap"><select name="databaseuser">$databaseuser</select></td>
+ </tr>
+ <tr>
+- <td class="install_nomecampo">{$lng['changepassword']['new_password_ifnotempty']}:</td>
+- <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" maxlength="50" /></td>
++ <td class="install_nomecampo">{$lng['mysql']['databasedescription']}:</td>
++ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="description" maxlength="100" value="{$result['description']}" /></td>
+ </tr>
+ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['panel']['save']}" /></td>
+diff -Nru syscp-gentoo-comp/templates/customer/mysql/mysqls_edit_user.tpl syscp-mysql-ftp-imp/templates/customer/mysql/mysqls_edit_user.tpl
+--- syscp-gentoo-comp/templates/customer/mysql/mysqls_edit_user.tpl 1970-01-01 01:00:00.000000000 +0100
++++ syscp-mysql-ftp-imp/templates/customer/mysql/mysqls_edit_user.tpl 2006-03-26 00:54:43.000000000 +0100
+@@ -0,0 +1,30 @@
++$header
++ <form method="post" action="$filename">
++ <input type="hidden" name="s" value="$s" />
++ <input type="hidden" name="page" value="$page" />
++ <input type="hidden" name="action" value="$action" />
++ <input type="hidden" name="id" value="$id" />
++ <table cellpadding="5" cellspacing="4" border="0" align="center" class="install_tabella_60">
++ <tr>
++ <td class="install_titolo" colspan="2"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['mysql']['database_change_user']}</b></td>
++ </tr>
++ <tr>
++ <td class="install_nomecampo">{$lng['mysql']['databaseuser']}:</td>
++ <td class="install_campodisplay" nowrap="nowrap">{$result['databaseuser']}</td>
++ </tr>
++ <tr>
++ <td class="install_nomecampo">{$lng['login']['password']}:</td>
++ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="password" maxlength="50" /></td>
++ </tr>
++ <tr>
++ <td class="install_nomecampo">{$lng['mysql']['password_confirm']}:</td>
++ <td class="install_campodisplay" nowrap="nowrap"><input type="password" name="passwordconfirm" maxlength="50" /></td>
++ </tr>
++ <tr>
++ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['panel']['save']}" /></td>
++ </tr>
++ </table>
++ </form>
++ <br />
++ <br />
++$footer
+\ No newline at end of file
+diff -Nru syscp-gentoo-comp/templates/customer/mysql/mysqls.tpl syscp-mysql-ftp-imp/templates/customer/mysql/mysqls.tpl
+--- syscp-gentoo-comp/templates/customer/mysql/mysqls.tpl 2006-03-26 00:54:10.000000000 +0100
++++ syscp-mysql-ftp-imp/templates/customer/mysql/mysqls.tpl 2006-03-26 00:54:43.000000000 +0100
+@@ -1,22 +1,45 @@
+ $header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+- <td class="install_titolo" colspan="4"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['mysql']['databases']}</b></td>
++ <td class="install_titolo" colspan="5"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['mysql']['databases']}</b></td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['mysql']['databasename']}</td>
++ <td class="campodisplay">{$lng['mysql']['databaseuser']}</td>
+ <td class="campodisplay">{$lng['mysql']['databasedescription']}</td>
+ <td class="campodisplay" colspan="2">&nbsp;</td>
+ </tr>
+ <if ($userinfo['mysqls_used'] < $userinfo['mysqls'] || $userinfo['mysqls'] == '-1') && 15 < $mysqls_count >
+ <tr>
+- <td class="campodisplay_bordosx" colspan="4"><a href="$filename?page=mysqls&amp;action=add&amp;s=$s">{$lng['mysql']['database_create']}</a></td>
++ <td class="campodisplay_bordosx" colspan="5"><a href="$filename?page=mysqls&amp;action=add&amp;s=$s">{$lng['mysql']['database_create']}</a></td>
+ </tr>
+ </if>
+ $mysqls
+ <if ($userinfo['mysqls_used'] < $userinfo['mysqls'] || $userinfo['mysqls'] == '-1') >
+ <tr>
+- <td class="campodisplay_bordosx" colspan="4"><a href="$filename?page=mysqls&amp;action=add&amp;s=$s">{$lng['mysql']['database_create']}</a></td>
++ <td class="campodisplay_bordosx" colspan="5"><a href="$filename?page=mysqls&amp;action=add&amp;s=$s">{$lng['mysql']['database_create']}</a></td>
++ </tr>
++ </if>
++ </table>
++ <br />
++ <br />
++ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella_40">
++ <tr>
++ <td class="install_titolo" colspan="3"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['mysql']['users']}</b></td>
++ </tr>
++ <tr>
++ <td class="campodisplay_bordosx">{$lng['mysql']['databaseuser']}</td>
++ <td class="campodisplay" colspan="2">&nbsp;</td>
++ </tr>
++ <if ($userinfo['mysqls_used_users'] < $userinfo['mysqls'] || $userinfo['mysqls'] == '-1') && 15 < $mysqls_count_users >
++ <tr>
++ <td class="campodisplay_bordosx" colspan="3"><a href="$filename?page=mysqls&amp;action=adduser&amp;s=$s">{$lng['mysql']['database_create_user']}</a></td>
++ </tr>
++ </if>
++ $mysqlsusers
++ <if ($userinfo['mysqls_used_users'] < $userinfo['mysqls'] || $userinfo['mysqls'] == '-1') >
++ <tr>
++ <td class="campodisplay_bordosx" colspan="3"><a href="$filename?page=mysqls&amp;action=adduser&amp;s=$s">{$lng['mysql']['database_create_user']}</a></td>
+ </tr>
+ </if>
+ </table>
diff --git a/syscp/patches/options-patch/syscp-1.2.13-moreoptions.patch b/syscp/patches/options-patch/syscp-1.2.13-moreoptions.patch
new file mode 100644
index 0000000..d2768f8
--- /dev/null
+++ b/syscp/patches/options-patch/syscp-1.2.13-moreoptions.patch
@@ -0,0 +1,585 @@
+diff -Nru syscp-mysql-ftp-imp/admin_customers.php syscp-options/admin_customers.php
+--- syscp-mysql-ftp-imp/admin_customers.php 2006-03-26 01:05:47.000000000 +0100
++++ syscp-options/admin_customers.php 2006-03-26 01:06:22.000000000 +0100
+@@ -424,8 +424,8 @@
+
+ $db->query(
+ "INSERT INTO `".TABLE_PANEL_DOMAINS."` " .
+- "(`domain`, `customerid`, `adminid`, `parentdomainid`, `documentroot`, `zonefile`, `isemaildomain`, `caneditdomain`, `openbasedir`, `safemode`, `speciallogfile`, `specialsettings`) " .
+- "VALUES ('$loginname.{$settings['system']['hostname']}', '$customerid', '{$userinfo['adminid']}', '-1', '$documentroot', '', '1', '1', '1', '1', '0', '')"
++ "(`domain`, `customerid`, `adminid`, `parentdomainid`, `documentroot`, `zonefile`, `isemaildomain`, `caneditdomain`, `ssi_includes`, `php_engine`, `openbasedir`, `safemode`, `php_errordisplay`, `speciallogfile`, `specialsettings`) " .
++ "VALUES ('$loginname.{$settings['system']['hostname']}', '$customerid', '{$userinfo['adminid']}', '-1', '$documentroot', '', '1', '1', '0', '1', '1', '1', '0', '0', '')"
+ );
+ $domainid=$db->insert_id();
+ $db->query(
+@@ -555,8 +555,8 @@
+ {
+ $db->query(
+ "INSERT INTO `".TABLE_PANEL_DOMAINS."` " .
+- "(`domain`, `customerid`, `adminid`, `documentroot`, `zonefile`, `isemaildomain`, `caneditdomain`, `openbasedir`, `safemode`, `speciallogfile`, `specialsettings`) " .
+- "VALUES ('{$result['loginname']}.{$settings['system']['hostname']}', '{$result['customerid']}', '{$userinfo['adminid']}', '{$result['documentroot']}', '', '1', '1', '1', '1', '0', '')"
++ "(`domain`, `customerid`, `adminid`, `documentroot`, `zonefile`, `isemaildomain`, `caneditdomain`, `ssi_includes`, `php_engine`, `openbasedir`, `safemode`, `php_errordisplay`, `speciallogfile`, `specialsettings`) " .
++ "VALUES ('{$result['loginname']}.{$settings['system']['hostname']}', '{$result['customerid']}', '{$userinfo['adminid']}', '{$result['documentroot']}', '', '1', '1', '0', '1', '1', '1', '0', '0', '')"
+ );
+ $domainid=$db->insert_id();
+ $db->query(
+diff -Nru syscp-mysql-ftp-imp/admin_domains.php syscp-options/admin_domains.php
+--- syscp-mysql-ftp-imp/admin_domains.php 2006-03-26 01:05:34.000000000 +0100
++++ syscp-options/admin_domains.php 2006-03-26 01:12:53.000000000 +0100
+@@ -56,7 +56,7 @@
+
+ $domains='';
+ $result=$db->query(
+- "SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, CONCAT(`ip`.`ip`,':',`ip`.`port`) AS `ipandport`, `d`.`zonefile`, `d`.`openbasedir`, `d`.`safemode`, `d`.`isemaildomain`, `d`.`parentdomainid`, `c`.`loginname`, `c`.`name`, `c`.`firstname`, `ad`.`domain` AS `alias` " .
++ "SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, CONCAT(`ip`.`ip`,':',`ip`.`port`) AS `ipandport`, `d`.`zonefile`, `d`.`ssi_includes`, `d`.`php_engine`, `d`.`openbasedir`, `d`.`safemode`, `d`.`php_errordisplay`, `d`.`isemaildomain`, `d`.`parentdomainid`, `c`.`loginname`, `c`.`name`, `c`.`firstname`, `ad`.`domain` AS `alias` " .
+ "FROM `".TABLE_PANEL_DOMAINS."` `d` " .
+ "LEFT JOIN `".TABLE_PANEL_CUSTOMERS."` `c` USING(`customerid`) " .
+ "LEFT JOIN `".TABLE_PANEL_DOMAINS."` `ad` ON `d`.`aliasdomain`=`ad`.`id` " .
+@@ -93,7 +93,7 @@
+ }
+ $pagestart = ($pageno - 1) * $settings['panel']['paging'];
+ $result=$db->query(
+- "SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, CONCAT(`ip`.`ip`,':',`ip`.`port`) AS `ipandport`, `d`.`zonefile`, `d`.`openbasedir`, `d`.`safemode`, `d`.`isemaildomain`, `d`.`parentdomainid`, `c`.`loginname`, `c`.`name`, `c`.`firstname`, `ad`.`domain` AS `alias` " .
++ "SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, CONCAT(`ip`.`ip`,':',`ip`.`port`) AS `ipandport`, `d`.`zonefile`, `d`.`ssi_includes`, `d`.`php_engine`, `d`.`openbasedir`, `d`.`safemode`, `d`.`php_errordisplay`, `d`.`isemaildomain`, `d`.`parentdomainid`, `c`.`loginname`, `c`.`name`, `c`.`firstname`, `ad`.`domain` AS `alias` " .
+ "FROM `".TABLE_PANEL_DOMAINS."` `d` " .
+ "LEFT JOIN `".TABLE_PANEL_CUSTOMERS."` `c` USING(`customerid`) " .
+ "LEFT JOIN `".TABLE_PANEL_DOMAINS."` `ad` ON `d`.`aliasdomain`=`ad`.`id` " .
+@@ -214,6 +214,9 @@
+ $aliasdomain = intval($_POST['alias']);
+ $customer = $db->query_first("SELECT `documentroot` FROM `".TABLE_PANEL_CUSTOMERS."` WHERE `customerid`='$customerid'");
+ $documentroot = $customer['documentroot'];
++ $ssi_includes = intval($_POST['ssi_includes']);
++ $php_engine = intval($_POST['php_engine']);
++ $php_errordisplay = intval($_POST['php_errordisplay']);
+ if($userinfo['change_serversettings'] == '1')
+ {
+ $isbinddomain = $_POST['isbinddomain'];
+@@ -260,6 +263,14 @@
+ $aliasdomain_check = $db->query_first('SELECT `id` FROM `'.TABLE_PANEL_DOMAINS.'` `d`,`'.TABLE_PANEL_CUSTOMERS.'` `c` WHERE `d`.`customerid`=\''.$customerid.'\' AND `d`.`aliasdomain` IS NULL AND `d`.`id`<>`c`.`standardsubdomain` AND `c`.`customerid`=\''.$customerid.'\' AND `d`.`id`=\''.$aliasdomain.'\'');
+ }
+
++ if($ssi_includes != '1')
++ {
++ $ssi_includes = '0';
++ }
++ if($php_engine != '1')
++ {
++ $php_engine = '0';
++ }
+ if($openbasedir != '1')
+ {
+ $openbasedir = '0';
+@@ -268,6 +279,10 @@
+ {
+ $safemode = '0';
+ }
++ if($php_errordisplay != '1')
++ {
++ $php_errordisplay = '0';
++ }
+ if($speciallogfile != '1')
+ {
+ $speciallogfile = '0';
+@@ -321,7 +336,7 @@
+ && (!isset($_POST['reallydoit'])
+ || $_POST['reallydoit'] != 'reallydoit') )
+ {
+- ask_yesno('admin_domain_reallydisablesecuritysetting', $filename, "page=$page;action=$action;domain=$domain;documentroot=$documentroot;customerid=$customerid;alias=$aliasdomain;isbinddomain=$isbinddomain;isemaildomain=$isemaildomain;subcanemaildomain=$subcanemaildomain;caneditdomain=$caneditdomain;zonefile=$zonefile;speciallogfile=$speciallogfile;openbasedir=$openbasedir;ipandport=$ipandport;safemode=$safemode;specialsettings=".urlencode($specialsettings).";reallydoit=reallydoit");
++ ask_yesno('admin_domain_reallydisablesecuritysetting', $filename, "page=$page;action=$action;domain=$domain;documentroot=$documentroot;customerid=$customerid;alias=$aliasdomain;isbinddomain=$isbinddomain;isemaildomain=$isemaildomain;subcanemaildomain=$subcanemaildomain;caneditdomain=$caneditdomain;zonefile=$zonefile;speciallogfile=$speciallogfile;ssi_includes=$ssi_includes;php_engine=$php_engine;openbasedir=$openbasedir;ipandport=$ipandport;safemode=$safemode;php_errordisplay=$php_errordisplay;specialsettings=".urlencode($specialsettings).";reallydoit=reallydoit");
+ exit;
+ }
+ $pattern = sprintf('^%s', $customer['documentroot']);
+@@ -329,7 +344,7 @@
+ && ( !isset($_POST['reallydocroot'] )
+ || $_POST['reallydocroot'] != 'reallydocroot') )
+ {
+- $params = "page=$page;action=$action;domain=$domain;documentroot=$documentroot;customerid=$customerid;alias=$aliasdomain;isbinddomain=$isbinddomain;isemaildomain=$isemaildomain;subcanemaildomain=$subcanemaildomain;caneditdomain=$caneditdomain;zonefile=$zonefile;speciallogfile=$speciallogfile;openbasedir=$openbasedir;ipandport=$ipandport;safemode=$safemode;specialsettings=".urlencode($specialsettings).';reallydocroot=reallydocroot';
++ $params = "page=$page;action=$action;domain=$domain;documentroot=$documentroot;customerid=$customerid;alias=$aliasdomain;isbinddomain=$isbinddomain;isemaildomain=$isemaildomain;subcanemaildomain=$subcanemaildomain;caneditdomain=$caneditdomain;zonefile=$zonefile;speciallogfile=$speciallogfile;ssi_includes=$ssi_includes;php_engine=$php_engine;openbasedir=$openbasedir;ipandport=$ipandport;safemode=$safemode;php_errordisplay=$php_errordisplay;specialsettings=".urlencode($specialsettings).';reallydocroot=reallydocroot';
+ if ( isset($_POST['reallydoit']) )
+ {
+ $params .= ';reallydoit=reallydoit';
+@@ -345,7 +360,7 @@
+ }
+
+ $specialsettings = addslashes($specialsettings);
+- $db->query("INSERT INTO `".TABLE_PANEL_DOMAINS."` (`domain`, `customerid`, `adminid`, `documentroot`, `ipandport`, `aliasdomain`, `zonefile`, `isbinddomain`, `isemaildomain`, `subcanemaildomain`, `caneditdomain`, `openbasedir`, `safemode`, `speciallogfile`, `specialsettings`) VALUES ('$domain', '$customerid', '{$userinfo['adminid']}', '$documentroot', '$ipandport', ".(($aliasdomain!=0) ? '\''.$aliasdomain.'\'' : 'NULL').", '$zonefile', '$isbinddomain', '$isemaildomain', '$subcanemaildomain', '$caneditdomain', '$openbasedir', '$safemode', '$speciallogfile', '$specialsettings')");
++ $db->query("INSERT INTO `".TABLE_PANEL_DOMAINS."` (`domain`, `customerid`, `adminid`, `documentroot`, `ipandport`, `aliasdomain`, `zonefile`, `isbinddomain`, `isemaildomain`, `subcanemaildomain`, `caneditdomain`, `ssi_includes`, `php_engine`, `openbasedir`, `safemode`, `php_errordisplay`, `speciallogfile`, `specialsettings`) VALUES ('$domain', '$customerid', '{$userinfo['adminid']}', '$documentroot', '$ipandport', ".(($aliasdomain!=0) ? '\''.$aliasdomain.'\'' : 'NULL').", '$zonefile', '$isbinddomain', '$isemaildomain', '$subcanemaildomain', '$caneditdomain', '$ssi_includes', '$php_engine', '$openbasedir', '$safemode', '$php_errordisplay', '$speciallogfile', '$specialsettings')");
+ $domainid=$db->insert_id();
+ $db->query("UPDATE `".TABLE_PANEL_ADMINS."` SET `domains_used` = `domains_used` + 1 WHERE `adminid` = '{$userinfo['adminid']}'");
+
+@@ -394,8 +409,11 @@
+ $isemaildomain=makeyesno('isemaildomain', '1', '0', '1');
+ $subcanemaildomain=makeyesno('subcanemaildomain', '1', '0', '1');
+ $caneditdomain=makeyesno('caneditdomain', '1', '0', '1');
++ $ssi_includes=makeyesno('ssi_includes', '1', '0', '0');
++ $php_engine=makeyesno('php_engine', '1', '0', '1');
+ $openbasedir=makeyesno('openbasedir', '1', '0', '1');
+ $safemode=makeyesno('safemode', '1', '0', '1');
++ $php_errordisplay=makeyesno('php_errordisplay', '1', '0', '0');
+ $speciallogfile=makeyesno('speciallogfile', '1', '0', '0');
+ eval("echo \"".getTemplate("domains/domains_add")."\";");
+ }
+@@ -405,7 +423,7 @@
+ elseif($action=='edit' && $id!=0)
+ {
+ $result=$db->query_first(
+- "SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, `d`.`ipandport`, `d`.`aliasdomain`, `d`.`isbinddomain`, `d`.`isemaildomain`, `d`.`subcanemaildomain`, `d`.`caneditdomain`, `d`.`zonefile`, `d`.`openbasedir`, `d`.`safemode`, `d`.`speciallogfile`, `d`.`specialsettings`, `c`.`loginname`, `c`.`name`, `c`.`firstname` " .
++ "SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, `d`.`ipandport`, `d`.`aliasdomain`, `d`.`isbinddomain`, `d`.`isemaildomain`, `d`.`subcanemaildomain`, `d`.`caneditdomain`, `d`.`zonefile`, `d`.`ssi_includes`, `d`.`php_engine`, `d`.`openbasedir`, `d`.`safemode`, `d`.`php_errordisplay`, `d`.`speciallogfile`, `d`.`specialsettings`, `c`.`loginname`, `c`.`name`, `c`.`firstname` " .
+ "FROM `".TABLE_PANEL_DOMAINS."` `d` " .
+ "LEFT JOIN `".TABLE_PANEL_CUSTOMERS."` `c` USING(`customerid`) " .
+ "WHERE `d`.`parentdomainid`='0' AND `d`.`id`='$id'".( $userinfo['customers_see_all'] ? '' : " AND `d`.`adminid` = '{$userinfo['adminid']}' ")
+@@ -422,6 +440,9 @@
+ $isemaildomain = intval($_POST['isemaildomain']);
+ $subcanemaildomain = intval($_POST['subcanemaildomain']);
+ $caneditdomain = intval($_POST['caneditdomain']);
++ $ssi_includes = intval($_POST['ssi_includes']);
++ $php_engine = intval($_POST['php_engine']);
++ $php_errordisplay = intval($_POST['php_errordisplay']);
+ if($userinfo['change_serversettings'] == '1')
+ {
+ $isbinddomain = $_POST['isbinddomain'];
+@@ -452,6 +473,14 @@
+ $documentroot = makeCorrectDir($documentroot);
+ }
+
++ if($ssi_includes != '1')
++ {
++ $ssi_includes = '0';
++ }
++ if($php_engine != '1')
++ {
++ $php_engine = '0';
++ }
+ if($openbasedir != '1')
+ {
+ $openbasedir = '0';
+@@ -460,6 +489,10 @@
+ {
+ $safemode = '0';
+ }
++ if($php_errordisplay != '1')
++ {
++ $php_errordisplay = '0';
++ }
+ if($isbinddomain != '1')
+ {
+ $isbinddomain = '0';
+@@ -489,7 +522,7 @@
+
+ if(($openbasedir == '0' || $safemode == '0') && (!isset($_POST['reallydoit']) || $_POST['reallydoit'] != 'reallydoit') && $userinfo['change_serversettings'] == '1')
+ {
+- ask_yesno('admin_domain_reallydisablesecuritysetting', $filename, "id=$id;page=$page;action=$action;documentroot=$documentroot;alias=$aliasdomain;isbinddomain=$isbinddomain;isemaildomain=$isemaildomain;subcanemaildomain=$subcanemaildomain;caneditdomain=$caneditdomain;zonefile=$zonefile;openbasedir=$openbasedir;ipandport=$ipandport;safemode=$safemode;specialsettings=".urlencode($specialsettings).";reallydoit=reallydoit");
++ ask_yesno('admin_domain_reallydisablesecuritysetting', $filename, "id=$id;page=$page;action=$action;documentroot=$documentroot;alias=$aliasdomain;isbinddomain=$isbinddomain;isemaildomain=$isemaildomain;subcanemaildomain=$subcanemaildomain;caneditdomain=$caneditdomain;zonefile=$zonefile;ssi_includes=$ssi_includes;php_engine=$php_engine;openbasedir=$openbasedir;ipandport=$ipandport;safemode=$safemode;php_errordisplay=$php_errordisplay;specialsettings=".urlencode($specialsettings).";reallydoit=reallydoit");
+ exit;
+ }
+ $pattern = sprintf('^%s', $customer['documentroot']);
+@@ -497,7 +530,7 @@
+ && ( !isset($_POST['reallydocroot'] )
+ || $_POST['reallydocroot'] != 'reallydocroot') )
+ {
+- $params = "id=$id;page=$page;action=$action;documentroot=$documentroot;alias=$aliasdomain;isbinddomain=$isbinddomain;isemaildomain=$isemaildomain;subcanemaildomain=$subcanemaildomain;caneditdomain=$caneditdomain;zonefile=$zonefile;openbasedir=$openbasedir;ipandport=$ipandport;safemode=$safemode;specialsettings=".urlencode($specialsettings).';reallydocroot=reallydocroot';
++ $params = "id=$id;page=$page;action=$action;documentroot=$documentroot;alias=$aliasdomain;isbinddomain=$isbinddomain;isemaildomain=$isemaildomain;subcanemaildomain=$subcanemaildomain;caneditdomain=$caneditdomain;zonefile=$zonefile;ssi_includes=$ssi_includes;php_engine=$php_engine;openbasedir=$openbasedir;ipandport=$ipandport;safemode=$safemode;php_errordisplay=$php_errordisplay;specialsettings=".urlencode($specialsettings).';reallydocroot=reallydocroot';
+ if ( isset($_POST['reallydoit']) )
+ {
+ $params .= ';reallydoit=reallydoit';
+@@ -513,7 +546,7 @@
+ $specialsettings = urldecode($specialsettings);
+ }
+
+- if($documentroot != $result['documentroot'] || $ipandport != $result['ipandport'] || $openbasedir != $result['openbasedir'] || $safemode != $result['safemode'] || $specialsettings != $result['specialsettings'])
++ if($documentroot != $result['documentroot'] || $ipandport != $result['ipandport'] || $ssi_includes != $result['ssi_includes'] || $php_engine != $result['php_engine'] || $openbasedir != $result['openbasedir'] || $safemode != $result['safemode'] || $php_errordisplay != $result['php_errordisplay'] || $specialsettings != $result['specialsettings'])
+ {
+ inserttask('1');
+ }
+@@ -528,8 +561,8 @@
+ }
+
+ $specialsettings = addslashes($specialsettings);
+- $result=$db->query("UPDATE `".TABLE_PANEL_DOMAINS."` SET `documentroot`='$documentroot', `ipandport`='$ipandport', `aliasdomain`=".(($aliasdomain!=0 && $alias_check==0) ? '\''.$aliasdomain.'\'' : 'NULL').", `isbinddomain`='$isbinddomain', `isemaildomain`='$isemaildomain', `subcanemaildomain`='$subcanemaildomain', `caneditdomain`='$caneditdomain', `zonefile`='$zonefile', `openbasedir`='$openbasedir', `safemode`='$safemode', `specialsettings`='$specialsettings' WHERE `id`='$id'");
+- $result=$db->query("UPDATE `".TABLE_PANEL_DOMAINS."` SET `ipandport`='$ipandport', `openbasedir`='$openbasedir', `safemode`='$safemode', `specialsettings`='$specialsettings' WHERE `parentdomainid`='$id'");
++ $result=$db->query("UPDATE `".TABLE_PANEL_DOMAINS."` SET `documentroot`='$documentroot', `ipandport`='$ipandport', `aliasdomain`=".(($aliasdomain!=0 && $alias_check==0) ? '\''.$aliasdomain.'\'' : 'NULL').", `isbinddomain`='$isbinddomain', `isemaildomain`='$isemaildomain', `subcanemaildomain`='$subcanemaildomain', `caneditdomain`='$caneditdomain', `zonefile`='$zonefile', `ssi_includes`='$ssi_includes', `php_engine`='$php_engine', `openbasedir`='$openbasedir', `safemode`='$safemode', `php_errordisplay`='$php_errordisplay', `specialsettings`='$specialsettings' WHERE `id`='$id'");
++ $result=$db->query("UPDATE `".TABLE_PANEL_DOMAINS."` SET `ipandport`='$ipandport', `ssi_includes`='$ssi_includes', `php_engine`='$php_engine', `openbasedir`='$openbasedir', `safemode`='$safemode', `php_errordisplay`='$php_errordisplay', `specialsettings`='$specialsettings' WHERE `parentdomainid`='$id'");
+
+ redirectTo ( $filename , Array ( 'page' => $page , 's' => $s ) ) ;
+ }
+@@ -553,8 +586,11 @@
+ $isemaildomain=makeyesno('isemaildomain', '1', '0', $result['isemaildomain']);
+ $subcanemaildomain=makeyesno('subcanemaildomain', '1', '0', $result['subcanemaildomain']);
+ $caneditdomain=makeyesno('caneditdomain', '1', '0', $result['caneditdomain']);
++ $ssi_includes=makeyesno('ssi_includes', '1', '0', $result['ssi_includes']);
++ $php_engine=makeyesno('php_engine', '1', '0', $result['php_engine']);
+ $openbasedir=makeyesno('openbasedir', '1', '0', $result['openbasedir']);
+ $safemode=makeyesno('safemode', '1', '0', $result['safemode']);
++ $php_errordisplay=makeyesno('php_errordisplay', '1', '0', $result['php_errordisplay']);
+ $speciallogfile=($result['speciallogfile'] == 1 ? $lng['panel']['yes'] : $lng['panel']['no']);
+ eval("echo \"".getTemplate("domains/domains_edit")."\";");
+ }
+@@ -562,4 +598,4 @@
+ }
+ }
+
+-?>
++?>
+\ No newline at end of file
+diff -Nru syscp-mysql-ftp-imp/customer_domains.php syscp-options/customer_domains.php
+--- syscp-mysql-ftp-imp/customer_domains.php 2006-03-26 01:05:34.000000000 +0100
++++ syscp-options/customer_domains.php 2006-03-26 01:06:22.000000000 +0100
+@@ -224,7 +224,7 @@
+ {
+ $subdomain = $idna_convert->encode(preg_replace(Array('/\:(\d)+$/','/^https?\:\/\//'),'',addslashes($_POST['subdomain'])));
+ $domain=$idna_convert->encode(addslashes($_POST['domain']));
+- $domain_check=$db->query_first("SELECT `id`, `customerid`, `domain`, `documentroot`, `isemaildomain`, `openbasedir`, `safemode`, `speciallogfile`, `specialsettings` FROM `".TABLE_PANEL_DOMAINS."` WHERE `domain`='$domain' AND `customerid`='".$userinfo['customerid']."' AND `parentdomainid`='0' AND `iswildcarddomain`='0' AND `caneditdomain`='1' ");
++ $domain_check=$db->query_first("SELECT `id`, `customerid`, `domain`, `documentroot`, `isemaildomain`, `ssi_includes`, `php_engine`, `openbasedir`, `safemode`, `php_errordisplay`, `speciallogfile`, `specialsettings` FROM `".TABLE_PANEL_DOMAINS."` WHERE `domain`='$domain' AND `customerid`='".$userinfo['customerid']."' AND `parentdomainid`='0' AND `iswildcarddomain`='0' AND `caneditdomain`='1' ");
+ $completedomain=$subdomain.'.'.$domain;
+ $completedomain_check=$db->query_first("SELECT `id`, `customerid`, `domain`, `documentroot`, `isemaildomain` FROM `".TABLE_PANEL_DOMAINS."` WHERE `domain`='$completedomain' AND `customerid`='".$userinfo['customerid']."' AND `caneditdomain` = '1'");
+ $aliasdomain = intval($_POST['alias']);
+@@ -283,7 +283,7 @@
+
+ else
+ {
+- $result=$db->query("INSERT INTO `".TABLE_PANEL_DOMAINS."` (`customerid`, `domain`, `documentroot`, `aliasdomain`, `parentdomainid`, `isemaildomain`, `openbasedir`, `safemode`, `speciallogfile`, `specialsettings`) VALUES ('".$userinfo['customerid']."', '$completedomain', '$path', ".(($aliasdomain != 0) ? "'".$aliasdomain."'" : "NULL").", '".$domain_check['id']."', '0', '".$domain_check['openbasedir']."', '".$domain_check['safemode']."', '".$domain_check['speciallogfile']."', '".$domain_check['specialsettings']."')");
++ $result=$db->query("INSERT INTO `".TABLE_PANEL_DOMAINS."` (`customerid`, `domain`, `documentroot`, `aliasdomain`, `parentdomainid`, `isemaildomain`, `ssi_includes`, `php_engine`, `openbasedir`, `safemode`, `php_errordisplay`, `speciallogfile`, `specialsettings`) VALUES ('".$userinfo['customerid']."', '$completedomain', '$path', ".(($aliasdomain != 0) ? "'".$aliasdomain."'" : "NULL").", '".$domain_check['id']."', '0', '".$domain_check['ssi_includes']."', '".$domain_check['php_engine']."', '".$domain_check['openbasedir']."', '".$domain_check['safemode']."', '".$domain_check['php_errordisplay']."', '".$domain_check['speciallogfile']."', '".$domain_check['specialsettings']."')");
+ $result=$db->query("UPDATE `".TABLE_PANEL_CUSTOMERS."` SET `subdomains_used`=`subdomains_used`+1 WHERE `customerid`='".$userinfo['customerid']."'");
+ inserttask('1');
+ redirectTo ( $filename , Array ( 'page' => $page , 's' => $s ) ) ;
+@@ -312,7 +312,7 @@
+
+ elseif($action=='edit' && $id!=0)
+ {
+- $result=$db->query_first("SELECT `d`.`id`, `d`.`customerid`, `d`.`domain`, `d`.`documentroot`, `d`.`isemaildomain`, `d`.`iswildcarddomain`, `d`.`parentdomainid`, `d`.`aliasdomain`, `pd`.`subcanemaildomain` FROM `".TABLE_PANEL_DOMAINS."` `d`, `".TABLE_PANEL_DOMAINS."` `pd` WHERE `d`.`customerid`='".$userinfo['customerid']."' AND `d`.`id`='$id' AND ((`d`.`parentdomainid`!='0' AND `pd`.`id`=`d`.`parentdomainid`) OR (`d`.`parentdomainid`='0' AND `pd`.`id`=`d`.`id`)) AND `d`.`caneditdomain`='1'");
++ $result=$db->query_first("SELECT `d`.`id`, `d`.`customerid`, `d`.`domain`, `d`.`documentroot`, `d`.`isemaildomain`, `d`.`php_errordisplay`, `d`.`iswildcarddomain`, `d`.`parentdomainid`, `d`.`aliasdomain`, `pd`.`subcanemaildomain` FROM `".TABLE_PANEL_DOMAINS."` `d`, `".TABLE_PANEL_DOMAINS."` `pd` WHERE `d`.`customerid`='".$userinfo['customerid']."' AND `d`.`id`='$id' AND ((`d`.`parentdomainid`!='0' AND `pd`.`id`=`d`.`parentdomainid`) OR (`d`.`parentdomainid`='0' AND `pd`.`id`=`d`.`id`)) AND `d`.`caneditdomain`='1'");
+ $alias_check=$db->query_first('SELECT COUNT(`id`) AS count FROM `'.TABLE_PANEL_DOMAINS.'` WHERE `aliasdomain`=\''.$result['id'].'\'');
+ $alias_check=$alias_check['count'];
+
+@@ -358,6 +358,12 @@
+ $isemaildomain = $result['isemaildomain'];
+ }
+
++ $php_errordisplay = intval($_POST['php_errordisplay']);
++ if($php_errordisplay != '1')
++ {
++ $php_errordisplay = '0';
++ }
++
+ $aliasdomain_check=array('id' => 0);
+ if($aliasdomain!=0)
+ {
+@@ -380,10 +386,10 @@
+ $db->query("DELETE FROM `".TABLE_MAIL_USERS."` WHERE `customerid`='".$userinfo['customerid']."' AND `domainid`='$id'");
+ $db->query("DELETE FROM `".TABLE_MAIL_VIRTUAL."` WHERE `customerid`='".$userinfo['customerid']."' AND `domainid`='$id'");
+ }
+- if($path != $result['documentroot'] || $isemaildomain != $result['isemaildomain'] || $iswildcarddomain != $result['iswildcarddomain'] || $aliasdomain != $result['aliasdomain'])
++ if($path != $result['documentroot'] || $isemaildomain != $result['isemaildomain'] || $php_errordisplay != $result['php_errordisplay'] || $iswildcarddomain != $result['iswildcarddomain'] || $aliasdomain != $result['aliasdomain'])
+ {
+ inserttask('1');
+- $result=$db->query("UPDATE `".TABLE_PANEL_DOMAINS."` SET `documentroot`='$path', `isemaildomain`='$isemaildomain', `iswildcarddomain`='$iswildcarddomain', `aliasdomain`=".(($aliasdomain!=0 && $alias_check==0) ? '\''.$aliasdomain.'\'' : 'NULL')." WHERE `customerid`='".$userinfo['customerid']."' AND `id`='$id'");
++ $result=$db->query("UPDATE `".TABLE_PANEL_DOMAINS."` SET `documentroot`='$path', `isemaildomain`='$isemaildomain', `php_errordisplay`='$php_errordisplay', `iswildcarddomain`='$iswildcarddomain', `aliasdomain`=".(($aliasdomain!=0 && $alias_check==0) ? '\''.$aliasdomain.'\'' : 'NULL')." WHERE `customerid`='".$userinfo['customerid']."' AND `id`='$id'");
+ }
+ redirectTo ( $filename , Array ( 'page' => $page , 's' => $s ) ) ;
+ }
+@@ -403,6 +409,7 @@
+ // $result['documentroot']=str_replace($userinfo['documentroot'],'',$result['documentroot']);
+ $iswildcarddomain=makeyesno('iswildcarddomain', '1', '0', $result['iswildcarddomain']);
+ $isemaildomain=makeyesno('isemaildomain', '1', '0', $result['isemaildomain']);
++ $php_errordisplay=makeyesno('php_errordisplay', '1', '0', $result['php_errordisplay']);
+ eval("echo \"".getTemplate("domains/domains_edit")."\";");
+ }
+ }
+diff -Nru syscp-mysql-ftp-imp/customer_extras.php syscp-options/customer_extras.php
+--- syscp-mysql-ftp-imp/customer_extras.php 2006-03-26 01:05:34.000000000 +0100
++++ syscp-options/customer_extras.php 2006-03-26 01:06:22.000000000 +0100
+@@ -176,6 +176,8 @@
+ $row['path']=str_replace($userinfo['documentroot'],'',$row['path']);
+ $row['options_indexes'] = str_replace('1', $lng['panel']['yes'], $row['options_indexes']);
+ $row['options_indexes'] = str_replace('0', $lng['panel']['no'], $row['options_indexes']);
++ $row['options_execcgi'] = str_replace('1', $lng['panel']['yes'], $row['options_execcgi']);
++ $row['options_execcgi'] = str_replace('0', $lng['panel']['no'], $row['options_execcgi']);
+ eval("\$htaccess.=\"".getTemplate("extras/htaccess_htaccess")."\";");
+ }
+ eval("echo \"".getTemplate("extras/htaccess")."\";");
+@@ -270,6 +272,7 @@
+ ' (`customerid`, ' .
+ ' `path`, ' .
+ ' `options_indexes`, ' .
++ ' `options_execcgi`, ' .
+ ' `error404path`, ' .
+ ' `error403path`, ' .
+ // ' `error401path`, ' .
+@@ -278,6 +281,7 @@
+ 'VALUES ("'.$userinfo['customerid'].'", ' .
+ ' "'.$path.'", ' .
+ ' "'.$_POST['options_indexes'].'", ' .
++ ' "'.$_POST['options_execcgi'].'", ' .
+ ' "'.$error404path.'", ' .
+ ' "'.$error403path.'", ' .
+ // ' "'.$error401path.'", ' .
+@@ -293,6 +297,7 @@
+ $pathSelect = makePathfield( $userinfo['documentroot'], $userinfo['guid'],
+ $userinfo['guid'], $settings['panel']['pathedit'] );
+ $options_indexes = makeyesno('options_indexes','1','0','1');
++ $options_execcgi = makeyesno('options_execcgi','1','0','0');
+ eval("echo \"".getTemplate("extras/htaccess_add")."\";");
+ }
+ }
+@@ -317,6 +322,11 @@
+ {
+ $option_indexes = '0';
+ }
++ $option_execcgi = intval($_POST['options_execcgi']);
++ if ($option_execcgi != '1')
++ {
++ $option_execcgi = '0';
++ }
+ if ( ($_POST['error404path'] == '')
+ || (preg_match('/^https?\:\/\//', $_POST['error404path']) )
+ )
+@@ -359,6 +369,7 @@
+ // }
+
+ if ( ($option_indexes != $result['options_indexes'])
++ || ($option_execcgi != $result['options_execcgi'])
+ || ($error404path != $result['error404path'])
+ || ($error403path != $result['error403path'])
+ // || ($error401path != $result['error401path'])
+@@ -369,6 +380,7 @@
+ $db->query(
+ 'UPDATE `'.TABLE_PANEL_HTACCESS.'` ' .
+ 'SET `options_indexes` = "'.$option_indexes.'",' .
++ ' `options_execcgi` = "'.$option_execcgi.'",' .
+ ' `error404path` = "'.$error404path.'", ' .
+ ' `error403path` = "'.$error403path.'", ' .
+ // ' `error401path` = "'.$error401path.'", ' .
+@@ -387,6 +399,7 @@
+ // $result['error401path'] = $result['error401path'];
+ $result['error500path'] = $result['error500path'];
+ $options_indexes = makeyesno('options_indexes', '1', '0', $result['options_indexes']);
++ $options_execcgi = makeyesno('options_execcgi', '1', '0', $result['options_execcgi']);
+ eval("echo \"".getTemplate("extras/htaccess_edit")."\";");
+ }
+ }
+diff -Nru syscp-mysql-ftp-imp/lng/english.lng.php syscp-options/lng/english.lng.php
+--- syscp-mysql-ftp-imp/lng/english.lng.php 2006-03-26 01:05:47.000000000 +0100
++++ syscp-options/lng/english.lng.php 2006-03-26 01:06:22.000000000 +0100
+@@ -413,4 +413,14 @@
+ $lng['error']['dbuserstillhasdb'] = 'You cannot delete this database user, databases are still assigned to it!<br />Please reassign or delete all databases assigned to this user first.';
+ $lng['question']['mysql_reallydelete_user'] = 'Do you really want to delete the user %s? This cannot be undone!';
+ $lng['ftp']['ftpsuffix'] = 'Account suffix';
++
++/**
++ * CHANGED FOR MOREOPTIONS PATCH
++ */
++
++/**
++ * ADDED FOR MOREOPTIONS PATCH
++ */
++$lng['extras']['view_execcgi'] = 'permit CGI execution';
++$lng['extras']['directory_execcgi'] = 'execute CGI scripts';
+ ?>
+\ No newline at end of file
+diff -Nru syscp-mysql-ftp-imp/scripts/cron_tasks.php syscp-options/scripts/cron_tasks.php
+--- syscp-mysql-ftp-imp/scripts/cron_tasks.php 2006-03-26 01:05:34.000000000 +0100
++++ syscp-options/scripts/cron_tasks.php 2006-03-26 01:06:22.000000000 +0100
+@@ -75,7 +75,7 @@
+ // $vhosts_file.='ServerName '.$settings['system']['hostname']."\n";
+ // $vhosts_file.='</VirtualHost>'."\n"."\n";
+
+- $result_domains=$db->query("SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, CONCAT(`ip`.`ip`,':',`ip`.`port`) AS `ipandport`, `d`.`parentdomainid`, `d`.`isemaildomain`, `d`.`iswildcarddomain`, `d`.`openbasedir`, `d`.`safemode`, `d`.`speciallogfile`, `d`.`specialsettings`, `pd`.`domain` AS `parentdomain`, `c`.`loginname`, `c`.`guid`, `c`.`email`, `c`.`documentroot` AS `customerroot` FROM `".TABLE_PANEL_DOMAINS."` `d` LEFT JOIN `".TABLE_PANEL_CUSTOMERS."` `c` USING(`customerid`) LEFT JOIN `".TABLE_PANEL_DOMAINS."` `pd` ON (`pd`.`id` = `d`.`parentdomainid`) LEFT JOIN `".TABLE_PANEL_IPSANDPORTS."` `ip` ON (`d`.`ipandport` = `ip`.`id`) WHERE `d`.`deactivated` <> '1' AND `d`.`aliasdomain` IS NULL ORDER BY `d`.`iswildcarddomain`, `d`.`domain` ASC");
++ $result_domains=$db->query("SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, CONCAT(`ip`.`ip`,':',`ip`.`port`) AS `ipandport`, `d`.`parentdomainid`, `d`.`isemaildomain`, `d`.`iswildcarddomain`, `d`.`ssi_includes`, `d`.`php_engine`, `d`.`openbasedir`, `d`.`safemode`, `d`.`php_errordisplay`, `d`.`speciallogfile`, `d`.`specialsettings`, `pd`.`domain` AS `parentdomain`, `c`.`loginname`, `c`.`guid`, `c`.`email`, `c`.`documentroot` AS `customerroot` FROM `".TABLE_PANEL_DOMAINS."` `d` LEFT JOIN `".TABLE_PANEL_CUSTOMERS."` `c` USING(`customerid`) LEFT JOIN `".TABLE_PANEL_DOMAINS."` `pd` ON (`pd`.`id` = `d`.`parentdomainid`) LEFT JOIN `".TABLE_PANEL_IPSANDPORTS."` `ip` ON (`d`.`ipandport` = `ip`.`id`) WHERE `d`.`deactivated` <> '1' AND `d`.`aliasdomain` IS NULL ORDER BY `d`.`iswildcarddomain`, `d`.`domain` ASC");
+ while($domain=$db->fetch_array($result_domains))
+ {
+ fwrite( $debugHandler, ' cron_tasks: Task1 - Writing Domain '.$domain['id'].'::'.$domain['domain']);
+@@ -108,19 +108,43 @@
+ {
+ $domain['documentroot'] = makeCorrectDir ($domain['documentroot']);
+ $vhosts_file.=' DocumentRoot "'.$domain['documentroot']."\"\n";
+- if($domain['openbasedir'] == '1')
+- {
+- $vhosts_file.=' php_admin_value open_basedir "'.$domain['documentroot']."\"\n";
+- }
+- if($domain['safemode'] == '1')
+- {
+- $vhosts_file.=' php_admin_flag safe_mode On '."\n";
+- }
+- if($domain['safemode'] == '0')
++ if($domain['ssi_includes'] == '1')
+ {
+- $vhosts_file.=' php_admin_flag safe_mode Off '."\n";
++ $vhosts_file.=' Options +Includes'."\n";
+ }
+-
++ if($domain['ssi_includes'] == '0')
++ {
++ $vhosts_file.=' Options -Includes'."\n";
++ }
++ if($domain['php_engine'] == '1')
++ {
++ $vhosts_file.=' php_admin_flag engine On'."\n";
++ if($domain['openbasedir'] == '1')
++ {
++ $vhosts_file.=' php_admin_value open_basedir "'.$domain['documentroot']."\"\n";
++ }
++ if($domain['safemode'] == '1')
++ {
++ $vhosts_file.=' php_admin_flag safe_mode On '."\n";
++ }
++ if($domain['safemode'] == '0')
++ {
++ $vhosts_file.=' php_admin_flag safe_mode Off '."\n";
++ }
++ if($domain['php_errordisplay'] == '1')
++ {
++ $vhosts_file.=' php_admin_flag display_errors On '."\n";
++ }
++ if($domain['php_errordisplay'] == '0')
++ {
++ $vhosts_file.=' php_admin_flag display_errors Off '."\n";
++ }
++ }
++ if($domain['php_engine'] == '0')
++ {
++ $vhosts_file.=' php_admin_flag engine Off'."\n";
++ }
++
+ if(!is_dir($domain['documentroot']))
+ {
+ safe_exec('mkdir -p "'.$domain['documentroot'].'"');
+@@ -238,6 +262,16 @@
+ $diroptions_file .= ' Options -Indexes'."\n";
+ fwrite( $debugHandler, ' cron_tasks: Task3 - Setting Options -Indexes');
+ }
++ if ( isset ( $row_diroptions['options_execcgi'] ) && $row_diroptions['options_execcgi'] == '1' )
++ {
++ $diroptions_file .= ' Options +ExecCGI'."\n";
++ fwrite( $debugHandler, ' cron_tasks: Task3 - Setting Options +ExecCGI');
++ }
++ if ( isset ( $row_diroptions['options_execcgi'] ) && $row_diroptions['options_execcgi'] == '0' )
++ {
++ $diroptions_file .= ' Options -ExecCGI'."\n";
++ fwrite( $debugHandler, ' cron_tasks: Task3 - Setting Options -ExecCGI');
++ }
+ if ( isset ( $row_diroptions['error404path'] ) && $row_diroptions['error404path'] != '')
+ {
+ $diroptions_file .= ' ErrorDocument 404 "'.$row_diroptions['error404path']."\"\n";
+diff -Nru syscp-mysql-ftp-imp/templates/admin/domains/domains_add.tpl syscp-options/templates/admin/domains/domains_add.tpl
+--- syscp-mysql-ftp-imp/templates/admin/domains/domains_add.tpl 2006-03-26 01:05:34.000000000 +0100
++++ syscp-options/templates/admin/domains/domains_add.tpl 2006-03-26 01:06:22.000000000 +0100
+@@ -49,6 +49,18 @@
+ <td class="install_nomecampo">{$lng['admin']['domain_edit']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$caneditdomain</td>
+ </tr>
++ <tr>
++ <td class="install_nomecampo">ServerSideIncludes:</td>
++ <td class="install_campodisplay" nowrap="nowrap">$ssi_includes</td>
++ </tr>
++ <tr>
++ <td class="install_nomecampo">PHP Engine:</td>
++ <td class="install_campodisplay" nowrap="nowrap">$php_engine</td>
++ </tr>
++ <tr>
++ <td class="install_nomecampo">PHP Error Display:</td>
++ <td class="install_campodisplay" nowrap="nowrap">$php_errordisplay</td>
++ </tr>
+ <if $userinfo['change_serversettings'] == '1'>
+ <tr>
+ <td class="install_nomecampo">OpenBasedir:</td>
+diff -Nru syscp-mysql-ftp-imp/templates/admin/domains/domains_edit.tpl syscp-options/templates/admin/domains/domains_edit.tpl
+--- syscp-mysql-ftp-imp/templates/admin/domains/domains_edit.tpl 2006-03-26 01:05:34.000000000 +0100
++++ syscp-options/templates/admin/domains/domains_edit.tpl 2006-03-26 01:06:22.000000000 +0100
+@@ -52,6 +52,18 @@
+ <td class="install_nomecampo">{$lng['admin']['domain_edit']}:</td>
+ <td class="install_campodisplay" nowrap="nowrap">$caneditdomain</td>
+ </tr>
++ <tr>
++ <td class="install_nomecampo">ServerSideIncludes:</td>
++ <td class="install_campodisplay" nowrap="nowrap">$ssi_includes</td>
++ </tr>
++ <tr>
++ <td class="install_nomecampo">PHP Engine:</td>
++ <td class="install_campodisplay" nowrap="nowrap">$php_engine</td>
++ </tr>
++ <tr>
++ <td class="install_nomecampo">PHP Error Display:</td>
++ <td class="install_campodisplay" nowrap="nowrap">$php_errordisplay</td>
++ </tr>
+ <if $userinfo['change_serversettings'] == '1'>
+ <tr>
+ <td class="install_nomecampo">OpenBasedir:</td>
+diff -Nru syscp-mysql-ftp-imp/templates/customer/domains/domains_edit.tpl syscp-options/templates/customer/domains/domains_edit.tpl
+--- syscp-mysql-ftp-imp/templates/customer/domains/domains_edit.tpl 2006-03-26 01:05:34.000000000 +0100
++++ syscp-options/templates/customer/domains/domains_edit.tpl 2006-03-26 01:06:22.000000000 +0100
+@@ -35,6 +35,10 @@
+ </tr>
+ </if>
+ <tr>
++ <td class="install_nomecampo">PHP Error Display:</td>
++ <td class="install_campodisplay" nowrap="nowrap">$php_errordisplay</td>
++ </tr>
++ <tr>
+ <td class="install_confermacampo" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottone" value="{$lng['panel']['save']}" /></td>
+ </tr>
+ </table>
+diff -Nru syscp-mysql-ftp-imp/templates/customer/extras/htaccess_add.tpl syscp-options/templates/customer/extras/htaccess_add.tpl
+--- syscp-mysql-ftp-imp/templates/customer/extras/htaccess_add.tpl 2006-03-26 01:05:34.000000000 +0100
++++ syscp-options/templates/customer/extras/htaccess_add.tpl 2006-03-26 01:06:22.000000000 +0100
+@@ -16,6 +16,10 @@
+ <td class="install_campodisplay" nowrap="nowrap">$options_indexes</td>
+ </tr>
+ <tr>
++ <td class="install_nomecampo"><b>{$lng['extras']['directory_execcgi']}:</b></td>
++ <td class="install_campodisplay" nowrap="nowrap">$options_execcgi</td>
++ </tr>
++ <tr>
+ <td class="install_nomecampo"><b>{$lng['extras']['errordocument404path']}:</b><br />{$lng['panel']['emptyfordefault']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="error404path" value="" maxlength="50" /></td>
+ </tr>
+diff -Nru syscp-mysql-ftp-imp/templates/customer/extras/htaccess_edit.tpl syscp-options/templates/customer/extras/htaccess_edit.tpl
+--- syscp-mysql-ftp-imp/templates/customer/extras/htaccess_edit.tpl 2006-03-26 01:05:34.000000000 +0100
++++ syscp-options/templates/customer/extras/htaccess_edit.tpl 2006-03-26 01:06:22.000000000 +0100
+@@ -17,6 +17,10 @@
+ <td class="install_campodisplay" nowrap="nowrap">$options_indexes</td>
+ </tr>
+ <tr>
++ <td class="install_nomecampo"><b>{$lng['extras']['directory_execcgi']}:</b></td>
++ <td class="install_campodisplay" nowrap="nowrap">$options_execcgi</td>
++ </tr>
++ <tr>
+ <td class="install_nomecampo"><b>{$lng['extras']['errordocument404path']}:</b><br />{$lng['panel']['emptyfordefault']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="error404path" value="{$result['error404path']}" maxlength="50" /></td>
+ </tr>
+diff -Nru syscp-mysql-ftp-imp/templates/customer/extras/htaccess_htaccess.tpl syscp-options/templates/customer/extras/htaccess_htaccess.tpl
+--- syscp-mysql-ftp-imp/templates/customer/extras/htaccess_htaccess.tpl 2006-03-26 01:05:34.000000000 +0100
++++ syscp-options/templates/customer/extras/htaccess_htaccess.tpl 2006-03-26 01:06:22.000000000 +0100
+@@ -1,6 +1,7 @@
+ <tr>
+ <td class="nomecampo_bordosx">{$row['path']}</td>
+ <td class="nomecampo">{$row['options_indexes']}</td>
++ <td class="nomecampo">{$row['options_execcgi']}</td>
+ <td class="nomecampo">{$row['error404path']}</td>
+ <td class="nomecampo">{$row['error403path']}</td>
+ <td class="nomecampo">{$row['error500path']}</td>
+diff -Nru syscp-mysql-ftp-imp/templates/customer/extras/htaccess.tpl syscp-options/templates/customer/extras/htaccess.tpl
+--- syscp-mysql-ftp-imp/templates/customer/extras/htaccess.tpl 2006-03-26 01:05:34.000000000 +0100
++++ syscp-options/templates/customer/extras/htaccess.tpl 2006-03-26 01:06:22.000000000 +0100
+@@ -1,11 +1,12 @@
+ $header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+- <td class="install_titolo" colspan="7"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['extras']['pathoptions']}</b></td>
++ <td class="install_titolo" colspan="8"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['extras']['pathoptions']}</b></td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['panel']['path']}</td>
+ <td class="campodisplay">{$lng['extras']['view_directory']}</td>
++ <td class="campodisplay">{$lng['extras']['view_execcgi']}</td>
+ <td class="campodisplay">{$lng['extras']['error404path']}</td>
+ <td class="campodisplay">{$lng['extras']['error403path']}</td>
+ <td class="campodisplay">{$lng['extras']['error500path']}</td>
+@@ -13,7 +14,7 @@
+ </tr>
+ $htaccess
+ <tr>
+- <td class="campodisplay_bordosx" colspan="7"><a href="$filename?page=htaccess&amp;action=add&amp;s=$s">{$lng['extras']['pathoptions_add']}</a></td>
++ <td class="campodisplay_bordosx" colspan="8"><a href="$filename?page=htaccess&amp;action=add&amp;s=$s">{$lng['extras']['pathoptions_add']}</a></td>
+ </tr>
+ </table>
+ <br />
diff --git a/syscp/patches/options-patch/syscp-1.2.13-options-patch-r3.tar.bz2 b/syscp/patches/options-patch/syscp-1.2.13-options-patch-r3.tar.bz2
new file mode 100644
index 0000000..9187e3e
--- /dev/null
+++ b/syscp/patches/options-patch/syscp-1.2.13-options-patch-r3.tar.bz2
Binary files differ
diff --git a/syscp/patches/suexec-patch/syscp-1.2.13-suexec-patch-r3.tar.bz2 b/syscp/patches/suexec-patch/syscp-1.2.13-suexec-patch-r3.tar.bz2
new file mode 100644
index 0000000..cd9aae1
--- /dev/null
+++ b/syscp/patches/suexec-patch/syscp-1.2.13-suexec-patch-r3.tar.bz2
Binary files differ
diff --git a/syscp/patches/suexec-patch/syscp-1.2.13-suexec-support.patch b/syscp/patches/suexec-patch/syscp-1.2.13-suexec-support.patch
new file mode 100644
index 0000000..3cd7424
--- /dev/null
+++ b/syscp/patches/suexec-patch/syscp-1.2.13-suexec-support.patch
@@ -0,0 +1,11 @@
+diff -Nru syscp-options/scripts/cron_tasks.php syscp-suexec/scripts/cron_tasks.php
+--- syscp-options/scripts/cron_tasks.php 2006-03-26 01:24:58.000000000 +0100
++++ syscp-suexec/scripts/cron_tasks.php 2006-03-26 04:09:01.000000000 +0200
+@@ -108,6 +108,7 @@
+ {
+ $domain['documentroot'] = makeCorrectDir ($domain['documentroot']);
+ $vhosts_file.=' DocumentRoot "'.$domain['documentroot']."\"\n";
++ $vhosts_file.=' SuexecUserGroup '.$domain['loginname'].' '.$domain['loginname']."\n";
+ if($domain['ssi_includes'] == '1')
+ {
+ $vhosts_file.=' Options +Includes'."\n";
diff --git a/syscp/patches/suphp-patch/syscp-1.2.13-suphp-patch-r3.tar.bz2 b/syscp/patches/suphp-patch/syscp-1.2.13-suphp-patch-r3.tar.bz2
new file mode 100644
index 0000000..81add91
--- /dev/null
+++ b/syscp/patches/suphp-patch/syscp-1.2.13-suphp-patch-r3.tar.bz2
Binary files differ
diff --git a/syscp/patches/suphp-patch/syscp-1.2.13-suphp-support.patch b/syscp/patches/suphp-patch/syscp-1.2.13-suphp-support.patch
new file mode 100644
index 0000000..b2f7b06
--- /dev/null
+++ b/syscp/patches/suphp-patch/syscp-1.2.13-suphp-support.patch
@@ -0,0 +1,370 @@
+diff -Nru syscp-suexec/customer_extras.php syscp-suphp/customer_extras.php
+--- syscp-suexec/customer_extras.php 2006-03-26 04:08:39.000000000 +0200
++++ syscp-suphp/customer_extras.php 2006-03-26 04:11:22.000000000 +0200
+@@ -178,6 +178,8 @@
+ $row['options_indexes'] = str_replace('0', $lng['panel']['no'], $row['options_indexes']);
+ $row['options_execcgi'] = str_replace('1', $lng['panel']['yes'], $row['options_execcgi']);
+ $row['options_execcgi'] = str_replace('0', $lng['panel']['no'], $row['options_execcgi']);
++ $row['options_phpversionselect'] = str_replace('4', $lng['extras']['php4'], $row['options_phpversionselect']);
++ $row['options_phpversionselect'] = str_replace('5', $lng['extras']['php5'], $row['options_phpversionselect']);
+ eval("\$htaccess.=\"".getTemplate("extras/htaccess_htaccess")."\";");
+ }
+ eval("echo \"".getTemplate("extras/htaccess")."\";");
+@@ -273,6 +275,7 @@
+ ' `path`, ' .
+ ' `options_indexes`, ' .
+ ' `options_execcgi`, ' .
++ ' `options_phpversionselect`, ' .
+ ' `error404path`, ' .
+ ' `error403path`, ' .
+ // ' `error401path`, ' .
+@@ -282,6 +285,7 @@
+ ' "'.$path.'", ' .
+ ' "'.$_POST['options_indexes'].'", ' .
+ ' "'.$_POST['options_execcgi'].'", ' .
++ ' "'.$_POST['options_phpversionselect'].'", ' .
+ ' "'.$error404path.'", ' .
+ ' "'.$error403path.'", ' .
+ // ' "'.$error401path.'", ' .
+@@ -298,6 +302,7 @@
+ $userinfo['guid'], $settings['panel']['pathedit'] );
+ $options_indexes = makeyesno('options_indexes','1','0','1');
+ $options_execcgi = makeyesno('options_execcgi','1','0','0');
++ $options_phpversionselect = "<b>".$lng['extras']['php4']."</b><input type=\"radio\" name=\"options_phpversionselect\" value=\"4\" checked=\"checked\" />&nbsp;\n<b>".$lng['extras']['php5']."</b><input type=\"radio\" name=\"options_phpversionselect\" value=\"5\" />";
+ eval("echo \"".getTemplate("extras/htaccess_add")."\";");
+ }
+ }
+@@ -327,6 +332,11 @@
+ {
+ $option_execcgi = '0';
+ }
++ $option_phpversionselect = intval($_POST['options_phpversionselect']);
++ if ($option_phpversionselect != '5')
++ {
++ $option_phpversionselect = '4';
++ }
+ if ( ($_POST['error404path'] == '')
+ || (preg_match('/^https?\:\/\//', $_POST['error404path']) )
+ )
+@@ -370,6 +380,7 @@
+
+ if ( ($option_indexes != $result['options_indexes'])
+ || ($option_execcgi != $result['options_execcgi'])
++ || ($option_phpversionselect != $result['options_phpversionselect'])
+ || ($error404path != $result['error404path'])
+ || ($error403path != $result['error403path'])
+ // || ($error401path != $result['error401path'])
+@@ -381,6 +392,7 @@
+ 'UPDATE `'.TABLE_PANEL_HTACCESS.'` ' .
+ 'SET `options_indexes` = "'.$option_indexes.'",' .
+ ' `options_execcgi` = "'.$option_execcgi.'",' .
++ ' `options_phpversionselect` = "'.$option_phpversionselect.'",' .
+ ' `error404path` = "'.$error404path.'", ' .
+ ' `error403path` = "'.$error403path.'", ' .
+ // ' `error401path` = "'.$error401path.'", ' .
+@@ -400,6 +412,14 @@
+ $result['error500path'] = $result['error500path'];
+ $options_indexes = makeyesno('options_indexes', '1', '0', $result['options_indexes']);
+ $options_execcgi = makeyesno('options_execcgi', '1', '0', $result['options_execcgi']);
++ if($result['options_phpversionselect'] == '5')
++ {
++ $options_phpversionselect = "<b>".$lng['extras']['php4']."</b><input type=\"radio\" name=\"options_phpversionselect\" value=\"4\" />&nbsp;\n<b>".$lng['extras']['php5']."</b><input type=\"radio\" name=\"options_phpversionselect\" value=\"5\" checked=\"checked\" />";
++ }
++ else
++ {
++ $options_phpversionselect = "<b>".$lng['extras']['php4']."</b><input type=\"radio\" name=\"options_phpversionselect\" value=\"4\" checked=\"checked\" />&nbsp;\n<b>".$lng['extras']['php5']."</b><input type=\"radio\" name=\"options_phpversionselect\" value=\"5\" />";
++ }
+ eval("echo \"".getTemplate("extras/htaccess_edit")."\";");
+ }
+ }
+diff -Nru syscp-suexec/lng/english.lng.php syscp-suphp/lng/english.lng.php
+--- syscp-suexec/lng/english.lng.php 2006-03-26 04:08:39.000000000 +0200
++++ syscp-suphp/lng/english.lng.php 2006-03-26 04:11:22.000000000 +0200
+@@ -423,4 +423,16 @@
+ */
+ $lng['extras']['view_execcgi'] = 'permit CGI execution';
+ $lng['extras']['directory_execcgi'] = 'execute CGI scripts';
++
++/**
++ * CHANGED FOR SUPHP PATCH
++ */
++
++/**
++ * ADDED FOR SUPHP PATCH
++ */
++$lng['extras']['php4'] = 'PHP4';
++$lng['extras']['php5'] = 'PHP5';
++$lng['extras']['view_phpversionselect'] = 'PHP version';
++$lng['extras']['directory_phpversionselect'] = 'enabled PHP version';
+ ?>
+\ No newline at end of file
+diff -Nru syscp-suexec/scripts/create_suphp_inis.php syscp-suphp/scripts/create_suphp_inis.php
+--- syscp-suexec/scripts/create_suphp_inis.php 1970-01-01 01:00:00.000000000 +0100
++++ syscp-suphp/scripts/create_suphp_inis.php 2006-03-26 04:11:22.000000000 +0200
+@@ -0,0 +1,129 @@
++<?php
++/*
++ * This script creates the php.ini's used by mod_suPHP+php-cgi
++ */
++ if(@php_sapi_name() != 'cli' && @php_sapi_name() != 'cgi' && @php_sapi_name() != 'cgi-fcgi')
++ {
++ die('This script only works in the shell.');
++ }
++
++ $baseconfigdir = '/var/www/syscp-suphp/config';
++ $basetmpdir = '/var/www/syscp-suphp/tmp';
++ $peardir = '/usr/share/php/:/usr/share/php4/:/usr/share/php5/';
++
++ $configdir = $baseconfigdir.'/'.$domain['loginname'].'/'.$domain['domain'].'/';
++ $tmpdir = $basetmpdir.'/'.$domain['loginname'].'/';
++
++ if($domain['openbasedir'] == '1')
++ {
++ $openbasedircomm = '';
++ $openbasedir = $domain['documentroot'].':'.$tmpdir.':'.$peardir;
++ }
++ if($domain['openbasedir'] == '0')
++ {
++ $openbasedircomm = ';';
++ $openbasedir = '';
++ }
++
++ if($domain['safemode'] == '1')
++ {
++ $safemode = 'On';
++ }
++ if($domain['safemode'] == '0')
++ {
++ $safemode = 'Off';
++ }
++
++ if($domain['php_errordisplay'] == '1')
++ {
++ $phperrordisplay = 'On';
++ }
++ if($domain['php_errordisplay'] == '0')
++ {
++ $phperrordisplay = 'Off';
++ }
++
++ // create config dir if necessary
++ if(!is_dir($configdir))
++ {
++ safe_exec('mkdir -p "'.$configdir.'"');
++ }
++
++ // create tmp dir if necessary
++ if(!is_dir($tmpdir))
++ {
++ safe_exec('mkdir -p "'.$tmpdir.'"');
++ safe_exec('chown -R '.$domain['guid'].':'.$domain['guid'].' "'.$tmpdir.'"');
++ safe_exec('chmod 0750 "'.$tmpdir.'"');
++ }
++
++// define the php.ini
++$config_file_php_ini = 'short_open_tag = On
++asp_tags = Off
++precision = 14
++output_buffering = 4096
++allow_call_time_pass_reference = Off
++safe_mode = '.$safemode.'
++safe_mode_gid = Off
++safe_mode_include_dir = "'.$peardir.'"
++safe_mode_allowed_env_vars = PHP_
++safe_mode_protected_env_vars = LD_LIBRARY_PATH
++'.$openbasedircomm.'open_basedir = "'.$openbasedir.'"
++disable_functions = exec,passthru,shell_exec,system,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate
++disable_classes =
++expose_php = Off
++max_execution_time = 30
++max_input_time = 60
++memory_limit = 8M
++post_max_size = 8M
++error_reporting = E_ALL
++display_errors = '.$phperrordisplay.'
++display_startup_errors = Off
++log_errors = On
++log_errors_max_len = 1024
++ignore_repeated_errors = Off
++ignore_repeated_source = Off
++report_memleaks = On
++track_errors = Off
++html_errors = Off
++variables_order = "GPCS"
++register_globals = Off
++register_argc_argv = Off
++gpc_order = "GPC"
++magic_quotes_gpc = Off
++magic_quotes_runtime = Off
++magic_quotes_sybase = Off
++include_path = ".:'.$peardir.'"
++enable_dl = Off
++file_uploads = On
++upload_tmp_dir = "'.$tmpdir.'"
++upload_max_filesize = 32M
++allow_url_fopen = Off
++sendmail_path = "/usr/sbin/sendmail -t -f '.$domain['email'].'"
++session.save_handler = files
++session.save_path = "'.$tmpdir.'"
++session.use_cookies = 1
++session.name = PHPSESSID
++session.auto_start = 0
++session.cookie_lifetime = 0
++session.cookie_path = /
++session.cookie_domain =
++session.serialize_handler = php
++session.gc_probability = 1
++session.gc_divisor = 1000
++session.gc_maxlifetime = 1440
++session.bug_compat_42 = 0
++session.bug_compat_warn = 1
++session.referer_check =
++session.entropy_length = 16
++session.entropy_file = /dev/urandom
++session.cache_limiter = nocache
++session.cache_expire = 180
++session.use_trans_sid = 0';
++
++$config_file_handler = fopen($configdir.'php.ini', 'w');
++fwrite($config_file_handler, $config_file_php_ini);
++fclose($config_file_handler);
++safe_exec('chown root:0 "'.$configdir.'php.ini"');
++safe_exec('chmod 0644 "'.$configdir.'php.ini"');
++?>
+\ No newline at end of file
+diff -Nru syscp-suexec/scripts/cron_tasks.php syscp-suphp/scripts/cron_tasks.php
+--- syscp-suexec/scripts/cron_tasks.php 2006-03-26 04:09:01.000000000 +0200
++++ syscp-suphp/scripts/cron_tasks.php 2006-03-26 04:11:22.000000000 +0200
+@@ -119,31 +119,14 @@
+ }
+ if($domain['php_engine'] == '1')
+ {
+- $vhosts_file.=' php_admin_flag engine On'."\n";
+- if($domain['openbasedir'] == '1')
+- {
+- $vhosts_file.=' php_admin_value open_basedir "'.$domain['documentroot']."\"\n";
+- }
+- if($domain['safemode'] == '1')
+- {
+- $vhosts_file.=' php_admin_flag safe_mode On '."\n";
+- }
+- if($domain['safemode'] == '0')
+- {
+- $vhosts_file.=' php_admin_flag safe_mode Off '."\n";
+- }
+- if($domain['php_errordisplay'] == '1')
+- {
+- $vhosts_file.=' php_admin_flag display_errors On '."\n";
+- }
+- if($domain['php_errordisplay'] == '0')
+- {
+- $vhosts_file.=' php_admin_flag display_errors Off '."\n";
+- }
++ $vhosts_file.=' suPHP_Engine On'."\n";
++ $vhosts_file.=' suPHP_UserGroup '.$domain['loginname'].' '.$domain['loginname']."\n";
++ include 'create_suphp_inis.php';
++ $vhosts_file.=' suPHP_ConfigPath "'.$configdir."\"\n";
+ }
+ if($domain['php_engine'] == '0')
+ {
+- $vhosts_file.=' php_admin_flag engine Off'."\n";
++ $vhosts_file.=' suPHP_Engine Off'."\n";
+ }
+
+ if(!is_dir($domain['documentroot']))
+@@ -198,6 +181,8 @@
+ safe_exec('chown -R '.$row['data']['uid'].':'.$row['data']['gid'].' "'.$settings['system']['documentroot_prefix'].$row['data']['loginname'].'"');
+ safe_exec('chown -R '.$settings['system']['vmail_uid'].':'.$settings['system']['vmail_gid'].' "'.$settings['system']['vmail_homedir'].$row['data']['loginname'].'"');
+ safe_exec('chmod 0750 "'.$settings['system']['vmail_homedir'].$row['data']['loginname'].'"');
++ safe_exec('chown '.$row['data']['uid'].':apache "'.$settings['system']['documentroot_prefix'].$row['data']['loginname'].'"');
++ safe_exec('chmod 0750 "'.$settings['system']['documentroot_prefix'].$row['data']['loginname'].'"');
+ }
+ }
+
+@@ -273,6 +258,20 @@
+ $diroptions_file .= ' Options -ExecCGI'."\n";
+ fwrite( $debugHandler, ' cron_tasks: Task3 - Setting Options -ExecCGI');
+ }
++ if ( isset ( $row_diroptions['options_phpversionselect'] ) && $row_diroptions['options_phpversionselect'] == '5' )
++ {
++ $diroptions_file .= ' AddType application/x-httpd-php5 .php .php5 .php4 .php3 .phtml'."\n";
++ $diroptions_file .= ' AddHandler x-httpd-php5 .php .php5 .php4 .php3 .phtml'."\n";
++ $diroptions_file .= ' suPHP_AddHandler x-httpd-php5'."\n";
++ fwrite( $debugHandler, ' cron_tasks: Task3 - Setting PHP version to 5');
++ }
++ if ( isset ( $row_diroptions['options_phpversionselect'] ) && $row_diroptions['options_phpversionselect'] == '4' )
++ {
++ $diroptions_file .= ' AddType application/x-httpd-php4 .php .php5 .php4 .php3 .phtml'."\n";
++ $diroptions_file .= ' AddHandler x-httpd-php4 .php .php5 .php4 .php3 .phtml'."\n";
++ $diroptions_file .= ' suPHP_AddHandler x-httpd-php4'."\n";
++ fwrite( $debugHandler, ' cron_tasks: Task3 - Setting PHP version to 4');
++ }
+ if ( isset ( $row_diroptions['error404path'] ) && $row_diroptions['error404path'] != '')
+ {
+ $diroptions_file .= ' ErrorDocument 404 "'.$row_diroptions['error404path']."\"\n";
+diff -Nru syscp-suexec/templates/customer/extras/htaccess_add.tpl syscp-suphp/templates/customer/extras/htaccess_add.tpl
+--- syscp-suexec/templates/customer/extras/htaccess_add.tpl 2006-03-26 04:08:39.000000000 +0200
++++ syscp-suphp/templates/customer/extras/htaccess_add.tpl 2006-03-26 04:11:22.000000000 +0200
+@@ -20,6 +20,10 @@
+ <td class="install_campodisplay" nowrap="nowrap">$options_execcgi</td>
+ </tr>
+ <tr>
++ <td class="install_nomecampo"><b>{$lng['extras']['directory_phpversionselect']}:</b></td>
++ <td class="install_campodisplay" nowrap="nowrap">$options_phpversionselect</td>
++ </tr>
++ <tr>
+ <td class="install_nomecampo"><b>{$lng['extras']['errordocument404path']}:</b><br />{$lng['panel']['emptyfordefault']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="error404path" value="" maxlength="50" /></td>
+ </tr>
+diff -Nru syscp-suexec/templates/customer/extras/htaccess_edit.tpl syscp-suphp/templates/customer/extras/htaccess_edit.tpl
+--- syscp-suexec/templates/customer/extras/htaccess_edit.tpl 2006-03-26 04:08:39.000000000 +0200
++++ syscp-suphp/templates/customer/extras/htaccess_edit.tpl 2006-03-26 04:11:22.000000000 +0200
+@@ -21,6 +21,10 @@
+ <td class="install_campodisplay" nowrap="nowrap">$options_execcgi</td>
+ </tr>
+ <tr>
++ <td class="install_nomecampo"><b>{$lng['extras']['directory_phpversionselect']}:</b></td>
++ <td class="install_campodisplay" nowrap="nowrap">$options_phpversionselect</td>
++ </tr>
++ <tr>
+ <td class="install_nomecampo"><b>{$lng['extras']['errordocument404path']}:</b><br />{$lng['panel']['emptyfordefault']}</td>
+ <td class="install_campodisplay" nowrap="nowrap"><input type="text" name="error404path" value="{$result['error404path']}" maxlength="50" /></td>
+ </tr>
+diff -Nru syscp-suexec/templates/customer/extras/htaccess_htaccess.tpl syscp-suphp/templates/customer/extras/htaccess_htaccess.tpl
+--- syscp-suexec/templates/customer/extras/htaccess_htaccess.tpl 2006-03-26 04:08:39.000000000 +0200
++++ syscp-suphp/templates/customer/extras/htaccess_htaccess.tpl 2006-03-26 04:11:22.000000000 +0200
+@@ -2,6 +2,7 @@
+ <td class="nomecampo_bordosx">{$row['path']}</td>
+ <td class="nomecampo">{$row['options_indexes']}</td>
+ <td class="nomecampo">{$row['options_execcgi']}</td>
++ <td class="nomecampo">{$row['options_phpversionselect']}</td>
+ <td class="nomecampo">{$row['error404path']}</td>
+ <td class="nomecampo">{$row['error403path']}</td>
+ <td class="nomecampo">{$row['error500path']}</td>
+diff -Nru syscp-suexec/templates/customer/extras/htaccess.tpl syscp-suphp/templates/customer/extras/htaccess.tpl
+--- syscp-suexec/templates/customer/extras/htaccess.tpl 2006-03-26 04:08:39.000000000 +0200
++++ syscp-suphp/templates/customer/extras/htaccess.tpl 2006-03-26 04:11:22.000000000 +0200
+@@ -1,12 +1,13 @@
+ $header
+ <table cellpadding="5" cellspacing="0" border="0" align="center" class="install_tabella">
+ <tr>
+- <td class="install_titolo" colspan="8"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['extras']['pathoptions']}</b></td>
++ <td class="install_titolo" colspan="9"><b><img src="../images/titolo.gif" alt="" />&nbsp;{$lng['menue']['extras']['pathoptions']}</b></td>
+ </tr>
+ <tr>
+ <td class="campodisplay_bordosx">{$lng['panel']['path']}</td>
+ <td class="campodisplay">{$lng['extras']['view_directory']}</td>
+ <td class="campodisplay">{$lng['extras']['view_execcgi']}</td>
++ <td class="campodisplay">{$lng['extras']['view_phpversionselect']}</td>
+ <td class="campodisplay">{$lng['extras']['error404path']}</td>
+ <td class="campodisplay">{$lng['extras']['error403path']}</td>
+ <td class="campodisplay">{$lng['extras']['error500path']}</td>
+@@ -14,7 +15,7 @@
+ </tr>
+ $htaccess
+ <tr>
+- <td class="campodisplay_bordosx" colspan="8"><a href="$filename?page=htaccess&amp;action=add&amp;s=$s">{$lng['extras']['pathoptions_add']}</a></td>
++ <td class="campodisplay_bordosx" colspan="9"><a href="$filename?page=htaccess&amp;action=add&amp;s=$s">{$lng['extras']['pathoptions_add']}</a></td>
+ </tr>
+ </table>
+ <br />
diff --git a/syscp/patches/syscp-patches/syscp-1.2.13-gentoo-compatibility.patch b/syscp/patches/syscp-patches/syscp-1.2.13-gentoo-compatibility.patch
new file mode 100644
index 0000000..288f2a6
--- /dev/null
+++ b/syscp/patches/syscp-patches/syscp-1.2.13-gentoo-compatibility.patch
@@ -0,0 +1,83 @@
+diff -Nru syscp/admin_customers.php syscp-gentoo-comp/admin_customers.php
+--- syscp/admin_customers.php 2006-03-25 23:38:00.000000000 +0100
++++ syscp-gentoo-comp/admin_customers.php 2006-03-26 00:39:05.000000000 +0100
+@@ -421,7 +421,7 @@
+ $db->query(
+ "INSERT INTO `".TABLE_PANEL_DOMAINS."` " .
+ "(`domain`, `customerid`, `adminid`, `parentdomainid`, `documentroot`, `zonefile`, `isemaildomain`, `caneditdomain`, `openbasedir`, `safemode`, `speciallogfile`, `specialsettings`) " .
+- "VALUES ('$loginname.{$settings['system']['hostname']}', '$customerid', '{$userinfo['adminid']}', '-1', '$documentroot', '', '0', '0', '1', '1', '0', '')"
++ "VALUES ('$loginname.{$settings['system']['hostname']}', '$customerid', '{$userinfo['adminid']}', '-1', '$documentroot', '', '1', '1', '1', '1', '0', '')"
+ );
+ $domainid=$db->insert_id();
+ $db->query(
+@@ -552,7 +552,7 @@
+ $db->query(
+ "INSERT INTO `".TABLE_PANEL_DOMAINS."` " .
+ "(`domain`, `customerid`, `adminid`, `documentroot`, `zonefile`, `isemaildomain`, `caneditdomain`, `openbasedir`, `safemode`, `speciallogfile`, `specialsettings`) " .
+- "VALUES ('{$result['loginname']}.{$settings['system']['hostname']}', '{$result['customerid']}', '{$userinfo['adminid']}', '{$result['documentroot']}', '', '0', '0', '1', '1', '0', '')"
++ "VALUES ('{$result['loginname']}.{$settings['system']['hostname']}', '{$result['customerid']}', '{$userinfo['adminid']}', '{$result['documentroot']}', '', '1', '1', '1', '1', '0', '')"
+ );
+ $domainid=$db->insert_id();
+ $db->query(
+diff -Nru syscp/admin_domains.php syscp-gentoo-comp/admin_domains.php
+--- syscp/admin_domains.php 2006-03-25 23:38:00.000000000 +0100
++++ syscp-gentoo-comp/admin_domains.php 2006-03-26 00:39:05.000000000 +0100
+@@ -390,9 +390,9 @@
+ {
+ $domains.=makeoption($idna_convert->decode($row_domain['domain']).' ('.$row_domain['loginname'].')',$row_domain['id']);
+ }
+- $isbinddomain=makeyesno('isbinddomain', '1', '0', '1');
++ $isbinddomain=makeyesno('isbinddomain', '1', '0', '0');
+ $isemaildomain=makeyesno('isemaildomain', '1', '0', '1');
+- $subcanemaildomain=makeyesno('subcanemaildomain', '1', '0', '0');
++ $subcanemaildomain=makeyesno('subcanemaildomain', '1', '0', '1');
+ $caneditdomain=makeyesno('caneditdomain', '1', '0', '1');
+ $openbasedir=makeyesno('openbasedir', '1', '0', '1');
+ $safemode=makeyesno('safemode', '1', '0', '1');
+diff -Nru syscp/customer_email.php syscp-gentoo-comp/customer_email.php
+--- syscp/customer_email.php 2006-03-25 23:38:00.000000000 +0100
++++ syscp-gentoo-comp/customer_email.php 2006-03-26 00:39:05.000000000 +0100
+@@ -285,7 +285,7 @@
+
+ else
+ {
+- $db->query("INSERT INTO `".TABLE_MAIL_USERS."` (`customerid`, `email`, `username`, `password`, `password_enc`, `homedir`, `maildir`, `uid`, `gid`, `domainid`, `postfix`) VALUES ('".$userinfo['customerid']."', '$email_full', '$username', '$password', ENCRYPT('$password'), '".$settings['system']['vmail_homedir']."', '".$userinfo['loginname']."/$email_full/', '".$settings['system']['vmail_uid']."', '".$settings['system']['vmail_gid']."', '".$result['domainid']."', 'y')");
++ $db->query("INSERT INTO `".TABLE_MAIL_USERS."` (`customerid`, `email`, `username`, `password`, `password_enc`, `homedir`, `maildir`, `uid`, `gid`, `domainid`, `postfix`) VALUES ('".$userinfo['customerid']."', '$email_full', '$username', '', ENCRYPT('$password'), '".$settings['system']['vmail_homedir']."', '".$userinfo['loginname']."/$email_full/', '".$settings['system']['vmail_uid']."', '".$settings['system']['vmail_gid']."', '".$result['domainid']."', 'y')");
+ $popaccountid = $db->insert_id();
+ $result['destination'] .= ' ' . $email_full;
+ $db->query("UPDATE `".TABLE_MAIL_VIRTUAL."` SET `destination` = '".makeCorrectDestination($result['destination'])."', `popaccountid` = '$popaccountid' WHERE `customerid`='".$userinfo['customerid']."' AND `id`='$id'");
+@@ -333,7 +333,7 @@
+ }
+ else
+ {
+- $result=$db->query("UPDATE `".TABLE_MAIL_USERS."` SET `password` = '$password', `password_enc`=ENCRYPT('$password') WHERE `customerid`='".$userinfo['customerid']."' AND `id`='".$result['popaccountid']."'");
++ $result=$db->query("UPDATE `".TABLE_MAIL_USERS."` SET `password` = '', `password_enc`=ENCRYPT('$password') WHERE `customerid`='".$userinfo['customerid']."' AND `id`='".$result['popaccountid']."'");
+ redirectTo ( $filename , Array ( 'page' => 'emails' , 'action' => 'edit' , 'id' => $id , 's' => $s ) ) ;
+ }
+ }
+diff -Nru syscp/scripts/cron_tasks.php syscp-gentoo-comp/scripts/cron_tasks.php
+--- syscp/scripts/cron_tasks.php 2006-03-25 23:38:02.000000000 +0100
++++ syscp-gentoo-comp/scripts/cron_tasks.php 2006-03-26 00:39:05.000000000 +0100
+@@ -70,10 +70,10 @@
+ }
+ $vhosts_file.="\n";
+
+- $vhosts_file.='# DummyHost for DefaultSite'."\n";
+- $vhosts_file.='<VirtualHost '.$settings['system']['ipaddress'].':80>'."\n";
+- $vhosts_file.='ServerName '.$settings['system']['hostname']."\n";
+- $vhosts_file.='</VirtualHost>'."\n"."\n";
++// $vhosts_file.='# DummyHost for DefaultSite'."\n";
++// $vhosts_file.='<VirtualHost '.$settings['system']['ipaddress'].':80>'."\n";
++// $vhosts_file.='ServerName '.$settings['system']['hostname']."\n";
++// $vhosts_file.='</VirtualHost>'."\n"."\n";
+
+ $result_domains=$db->query("SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, CONCAT(`ip`.`ip`,':',`ip`.`port`) AS `ipandport`, `d`.`parentdomainid`, `d`.`isemaildomain`, `d`.`iswildcarddomain`, `d`.`openbasedir`, `d`.`safemode`, `d`.`speciallogfile`, `d`.`specialsettings`, `pd`.`domain` AS `parentdomain`, `c`.`loginname`, `c`.`guid`, `c`.`email`, `c`.`documentroot` AS `customerroot` FROM `".TABLE_PANEL_DOMAINS."` `d` LEFT JOIN `".TABLE_PANEL_CUSTOMERS."` `c` USING(`customerid`) LEFT JOIN `".TABLE_PANEL_DOMAINS."` `pd` ON (`pd`.`id` = `d`.`parentdomainid`) LEFT JOIN `".TABLE_PANEL_IPSANDPORTS."` `ip` ON (`d`.`ipandport` = `ip`.`id`) WHERE `d`.`deactivated` <> '1' AND `d`.`aliasdomain` IS NULL ORDER BY `d`.`iswildcarddomain`, `d`.`domain` ASC");
+ while($domain=$db->fetch_array($result_domains))
+@@ -172,6 +172,7 @@
+ safe_exec('cp -a '.$pathtophpfiles.'/templates/misc/standardcustomer/* "'.$settings['system']['documentroot_prefix'].$row['data']['loginname'].'/"');
+ safe_exec('chown -R '.$row['data']['uid'].':'.$row['data']['gid'].' "'.$settings['system']['documentroot_prefix'].$row['data']['loginname'].'"');
+ safe_exec('chown -R '.$settings['system']['vmail_uid'].':'.$settings['system']['vmail_gid'].' "'.$settings['system']['vmail_homedir'].$row['data']['loginname'].'"');
++ safe_exec('chmod 0750 "'.$settings['system']['vmail_homedir'].$row['data']['loginname'].'"');
+ }
+ }
+
diff --git a/syscp/patches/syscp-patches/syscp-1.2.13-patches-r3.tar.bz2 b/syscp/patches/syscp-patches/syscp-1.2.13-patches-r3.tar.bz2
new file mode 100644
index 0000000..a4be393
--- /dev/null
+++ b/syscp/patches/syscp-patches/syscp-1.2.13-patches-r3.tar.bz2
Binary files differ
diff --git a/syscp/patches/syscp-sqlfile/syscp-1.2.13-addopts-db.sql b/syscp/patches/syscp-sqlfile/syscp-1.2.13-addopts-db.sql
new file mode 100644
index 0000000..1bc4b28
--- /dev/null
+++ b/syscp/patches/syscp-sqlfile/syscp-1.2.13-addopts-db.sql
@@ -0,0 +1,7 @@
+USE `MYSQL_DATABASE_NAME` ;
+
+ALTER TABLE `panel_domains` ADD `ssi_includes` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `parentdomainid` ,
+ADD `php_engine` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `ssi_includes` ,
+ADD `php_errordisplay` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `safemode` ;
+
+ALTER TABLE `panel_htaccess` ADD `options_execcgi` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `options_indexes` ;
diff --git a/syscp/patches/syscp-sqlfile/syscp-1.2.13-baseinstall-db.sql b/syscp/patches/syscp-sqlfile/syscp-1.2.13-baseinstall-db.sql
new file mode 100644
index 0000000..f02d175
--- /dev/null
+++ b/syscp/patches/syscp-sqlfile/syscp-1.2.13-baseinstall-db.sql
@@ -0,0 +1,646 @@
+# $Id: syscp.sql,v 1.50 2005/09/21 10:33:05 flo Exp $
+# --------------------------------------------------------
+
+#
+# Delete old users and databases if present
+#
+
+DELETE FROM `mysql`.`user` WHERE `User` = 'MYSQL_UNPRIV_USER' AND `Host` = 'MYSQL_ACCESS_HOST';
+DELETE FROM `mysql`.`db` WHERE `User` = 'MYSQL_UNPRIV_USER' AND `Host` = 'MYSQL_ACCESS_HOST';
+DELETE FROM `mysql`.`tables_priv` WHERE `User` = 'MYSQL_UNPRIV_USER' AND `Host` = 'MYSQL_ACCESS_HOST';
+DELETE FROM `mysql`.`columns_priv` WHERE `User` = 'MYSQL_UNPRIV_USER' AND `Host` = 'MYSQL_ACCESS_HOST';
+DROP DATABASE IF EXISTS `MYSQL_DATABASE_NAME`;
+FLUSH PRIVILEGES;
+
+#
+# Create new users and databases
+#
+
+CREATE DATABASE `MYSQL_DATABASE_NAME`;
+GRANT ALL PRIVILEGES ON `MYSQL_DATABASE_NAME`.* TO MYSQL_UNPRIV_USER@MYSQL_ACCESS_HOST IDENTIFIED BY 'password';
+SET PASSWORD FOR MYSQL_UNPRIV_USER@MYSQL_ACCESS_HOST = PASSWORD('MYSQL_UNPRIV_PASSWORD');
+FLUSH PRIVILEGES;
+
+USE `MYSQL_DATABASE_NAME`;
+
+#
+# Table structure for table `ftp_groups`
+#
+
+DROP TABLE IF EXISTS `ftp_groups`;
+CREATE TABLE `ftp_groups` (
+ `id` int(20) NOT NULL auto_increment,
+ `groupname` varchar(60) NOT NULL default '',
+ `gid` int(5) NOT NULL default '0',
+ `members` longtext NOT NULL,
+ `customerid` int(11) NOT NULL default '0',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `groupname` (`groupname`),
+ KEY `customerid` (`customerid`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `ftp_groups`
+#
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `ftp_users`
+#
+
+DROP TABLE IF EXISTS `ftp_users`;
+CREATE TABLE `ftp_users` (
+ `id` int(20) NOT NULL auto_increment,
+ `username` varchar(128) NOT NULL default '',
+ `uid` int(5) NOT NULL default '0',
+ `gid` int(5) NOT NULL default '0',
+ `password` varchar(128) NOT NULL default '',
+ `homedir` varchar(255) NOT NULL default '',
+ `shell` varchar(255) NOT NULL default '/bin/false',
+ `login_enabled` enum('N','Y') NOT NULL default 'N',
+ `login_count` int(15) NOT NULL default '0',
+ `last_login` datetime NOT NULL default '0000-00-00 00:00:00',
+ `up_count` int(15) NOT NULL default '0',
+ `up_bytes` bigint(30) NOT NULL default '0',
+ `down_count` int(15) NOT NULL default '0',
+ `down_bytes` bigint(30) NOT NULL default '0',
+ `customerid` int(11) NOT NULL default '0',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `username` (`username`),
+ KEY `customerid` (`customerid`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `ftp_users`
+#
+
+# --------------------------------------------------------
+
+
+#
+# Table structure for table `mail_users`
+#
+
+DROP TABLE IF EXISTS `mail_users`;
+CREATE TABLE `mail_users` (
+ `id` int(11) NOT NULL auto_increment,
+ `email` varchar(255) NOT NULL default '',
+ `username` varchar(255) NOT NULL default '',
+ `password` varchar(128) NOT NULL default '',
+ `password_enc` varchar(128) NOT NULL default '',
+ `uid` int(11) NOT NULL default '0',
+ `gid` int(11) NOT NULL default '0',
+ `homedir` varchar(255) NOT NULL default '',
+ `maildir` varchar(255) NOT NULL default '',
+ `postfix` enum('Y','N') NOT NULL default 'Y',
+ `domainid` int(11) NOT NULL default '0',
+ `customerid` int(11) NOT NULL default '0',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `email` (`email`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `mail_users`
+#
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `mail_virtual`
+#
+
+DROP TABLE IF EXISTS `mail_virtual`;
+CREATE TABLE `mail_virtual` (
+ `id` int(11) NOT NULL auto_increment,
+ `email` varchar(255) NOT NULL default '',
+ `email_full` varchar(255) NOT NULL default '',
+ `destination` text NOT NULL,
+ `domainid` int(11) NOT NULL default '0',
+ `customerid` int(11) NOT NULL default '0',
+ `popaccountid` int(11) NOT NULL default '0',
+ `iscatchall` tinyint(1) unsigned NOT NULL default '0',
+ PRIMARY KEY (`id`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `mail_virtual`
+#
+
+# --------------------------------------------------------
+
+
+#
+# Table structure for table `panel_admins`
+#
+
+DROP TABLE IF EXISTS `panel_admins`;
+CREATE TABLE `panel_admins` (
+ `adminid` int(11) unsigned NOT NULL auto_increment,
+ `loginname` varchar(50) NOT NULL default '',
+ `password` varchar(50) NOT NULL default '',
+ `name` varchar(255) NOT NULL default '',
+ `email` varchar(255) NOT NULL default '',
+ `def_language` varchar(255) NOT NULL default '',
+ `customers` int(15) NOT NULL default '0',
+ `customers_used` int(15) NOT NULL default '0',
+ `customers_see_all` tinyint(1) NOT NULL default '0',
+ `domains` int(15) NOT NULL default '0',
+ `domains_used` int(15) NOT NULL default '0',
+ `domains_see_all` tinyint(1) NOT NULL default '0',
+ `change_serversettings` tinyint(1) NOT NULL default '0',
+ `diskspace` int(15) NOT NULL default '0',
+ `diskspace_used` int(15) NOT NULL default '0',
+ `mysqls` int(15) NOT NULL default '0',
+ `mysqls_used` int(15) NOT NULL default '0',
+ `emails` int(15) NOT NULL default '0',
+ `emails_used` int(15) NOT NULL default '0',
+ `email_accounts` int(15) NOT NULL default '0',
+ `email_accounts_used` int(15) NOT NULL default '0',
+ `email_forwarders` int(15) NOT NULL default '0',
+ `email_forwarders_used` int(15) NOT NULL default '0',
+ `ftps` int(15) NOT NULL default '0',
+ `ftps_used` int(15) NOT NULL default '0',
+ `subdomains` int(15) NOT NULL default '0',
+ `subdomains_used` int(15) NOT NULL default '0',
+ `traffic` int(15) NOT NULL default '0',
+ `traffic_used` int(15) NOT NULL default '0',
+ `deactivated` tinyint(1) NOT NULL default '0',
+ `lastlogin_succ` int(11) unsigned NOT NULL default '0',
+ `lastlogin_fail` int(11) unsigned NOT NULL default '0',
+ `loginfail_count` int(11) unsigned NOT NULL default '0',
+ PRIMARY KEY (`adminid`)
+) TYPE=MyISAM ;
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_customers`
+#
+
+DROP TABLE IF EXISTS `panel_customers`;
+CREATE TABLE `panel_customers` (
+ `customerid` int(11) unsigned NOT NULL auto_increment,
+ `loginname` varchar(50) NOT NULL default '',
+ `password` varchar(50) NOT NULL default '',
+ `adminid` int(11) unsigned NOT NULL default '0',
+ `name` varchar(255) NOT NULL default '',
+ `firstname` varchar(255) NOT NULL default '',
+ `company` varchar(255) NOT NULL default '',
+ `street` varchar(255) NOT NULL default '',
+ `zipcode` varchar(255) NOT NULL default '',
+ `city` varchar(255) NOT NULL default '',
+ `phone` varchar(255) NOT NULL default '',
+ `fax` varchar(255) NOT NULL default '',
+ `email` varchar(255) NOT NULL default '',
+ `customernumber` varchar(255) NOT NULL default '',
+ `def_language` varchar(255) NOT NULL default '',
+ `diskspace` int(15) NOT NULL default '0',
+ `diskspace_used` int(15) NOT NULL default '0',
+ `mysqls` int(15) NOT NULL default '0',
+ `mysqls_used` int(15) NOT NULL default '0',
+ `emails` int(15) NOT NULL default '0',
+ `emails_used` int(15) NOT NULL default '0',
+ `email_accounts` int(15) NOT NULL default '0',
+ `email_accounts_used` int(15) NOT NULL default '0',
+ `email_forwarders` int(15) NOT NULL default '0',
+ `email_forwarders_used` int(15) NOT NULL default '0',
+ `ftps` int(15) NOT NULL default '0',
+ `ftps_used` int(15) NOT NULL default '0',
+ `subdomains` int(15) NOT NULL default '0',
+ `subdomains_used` int(15) NOT NULL default '0',
+ `traffic` int(15) NOT NULL default '0',
+ `traffic_used` int(15) NOT NULL default '0',
+ `documentroot` varchar(255) NOT NULL default '',
+ `standardsubdomain` int(11) NOT NULL default '0',
+ `guid` int(5) NOT NULL default '0',
+ `ftp_lastaccountnumber` int(11) NOT NULL default '0',
+ `mysql_lastaccountnumber` int(11) NOT NULL default '0',
+ `deactivated` tinyint(1) NOT NULL default '0',
+ `lastlogin_succ` int(11) unsigned NOT NULL default '0',
+ `lastlogin_fail` int(11) unsigned NOT NULL default '0',
+ `loginfail_count` int(11) unsigned NOT NULL default '0',
+ PRIMARY KEY (`customerid`),
+ KEY `loginname` (`loginname`)
+) TYPE=MyISAM ;
+#
+# Dumping data for table `panel_customers`
+#
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_databases`
+#
+
+DROP TABLE IF EXISTS `panel_databases`;
+CREATE TABLE `panel_databases` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `customerid` int(11) NOT NULL default '0',
+ `databasename` varchar(255) NOT NULL default '',
+ `description` varchar(255) NOT NULL default '',
+ PRIMARY KEY (`id`),
+ KEY `customerid` (`customerid`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `panel_databases`
+#
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_domains`
+#
+DROP TABLE IF EXISTS `panel_domains`;
+CREATE TABLE `panel_domains` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `domain` varchar(255) NOT NULL default '',
+ `adminid` int(11) unsigned NOT NULL default '0',
+ `customerid` int(11) unsigned NOT NULL default '0',
+ `aliasdomain` int(11) unsigned NULL,
+ `documentroot` varchar(255) NOT NULL default '',
+ `ipandport` int(11) unsigned NOT NULL default '1',
+ `isbinddomain` tinyint(1) NOT NULL default '0',
+ `isemaildomain` tinyint(1) NOT NULL default '0',
+ `iswildcarddomain` tinyint(1) NOT NULL default '0',
+ `subcanemaildomain` tinyint(1) NOT NULL default '0',
+ `caneditdomain` tinyint(1) NOT NULL default '1',
+ `zonefile` varchar(255) NOT NULL default '',
+ `parentdomainid` int(11) unsigned NOT NULL default '0',
+ `openbasedir` tinyint(1) NOT NULL default '0',
+ `safemode` tinyint(1) NOT NULL default '0',
+ `speciallogfile` tinyint(1) NOT NULL default '0',
+ `specialsettings` text NOT NULL,
+ `deactivated` tinyint(1) NOT NULL default '0',
+ PRIMARY KEY (`id`),
+ KEY `customerid` (`customerid`),
+ KEY `parentdomain` (`parentdomainid`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `panel_domains`
+#
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_ipsandports`
+#
+DROP TABLE IF EXISTS `panel_ipsandports`;
+CREATE TABLE `panel_ipsandports` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `ip` varchar(15) NOT NULL default '',
+ `port` int(5) NOT NULL default '80',
+ `default` int(1) NOT NULL default '0',
+ PRIMARY KEY (`id`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `panel_ipsandports`
+#
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_htaccess`
+#
+
+DROP TABLE IF EXISTS `panel_htaccess`;
+CREATE TABLE `panel_htaccess` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `customerid` int(11) unsigned NOT NULL default '0',
+ `path` varchar(255) NOT NULL default '',
+ `options_indexes` tinyint(1) NOT NULL default '0',
+ `error404path` varchar(255) NOT NULL default '',
+ `error403path` varchar(255) NOT NULL default '',
+ `error500path` varchar(255) NOT NULL default '',
+ PRIMARY KEY (`id`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `panel_htaccess`
+#
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_htpasswds`
+#
+
+DROP TABLE IF EXISTS `panel_htpasswds`;
+CREATE TABLE `panel_htpasswds` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `customerid` int(11) unsigned NOT NULL default '0',
+ `path` varchar(255) NOT NULL default '',
+ `username` varchar(255) NOT NULL default '',
+ `password` varchar(255) NOT NULL default '',
+ PRIMARY KEY (`id`),
+ KEY `customerid` (`customerid`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `panel_htpasswds`
+#
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_sessions`
+#
+
+DROP TABLE IF EXISTS `panel_sessions`;
+CREATE TABLE `panel_sessions` (
+ `hash` varchar(32) NOT NULL default '',
+ `userid` int(11) unsigned NOT NULL default '0',
+ `ipaddress` varchar(16) NOT NULL default '',
+ `useragent` varchar(255) NOT NULL default '',
+ `lastactivity` int(11) unsigned NOT NULL default '0',
+ `language` varchar(64) NOT NULL default '',
+ `adminsession` tinyint(1) unsigned NOT NULL default '0',
+ PRIMARY KEY (`hash`),
+ KEY `userid` (`userid`)
+) TYPE=HEAP;
+
+#
+# Dumping data for table `panel_sessions`
+#
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_settings`
+#
+
+DROP TABLE IF EXISTS `panel_settings`;
+CREATE TABLE `panel_settings` (
+ `settingid` int(11) unsigned NOT NULL auto_increment,
+ `settinggroup` varchar(255) NOT NULL default '',
+ `varname` varchar(255) NOT NULL default '',
+ `value` text NOT NULL,
+ PRIMARY KEY (`settingid`)
+) TYPE=MyISAM ;
+
+
+# --------------------------------------------------------
+
+#
+# Dumping data for table `panel_settings`
+#
+
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (1, 'session', 'sessiontimeout', '600');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (2, 'panel', 'adminmail', 'admin@SERVERNAME');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (3, 'panel', 'phpmyadmin_url', '');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (5, 'customer', 'accountprefix', 'web');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (6, 'customer', 'ftpprefix', 'f');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (7, 'customer', 'mysqlprefix', 's');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (8, 'system', 'lastaccountnumber', '0');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (9, 'system', 'lastguid', '10000');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (10, 'system', 'documentroot_prefix', '/var/www/syscpwebs/');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (11, 'system', 'logfiles_directory', '/var/log/syscplogs/');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (12, 'system', 'ipaddress', 'SERVERIP');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (13, 'system', 'apacheconf_directory', '/etc/apache2/');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (14, 'system', 'apachereload_command', '/etc/init.d/apache2 reload');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (15, 'system', 'last_traffic_run', '000000');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (16, 'system', 'vmail_uid', '9997');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (17, 'system', 'vmail_gid', '9997');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (18, 'system', 'vmail_homedir', '/var/syscpvmail/');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (19, 'system', 'bindconf_directory', '/etc/bind/');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (20, 'system', 'bindreload_command', '/bin/true');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (21, 'system', 'binddefaultzone', 'default.zone');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (22, 'panel', 'version', '1.2.13');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (23, 'system', 'hostname', 'SERVERNAME');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (24, 'login', 'maxloginattempts', '3');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (25, 'login', 'deactivatetime', '900');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (26, 'panel', 'webmail_url', '');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (27, 'panel', 'webftp_url', '');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (28, 'panel', 'standardlanguage', 'English');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (29, 'system', 'mysql_access_host', 'MYSQL_ACCESS_HOST');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (30, 'panel', 'pathedit', 'Manual');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (31, 'system', 'apacheconf_filename', 'vhosts.d/99_syscp-vhosts.conf');
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (32, 'system', 'lastcronrun', UNIX_TIMESTAMP());
+INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (33, 'panel', 'paging', '20');
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_tasks`
+#
+
+DROP TABLE IF EXISTS `panel_tasks`;
+CREATE TABLE `panel_tasks` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `type` int(11) NOT NULL default '0',
+ `data` text NOT NULL,
+ PRIMARY KEY (`id`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `panel_tasks`
+#
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_templates`
+#
+
+DROP TABLE IF EXISTS `panel_templates`;
+CREATE TABLE `panel_templates` (
+ `id` int(11) NOT NULL auto_increment,
+ `adminid` int(11) NOT NULL default '0',
+ `language` varchar(255) NOT NULL default '',
+ `templategroup` varchar(255) NOT NULL default '',
+ `varname` varchar(255) NOT NULL default '',
+ `value` longtext NOT NULL,
+ PRIMARY KEY (id),
+ KEY adminid (adminid)
+) TYPE=MyISAM;
+
+#
+# Dumping data for table `panel_templates`
+#
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_traffic`
+#
+
+DROP TABLE IF EXISTS `panel_traffic`;
+CREATE TABLE `panel_traffic` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `customerid` int(11) unsigned NOT NULL default '0',
+ `year` int(4) unsigned zerofill NOT NULL default '0000',
+ `month` int(2) unsigned zerofill NOT NULL default '00',
+ `day` int(2) unsigned zerofill NOT NULL default '00',
+ `http` bigint(30) unsigned NOT NULL default '0',
+ `ftp_up` bigint(30) unsigned NOT NULL default '0',
+ `ftp_down` bigint(30) unsigned NOT NULL default '0',
+ `mail` bigint(30) unsigned NOT NULL default '0',
+ PRIMARY KEY (`id`),
+ KEY `customerid` (`customerid`),
+ UNIQUE `date` (`customerid` , `year` , `month` , `day`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `panel_traffic`
+#
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_traffic_admins`
+#
+
+DROP TABLE IF EXISTS `panel_traffic_admins`;
+CREATE TABLE `panel_traffic_admins` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `adminid` int(11) unsigned NOT NULL default '0',
+ `year` int(4) unsigned zerofill NOT NULL default '0000',
+ `month` int(2) unsigned zerofill NOT NULL default '00',
+ `day` int(2) unsigned zerofill NOT NULL default '00',
+ `http` bigint(30) unsigned NOT NULL default '0',
+ `ftp_up` bigint(30) unsigned NOT NULL default '0',
+ `ftp_down` bigint(30) unsigned NOT NULL default '0',
+ `mail` bigint(30) unsigned NOT NULL default '0',
+ PRIMARY KEY (`id`),
+ KEY `adminid` (`adminid`),
+ UNIQUE `date` (`adminid` , `year` , `month` , `day`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `panel_traffic_admins`
+#
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_navigation`
+#
+
+DROP TABLE IF EXISTS `panel_navigation`;
+CREATE TABLE `panel_navigation` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `area` varchar(20) NOT NULL default '',
+ `parent_url` varchar(255) NOT NULL default '',
+ `lang` varchar(255) NOT NULL default '',
+ `url` varchar(255) NOT NULL default '',
+ `order` int(4) NOT NULL default '0',
+ `required_resources` varchar(255) NOT NULL default '',
+ `new_window` tinyint(1) unsigned NOT NULL default '0',
+ PRIMARY KEY (`id`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `panel_navigation`
+#
+
+INSERT INTO `panel_navigation` VALUES (1, 'login', '', 'login;login', 'login.nourl', '10', '', 0);
+INSERT INTO `panel_navigation` VALUES (2, 'login', 'login.nourl', 'login;login', 'index.php', '10', '', 0);
+INSERT INTO `panel_navigation` VALUES (3, 'customer', '', 'menue;main;main', 'customer_index.php', '10', '', 0);
+INSERT INTO `panel_navigation` VALUES (4, 'customer', 'customer_index.php', 'menue;main;changepassword', 'customer_index.php?page=change_password', '10', '', 0);
+INSERT INTO `panel_navigation` VALUES (5, 'customer', 'customer_index.php', 'menue;main;changelanguage', 'customer_index.php?page=change_language', '20', '', 0);
+INSERT INTO `panel_navigation` VALUES (6, 'customer', 'customer_index.php', 'login;logout', 'customer_index.php?action=logout', '30', '', 0);
+INSERT INTO `panel_navigation` VALUES (7, 'customer', '', 'menue;email;email', 'customer_email.php', '20', '', 0);
+INSERT INTO `panel_navigation` VALUES (8, 'customer', 'customer_email.php', 'menue;email;emails', 'customer_email.php?page=emails', '10', 'emails', 0);
+INSERT INTO `panel_navigation` VALUES (9, 'customer', '', 'menue;mysql;mysql', 'customer_mysql.php', '30', '', 0);
+INSERT INTO `panel_navigation` VALUES (10, 'customer', 'customer_mysql.php', 'menue;mysql;databases', 'customer_mysql.php?page=mysqls', '10', 'mysqls', 0);
+INSERT INTO `panel_navigation` VALUES (11, 'customer', '', 'menue;domains;domains', 'customer_domains.php', '40', '', 0);
+INSERT INTO `panel_navigation` VALUES (12, 'customer', 'customer_domains.php', 'menue;domains;settings', 'customer_domains.php?page=domains', '10', '', 0);
+INSERT INTO `panel_navigation` VALUES (13, 'customer', '', 'menue;ftp;ftp', 'customer_ftp.php', '50', '', 0);
+INSERT INTO `panel_navigation` VALUES (14, 'customer', 'customer_ftp.php', 'menue;ftp;accounts', 'customer_ftp.php?page=accounts', '10', '', 0);
+INSERT INTO `panel_navigation` VALUES (15, 'customer', '', 'menue;extras;extras', 'customer_extras.php', '60', '', 0);
+INSERT INTO `panel_navigation` VALUES (16, 'customer', 'customer_extras.php', 'menue;extras;directoryprotection', 'customer_extras.php?page=htpasswds', '10', '', 0);
+INSERT INTO `panel_navigation` VALUES (17, 'customer', 'customer_extras.php', 'menue;extras;pathoptions', 'customer_extras.php?page=htaccess', '20', '', 0);
+INSERT INTO `panel_navigation` VALUES (18, 'admin', '', 'admin;overview', 'admin_index.php', '10', '', 0);
+INSERT INTO `panel_navigation` VALUES (19, 'admin', 'admin_index.php', 'menue;main;changepassword', 'admin_index.php?page=change_password', '10', '', 0);
+INSERT INTO `panel_navigation` VALUES (20, 'admin', 'admin_index.php', 'menue;main;changelanguage', 'admin_index.php?page=change_language', '20', '', 0);
+INSERT INTO `panel_navigation` VALUES (21, 'admin', 'admin_index.php', 'login;logout', 'admin_index.php?action=logout', '30', '', 0);
+INSERT INTO `panel_navigation` VALUES (22, 'admin', '', 'admin;resources', 'admin_resources.nourl', '20', 'customers', 0);
+INSERT INTO `panel_navigation` VALUES (23, 'admin', 'admin_resources.nourl', 'admin;customers', 'admin_customers.php?page=customers', '10', 'customers', 0);
+INSERT INTO `panel_navigation` VALUES (24, 'admin', 'admin_resources.nourl', 'admin;domains', 'admin_domains.php?page=domains', '20', 'domains', 0);
+INSERT INTO `panel_navigation` VALUES (25, 'admin', 'admin_resources.nourl', 'admin;admins', 'admin_admins.php?page=admins', '30', 'change_serversettings', 0);
+INSERT INTO `panel_navigation` VALUES (26, 'admin', '', 'admin;server', 'admin_server.nourl', '30', 'change_serversettings', 0);
+INSERT INTO `panel_navigation` VALUES (27, 'admin', 'admin_server.nourl', 'admin;configfiles;serverconfiguration', 'admin_configfiles.php?page=configfiles', '10', 'change_serversettings', 0);
+INSERT INTO `panel_navigation` VALUES (28, 'admin', 'admin_server.nourl', 'admin;serversettings', 'admin_settings.php?page=settings', '20', 'change_serversettings', 0);
+INSERT INTO `panel_navigation` VALUES (29, 'admin', '', 'admin;templates;templates', 'admin_templates.nourl', '40', '', 0);
+INSERT INTO `panel_navigation` VALUES (30, 'admin', 'admin_templates.nourl', 'admin;templates;email', 'admin_templates.php?page=email', '10', '', 0);
+INSERT INTO `panel_navigation` VALUES (31, 'admin', 'admin_server.nourl', 'admin;rebuildconf', 'admin_settings.php?page=rebuildconfigs', '30', 'change_serversettings', 0);
+INSERT INTO `panel_navigation` VALUES (32, 'admin', 'admin_server.nourl', 'admin;ipsandports;ipsandports', 'admin_ipsandports.php?page=ipsandports', '40', 'change_serversettings', 0);
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_languages`
+#
+
+DROP TABLE IF EXISTS `panel_languages`;
+CREATE TABLE `panel_languages` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `language` varchar(30) NOT NULL default '',
+ `file` varchar(255) NOT NULL default '',
+ PRIMARY KEY (`id`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `panel_languages`
+#
+
+INSERT INTO `panel_languages` VALUES (1, 'Deutsch', 'lng/german.lng.php');
+INSERT INTO `panel_languages` VALUES (2, 'English', 'lng/english.lng.php');
+INSERT INTO `panel_languages` VALUES (3, 'Fran&ccedil;ais', 'lng/french.lng.php');
+INSERT INTO `panel_languages` VALUES (4, 'Chinese', 'lng/zh-cn.lng.php');
+INSERT INTO `panel_languages` VALUES (5, 'Catalan', 'lng/catalan.lng.php');
+INSERT INTO `panel_languages` VALUES (6, 'Espa&ntilde;ol', 'lng/spanish.lng.php');
+INSERT INTO `panel_languages` VALUES (7, 'Portugu&ecirc;s', 'lng/portugues.lng.php');
+INSERT INTO `panel_languages` VALUES (8, 'Italiano', 'lng/italian.lng.php');
+
+
+# --------------------------------------------------------
+
+#
+# Table structure for table `panel_cronscript`
+#
+
+DROP TABLE IF EXISTS `panel_cronscript`;
+CREATE TABLE `panel_cronscript` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `file` varchar(255) NOT NULL default '',
+ PRIMARY KEY (`id`)
+) TYPE=MyISAM ;
+
+#
+# Dumping data for table `panel_cronscript`
+#
+
+INSERT INTO `panel_cronscript` (`id`, `file`) VALUES (1, 'cron_traffic.php');
+INSERT INTO `panel_cronscript` (`id`, `file`) VALUES (2, 'cron_tasks.php');
+
+
+#
+# Add the main IP/Port combo
+#
+
+INSERT INTO `panel_ipsandports` (`ip`, `port`, `default`) VALUES ('SERVERIP', '80', '1');
+
+#
+# Add the main admin user
+#
+
+INSERT INTO `panel_admins` (`loginname`, `password`, `name`, `email`, `customers`, `customers_used`, `customers_see_all`, `domains`, `domains_used`, `domains_see_all`, `change_serversettings`, `diskspace`, `diskspace_used`, `mysqls`, `mysqls_used`, `emails`, `emails_used`, `email_accounts`, `email_accounts_used`, `email_forwarders`, `email_forwarders_used`, `ftps`, `ftps_used`, `subdomains`, `subdomains_used`, `traffic`, `traffic_used`, `deactivated`) VALUES ('ADMIN_USERNAME', MD5('ADMIN_PASSWORD'), 'Siteadmin', 'admin@SERVERNAME', -1, 0, 1, -1, 0, 1, 1, -1024, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1048576, 0, 0);
diff --git a/syscp/patches/syscp-sqlfile/syscp-1.2.13-mysqlftpimp-db.sql b/syscp/patches/syscp-sqlfile/syscp-1.2.13-mysqlftpimp-db.sql
new file mode 100644
index 0000000..3f29dea
--- /dev/null
+++ b/syscp/patches/syscp-sqlfile/syscp-1.2.13-mysqlftpimp-db.sql
@@ -0,0 +1,15 @@
+USE `MYSQL_DATABASE_NAME` ;
+
+ALTER TABLE `panel_databases` ADD `databaseuser` VARCHAR( 255 ) NOT NULL AFTER `customerid` ;
+
+DROP TABLE IF EXISTS `panel_databases_users` ;
+CREATE TABLE `panel_databases_users` (
+`id` INT( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT,
+`customerid` INT( 11 ) NOT NULL DEFAULT '0',
+`databaseuser` VARCHAR( 255 ) NOT NULL,
+PRIMARY KEY (`id`),
+KEY `customerid` (`customerid`)
+) TYPE = MYISAM ;
+
+ALTER TABLE `panel_customers` ADD `mysqls_used_users` INT( 15 ) NOT NULL DEFAULT '0' AFTER `mysqls_used` ;
+ALTER TABLE `panel_customers` ADD `mysql_lastusernumber` INT( 11 ) NOT NULL DEFAULT '0' AFTER `mysql_lastaccountnumber` ;
diff --git a/syscp/patches/syscp-sqlfile/syscp-1.2.13-sqlfile-r3.tar.bz2 b/syscp/patches/syscp-sqlfile/syscp-1.2.13-sqlfile-r3.tar.bz2
new file mode 100644
index 0000000..98fce46
--- /dev/null
+++ b/syscp/patches/syscp-sqlfile/syscp-1.2.13-sqlfile-r3.tar.bz2
Binary files differ
diff --git a/syscp/patches/syscp-sqlfile/syscp-1.2.13-suphp-db.sql b/syscp/patches/syscp-sqlfile/syscp-1.2.13-suphp-db.sql
new file mode 100644
index 0000000..f351acd
--- /dev/null
+++ b/syscp/patches/syscp-sqlfile/syscp-1.2.13-suphp-db.sql
@@ -0,0 +1,3 @@
+USE `MYSQL_DATABASE_NAME` ;
+
+ALTER TABLE `panel_htaccess` ADD `options_phpversionselect` TINYINT( 1 ) NOT NULL DEFAULT '4' AFTER `options_execcgi` ;