mirror of
https://github.com/serghey-rodin/vesta.git
synced 2024-12-26 22:11:13 -08:00
19 lines
441 B
PHP
19 lines
441 B
PHP
<?php
|
|
error_reporting(NULL);
|
|
$TAB = 'SERVER';
|
|
|
|
header('Content-Type: application/json');
|
|
|
|
// Main include
|
|
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
|
|
|
// Change port
|
|
exec (VESTA_CMD."v-change-vesta-port ".escapeshellarg('8087'), $output, $return_var);
|
|
check_return_code($return_var,$output);
|
|
unset($output);
|
|
|
|
header('Location: '
|
|
. ($_SERVER['HTTPS'] ? 'https' : 'http')
|
|
. '://' . $_SERVER['HTTP_HOST'] . ':' . '8087');
|
|
exit;
|