mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
implemented admin/user search
This commit is contained in:
parent
f685d8d333
commit
b1c9568248
60 changed files with 789 additions and 144 deletions
|
@ -3,6 +3,7 @@
|
|||
error_reporting(NULL);
|
||||
session_start();
|
||||
$TAB = 'SEARCH';
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Check query
|
||||
|
@ -30,9 +31,9 @@ if ($_SESSION['user'] == 'admin') {
|
|||
$data = json_decode(implode('', $output), true);
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_search.html');
|
||||
} else {
|
||||
exec (VESTA_CMD."v_list_web_domains $user json", $output, $return_var);
|
||||
exec (VESTA_CMD."v_search_user_object ".$user." ".$q." json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_web.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_search.html');
|
||||
}
|
||||
|
||||
// Footer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue