File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 55// Main include
66include ($ _SERVER ['DOCUMENT_ROOT ' ]."/inc/main.php " );
77
8+ // Check user
9+ if ($ _SESSION ['user ' ] != 'admin ' ) {
10+ header ("Location: /list/user " );
11+ exit ;
12+ }
13+
814// Header
915include ($ _SERVER ['DOCUMENT_ROOT ' ].'/templates/header.html ' );
1016
1117// Panel
1218top_panel ($ user ,$ TAB );
1319
1420// Data
15- if ($ _SESSION ['user ' ] == 'admin ' ) {
16- exec (VESTA_CMD ."v-list-user-packages json " , $ output , $ return_var );
17- $ data = json_decode (implode ('' , $ output ), true );
18- //$data = array_reverse($data, true);
19- unset($ output );
20- include ($ _SERVER ['DOCUMENT_ROOT ' ].'/templates/admin/list_packages.html ' );
21- }
21+ exec (VESTA_CMD ."v-list-user-packages json " , $ output , $ return_var );
22+ $ data = json_decode (implode ('' , $ output ), true );
23+ unset($ output );
24+ include ($ _SERVER ['DOCUMENT_ROOT ' ].'/templates/admin/list_packages.html ' );
2225
2326// Back uri
2427$ _SESSION ['back ' ] = $ _SERVER ['REQUEST_URI ' ];
You can’t perform that action at this time.
0 commit comments