diff --git a/html/user/create_profile.php b/html/user/create_profile.php
new file mode 100644
index 0000000000..5f244a0c04
--- /dev/null
+++ b/html/user/create_profile.php
@@ -0,0 +1,21 @@
+
\ No newline at end of file
diff --git a/html/user/delete_profile.php b/html/user/delete_profile.php
new file mode 100644
index 0000000000..8eef0bd57f
--- /dev/null
+++ b/html/user/delete_profile.php
@@ -0,0 +1,53 @@
+";
+
+start_table_noborder();
+row1("Delete your profile");
+
+
+rowify("
+
Are you sure?
+Remember that deleted profiles are gone forever and cannot be recovered--you will have to start from scratch if you want another profile in the future.
+");
+rowify(" If you're sure, click the \"Delete\" button below to remove your profile from our database.");
+echo "
";
+end_table();
+echo "";
+
+page_tail();
+
+
+function delete_profile($user) {
+
+ $result = mysql_query("DELETE FROM profile WHERE userid = $user->id");
+ if ($result) {
+
+ delete_user_pictures($user->id);
+ page_head("Delete Confirmation");
+ echo "Your profile has been deleted ";
+ } else {
+
+ // TODO: Change this to a standard dialog.
+ page_head("Deletion Error");
+ echo "There was a problem deleting your profile.";
+ }
+ page_tail();
+}
+
+?>
\ No newline at end of file
diff --git a/html/user/gallery.inc b/html/user/gallery.inc
new file mode 100755
index 0000000000..6ca74005a0
--- /dev/null
+++ b/html/user/gallery.inc
@@ -0,0 +1,286 @@
+";
+
+ // Build an array of IDs of all users with pictures in their profiles.
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) { // NUM is supposedly faster than ASSOC.
+ $userIds[] = $row[0];
+ }
+
+ mysql_free_result($result);
+
+ // Randomize the ordering of users.
+ shuffle($userIds);
+
+ $numPages = ceil(count($userIds)/($width * $height));
+
+ echo "Generating $numPages pages. ";
+
+ $count = 0;
+
+ for ($page = 1; $page <= $numPages; $page++) {
+ $file = PROFILE_PATH . "user_gallery_" . $page . ".html";
+ $descriptor = fopen($file, "w");
+
+ page_head("User Picture Gallery: Page $page of $numPages", null, $descriptor);
+
+ fwrite($descriptor, "
User Profile Pictures
Last updated " . gmdate("r") . " UTC\n
Browse the user profiles by picture. Only user profiles with pictures are listed here.");
+
+ fwrite($descriptor, "