|
|
@@ -14,7 +14,11 @@ top_panel($user,$TAB);
|
|
|
// Data
|
|
|
if ($_SESSION['user'] == 'admin') {
|
|
|
|
|
|
- exec (VESTA_CMD."v_list_users json", $output, $return_var);
|
|
|
+ if ($user == 'admin') {
|
|
|
+ exec (VESTA_CMD."v_list_users json", $output, $return_var);
|
|
|
+ } else {
|
|
|
+ exec (VESTA_CMD."v_list_user ".$user." json", $output, $return_var);
|
|
|
+ }
|
|
|
check_error($return_var);
|
|
|
$data = json_decode(implode('', $output), true);
|
|
|
$data = array_reverse($data);
|
|
|
@@ -24,5 +28,6 @@ if ($_SESSION['user'] == 'admin') {
|
|
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_user.html');
|
|
|
}
|
|
|
|
|
|
+
|
|
|
// Footer
|
|
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
|