API 1.0.0-6 release.

This commit is contained in:
Alexander 2021-12-30 21:58:29 +00:00
commit b7bdfd2d87
8 changed files with 58 additions and 24 deletions

View 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;