Compare commits
3 Commits
9259d6cd6b
...
2b0c906615
Author | SHA1 | Date | |
---|---|---|---|
|
2b0c906615 | ||
|
50c03d6d17 | ||
|
24aa17ef9d |
|
@ -27,11 +27,6 @@ Alias /panel /srv/www/html/panel
|
|||
# all hidden files and dirs (anything beginning with a .)
|
||||
RewriteRule ^(classes|config|f3|tmp)\/|^\.|^/\. - [R=404]
|
||||
|
||||
# deny direct access to html (template) files
|
||||
<FilesMatch "\.(htm|html)$">
|
||||
Deny from all
|
||||
</FilesMatch>
|
||||
|
||||
# Route requests to the framework
|
||||
RewriteCond %{REQUEST_FILENAME} !-l
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
|
@ -40,3 +35,10 @@ Alias /panel /srv/www/html/panel
|
|||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
|
||||
|
||||
</Directory>
|
||||
|
||||
# deny direct access to html (template) files
|
||||
<Directory /srv/www/html/panel/ui>
|
||||
<FilesMatch "\.(htm|html)$">
|
||||
Deny from all
|
||||
</FilesMatch>
|
||||
</Directory>
|
||||
|
|
|
@ -47,7 +47,7 @@ class Login extends \Panel {
|
|||
$username = "$username@$domain";
|
||||
}
|
||||
$emaildomain = $f3->get('HOST');
|
||||
$auth = new \Auth('smtp', ['host' => $emaildomain, 'port' => 25, 'scheme' => null]);
|
||||
$auth = new \Auth('smtp', ['host' => $emaildomain, 'port' => 587, 'scheme' => 'tls']);
|
||||
if ($auth->login($username, $password)) {
|
||||
/* user passed smtp auth, check for admin access */
|
||||
if ($email_array = $f3->call('\Panel::vGet', array("vmail-mboxes-get.sh -e $username -c", FALSE))) {
|
||||
|
|
|
@ -22,6 +22,10 @@ class AutorespondersAdd extends \Panel\Vmail {
|
|||
|
||||
static function get($f3) {
|
||||
|
||||
/* initialize autoresponder_array */
|
||||
$autoresponder_array = array('subject' => '', 'body' => '', 'mode' => 'Vacation', 'status' => '1');
|
||||
$f3->set('autoresponder_array', $autoresponder_array);
|
||||
|
||||
echo \Template::instance()->render('vmail/autoresponders-add.html');
|
||||
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ class AutorespondersEdit extends \Panel\Vmail {
|
|||
$body = substr_replace($body, "", -1);
|
||||
$autoresponder_array[0]['body'] = $body;
|
||||
|
||||
$autoresponders_array[$k] = $autoresponder_array;
|
||||
$autoresponders_array[0] = $autoresponder_array;
|
||||
|
||||
|
||||
$f3->set('autoresponder_array', $autoresponder_array[0]);
|
||||
|
|
|
@ -22,6 +22,9 @@ class ForwardsAdd extends \Panel\Vmail {
|
|||
|
||||
static function get($f3) {
|
||||
|
||||
/* initialize forward_array */
|
||||
$forward_array = array('forward' => '', 'save_local' => '0');
|
||||
$f3->set('forward_array', $forward_array);
|
||||
echo \Template::instance()->render('vmail/forwards-add.html');
|
||||
|
||||
}
|
||||
|
|
|
@ -3,9 +3,6 @@
|
|||
|
||||
<check if="isset(@autoresponders_array)">
|
||||
<table>
|
||||
<!-- <tr>
|
||||
<th colspan="2">Autoresponder for {{ @mbox }}@{{ @domain }} </th>
|
||||
</tr>-->
|
||||
|
||||
<tr>
|
||||
<td align="right"><b>Subject:</b></td>
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
<legend>Edit Email Account {{ @PARAMS.mbox }}@{{ @PARAMS.domain }} (All fields are required)</legend>
|
||||
|
||||
<label for="password">Password <small>(leave empty to keep same password)</small></label>
|
||||
<input id="password" name="password" type="password" value="{{ @mbox.password }}">
|
||||
<input id="password" name="password" type="password" value="">
|
||||
|
||||
<label for="password_confirm">Confirm Password <small>(repeat same password, only if making a change)</small></label>
|
||||
<input id="password_confirm" name="password_confirm" type="password" value="{{ @mbox.password_confirm }}">
|
||||
<input id="password_confirm" name="password_confirm" type="password" value="">
|
||||
|
||||
<label for="status">Status</label>
|
||||
<select id="status" name="status">
|
||||
|
|
Loading…
Reference in New Issue
Block a user