Skip to content

Commit a587c10

Browse files
committed
aligned code formating
1 parent 1f8a3af commit a587c10

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

web/list/package/index.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@
55
// Main include
66
include($_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
915
include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
1016

1117
// Panel
1218
top_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'];

0 commit comments

Comments
 (0)