database pages

This commit is contained in:
Serghey Rodin 2012-06-21 12:55:22 +03:00
commit 2ed6ca4191
18 changed files with 276 additions and 34 deletions

View 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_unsuspend_database ".$v_username." ".$v_database, $output, $return_var);
unset($output);
}
}
header("Location: /list/db/");

View file

@ -1,6 +1,6 @@
<?php
// Init
//error_reporting(NULL);
error_reporting(NULL);
ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");

View file

@ -1,6 +1,6 @@
<?php
// Init
//error_reporting(NULL);
error_reporting(NULL);
ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");