Files
VestaCP/web/list/services/index.php

30 lines
754 B
PHP
Raw Normal View History

2013-01-16 01:51:02 +02:00
<?php
session_start();
$TAB = 'SERVICES';
2013-01-29 00:18:09 +02:00
// Main include
2013-01-16 01:51:02 +02:00
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
// Header
include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
// Panel
top_panel($user,$TAB);
// Data
if ($_SESSION['user'] == 'admin') {
2013-10-23 14:01:43 +03:00
exec (VESTA_CMD."v-list-sys-info json", $output, $return_var);
$sys = json_decode(implode('', $output), true);
unset($output);
2013-01-16 01:51:02 +02:00
exec (VESTA_CMD."v-list-sys-services json", $output, $return_var);
$data = json_decode(implode('', $output), true);
unset($output);
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_services.html');
}
2013-01-29 00:18:09 +02:00
// Back uri
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
2013-01-16 01:51:02 +02:00
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');