mirror of
https://github.com/michaelrsweet/mxml.git
synced 2025-07-02 00:42:07 +00:00
Cleanup remaining pages.
This commit is contained in:
parent
2181cfb688
commit
083940536b
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
//
|
//
|
||||||
// "$Id: account.php,v 1.10 2004/05/20 21:37:57 mike Exp $"
|
// "$Id$"
|
||||||
//
|
//
|
||||||
// Account management page...
|
// Account management page...
|
||||||
//
|
//
|
||||||
@ -45,8 +45,6 @@ account_header($title)
|
|||||||
html_link("New/Pending", "$PHP_SELF?L");
|
html_link("New/Pending", "$PHP_SELF?L");
|
||||||
html_link("Logout", "$PHP_SELF?X");
|
html_link("Logout", "$PHP_SELF?X");
|
||||||
html_end_links();
|
html_end_links();
|
||||||
|
|
||||||
print("<h1>$title</h1>\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -157,17 +155,17 @@ switch ($op)
|
|||||||
$email = htmlspecialchars($email, ENT_QUOTES);
|
$email = htmlspecialchars($email, ENT_QUOTES);
|
||||||
|
|
||||||
print("<form method='POST' action='$PHP_SELF?Aadd'>"
|
print("<form method='POST' action='$PHP_SELF?Aadd'>"
|
||||||
."<p><table width='100%'>\n"
|
."<table width='100%'>\n"
|
||||||
."<tr><th align='right'>Published:</th>"
|
."<tr><th align='right'>Published:</th>"
|
||||||
."<td>");
|
."<td>");
|
||||||
select_is_published($is_published);
|
select_is_published($is_published);
|
||||||
print("</td></tr>\n"
|
print("</td></tr>\n"
|
||||||
."<tr><th align='right'>Username:</th>"
|
."<tr><th align='right'>Username:</th>"
|
||||||
."<td><input type='text' name='NAME' size='40' "
|
."<td><input type='text' name='NAME' size='40' "
|
||||||
."maxsize='255' value='$name'/></td></tr>\n"
|
."maxsize='255' value='$name'></td></tr>\n"
|
||||||
."<tr><th align='right'>EMail:</th>"
|
."<tr><th align='right'>EMail:</th>"
|
||||||
."<td><input type='text' name='EMAIL' size='40' "
|
."<td><input type='text' name='EMAIL' size='40' "
|
||||||
."maxsize='255' value='$email'/></td></tr>\n"
|
."maxsize='255' value='$email'></td></tr>\n"
|
||||||
."<tr><th align='right'>Access Level:</th>"
|
."<tr><th align='right'>Access Level:</th>"
|
||||||
."<td><select name='LEVEL'>");
|
."<td><select name='LEVEL'>");
|
||||||
|
|
||||||
@ -183,13 +181,13 @@ switch ($op)
|
|||||||
print("</select></td></tr>\n"
|
print("</select></td></tr>\n"
|
||||||
."<tr><th align='right'>Password:</th>"
|
."<tr><th align='right'>Password:</th>"
|
||||||
."<td><input type='password' name='PASSWORD' size='16' "
|
."<td><input type='password' name='PASSWORD' size='16' "
|
||||||
."maxsize='255'/></td></tr>\n"
|
."maxsize='255'></td></tr>\n"
|
||||||
."<tr><th align='right'>Password Again:</th>"
|
."<tr><th align='right'>Password Again:</th>"
|
||||||
."<td><input type='password' name='PASSWORD2' size='16' "
|
."<td><input type='password' name='PASSWORD2' size='16' "
|
||||||
."maxsize='255'/></td></tr>\n"
|
."maxsize='255'></td></tr>\n"
|
||||||
."<tr><th></th><td><input type='submit' value='Add Account'/>"
|
."<tr><th></th><td><input type='submit' value='Add Account'>"
|
||||||
."</td></tr>\n"
|
."</td></tr>\n"
|
||||||
."</table></p></form>\n");
|
."</table></form>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
html_footer();
|
html_footer();
|
||||||
@ -319,7 +317,7 @@ switch ($op)
|
|||||||
$email = htmlspecialchars($email, ENT_QUOTES);
|
$email = htmlspecialchars($email, ENT_QUOTES);
|
||||||
|
|
||||||
print("<form method='POST' action='$PHP_SELF?Amodify+$name'>"
|
print("<form method='POST' action='$PHP_SELF?Amodify+$name'>"
|
||||||
."<p><table width='100%'>\n"
|
."<table width='100%'>\n"
|
||||||
."<tr><th align='right'>Published:</th>"
|
."<tr><th align='right'>Published:</th>"
|
||||||
."<td>");
|
."<td>");
|
||||||
select_is_published($is_published);
|
select_is_published($is_published);
|
||||||
@ -328,12 +326,12 @@ switch ($op)
|
|||||||
."<td>$name</td></tr>\n"
|
."<td>$name</td></tr>\n"
|
||||||
."<tr><th align='right'>EMail:</th>"
|
."<tr><th align='right'>EMail:</th>"
|
||||||
."<td><input type='text' name='EMAIL' size='40' "
|
."<td><input type='text' name='EMAIL' size='40' "
|
||||||
."maxsize='255' value='$email'/></td></tr>\n"
|
."maxsize='255' value='$email'></td></tr>\n"
|
||||||
."<tr><th align='right'>Access Level:</th>"
|
."<tr><th align='right'>Access Level:</th>"
|
||||||
."<td>");
|
."<td>");
|
||||||
|
|
||||||
if ($LOGIN_USER == $name)
|
if ($LOGIN_USER == $name)
|
||||||
print("<input type='hidden' name='LEVEL' value='$level'/>"
|
print("<input type='hidden' name='LEVEL' value='$level'>"
|
||||||
. $levels[$level]);
|
. $levels[$level]);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -354,13 +352,13 @@ switch ($op)
|
|||||||
print("</td></tr>\n"
|
print("</td></tr>\n"
|
||||||
."<tr><th align='right'>Password:</th>"
|
."<tr><th align='right'>Password:</th>"
|
||||||
."<td><input type='password' name='PASSWORD' size='16' "
|
."<td><input type='password' name='PASSWORD' size='16' "
|
||||||
."maxsize='255'/></td></tr>\n"
|
."maxsize='255'></td></tr>\n"
|
||||||
."<tr><th align='right'>Password Again:</th>"
|
."<tr><th align='right'>Password Again:</th>"
|
||||||
."<td><input type='password' name='PASSWORD2' size='16' "
|
."<td><input type='password' name='PASSWORD2' size='16' "
|
||||||
."maxsize='255'/></td></tr>\n"
|
."maxsize='255'></td></tr>\n"
|
||||||
."<tr><th></th><td><input type='submit' value='Modify Account'/>"
|
."<tr><th></th><td><input type='submit' value='Modify Account'>"
|
||||||
."</td></tr>\n"
|
."</td></tr>\n"
|
||||||
."</table></p></form>\n");
|
."</table></form>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
html_footer();
|
html_footer();
|
||||||
@ -384,10 +382,10 @@ switch ($op)
|
|||||||
|
|
||||||
if ($row["is_published"] == 0)
|
if ($row["is_published"] == 0)
|
||||||
$email .= " <img src='images/private.gif' width='16' height='16' "
|
$email .= " <img src='images/private.gif' width='16' height='16' "
|
||||||
."border='0' align='middle' alt='Private'/>";
|
."border='0' align='middle' alt='Private'>";
|
||||||
|
|
||||||
html_start_row();
|
html_start_row();
|
||||||
print("<td nowrap><input type='checkbox' name='ID_$row[id]'/>"
|
print("<td nowrap><input type='checkbox' name='ID_$row[id]'>"
|
||||||
."<a href='$PHP_SELF?Amodify+$name'>$name</a></td>"
|
."<a href='$PHP_SELF?Amodify+$name'>$name</a></td>"
|
||||||
."<td align='center'><a href='$PHP_SELF?Amodify+$name'>"
|
."<td align='center'><a href='$PHP_SELF?Amodify+$name'>"
|
||||||
."$email</a></td>"
|
."$email</a></td>"
|
||||||
@ -396,15 +394,13 @@ switch ($op)
|
|||||||
html_end_row();
|
html_end_row();
|
||||||
}
|
}
|
||||||
|
|
||||||
html_start_row("header");
|
html_end_table();
|
||||||
print("<td align='center' colspan='3'> <br /><select name='OP'>"
|
|
||||||
|
print("<p align='center'><select name='OP'>"
|
||||||
."<option value='disable'>Disable</option>"
|
."<option value='disable'>Disable</option>"
|
||||||
."<option value='enable'>Enable</option>"
|
."<option value='enable'>Enable</option>"
|
||||||
."</select>"
|
."</select>"
|
||||||
."<input type='submit' value='Checked Accounts'/></td>");
|
."<input type='submit' value='Checked Accounts'></p>");
|
||||||
html_end_row();
|
|
||||||
|
|
||||||
html_end_table();
|
|
||||||
|
|
||||||
html_start_links(1);
|
html_start_links(1);
|
||||||
html_link("Add Account", "$PHP_SELF?Aadd");
|
html_link("Add Account", "$PHP_SELF?Aadd");
|
||||||
@ -443,7 +439,7 @@ switch ($op)
|
|||||||
$id = $row['id'];
|
$id = $row['id'];
|
||||||
$title = htmlspecialchars($row['title'], ENT_QUOTES) .
|
$title = htmlspecialchars($row['title'], ENT_QUOTES) .
|
||||||
" <img src='images/private.gif' width='16' height='16' "
|
" <img src='images/private.gif' width='16' height='16' "
|
||||||
."border='0' align='middle' alt='Private'/>";
|
."border='0' align='middle' alt='Private'>";
|
||||||
$abstract = htmlspecialchars($row['abstract'], ENT_QUOTES);
|
$abstract = htmlspecialchars($row['abstract'], ENT_QUOTES);
|
||||||
$date = date("M d, Y", $row['modify_date']);
|
$date = date("M d, Y", $row['modify_date']);
|
||||||
|
|
||||||
@ -488,7 +484,7 @@ switch ($op)
|
|||||||
$title = htmlspecialchars($row['name'], ENT_QUOTES) . " " .
|
$title = htmlspecialchars($row['name'], ENT_QUOTES) . " " .
|
||||||
htmlspecialchars($row['version'], ENT_QUOTES) .
|
htmlspecialchars($row['version'], ENT_QUOTES) .
|
||||||
" <img src='images/private.gif' width='16' height='16' "
|
" <img src='images/private.gif' width='16' height='16' "
|
||||||
."border='0' align='middle' alt='Private'/>";
|
."border='0' align='middle' alt='Private'>";
|
||||||
$date = date("M d, Y", $row['modify_date']);
|
$date = date("M d, Y", $row['modify_date']);
|
||||||
|
|
||||||
if ($row["is_category"])
|
if ($row["is_category"])
|
||||||
@ -537,7 +533,7 @@ switch ($op)
|
|||||||
|
|
||||||
if ($row['is_published'] == 0)
|
if ($row['is_published'] == 0)
|
||||||
$summabbr .= " <img src='images/private.gif' width='16' height='16' "
|
$summabbr .= " <img src='images/private.gif' width='16' height='16' "
|
||||||
."border='0' align='middle' alt='Private'/>";
|
."border='0' align='middle' alt='Private'>";
|
||||||
|
|
||||||
html_start_row();
|
html_start_row();
|
||||||
|
|
||||||
@ -580,16 +576,16 @@ switch ($op)
|
|||||||
|
|
||||||
while ($row = db_next($result))
|
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']);
|
$create_user = sanitize_email($row['create_user']);
|
||||||
$contents = sanitize_text($row['contents']);
|
$contents = sanitize_text($row['contents']);
|
||||||
$location = str_replace("_", "?", $row['url']);
|
$location = str_replace("_", "?", $row['url']);
|
||||||
|
|
||||||
print("<li><a href='$location'>$row[url]</a> "
|
print("<li><a href='$location'>$row[url]</a> "
|
||||||
." by $create_user on $create_date "
|
." by $create_user on $create_date "
|
||||||
."[ <a href='comment.php?e$row[id]+p$row[url]'>Edit</a> "
|
."<a href='comment.php?e$row[id]+p$row[url]'>Edit</a> "
|
||||||
."| <a href='comment.php?d$row[id]+p$row[url]'>Delete</a> "
|
."· <a href='comment.php?d$row[id]+p$row[url]'>Delete</a>"
|
||||||
."]<br /><tt>$contents</tt></li>\n");
|
."<br><tt>$contents</tt></li>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
print("</ul>\n");
|
print("</ul>\n");
|
||||||
@ -615,16 +611,16 @@ switch ($op)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
print("<form method='POST' action='$PHP_SELF?P'>"
|
print("<form method='POST' action='$PHP_SELF?P'>"
|
||||||
."<p><table width='100%'>\n"
|
."<table width='100%'>\n"
|
||||||
."<tr><th align='right'>Password:</th>"
|
."<tr><th align='right'>Password:</th>"
|
||||||
."<td><input type='password' name='PASSWORD' size='16' "
|
."<td><input type='password' name='PASSWORD' size='16' "
|
||||||
."maxsize='255'/></td></tr>\n"
|
."maxsize='255'></td></tr>\n"
|
||||||
."<tr><th align='right'>Password Again:</th>"
|
."<tr><th align='right'>Password Again:</th>"
|
||||||
."<td><input type='password' name='PASSWORD2' size='16' "
|
."<td><input type='password' name='PASSWORD2' size='16' "
|
||||||
."maxsize='255'/></td></tr>\n"
|
."maxsize='255'></td></tr>\n"
|
||||||
."<tr><th></th><td><input type='submit' value='Change Password'/>"
|
."<tr><th></th><td><input type='submit' value='Change Password'>"
|
||||||
."</td></tr>\n"
|
."</td></tr>\n"
|
||||||
."</table></p></form>\n");
|
."</table></form>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
html_footer();
|
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$".
|
||||||
//
|
//
|
||||||
?>
|
?>
|
||||||
|
@ -85,8 +85,7 @@ if ($REQUEST_METHOD == "POST")
|
|||||||
html_link("Enable Account", "$PHP_SELF?E");
|
html_link("Enable Account", "$PHP_SELF?E");
|
||||||
html_end_links();
|
html_end_links();
|
||||||
|
|
||||||
print("<h1>Login Registration</h1>\n"
|
print("Thank you for requesting an account. You should receive an "
|
||||||
."Thank you for requesting an account. You should receive an "
|
|
||||||
."email from $PROJECT_EMAIL shortly with instructions on "
|
."email from $PROJECT_EMAIL shortly with instructions on "
|
||||||
."completing your registration.</p>\n");
|
."completing your registration.</p>\n");
|
||||||
html_footer();
|
html_footer();
|
||||||
@ -148,13 +147,12 @@ else if ($argc == 0 || $argv[0] != "E")
|
|||||||
// Header + start of table...
|
// Header + start of table...
|
||||||
html_header("Login");
|
html_header("Login");
|
||||||
|
|
||||||
print("<h1>Login</h1>\n"
|
print("<table width='100%' height='100%' border='0' cellpadding='0' "
|
||||||
."<p><table width='100%' height='100%' border='0' cellpadding='0' "
|
|
||||||
."cellspacing='0'>\n"
|
."cellspacing='0'>\n"
|
||||||
."<tr><td valign='top'>\n");
|
."<tr><td valign='top'>\n");
|
||||||
|
|
||||||
// Existing users...
|
// Existing users...
|
||||||
print("<h2>Current Users</h2>\n");
|
print("<h1>Current Users</h1>\n");
|
||||||
|
|
||||||
if ($argc == 0 && $usererror != "")
|
if ($argc == 0 && $usererror != "")
|
||||||
print("<p><b>$usererror</b></p>\n");
|
print("<p><b>$usererror</b></p>\n");
|
||||||
@ -162,29 +160,29 @@ else if ($argc == 0 || $argv[0] != "E")
|
|||||||
print("<p>If you are a registered $PROJECT_NAME developer, please enter "
|
print("<p>If you are a registered $PROJECT_NAME developer, please enter "
|
||||||
."your username and password to login:</p>\n"
|
."your username and password to login:</p>\n"
|
||||||
."<form method='POST' action='$PHP_SELF'>"
|
."<form method='POST' action='$PHP_SELF'>"
|
||||||
."<p><table width='100%'>\n"
|
."<table width='100%'>\n"
|
||||||
."<tr><th align='right'>Username:</th>"
|
."<tr><th align='right'>Username:</th>"
|
||||||
."<td><input type='text' name='USERNAME' size='16' maxsize='255'");
|
."<td><input type='text' name='USERNAME' size='16' maxsize='255'");
|
||||||
|
|
||||||
if (array_key_exists("USERNAME", $_POST))
|
if (array_key_exists("USERNAME", $_POST))
|
||||||
print(" value='" . htmlspecialchars($_POST["USERNAME"], ENT_QUOTES) . "'");
|
print(" value='" . htmlspecialchars($_POST["USERNAME"], ENT_QUOTES) . "'");
|
||||||
|
|
||||||
print("/></td></tr>\n"
|
print("></td></tr>\n"
|
||||||
."<tr><th align='right'>Password:</th>"
|
."<tr><th align='right'>Password:</th>"
|
||||||
."<td><input type='password' name='PASSWORD' size='16' maxsize='255'/>"
|
."<td><input type='password' name='PASSWORD' size='16' maxsize='255'>"
|
||||||
."</td></tr>\n"
|
."</td></tr>\n"
|
||||||
."<tr><th></th><td><input type='submit' value='Login'/></td></tr>\n"
|
."<tr><th></th><td><input type='submit' value='Login'></td></tr>\n"
|
||||||
."</table></p></form>\n");
|
."</table></form>\n");
|
||||||
|
|
||||||
// Separator...
|
// Separator...
|
||||||
print("</td>"
|
print("</td>"
|
||||||
."<td> "
|
."<td> "
|
||||||
."<img src='images/black.gif' width='1' height='80%' alt=''/>"
|
."<img src='images/black.gif' width='1' height='80%' alt=''>"
|
||||||
." </td>"
|
." </td>"
|
||||||
."<td valign='top'>\n");
|
."<td valign='top'>\n");
|
||||||
|
|
||||||
// New users...
|
// New users...
|
||||||
print("<h2>New Users</h2>\n");
|
print("<h1>New Users</h1>\n");
|
||||||
|
|
||||||
if ($argc == 1 && $usererror != "")
|
if ($argc == 1 && $usererror != "")
|
||||||
print("<p><b>$usererror</b></p>\n");
|
print("<p><b>$usererror</b></p>\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 "
|
."in the form below to register. An email will be sent to the "
|
||||||
."address you supply to confirm the registration:</p>\n"
|
."address you supply to confirm the registration:</p>\n"
|
||||||
."<form method='POST' action='$PHP_SELF?A'>"
|
."<form method='POST' action='$PHP_SELF?A'>"
|
||||||
."<p><table width='100%'>\n"
|
."<table width='100%'>\n"
|
||||||
."<tr><th align='right'>Username:</th>"
|
."<tr><th align='right'>Username:</th>"
|
||||||
."<td><input type='text' name='USERNAME' size='16' maxsize='255' "
|
."<td><input type='text' name='USERNAME' size='16' maxsize='255' "
|
||||||
." value='$username'/></td></tr>\n"
|
." value='$username'></td></tr>\n"
|
||||||
."<tr><th align='right'>EMail:</th>"
|
."<tr><th align='right'>EMail:</th>"
|
||||||
."<td><input type='text' name='EMAIL' size='16' maxsize='255' "
|
."<td><input type='text' name='EMAIL' size='16' maxsize='255' "
|
||||||
." value='$email'/></td></tr>\n"
|
." value='$email'></td></tr>\n"
|
||||||
."<tr><th align='right'>Password:</th>"
|
."<tr><th align='right'>Password:</th>"
|
||||||
."<td><input type='password' name='PASSWORD' size='16' maxsize='255'/>"
|
."<td><input type='password' name='PASSWORD' size='16' maxsize='255'>"
|
||||||
."</td></tr>\n"
|
."</td></tr>\n"
|
||||||
."<tr><th align='right'>Password Again:</th>"
|
."<tr><th align='right'>Password Again:</th>"
|
||||||
."<td><input type='password' name='PASSWORD2' size='16' maxsize='255'/>"
|
."<td><input type='password' name='PASSWORD2' size='16' maxsize='255'>"
|
||||||
."</td></tr>\n"
|
."</td></tr>\n"
|
||||||
."<tr><th></th><td><input type='submit' value='Request Account'/></td></tr>\n"
|
."<tr><th></th><td><input type='submit' value='Request Account'></td></tr>\n"
|
||||||
."</table></p></form>\n");
|
."</table></form>\n");
|
||||||
|
|
||||||
// End table
|
// End table
|
||||||
print("</td></tr>\n"
|
print("</td></tr>\n"
|
||||||
."</table></p>\n");
|
."</table>\n");
|
||||||
|
|
||||||
html_footer();
|
html_footer();
|
||||||
}
|
}
|
||||||
@ -222,8 +220,6 @@ else
|
|||||||
{
|
{
|
||||||
html_header("Enable Account");
|
html_header("Enable Account");
|
||||||
|
|
||||||
print("<h1>Enable Account</h1>\n");
|
|
||||||
|
|
||||||
if ($usererror != NULL)
|
if ($usererror != NULL)
|
||||||
print("<p><b>$usererror</b></p>\n");
|
print("<p><b>$usererror</b></p>\n");
|
||||||
|
|
||||||
@ -236,15 +232,15 @@ else
|
|||||||
."<center><table width='100%'>\n"
|
."<center><table width='100%'>\n"
|
||||||
."<tr><th align='right'>Registration Code:</th>"
|
."<tr><th align='right'>Registration Code:</th>"
|
||||||
."<td><input type='text' name='REGISTER' size='32' maxsize='32' "
|
."<td><input type='text' name='REGISTER' size='32' maxsize='32' "
|
||||||
."value = '$register'/>"
|
."value = '$register'>"
|
||||||
."</td></tr>\n"
|
."</td></tr>\n"
|
||||||
."<tr><th align='right'>Username:</th>"
|
."<tr><th align='right'>Username:</th>"
|
||||||
."<td><input type='text' name='USERNAME' size='16' maxsize='255' "
|
."<td><input type='text' name='USERNAME' size='16' maxsize='255' "
|
||||||
."value='$username'/></td></tr>\n"
|
."value='$username'></td></tr>\n"
|
||||||
."<tr><th align='right'>Password:</th>"
|
."<tr><th align='right'>Password:</th>"
|
||||||
."<td><input type='password' name='PASSWORD' size='16' maxsize='255'/>"
|
."<td><input type='password' name='PASSWORD' size='16' maxsize='255'>"
|
||||||
."</td></tr>\n"
|
."</td></tr>\n"
|
||||||
."<tr><th></th><td><input type='submit' value='Enable Account'/></td></tr>\n"
|
."<tr><th></th><td><input type='submit' value='Enable Account'></td></tr>\n"
|
||||||
."</table></center></form>\n");
|
."</table></center></form>\n");
|
||||||
|
|
||||||
html_footer();
|
html_footer();
|
||||||
|
Loading…
Reference in New Issue
Block a user