mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
API 1.0.0-6 release.
This commit is contained in:
parent
22f3dd11e2
commit
b7bdfd2d87
8 changed files with 58 additions and 24 deletions
|
@ -260,7 +260,9 @@ $result = array(
|
|||
'web_system' => $_SESSION['WEB_SYSTEM'],
|
||||
'web_backend' => $_SESSION['WEB_BACKEND'],
|
||||
'proxy_system' => $_SESSION['PROXY_SYSTEM'],
|
||||
'dns_system' => $_SESSION['DNS_SYSTEM']
|
||||
'dns_system' => $_SESSION['DNS_SYSTEM'],
|
||||
'error_msg' => $_SESSION['error_msg'],
|
||||
'ok_msg' => $_SESSION['ok_msg']
|
||||
);
|
||||
|
||||
echo json_encode($result);
|
||||
|
|
18
web/api/v1/edit/server/test.php
Normal file
18
web/api/v1/edit/server/test.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?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;
|
Loading…
Add table
Add a link
Reference in a new issue