%%generic-login-anonymous-html%%
2002-06-28 07:13

%%preprocess%%
if ($session->request->connection!="https") {
 $newlocation= "https://".$site->name.$session->refreshURL;
  berror("Login should be SSL. Trying to redirect to $newlocation.",1);
 header("Location: $newlocation");
 //exit;
 }

if ($_REQUEST[email]!="" ) {
  if ($GLOBALS['session']->loginprocess() ) {
  	$object->getBaseUrl();
       $newlocation= "$object->baseUrl?method=view$session->cgi";
       berror("Logging in. Trying to redirect to $newlocation.",1);
       header("Location: $newlocation");
       exit;
       }
  }

if ($site->p_privacyPolicy!="") $this->privacyPolicy= "<a href='$site->p_privacyPolicy' target='_blank'>Please read our <b>Privacy Policy</b>.</a>";


%%header%%

%%css%%

%%template%%
<form method='post' action='$this->baseURL?method=login$session->cgi' class='.form'>
$this->hiddenvars
<table width='400' border='0' cellspacing='0' cellpadding='5' align='center'>
<tr> <td colspan=2><b>$session->alert</b></td>
</tr><tr>
<td align='right' valign='top'>email:</td>
<td valign='top'> <input type='text' name='email' size='42' maxlength='255' value="$sitemember->email">
</td> </tr>
<tr> <td align='right' valign='top'>password:</td>
<td valign='top'> <input type='password' name='password' size='42' maxlength='255' value="">
</td> </tr>
<tr> <td>&nbsp;</td>
<td> <input type='submit' name='Submit' value='login' class='buttonstyle'>
<input type='submit' name='Clue' value='send my hint' class='buttonstyle'>
<br><br>&nbsp; <a href='$object->baseURL?method=createmember$session->cgi'>Create a new membership.</a>
<br/>
<br/>$this->privacyPolicy
</td>
</tr>
</table>
</form>


%%listrow%%

%%nullobject%%
<form method='post' action='$this->baseURL?method=login$session->cgi' class='.form'>
$this->hiddenvars
<table width='400' border='0' cellspacing='0' cellpadding='5' align='center'>
<tr> <td colspan=2><b>$session->alert</b></td>
</tr><tr>
<td align='right' valign='top'>email:</td>
<td valign='top'> <input type='text' name='email' size='42' maxlength='255' value="$sitemember->email">
</td> </tr>
<tr> <td align='right' valign='top'>password:</td>
<td valign='top'> <input type='password' name='password' size='42' maxlength='255' value="">
</td> </tr>
<tr> <td>&nbsp;</td>
<td> <input type='submit' name='Submit' value='login' class='buttonstyle'>
&nbsp; <a href='$this->baseURL?method=createmember$session->cgi'>Create a new membership.</a>
</td>
</tr>
</table>
</form>

%%footer%%

%%postprocess%%

%%end of context%%
