Compare commits

...

2 Commits

Author SHA1 Message Date
Matthew Saunders Brown
2637feee5f check for existance of SESSION.domain before clearing 2023-08-21 16:16:04 -07:00
Matthew Saunders Brown
418eef04d4 add colon after Port 2023-08-21 16:15:32 -07:00
2 changed files with 6 additions and 4 deletions

View File

@ -23,7 +23,9 @@ $f3->set('NAV.hostname', trim(`/bin/hostname -f`));
/* configurations based on hostname */
if ($f3->get('HOST') == $f3->get('NAV.hostname')) {
$mapping = 'vpanel';
$f3->clear('SESSION.domain');
if ($f3->exists('SESSION.domain')) {
$f3->clear('SESSION.domain');
}
} elseif (preg_match('/^mail\./i', $f3->get('HOST'))) {
$mapping = 'vmail';
$domain = preg_replace('/^mail\./i', '', $f3->get('HOST'));

View File

@ -165,7 +165,7 @@
<tr><th colspan="2">Incoming Server Settings</th></tr>
<tr><td style="text-align: right;">Protocol:</td><td>IMAP</td></tr>
<tr><td style="text-align: right;">Hostname:</td><td>mail.{{ @domain_array.domain }}</td></tr>
<tr><td style="text-align: right;">Port</td><td>143</td></tr>
<tr><td style="text-align: right;">Port:</td><td>143</td></tr>
<tr><td style="text-align: right;">Connection Security:</td><td>STARTTLS</td></tr>
<tr><td style="text-align: right;">Authentication Method:</td><td>Normal password</td></tr>
<tr><td style="text-align: right;">Username:</td><td>(full email address)</td></tr>
@ -178,7 +178,7 @@
<tr><th colspan="2">Outgoing Server Settings</th></tr>
<tr><td style="text-align: right;">Protocol:</td><td>SMTP</td></tr>
<tr><td style="text-align: right;">Hostname:</td><td>mail.{{ @domain_array.domain }}</td></tr>
<tr><td style="text-align: right;">Port</td><td>587</td></tr>
<tr><td style="text-align: right;">Port:</td><td>587</td></tr>
<tr><td style="text-align: right;">Connection Security:</td><td>STARTTLS</td></tr>
<tr><td style="text-align: right;">Authentication Method:</td><td>Normal password</td></tr>
<tr><td style="text-align: right;">Username:</td><td>(full email address)</td></tr>
@ -191,7 +191,7 @@
<tr><th colspan="2">Alternative Incoming Server Settings</th></tr>
<tr><td style="text-align: right;">Protocol:</td><td>POP3</td></tr>
<tr><td style="text-align: right;">Hostname:</td><td>mail.{{ @domain_array.domain }}</td></tr>
<tr><td style="text-align: right;">Port</td><td>110</td></tr>
<tr><td style="text-align: right;">Port:</td><td>110</td></tr>
<tr><td style="text-align: right;">Connection Security:</td><td>STARTTLS</td></tr>
<tr><td style="text-align: right;">Authentication Method:</td><td>Normal password</td></tr>
<tr><td style="text-align: right;">Username:</td><td>(full email address)</td></tr>