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

28 lines
657 B
PHP
Raw Normal View History

2012-07-30 22:48:54 +03:00
<?php
session_start();
$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");
// Header
include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
// Panel
top_panel($user,$TAB);
// Data
if ($_SESSION['user'] == 'admin') {
exec (VESTA_CMD."v-list-user-packages json", $output, $return_var);
2012-07-30 22:48:54 +03:00
$data = json_decode(implode('', $output), true);
2013-02-20 14:37:07 +02:00
//$data = array_reverse($data, true);
2012-07-30 22:48:54 +03:00
unset($output);
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_packages.html');
}
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');