2012-07-30 22:48:54 +03:00
|
|
|
<?php
|
2015-11-06 22:54:06 +02:00
|
|
|
error_reporting(NULL);
|
2012-07-30 22:48:54 +03:00
|
|
|
$TAB = 'PACKAGE';
|
2013-01-29 00:18:09 +02:00
|
|
|
|
|
|
|
|
// Main include
|
2012-07-30 22:48:54 +03:00
|
|
|
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
|
|
|
|
|
2014-09-17 00:53:05 +03:00
|
|
|
// Check user
|
|
|
|
|
if ($_SESSION['user'] != 'admin') {
|
|
|
|
|
header("Location: /list/user");
|
|
|
|
|
exit;
|
|
|
|
|
}
|
|
|
|
|
|
2012-07-30 22:48:54 +03:00
|
|
|
// Header
|
|
|
|
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
|
|
|
|
|
|
|
|
|
|
// Panel
|
|
|
|
|
top_panel($user,$TAB);
|
|
|
|
|
|
|
|
|
|
// Data
|
2015-12-11 21:14:49 +02:00
|
|
|
exec (VESTA_CMD."v-list-user-packages json", $output, $return_var);
|
|
|
|
|
$data = json_decode(implode('', $output), true);
|
|
|
|
|
unset($output);
|
2014-09-17 00:53:05 +03:00
|
|
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_packages.html');
|
2012-07-30 22:48:54 +03:00
|
|
|
|
2013-01-29 00:18:09 +02:00
|
|
|
// Back uri
|
|
|
|
|
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
|
|
|
|
|
2012-07-30 22:48:54 +03:00
|
|
|
// Footer
|
|
|
|
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
|