mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
fixed history log page
This commit is contained in:
parent
745ff25d39
commit
7816834a32
1 changed files with 7 additions and 10 deletions
|
@ -12,17 +12,14 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
|
||||||
top_panel($user,$TAB);
|
top_panel($user,$TAB);
|
||||||
|
|
||||||
// Data
|
// Data
|
||||||
if ($_SESSION['user'] == 'admin') {
|
exec (VESTA_CMD."v-list-user-log $user json", $output, $return_var);
|
||||||
|
check_error($return_var);
|
||||||
|
$data = json_decode(implode('', $output), true);
|
||||||
|
$data = array_reverse($data);
|
||||||
|
unset($output);
|
||||||
|
|
||||||
exec (VESTA_CMD."v-list-user-log $user json", $output, $return_var);
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_log.html');
|
||||||
check_error($return_var);
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_log.html');
|
||||||
$data = json_decode(implode('', $output), true);
|
|
||||||
$data = array_reverse($data);
|
|
||||||
unset($output);
|
|
||||||
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_log.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_log.html');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Footer
|
// Footer
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue