test.php 441 B

123456789101112131415161718
  1. <?php
  2. error_reporting(NULL);
  3. $TAB = 'SERVER';
  4. header('Content-Type: application/json');
  5. // Main include
  6. include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
  7. // Change port
  8. exec (VESTA_CMD."v-change-vesta-port ".escapeshellarg('8087'), $output, $return_var);
  9. check_return_code($return_var,$output);
  10. unset($output);
  11. header('Location: '
  12. . ($_SERVER['HTTPS'] ? 'https' : 'http')
  13. . '://' . $_SERVER['HTTP_HOST'] . ':' . '8087');
  14. exit;