index.php 372 B

1234567891011121314151617
  1. <?php
  2. // Init
  3. error_reporting(NULL);
  4. ob_start();
  5. session_start();
  6. include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
  7. if ($_SESSION['user'] == 'admin') {
  8. if (!empty($_GET['hostname'])) {
  9. v_exec('v-restart-system', ['yes'], false);
  10. $_SESSION['error_msg'] = 'The system is going down for reboot NOW!';
  11. }
  12. }
  13. header("Location: /list/server/");
  14. exit;