mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
added admin search
This commit is contained in:
parent
ac2aa3c1ce
commit
f685d8d333
76 changed files with 871 additions and 114 deletions
|
@ -6,6 +6,10 @@ session_start();
|
|||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
if (!empty($_GET['user'])) {
|
||||
$user=$_GET['user'];
|
||||
}
|
||||
|
||||
// DNS domain
|
||||
if ((!empty($_GET['domain'])) && (empty($_GET['record_id']))) {
|
||||
$v_username = escapeshellarg($user);
|
||||
|
@ -17,6 +21,11 @@ if ($_SESSION['user'] == 'admin') {
|
|||
$_SESSION['error_msg'] = $error;
|
||||
}
|
||||
unset($output);
|
||||
$back=getenv("HTTP_REFERER");
|
||||
if (!empty($back)) {
|
||||
header("Location: ".$back);
|
||||
exit;
|
||||
}
|
||||
header("Location: /list/dns/");
|
||||
exit;
|
||||
}
|
||||
|
@ -33,9 +42,21 @@ if ($_SESSION['user'] == 'admin') {
|
|||
$_SESSION['error_msg'] = $error;
|
||||
}
|
||||
unset($output);
|
||||
$back=getenv("HTTP_REFERER");
|
||||
if (!empty($back)) {
|
||||
header("Location: ".$back);
|
||||
exit;
|
||||
}
|
||||
header("Location: /list/dns/?domain=".$_GET['domain']);
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
$back=getenv("HTTP_REFERER");
|
||||
if (!empty($back)) {
|
||||
header("Location: ".$back);
|
||||
exit;
|
||||
}
|
||||
header("Location: /list/dns/");
|
||||
exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue