database add page

This commit is contained in:
Serghey Rodin 2012-06-20 16:58:16 +03:00
commit 9dd6022057
11 changed files with 262 additions and 29 deletions

View file

@ -18,13 +18,6 @@ top_panel($user,$TAB);
// Are you admin?
if ($_SESSION['user'] == 'admin') {
// Cancel
if (!empty($_POST['cancel'])) {
header("Location: /list/user/");
}
// Ok
if (!empty($_POST['ok'])) {
// Check input
if (empty($_POST['v_username'])) $errors[] = 'user';