Processing table: prc.logindone




 
If:
 

 
 
Then:
declare extern ErrMsg,ErrReturn,OutFile,SessID,CookiePresent

 
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:
IHandle lt "0"

 
 
Then:
Style="";goto skiprd

 
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 Menu - "&Uname{"</title>"

 
If:
 

 
 
Then:
gosub sendln

 
If:
Cookie ne ""

 
 
Then:
Msg=Cookie;gosub sendln

 
If:
Style ne ""

 
 
Then:
Msg="<link rel=\"stylesheet\" href=\""{Style{"\" type=\"text/css\">"

 
If:
Style ne ""

 
 
Then:
gosub sendln

 
If:
 

 
 
Then:
Msg="</head><body>"

 
If:
 

 
 
Then:
gosub sendln

 
If:
 

 
 
Then:
Msg="<div class=\"whole\"><div class=\"header\"><div class=\"title\"><h2>User Menu - "&UName{"</h2></div><br><hr></div>"

 
If:
 

 
 
Then:
gosub sendln

 
If:
 

 
 
Then:
Msg="<div class=\"main\">"

 
If:
 

 
 
Then:
gosub sendln

 
If:
ErrMsg ne ""

 
 
Then:
Msg="<div class=\"error\">"{ErrMsg{"</div>";gosub sendln

 
If:
 

 
 
Then:
Msg="<ul><div><li><a href=\""{SelfURL{"?onegate_set=flfss_list_accounts&session="{SessID{"\">List User Accounts</a>"

 
If:
 

 
 
Then:
Msg=Msg{"<br><br></div>";gosub sendln

 
If:
 

 
 
Then:
Msg="<div><li><a href=\""{SelfURL{"?onegate_set=flfss_search_accounts&session="{SessID{"\">Search For Users/Files</a>"

 
If:
 

 
 
Then:
Msg=Msg{"<br><br></div>";gosub sendln

 
If:
 

 
 
Then:
Msg="<div><li><a href=\""{SelfURL{"?onegate_set=flfss_upload_file&session="{SessID{"\">Upload A File</a>"

 
If:
 

 
 
Then:
Msg=Msg{"<br><br></div>";gosub sendln

 
If:
 

 
 
Then:
Msg="<div><li><a href=\""{SelfURL{"?onegate_set=flfss_manage_index&session="{SessID{"\">Manage Account And Files</a>"

 
If:
 

 
 
Then:
Msg=Msg{"<br><br></div>";gosub sendln

 
If:
CookiePresent eq "Y"

 
 
Then:
Msg="<div><li><a href=\""{SelfURL{"?onegate_set=flfss_remove_cookie&session="{SessID{"\">Forget Me (Remove Cookie)</a>"

 
If:
CookiePresent eq "Y"

 
 
Then:
Msg=Msg{"<br><br></div>";gosub sendln

 
If:
 

 
 
Then:
Msg="</ul><br><br>Interested in seeing how this application works?"

 
If:
 

 
 
Then:
Msg=Msg<"<a target=\"_blank\" href=\"http://www2.onnik.com/~fairlite/flfssdocs2.html\">"

 
If:
 

 
 
Then:
Msg=Msg{"View the documentation, including full filePro code!</a>";gosub sendln

 
If:
 

 
 
Then:
Msg="</div><div class=\"footer\"><hr><span class=\"genby\">Fairlight File Sharing System</span></div></div>"

 
If:
 

 
 
Then:
gosub sendln

 
If:
 

 
 
Then:
Msg="</body></html>"

 
If:
 

 
 
Then:
gosub sendln

 
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))

 
If:
 

 
 
Then:
Msg="";Pre=""

 
If:
 

 
 
Then:
return