mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
added admin search
This commit is contained in:
parent
ac2aa3c1ce
commit
f685d8d333
76 changed files with 871 additions and 114 deletions
|
@ -5,7 +5,11 @@ ob_start();
|
|||
session_start();
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
//if ($_SESSION['user'] == 'admin') {
|
||||
// Delete as someone else?
|
||||
if (($_SESSION['user'] == 'admin') && (!empty($_GET['user']))) {
|
||||
$user=$_GET['user'];
|
||||
}
|
||||
|
||||
if (!empty($_GET['backup'])) {
|
||||
$v_username = escapeshellarg($user);
|
||||
$v_backup = escapeshellarg($_GET['backup']);
|
||||
|
@ -20,4 +24,10 @@ include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
|||
|
||||
//}
|
||||
|
||||
$back=getenv("HTTP_REFERER");
|
||||
if (!empty($back)) {
|
||||
header("Location: ".$back);
|
||||
exit;
|
||||
}
|
||||
header("Location: /list/backup/");
|
||||
exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue