Skip to content

Commit 7816834

Browse files
committed
fixed history log page
1 parent 745ff25 commit 7816834

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

web/list/log/index.php

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,14 @@
1212
top_panel($user,$TAB);
1313

1414
// Data
15-
if ($_SESSION['user'] == 'admin') {
15+
exec (VESTA_CMD."v-list-user-log $user json", $output, $return_var);
16+
check_error($return_var);
17+
$data = json_decode(implode('', $output), true);
18+
$data = array_reverse($data);
19+
unset($output);
1620

17-
exec (VESTA_CMD."v-list-user-log $user json", $output, $return_var);
18-
check_error($return_var);
19-
$data = json_decode(implode('', $output), true);
20-
$data = array_reverse($data);
21-
unset($output);
22-
23-
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_log.html');
24-
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_log.html');
25-
}
21+
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_log.html');
22+
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_log.html');
2623

2724
// Footer
2825
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');

0 commit comments

Comments
 (0)