mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
database pages
This commit is contained in:
parent
9dd6022057
commit
2ed6ca4191
18 changed files with 276 additions and 34 deletions
17
web/suspend/db/index.php
Normal file
17
web/suspend/db/index.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
// Init
|
||||
error_reporting(NULL);
|
||||
ob_start();
|
||||
session_start();
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
if (!empty($_GET['database'])) {
|
||||
$v_username = escapeshellarg($user);
|
||||
$v_database = escapeshellarg($_GET['database']);
|
||||
exec (VESTA_CMD."v_suspend_database ".$v_username." ".$v_database, $output, $return_var);
|
||||
unset($output);
|
||||
}
|
||||
}
|
||||
|
||||
header("Location: /list/db/");
|
Loading…
Add table
Add a link
Reference in a new issue