diff --git a/bureau/admin/ftp_list.php b/bureau/admin/ftp_list.php
index 6d3fc253..16851cc6 100755
--- a/bureau/admin/ftp_list.php
+++ b/bureau/admin/ftp_list.php
@@ -104,7 +104,7 @@ if ( $val['enabled']) {
- - '._("Server:").' '.$ftp->srv_name; ?>
+ - '._("Server:").' '.$ftp->srv_proftpd; ?>
- '._("FTP mode for data transfer:").' '._("passive");?>
- '._("User/password:").' '._("the one you specified when you created the account. You can edit them in the panel.");?>
diff --git a/bureau/admin/mail_list.php b/bureau/admin/mail_list.php
index aa984d3f..75a01e75 100755
--- a/bureau/admin/mail_list.php
+++ b/bureau/admin/mail_list.php
@@ -193,11 +193,11 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
- srv_submission) { ?>
+ srv_postfix) { ?>
- - srv_submission); ?>
+ - srv_postfix); ?>
- (example : myuser@example.tld)");?>
- 587
@@ -206,11 +206,11 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
- srv_smtp) { ?>
+ srv_postfix) { ?>
- - srv_smtp); ?>
+ - srv_postfix); ?>
- (example : myuser@example.tld)");?>
- 25
@@ -219,11 +219,11 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
- srv_smtps) { ?>
+ srv_postfix) { ?>
- - srv_smtps); ?>
+ - srv_postfix); ?>
- (example : myuser@example.tld)");?>
- 465
@@ -243,7 +243,7 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
- - srv_imap); ?>
+ - srv_dovecot); ?>
- 143
@@ -254,7 +254,7 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
- - srv_imaps); ?>
+ - srv_dovecot); ?>
- 993
@@ -265,7 +265,7 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
- - srv_pop3); ?>
+ - srv_dovecot); ?>
- 110
@@ -276,7 +276,7 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
- - srv_pop3s); ?>
+ - srv_dovecot); ?>
- 995
diff --git a/bureau/admin/mailautoconfig_outlook.php b/bureau/admin/mailautoconfig_outlook.php
index 8767a5fd..ed06307a 100644
--- a/bureau/admin/mailautoconfig_outlook.php
+++ b/bureau/admin/mailautoconfig_outlook.php
@@ -53,7 +53,7 @@ echo " \n";
settings
IMAP
- srv_imaps;?>
+ srv_dovecot; ?>
993
@@ -63,7 +63,7 @@ echo " \n";
SMTP
- srv_smtps;?>
+ srv_postfix; ?>
587
off
on
diff --git a/bureau/admin/mailautoconfig_thunderbird.php b/bureau/admin/mailautoconfig_thunderbird.php
index 9dd63a88..7d321d56 100644
--- a/bureau/admin/mailautoconfig_thunderbird.php
+++ b/bureau/admin/mailautoconfig_thunderbird.php
@@ -44,28 +44,28 @@ if (empty($emailDomain)) die(_('Error: Empty $emailDomain'));
- srv_imap ;?>
- 993
- SSL
+ srv_dovecot ;?>
+ 143
+ STARTTLS
password-cleartext
%EMAILADDRESS%
- srv_imaps;?>
- 995
- SSL
+ srv_dovecot;?>
+ 110
+ STARTTLS
password-cleartext
%EMAILADDRESS%
- srv_smtp;?>
+ srv_postfix;?>
587
STARTTLS
%EMAILADDRESS%
password-cleartext
- srv_smtps;?>
+ srv_postfix;?>
465
SSL
password-cleartext
diff --git a/bureau/class/m_ftp.php b/bureau/class/m_ftp.php
index 11566a79..7b2ab946 100644
--- a/bureau/class/m_ftp.php
+++ b/bureau/class/m_ftp.php
@@ -25,7 +25,7 @@
*/
class m_ftp {
- var $srv_name;
+ var $srv_proftpd;
/**
@@ -33,7 +33,7 @@ class m_ftp {
*/
function m_ftp() {
global $L_FQDN;
- $this->srv_name = variable_get('ftp_human_name', $L_FQDN, 'Human name for FTP server', array('desc' => 'Name', 'type' => 'string'));
+ $this->srv_proftpd = variable_get('fqdn_proftpd', $L_FQDN, 'Human name for FTP server', array('desc' => 'Name', 'type' => 'string'));
}
diff --git a/bureau/class/m_mail.php b/bureau/class/m_mail.php
index eec5c9a0..17a0a852 100644
--- a/bureau/class/m_mail.php
+++ b/bureau/class/m_mail.php
@@ -61,13 +61,8 @@ class m_mail {
var $total;
// Human server name for help
- var $srv_submission;
- var $srv_smtp;
- var $srv_smtps;
- var $srv_imap;
- var $srv_imaps;
- var $srv_pop3;
- var $srv_pop3s;
+ var $srv_postfix;
+ var $srv_dovecot;
var $cache_domain_mail_size = array();
var $enum_domains = array();
@@ -77,13 +72,8 @@ class m_mail {
*/
function m_mail() {
global $L_FQDN;
- $this->srv_submission = variable_get('mail_human_submission', $L_FQDN, 'Human name for mail server (submission protocol), leave empty to disable help', array('desc' => 'Name', 'type' => 'string'));
- $this->srv_smtp = variable_get('mail_human_smtp', $L_FQDN, 'Human name for mail server (SMTP protocol), leave empty to disable help', array('desc' => 'Name', 'type' => 'string'));
- $this->srv_smtps = variable_get('mail_human_smtps', $L_FQDN, 'Human name for mail server (SMTPS protocol), leave empty to disable help', array('desc' => 'Name', 'type' => 'string'));
- $this->srv_imap = variable_get('mail_human_imap', $L_FQDN, 'Human name for IMAP mail server', array('desc' => 'Name', 'type' => 'string'));
- $this->srv_imaps = variable_get('mail_human_imaps', $L_FQDN, 'Human name for IMAPS mail server', array('desc' => 'Name', 'type' => 'string'));
- $this->srv_pop3 = variable_get('mail_human_pop3', $L_FQDN, 'Human name for POP3 mail server', array('desc' => 'Name', 'type' => 'string'));
- $this->srv_pop3s = variable_get('mail_human_pop3s', $L_FQDN, 'Human name for POP3s mail server', array('desc' => 'Name', 'type' => 'string'));
+ $this->srv_postfix = variable_get('fqdn_postfix', $L_FQDN, 'FQDN name for humans for smtp services', array('desc' => 'Name', 'type' => 'string'));
+ $this->srv_dovecot = variable_get('fqdn_dovecot', $L_FQDN, 'FQDN name for humans for pop/imap services', array('desc' => 'Name', 'type' => 'string'));
}
diff --git a/install/mysql.sql b/install/mysql.sql
index 5911ef70..027ec0e8 100644
--- a/install/mysql.sql
+++ b/install/mysql.sql
@@ -788,7 +788,6 @@ CREATE TABLE `certificates` (
KEY `uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-INSERT IGNORE INTO defquotas VALUES ('ssl', 0, 'default');
-- make it re-exec-proof
diff --git a/install/upgrades/3.5.0.1.sql b/install/upgrades/3.5.0.1.sql
index c9454db2..81b0b5bc 100644
--- a/install/upgrades/3.5.0.1.sql
+++ b/install/upgrades/3.5.0.1.sql
@@ -1,4 +1,6 @@
+-- upgrade to merge alternc-ssl into alternc + change the way we work on SSL
+
DROP TABLE `certif_alias`;
ALTER TABLE `certificates` DROP `shared`, DROP `ssl_action`, DROP `ssl_result`;
@@ -35,3 +37,24 @@ DELETE sd1 FROM sub_domaines sd1, sub_domaines sd2 WHERE sd1.id > sd2.id AND sd1
-- Regenerate all vhost
UPDATE `sub_domaines` SET `web_action` = 'UPDATE';
+
+
+-- change some variable names :
+
+UPDATE variable
+ SET name="fqdn_dovecot",comment="FQDN name for humans for pop/imap services"
+ WHERE name="mail_human_imap";
+
+UPDATE variable
+ SET name="fqdn_postfix",comment="FQDN name for humans for smtp services"
+ WHERE name="mail_human_smtp";
+
+UPDATE variable
+ SET name="fqdn_proftpd",comment="FQDN name for humans for ftp services"
+ WHERE name="mail_human_ftp";
+
+DELETE FROM variable WHERE name IN (
+ 'mail_human_imaps','mail_human_pop3','mail_human_pop3s',
+ 'mail_human_smtps','mail_human_submission'
+ );
+