diff --git a/web/add/web/index.php b/web/add/web/index.php index 29cc8fdcd..4f1a55b21 100644 --- a/web/add/web/index.php +++ b/web/add/web/index.php @@ -229,10 +229,8 @@ top_panel($user,$TAB); // Are you admin? if ($_SESSION['user'] == 'admin') { - include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_web.html'); include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_web.html'); } else { - include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_web.html'); include($_SERVER['DOCUMENT_ROOT'].'/templates/user/add_web.html'); } unset($_SESSION['error_msg']); diff --git a/web/edit/web/index.php b/web/edit/web/index.php index 7328359c5..642cea771 100644 --- a/web/edit/web/index.php +++ b/web/edit/web/index.php @@ -509,10 +509,8 @@ top_panel($user,$TAB); } if ($_SESSION['user'] == 'admin') { - include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_web.html'); include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_web.html'); } else { - include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_web.html'); include($_SERVER['DOCUMENT_ROOT'].'/templates/user/edit_web.html'); } unset($_SESSION['error_msg']); diff --git a/web/list/web/index.php b/web/list/web/index.php index 2cc0c4b5c..22c8dbaf5 100644 --- a/web/list/web/index.php +++ b/web/list/web/index.php @@ -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'); } diff --git a/web/templates/admin/add_web.html b/web/templates/admin/add_web.html index 688b8f937..0fb6d74d0 100644 --- a/web/templates/admin/add_web.html +++ b/web/templates/admin/add_web.html @@ -1,102 +1,235 @@ - +
Are you sure you want to domain?
Are you sure you want to delete domain?
.
Username
Password (forgot password)
Remember me