%%generic-createmember-anonymous-html%%
progmin : / (context #147)
2002-04-25 20:12:13

%%preprocess%%
if ($session->request->connection!="https") {
 $newlocation= "https://".$session->request->sitename."$_SERVER[SCRIPT_NAME]/".$session->request->path."?".$session->request->cgi;
 header("Location: $newlocation");
 exit;
 }

$postvars= $GLOBALS[HTTP_POST_VARS];
if ($postvars[email]!="") {
    if ($site->public) {
	$session->insertstatus= "posted";
	$GLOBALS[session]= $session;
	}
    if ($session->membercreate()) {
	if ($session->loginprocess()) {
	    $newlocation= "$_SERVER[SCRIPT_NAME]/".$session->request->path."?method=view$session->cgi";
	    header("Location: $newlocation");
	    exit;
	    }
	print "Error: Created, but not logged-in.";
	exit;
	}
    }


if (!$site->public) {
	$session->alert= " This site is not public, so your membership application will need to be approved by the site administrator before it will take effect.";
	}
	
if ($site->p_privacyPolicy!="") $this->privacyPolicy= "<a href='$site->p_privacyPolicy' target='_blank'>Please read our <b>Privacy Policy</b>.</a>";
if ($site->p_memberMessage!="") $this->memberMessage= "<blockquote>".bHtml($site->p_memberMessage)."<br/>&nbsp;</blockquote>";

%%header%%





%%css%%


%%template%%
<form method='post' action='?method=createmember$session->cgi' class='.form'>
<input type='hidden' name='status' value='posted'>
<input type='hidden' name='rank' value='100'>
<input type='hidden' name='public' value='0'>
<table cellpadding=5 cellspacing=5>
  <tr>
    <td class='objBodyTable'>
    	<table class='editTable'>
	<tr>
	    <td colspan=2><b>Create a membership:</b>$this->memberMessage</td>
	</tr>
	<tr> 
	    <td colspan=2><b>$session->alert</b></td>
	</tr>
	<tr> 
	    <td align='right' valign='top'>your&nbsp;name:</td>
	    <td valign='top'> <input type='text' name='name' size='42' maxlength='255' value="$sitemember->name">
	    </td>
	</tr>
	<tr> 
	    <td align='right' valign='top'>your&nbsp;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='text' name='password' size='42' maxlength='255' value="$sitemember->password">
	    </td>
	</tr>
	<tr> 
	    <td align='right' valign='top'>password&nbsp;hint:</td>
	    <td valign='top'> <input type='text' name='hint' size='42' maxlength='255' value="$sitemember->hint">
		<br>
		This hint should remind you of your password. Passwords are encrypted 
			and can't be included in a reminder email.</td>
	</tr>
	<tr>
	    <td>&nbsp;</td>
	    <td> <input type='submit' name='Submit' value='create' class='buttonstyle'>
	    </td>
	</tr>
	<tr>
	    <td>&nbsp;</td>
	    <td>$this->privacyPolicy</td>
	</tr>
    	</table>
    </td>
  </tr>
</table>
</form>




%%listrow%%





%%nullobject%%





%%footer%%





%%postprocess%%





%%end of context%%
