From 083940536b93c264940126de169d9871e827a6c5 Mon Sep 17 00:00:00 2001
From: Michael R Sweet
Date: Sun, 9 Sep 2007 07:08:30 +0000
Subject: [PATCH] Cleanup remaining pages.
---
www/account.php | 72 +++++++++++++++++++++++--------------------------
www/login.php | 48 +++++++++++++++------------------
2 files changed, 56 insertions(+), 64 deletions(-)
diff --git a/www/account.php b/www/account.php
index b5e61b0..bcd6e00 100644
--- a/www/account.php
+++ b/www/account.php
@@ -1,6 +1,6 @@
$title\n");
}
@@ -157,17 +155,17 @@ switch ($op)
$email = htmlspecialchars($email, ENT_QUOTES);
print("\n");
}
html_footer();
@@ -319,7 +317,7 @@ switch ($op)
$email = htmlspecialchars($email, ENT_QUOTES);
print("\n");
}
html_footer();
@@ -384,10 +382,10 @@ switch ($op)
if ($row["is_published"] == 0)
$email .= " ";
+ ."border='0' align='middle' alt='Private'>";
html_start_row();
- print(" "
+ print(" "
."$name "
.""
."$email "
@@ -396,15 +394,13 @@ switch ($op)
html_end_row();
}
- html_start_row("header");
- print(" "
+ html_end_table();
+
+ print(""
."Disable "
."Enable "
." "
- ."
");
- html_end_row();
-
- html_end_table();
+ ."
");
html_start_links(1);
html_link("Add Account", "$PHP_SELF?Aadd");
@@ -443,7 +439,7 @@ switch ($op)
$id = $row['id'];
$title = htmlspecialchars($row['title'], ENT_QUOTES) .
" ";
+ ."border='0' align='middle' alt='Private'>";
$abstract = htmlspecialchars($row['abstract'], ENT_QUOTES);
$date = date("M d, Y", $row['modify_date']);
@@ -488,7 +484,7 @@ switch ($op)
$title = htmlspecialchars($row['name'], ENT_QUOTES) . " " .
htmlspecialchars($row['version'], ENT_QUOTES) .
" ";
+ ."border='0' align='middle' alt='Private'>";
$date = date("M d, Y", $row['modify_date']);
if ($row["is_category"])
@@ -537,7 +533,7 @@ switch ($op)
if ($row['is_published'] == 0)
$summabbr .= " ";
+ ."border='0' align='middle' alt='Private'>";
html_start_row();
@@ -580,16 +576,16 @@ switch ($op)
while ($row = db_next($result))
{
- $create_date = date("M d, Y", $row['date']);
+ $create_date = date("M d, Y", $row['create_date']);
$create_user = sanitize_email($row['create_user']);
$contents = sanitize_text($row['contents']);
$location = str_replace("_", "?", $row['url']);
print("$row[url] "
." by $create_user on $create_date "
- ."[ Edit "
- ."| Delete "
- ."]$contents \n");
+ ."Edit "
+ ."· Delete "
+ ."$contents \n");
}
print("\n");
@@ -615,16 +611,16 @@ switch ($op)
else
{
print("\n");
}
html_footer();
@@ -652,6 +648,6 @@ switch ($op)
//
-// End of "$Id: account.php,v 1.10 2004/05/20 21:37:57 mike Exp $".
+// End of "$Id$".
//
?>
diff --git a/www/login.php b/www/login.php
index 59b33db..601cd06 100644
--- a/www/login.php
+++ b/www/login.php
@@ -85,8 +85,7 @@ if ($REQUEST_METHOD == "POST")
html_link("Enable Account", "$PHP_SELF?E");
html_end_links();
- print("Login Registration \n"
- ."Thank you for requesting an account. You should receive an "
+ print("Thank you for requesting an account. You should receive an "
."email from $PROJECT_EMAIL shortly with instructions on "
."completing your registration.\n");
html_footer();
@@ -148,13 +147,12 @@ else if ($argc == 0 || $argv[0] != "E")
// Header + start of table...
html_header("Login");
- print("Login \n"
- ."
\n"
."\n");
// Existing users...
- print("Current Users \n");
+ print("Current Users \n");
if ($argc == 0 && $usererror != "")
print("$usererror
\n");
@@ -162,29 +160,29 @@ else if ($argc == 0 || $argv[0] != "E")
print("If you are a registered $PROJECT_NAME developer, please enter "
."your username and password to login:
\n"
."\n");
// Separator...
print(" "
." "
- ." "
+ ." "
." "
."\n");
// New users...
- print("New Users \n");
+ print("New Users \n");
if ($argc == 1 && $usererror != "")
print("$usererror
\n");
@@ -196,25 +194,25 @@ else if ($argc == 0 || $argv[0] != "E")
."in the form below to register. An email will be sent to the "
."address you supply to confirm the registration:\n"
."\n");
// End table
print(" \n"
- ."
\n");
+ ."\n");
html_footer();
}
@@ -222,8 +220,6 @@ else
{
html_header("Enable Account");
- print("Enable Account \n");
-
if ($usererror != NULL)
print("$usererror
\n");
@@ -236,15 +232,15 @@ else
." \n");
html_footer();