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

@ -6,6 +6,9 @@ session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
if ($_SESSION['user'] == 'admin') {
if (!empty($_GET['user'])) {
$user=$_GET['user'];
}
if (!empty($_GET['job'])) {
$v_username = escapeshellarg($user);
$v_job = escapeshellarg($_GET['job']);
@ -20,4 +23,10 @@ if ($_SESSION['user'] == 'admin') {
}
$back=getenv("HTTP_REFERER");
if (!empty($back)) {
header("Location: ".$back);
exit;
}
header("Location: /list/cron/");
exit;