added admin search

This commit is contained in:
Serghey Rodin 2012-09-29 01:55:51 +03:00
commit f685d8d333
76 changed files with 871 additions and 114 deletions

View file

@ -13,15 +13,17 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
// Panel
top_panel($user,$TAB);
// Are you admin?
//if ($_SESSION['user'] == 'admin') {
// Check user argument?
if (empty($_GET['database'])) {
header("Location: /list/db/");
exit;
}
// Edit as someone else?
if (($_SESSION['user'] == 'admin') && (!empty($_GET['user']))) {
$user=escapeshellarg($_GET['user']);
}
$v_database = escapeshellarg($_GET['database']);
exec (VESTA_CMD."v_list_database ".$user." ".$v_database." 'json'", $output, $return_var);
if ($return_var != 0) {