Okay, let's try to fix this...

This commit is contained in:
Jeff Teunissen 2002-02-22 06:36:35 +00:00
parent 37aa543bed
commit f77b3e9af3
1 changed files with 63 additions and 68 deletions

View File

@ -53,74 +53,6 @@ CREATE TABLE members (
Display a login form.
*/
function authLoginForm ($title)
{
global $siteName, $pageName, $focused, $theme;
require siteHome ."/parts/library.php";
require siteHome ."/parts/head.php"; // Load the HEAD and open BODY
require siteHome ."/parts/topstrip.php"; // Display top strip
require siteHome ."/parts/titletable.php"; // Display main title w/ logos
?>
<TABLE width="100%" cellSpacing="0" cellPadding="0" border="0">
<TR vAlign="top">
<TD bgColor="<? echo menuBgColor; ?>">
<? include siteHome . "/parts/menu.php"; ?>
</TD>
<TD width="100%">
<? tableHeader ("100%", black); ?>
<TR>
<? tableSpacer (1, 9, 3, black); ?>
</TR>
<TR>
<? tableSpacer (9, 1, 1, black); ?>
<TD>
<? require siteHome . "/parts/topmain.php"; ?>
</TD>
<? tableSpacer (9, 1, 1, black); ?>
</TR>
<TR>
<? tableSpacer (1, 18, 3, black); ?>
</TR>
<TR>
<? tableSpacer (9, 1, 1, black); ?>
<TD>
<!-- Content Start -->
<FORM name="login" method="post" action="<? echo thisUrl; ?>">
<?
tableBoxHeader (featureBgColor, tableHeadColor);
tableTitle ($title, 1, tableHeadColor);
?><TD align="center"><?
tableHeader ("100%", featureBgColor);
?>
<TR vAlign="middle">
<TD align="center">
<STRONG>User Name:</STRONG>
</TD>
<TD align="center">
<INPUT name="userName" type="text" size="10">
</TD>
</TR>
<TR vAlign="middle">
<TD align="center">
<STRONG>Password:</STRONG>
</TD>
<TD align="center">
<INPUT name="password" type="password" size="10">
</TD>
</TR>
<TR vAlign="middle">
<TD align="center" colSpan="2">
<INPUT TYPE="submit" VALUE="Log in">
</TD>
</TR>
<?
tableFooter ();
tableBoxFooter ();
require siteHome ."/parts/postamble.php";
die ();
}
/*
authCreateSecret
@ -193,6 +125,69 @@ CREATE TABLE members (
if ($userName) {
authProcess ($userName, $password);
} else {
require siteHome ."/parts/library.php";
require siteHome ."/parts/head.php"; // Load the HEAD and open BODY
require siteHome ."/parts/topstrip.php"; // Display top strip
require siteHome ."/parts/titletable.php"; // Display main title w/ logos
?>
<TABLE width="100%" cellSpacing="0" cellPadding="0" border="0">
<TR vAlign="top">
<TD bgColor="<? echo menuBgColor; ?>">
<? include siteHome . "/parts/menu.php"; ?>
</TD>
<TD width="100%">
<? tableHeader ("100%", black); ?>
<TR>
<? tableSpacer (1, 9, 3, black); ?>
</TR>
<TR>
<? tableSpacer (9, 1, 1, black); ?>
<TD>
<? require siteHome . "/parts/topmain.php"; ?>
</TD>
<? tableSpacer (9, 1, 1, black); ?>
</TR>
<TR>
<? tableSpacer (1, 18, 3, black); ?>
</TR>
<TR>
<? tableSpacer (9, 1, 1, black); ?>
<TD>
<!-- Content Start -->
<FORM name="login" method="post" action="<? echo thisUrl; ?>">
<?
tableBoxHeader (featureBgColor, tableHeadColor);
tableTitle ("Login required", 1, tableHeadColor);
?><TD align="center"><?
tableHeader ("100%", featureBgColor);
?>
<TR vAlign="middle">
<TD align="center">
<STRONG>User Name:</STRONG>
</TD>
<TD align="center">
<INPUT name="userName" type="text" size="10">
</TD>
</TR>
<TR vAlign="middle">
<TD align="center">
<STRONG>Password:</STRONG>
</TD>
<TD align="center">
<INPUT name="password" type="password" size="10">
</TD>
</TR>
<TR vAlign="middle">
<TD align="center" colSpan="2">
<INPUT TYPE="submit" VALUE="Log in">
</TD>
</TR>
<?
tableFooter ();
tableBoxFooter ();
require siteHome ."/parts/postamble.php";
die ();
authLoginForm ('Login required');
}
}