mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
Connected web interface with vesta.conf
This commit is contained in:
parent
8082315e59
commit
cc062abfc3
24 changed files with 55 additions and 81 deletions
|
@ -144,12 +144,9 @@ if (!empty($_POST['ok_acc'])) {
|
|||
|
||||
// Get webmail url
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
exec (VESTA_CMD."v-list-sys-config json", $output, $return_var);
|
||||
$sys = json_decode(implode('', $output), true);
|
||||
unset($output);
|
||||
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
|
||||
$webmail = "http://".$http_host."/webmail/";
|
||||
if (!empty($sys['config']['MAIL_URL'])) $webmail = $sys['config']['MAIL_URL'];
|
||||
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
|
||||
}
|
||||
|
||||
// Flush field values on success
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue