Member Login:
Login Error: Unknown Username and Password';
}
if ($GLOBALS['loginAttempt'] == 2)
{
echo '
Login Error: Your Account Has Expired!';
}
}
if (($GLOBALS['locationinfo']['pagename'] == 'login') && ($GLOBALS['locationinfo']['modulename'] == 'index'))
{
echo '
New Member Sign Up:
Please fill out all required fields.';
}
if ($GLOBALS['signupAttempt'] == 2)
{
echo '
Username taken. Please choose another.';
}
if ($GLOBALS['signupAttempt'] == 3)
{
if ($_REQUEST["password"] != $_REQUEST["password2"])
{
echo '
Passwords do not match. Please try again.';
}
if (strlen($_REQUEST["password"]) < 4)
{
echo '
Password is not long enough.';
}
}
if ($GLOBALS['signupAttempt'] == 4)
{
echo '
The code was not entered correctly. Please try again.';
}
if ($GLOBALS['signupAttempt'] == 5)
{
echo '
The activation code entered is not valid. Please try again, or click here to contact us.';
}
}
if (isset($GLOBALS['signupAttempt']) && ($GLOBALS['signupAttempt'] == 0))
{
$generate_form = false;
echo '
Thank You for Registering
';
$username = $_REQUEST["username"];
$password = $_REQUEST["password"];
echo '
';
echo '
';
}
if ($generate_form)
{
$action = $_SERVER['REQUEST_URI'];
$referer = '/pages/index/log.html';
$gendermale = '';
$genderfemale = '';
$genderdecline = '';
if(isset($_REQUEST['gender']))
{
eval('$gender' . $_REQUEST['gender'] . " = ' selected=" . '"selected"' . "';");
}
$age18 = '';
$age26 = '';
$age41 = '';
$age56 = '';
$age71 = '';
$agedecline = '';
switch (isset($_REQUEST['age']))
{
case '18-25':
$age18 = ' selected="selected"';
break;
case '26-40':
$age26 = ' selected="selected"';
break;
case '41-55':
$age41 = ' selected="selected"';
break;
case '56-70':
$age56 = ' selected="selected"';
break;
case '71+':
$age56 = ' selected="selected"';
break;
case 'decline':
$agedecline = ' selected="selected"';
break;
}
$ethInd = '';
$ethAsi = '';
$ethBla = '';
$ethHis = '';
$ethWhi = '';
$ethMulti = '';
$ethOth = '';
$ethDec = '';
switch (isset($_REQUEST['ethnicity']))
{
case 'indianOrAlska':
$ethInd = ' selected="selected"';
break;
case 'asianOrPacific':
$ethAsi = ' selected="selected"';
break;
case 'Black':
$ethBla = ' selected="selected"';
break;
case 'hispanic':
$ethHis = ' selected="selected"';
break;
case 'White':
$ethWhi = ' selected="selected"';
break;
case 'Multi-racial':
$ethMulti = ' selected="selected"';
break;
case 'other':
$ethOth = ' selected="selected"';
break;
case 'decline':
$ethDec = ' selected="selected"';
break;
}
echo '