diff --git a/wp-admin/b2menutop.txt b/wp-admin/b2menutop.txt
index 6372660d97..09a864a971 100644
--- a/wp-admin/b2menutop.txt
+++ b/wp-admin/b2menutop.txt
@@ -1,10 +1,10 @@
1 wp-post.php Post
1 edit.php Edit
-3 b2team.php Team
-4 wp-options.php Options
3 categories.php Categories
+5 linkmanager.php Links
+3 users.php Users
+4 wp-options.php Options
4 b2template.php Template
-5 linkmanager.php Manage Links
***
(Everything after the '***' is a comment.)
@@ -15,4 +15,4 @@ To add sections to the menu, use this syntax:
+tab
+the URL of the section's file
+tab
-+the title of this section
++the title of this section
\ No newline at end of file
diff --git a/wp-admin/categories.php b/wp-admin/categories.php
index d488d1aae1..081bd8bc97 100644
--- a/wp-admin/categories.php
+++ b/wp-admin/categories.php
@@ -175,7 +175,7 @@ default:
Name:
-
Description:
+
Description: (optional)
diff --git a/wp-admin/users.php b/wp-admin/users.php
new file mode 100644
index 0000000000..098bf2b6d9
--- /dev/null
+++ b/wp-admin/users.php
@@ -0,0 +1,201 @@
+ */
+
+$b2varstoreset = array('action','standalone','redirect','profile');
+for ($i=0; $iuser_level;
+
+ if ($user_level <= $usertopromote_level) {
+ die('Can’t change the level of a user whose level is higher than yours.');
+ }
+
+ if ('up' == $prom) {
+ $sql="UPDATE $tableusers SET user_level=user_level+1 WHERE ID = $id";
+ } elseif ('down' == $prom) {
+ $sql="UPDATE $tableusers SET user_level=user_level-1 WHERE ID = $id";
+ }
+ $result = $wpdb->query($sql);
+
+ header('Location: users.php');
+
+break;
+
+case 'delete':
+
+ $standalone = 1;
+ require_once('b2header.php');
+
+ $id = $HTTP_GET_VARS['id'];
+
+ if (!$id) {
+ header('Location: users.php');
+ }
+
+ $user_data = get_userdata($id);
+ $usertodelete_level = $user_data->user_level;
+
+ if ($user_level <= $usertodelete_level)
+ die('Can’t delete a user whose level is higher than yours.');
+
+ $sql = "DELETE FROM $tableusers WHERE ID = $id";
+ $result = $wpdb->query($sql) or die("Couldn’t delete user #$id.");
+
+ $sql = "DELETE FROM $tableposts WHERE post_author = $id";
+ $result = $wpdb->query($sql) or die("Couldn’t delete user #$id’s posts.");
+
+ header('Location: users.php');
+
+break;
+
+default:
+
+ $standalone = 0;
+ include ('b2header.php');
+ ?>
+
+
Authors
+
+
+
ID
+
Nickname
+
Name
+
E-mail
+
URL
+
Level
+
Posts
+
+ get_results("SELECT ID FROM $tableusers WHERE user_level > 0 ORDER BY ID");
+ foreach ($users as $user) {
+ $user_data = get_userdata($user->ID);
+ $email = $user_data->user_email;
+ $url = $user_data->user_url;
+ $short_url = str_replace('http://', '', stripslashes($url));
+ $short_url = str_replace('www.', '', $short_url);
+ if ('/' == substr($short_url, -1))
+ $short_url = substr($short_url, 0, -1);
+ if (strlen($short_url) > 35)
+ $short_url = substr($short_url, 0, 32).'...';
+ $bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';
+ $numposts = $wpdb->get_var("SELECT COUNT(*) FROM $tableposts WHERE post_author = $user->ID and post_status = 'publish'");
+ if (0 < $numposts) $numposts = "$numposts";
+ echo "
+