0)
{
$s_msg .= 'You are already logged in
';
$welcome = true;
}
// ------------------------------------------------------------------------------------------------
// Process remind request
if ($_POST['action'] == 'Remind')
{
if ( (!$_POST['alr']) && (!$_POST['em']) )
{
$e_msg .= 'Please enter either Username or Email Address for Password Reminder
';
}
else
{
remind_pw($_POST['alr'], $_POST['em'], $e_msg, $s_msg);
}
}
// ------------------------------------------------------------------------------------------------
// Process login request
if ($_POST['action'] == 'Login')
{
if ( (!$_POST['al']) || (!$_POST['pd']) )
{
$e_msg .= 'Please enter both Username and Password for Login
';
}
else
{
login($_POST['al'], $_POST['pd'], $e_msg, $s_msg);
}
}
// ================================================================================================
// Show the forms
// Write the container
$hologram[6601] = '
| ' . tabler('c',400,0,'','',0,'');
$hologram[6799] = ' |
';
// ------------------------------------------------------------------------------------------------
// Error - success messages
if ($e_msg > '')
{
$hologram[6625] .= scriber_trtd($e_msg,'error_msg2',0,0,0,0,0,0,0,'m','c');
}
if ($s_msg > '')
{
$hologram[6625] .= scriber_trtd($s_msg,'success_msg2',0,0,0,0,0,0,0,'m','c');
}
// ------------------------------------------------------------------------------------------------
// Welcome screen if login successful
if ($_SESSION['s_memberid'] > 0)
{
$hologram[6700] = scriber_trtd('Welcome Back, '.$_SESSION['s_fname'].'!','error_msg2',
0,0,0,0,0,0,400,'m','c');
}
// ------------------------------------------------------------------------------------------------
// Login screen if needed
if (!$_SESSION['s_memberid'])
{
// TAG STOMPING into body tag
$hologram[2020] = ' onload="document.login.al.focus();"';
$hologram[6650] .= '| ' . tabler('c',300,0,'','',0,'') .
' |
| ' .
scriber_td('Login','page_hdrtext1',0,0,0,0,0,150,75,'m','l') .
'
';
$hologram[6650] .= '';
}
// ------------------------------------------------------------------------------------------------
// Remind screen if needed
if ($_GET['remind'] == 'yes')
{
// TAG STOMPING into body tag
$hologram[2020] = ' onload="document.remind.al.focus();"';
$hologram[6750] .= v_spacer(25) .
'| ' . tabler('c',300,0,'','',0,'') .
' |
|
' .
' | ' .
scriber_td('Password Reminder','page_hdrtext1',0,0,0,0,0,150,100,'m','l') .
'
';
$hologram[6750] .= '';
}
// ------------------------------------------------------------------------------------------------
require(PF_HOLOGRAPH_PAGE);
require (PF_HOLOGRAPH);
?>