1
0
mirror of https://github.com/serghey-rodin/vesta.git synced 2025-03-12 04:36:25 -07:00

31 lines
750 B
PHP
Raw Normal View History

2013-01-29 00:18:09 +02:00
<?php
session_start();
2015-05-29 02:07:55 +03:00
$TAB = 'SERVER';
2013-01-29 00:18:09 +02:00
// Main include
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') {
exec (VESTA_CMD."v-list-sys-vesta-updates json", $output, $return_var);
$data = json_decode(implode('', $output), true);
unset($output);
2014-04-16 02:26:45 +03:00
exec (VESTA_CMD."v-list-sys-vesta-autoupdate plain", $output, $return_var);
$autoupdate = $output['0'];
unset($output);
2013-01-29 00:18:09 +02:00
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_updates.html');
}
// Back uri
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');