mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-10 23:32:38 +00:00
Okay, let's try to fix this...
This commit is contained in:
parent
37aa543bed
commit
f77b3e9af3
1 changed files with 63 additions and 68 deletions
131
lib/auth.php
131
lib/auth.php
|
@ -53,74 +53,6 @@ CREATE TABLE members (
|
||||||
|
|
||||||
Display a login form.
|
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
|
authCreateSecret
|
||||||
|
@ -193,6 +125,69 @@ CREATE TABLE members (
|
||||||
if ($userName) {
|
if ($userName) {
|
||||||
authProcess ($userName, $password);
|
authProcess ($userName, $password);
|
||||||
} else {
|
} 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');
|
authLoginForm ('Login required');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue