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['domain'])) {
header("Location: /list/mail/");
exit;
}
// Edit as someone else?
if (($_SESSION['user'] == 'admin') && (!empty($_GET['user']))) {
$user=escapeshellarg($_GET['user']);
}
// Check domain
if ((!empty($_GET['domain'])) && (empty($_GET['account']))) {
$v_domain = escapeshellarg($_GET['domain']);