mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-03-06 12:11:12 +01:00
API 1.0.0-6 release.
This commit is contained in:
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;
|
||||
Reference in New Issue
Block a user