implemented admin/user search

This commit is contained in:
Serghey Rodin 2012-10-01 17:29:49 +03:00
commit b1c9568248
60 changed files with 789 additions and 144 deletions

View file

@ -13,8 +13,10 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
// Panel
top_panel($user,$TAB);
// Are you admin?
//if ($_SESSION['user'] == 'admin') {
// Edit as someone else?
if (($_SESSION['user'] == 'admin') && (!empty($_GET['user']))) {
$user=escapeshellarg($_GET['user']);
}
// Check user argument?
if (empty($_GET['job'])) {