mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
refactoring web section: new html formating
This commit is contained in:
parent
427b254138
commit
64e74887f8
14 changed files with 1554 additions and 942 deletions
|
@ -13,23 +13,16 @@ top_panel($user,$TAB);
|
|||
|
||||
// Data
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
|
||||
exec (VESTA_CMD."v_list_web_domains $user json", $output, $return_var);
|
||||
check_error($return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data);
|
||||
unset($output);
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_web.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_web.html');
|
||||
} else {
|
||||
exec (VESTA_CMD."v_list_web_domains $user json", $output, $return_var);
|
||||
check_error($return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data);
|
||||
unset($output);
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/menu_web.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_web.html');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue