mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-03-12 04:36:25 -07:00
GUI Change default vesta port
This commit is contained in:
parent
7a6dc72f29
commit
960e3a20df
@ -14,6 +14,9 @@ if ($_SESSION['user'] != 'admin') {
|
||||
// Get server hostname
|
||||
$v_hostname = exec('hostname');
|
||||
|
||||
// Get server port
|
||||
$port = $_SERVER['SERVER_PORT'];
|
||||
|
||||
// List available timezones and get current one
|
||||
$v_timezones = list_timezones();
|
||||
exec (VESTA_CMD."v-get-sys-timezone", $output, $return_var);
|
||||
@ -133,6 +136,14 @@ if (!empty($_POST['save'])) {
|
||||
$v_hostname = $_POST['v_hostname'];
|
||||
}
|
||||
|
||||
// Change port
|
||||
if ((!empty($_POST['port'])) && ($port != $_POST['port'])) {
|
||||
exec (VESTA_CMD."v-change-vesta-port ".escapeshellarg($_POST['port']), $output, $return_var);
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
$port = $_POST['port'];
|
||||
}
|
||||
|
||||
// Change timezone
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
if (!empty($_POST['v_timezone'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user