[feladat @ 22]
- Fixed bug in install.php (was still using sequence stuff).
- Changed alignment of columns in user listing in users.php.
--- a/install.php Sun Apr 22 07:20:09 2007 +0000
+++ b/install.php Sun Apr 22 07:27:49 2007 +0000
@@ -142,13 +142,10 @@
error("Can not create zones table in $dbdatabase");
}
- $id = $db->nextID('users');
-
- /* TODO next version: fix the strip_slashes. might give trouble upgrading :/ -Lyon */
$sqlinsert = "INSERT INTO
users
+ (username, password, fullname, email, description, level, active)
VALUES (
- $id,
'". $_POST['login'] ."',
'". md5(stripslashes($_POST['password'])) ."',
'". $_POST["fullname"] ."',
--- a/users.php Sun Apr 22 07:20:09 2007 +0000
+++ b/users.php Sun Apr 22 07:27:49 2007 +0000
@@ -79,14 +79,14 @@
<TD VALIGN="top" CLASS="tdbg"><A HREF="delete_user.php?id=<?= $c["id"] ?>"><IMG SRC="images/delete.gif" ALT="[ <? echo _('Delete user'); ?> ]" BORDER="0"></A></TD>
<TD VALIGN="top" CLASS="tdbg"><A HREF="edit_user.php?id=<?= $c["id"] ?>"><?= $c["fullname"] ?></A> (<?= $c["username"] ?>)</TD>
<TD VALIGN="top" CLASS="tdbg"><?= $c["numdomains"] ?></TD>
- <TD CLASS="tdbg">
+ <TD VALIGN="top" CLASS="tdbg">
<?
$domains = get_domains_from_userid($c["id"]);
foreach ($domains as $d)
{
?><A HREF="delete_domain.php?id=<?= $d["id"] ?>"><IMG SRC="images/delete.gif" ALT="[ <? echo _('Delete domain'); ?> ]" BORDER="0"></A> <A HREF="edit.php?id=<?= $d["id"] ?>"><?= $d["name"] ?></A><BR><?
}
- ?></TD><TD CLASS="tdbg"><?= $c["level"] ?></TD><TD VALIGN="middle" CLASS="tdbg"><?= get_status($c["active"]) ?></TD></TR><?
+ ?></TD><TD VALIGN="top" CLASS="tdbg"><?= $c["level"] ?></TD><TD VALIGN="top" CLASS="tdbg"><?= get_status($c["active"]) ?></TD></TR><?
print "\n";
}
?>