If:
Then:
declare extern ErrMsg,ErrReturn,OutFile,SessID
If:
Then:
declare extern UName,FName,LName,Email,URL,Remember,Cookie
If:
Then:
declare OHandle(4,.0),Msg,IHandle(4,.0),SelfURL,Style,Pre
If:
Then:
IHandle=open("flfss.styleurl","r")
If:
Then:
ln=readline(IHandle,Style,"999")
If:
Then:
ln=close(Ihandle)
If:
Then:
IHandle=open("flfss.baseurl","r")
If:
IHandle lt "0"
Then:
SelfURL="/~fairlite/cgi-bin/cgiwrap/filepro/onegate";goto
skiprd2
If:
Then:
ln=readline(IHandle,SelfURL,"999")
If:
Then:
ln=close(IHandle)
If:
Then:
OHandle=open(OutFile,"wc0t")
If:
Then:
Msg="<html><head><title>User Registered</title>"
If:
Style ne ""
Then:
Msg="<link rel=\"stylesheet\" href=\""{Style{"\" type=\"text/css\">"
If:
Then:
Msg="</head><body>"
If:
Then:
Msg="<div class=\"whole\"><div class=\"header\"><div class=\"title\"><h2>User Registered</h2></div><br><hr></div>"
If:
Then:
Msg="<div class=\"main\">"
If:
ErrMsg ne ""
Then:
Msg="<div class=\"error\">"{ErrMsg{"</div>";gosub
sendln
If:
Then:
Pre="<div><div class=\"flabel\">Username:</div>"
If:
Then:
Msg="<div class=\"fval\">"{UName{"</div><br><br></div>"
If:
Then:
Pre="<div><div class=\"flabel\">Email:</div>"
If:
Then:
Msg="<div class=\"fval\">"{Email{"</div><br><br></div>"
If:
Then:
Pre="<div><div class=\"flabel\">First Name:</div>"
If:
Then:
Msg="<div class=\"fval\">"{FName{"</div><br><br></div>"
If:
Then:
Pre="<div><div class=\"flabel\">Last Name:</div>"
If:
Then:
Msg="<div class=\"fval\">"{LName{"</div><br><br></div>"
If:
Then:
Pre="<div><div class=\"flabel\">Homepage URL:</div>"
If:
Then:
Msg="<div class=\"fval\">"{URL{"</div><br><br></div>"
If:
Then:
Msg="<div><a href=\""{SelfURL{"?onegate_set=flfss_login\">Log In!</a><br><br></div>";gosub
sendln
If:
Then:
Msg="</div><div class=\"footer\"><hr><span class=\"genby\">Fairlight File Sharing System</span></div></div>"
If:
Then:
Msg="</body></html>"
If:
Then:
ln=close(OHandle)
If:
Then:
ErrReturn="DONE";end
If:
Pre ne ""
Then:
ln=writeline(OHandle,Pre,len(Pre))
If:
Msg ne ""
Then:
ln=writeline(OHandle,Msg,len(Msg))