| 1234567891011121314151617181920212223242526 |
- <?php
- // Init
- error_reporting(NULL);
- ob_start();
- session_start();
- include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
- if ($_SESSION['user'] == 'admin') {
- if (!empty($_GET['user'])) {
- $user=$_GET['user'];
- }
- if (!empty($_GET['database'])) {
- $v_username = escapeshellarg($user);
- $v_database = escapeshellarg($_GET['database']);
- exec (VESTA_CMD."v-unsuspend-database ".$v_username." ".$v_database, $output, $return_var);
- unset($output);
- }
- }
- $back=getenv("HTTP_REFERER");
- if (!empty($back)) {
- header("Location: ".$back);
- exit;
- }
- header("Location: /list/db/");
- exit;
|