restructure/reindent/htmlfix html pages, remove dead code

git-svn-id: http://www.observium.org/svn/observer/trunk@1897 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-03-17 00:09:20 +00:00
parent 1a477eebbe
commit 834989df95
65 changed files with 1447 additions and 1510 deletions

View File

@@ -2,26 +2,26 @@
echo("<div style='margin: 10px;'>");
if($_SESSION['userlevel'] != '10')
if ($_SESSION['userlevel'] != '10')
{
include("includes/error-no-perm.inc.php");
}
else
}
else
{
echo("<h3>Add User</h3>");
if (auth_usermanagement())
{
if($_POST['action'] == "add")
{
if($_POST['new_username'])
if ($_POST['action'] == "add")
{
if ($_POST['new_username'])
{
if (!user_exists($_POST['new_username']))
{
# FIXME: missing email field here on the form
if (adduser($_POST['new_username'], $_POST['new_password'], $_POST['new_level'], '', $_POST['realname']))
{
echo("<span class=info>User " . $_POST['username'] . " added!</span>");
{
echo("<span class=info>User " . $_POST['username'] . " added!</span>");
}
}
else
@@ -40,7 +40,7 @@ else
?>
Password <input style='margin: 1px;' name='new_password' id='new_password' type=password /><br />
<?php
if($_POST['action'] == "add" && !$_POST['new_password'])
if ($_POST['action'] == "add" && !$_POST['new_password'])
{
echo("<span class=red>Please enter a password!</span><br />");
}
@@ -64,4 +64,4 @@ else
echo("</div>");
?>
?>