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

27 lines
597 B
PHP
Raw Normal View History

2013-01-29 00:18:09 +02:00
<?php
2015-11-06 22:54:06 +02:00
error_reporting(NULL);
2015-05-29 19:51:24 +03:00
$TAB = 'UPDATES';
2013-01-29 00:18:09 +02:00
// Main include
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
// Check user
if ($_SESSION['user'] != 'admin') {
header('Location: /list/user');
exit;
}
2013-01-29 00:18:09 +02:00
// Data
exec (VESTA_CMD."v-list-sys-vesta-updates json", $output, $return_var);
$data = json_decode(implode('', $output), true);
unset($output);
exec (VESTA_CMD."v-list-sys-vesta-autoupdate plain", $output, $return_var);
$autoupdate = $output['0'];
unset($output);
2014-04-16 02:26:45 +03:00
// Render page
2016-07-02 21:40:46 +09:00
render_page($user, $TAB, 'list_updates');
2013-01-29 00:18:09 +02:00
// Back uri
$_SESSION['back'] = $_SERVER['REQUEST_URI'];