user function

This commit is contained in:
Serghey Rodin 2012-07-01 01:10:56 +03:00
commit e734d14637
43 changed files with 1280 additions and 54 deletions

View file

@ -5,7 +5,7 @@ ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
if ($_SESSION['user'] == 'admin') {
//if ($_SESSION['user'] == 'admin') {
// DNS domain
if ((!empty($_GET['domain'])) && (empty($_GET['record_id']))) {
$v_username = escapeshellarg($user);
@ -26,6 +26,6 @@ if ($_SESSION['user'] == 'admin') {
header("Location: /list/dns/?domain=".$_GET['domain']);
exit;
}
}
//}
header("Location: /list/dns/");