If:
Then:
declare global UName,Pass,FName,LName,Email,URL,SessID,Expire,SIDString,PEncode,SessUName,Search(40,ALLUP),SType
If:
cp ne "0"
Then:
CLUName=mid(Cookie,"1",cp-"1");CLPass=mid(Cookie,cp+"1",len(Cookie)-cp);PEncode=CLPass
If:
(SessID eq "" or SessID eq "NOSESSION") and Cookie eq ""
Then:
ErrMsg="Your session has expired. Please log in again.";call "loginform";exit
If:
SessID eq "CHANGEDIP"
Then:
ErrMsg="Your session ID does not match your IP Address.";call "loginform";exit
If:
(SessID eq "" or SessID eq "NOSESSION") and Cookie eq ""
Then:
ErrMsg="Your session has expired. Please log in again.";call "loginform";exit
If:
(SessID eq "" or SessID eq "NOSESSION") and (Cookie ne "" and PEncode eq Pass)
Then:
UName=CLUname;SIDString=@PW;call "make_sessionid";SessID=SIDString;UName=CLUName;call "insert_session";SUpdate="N"
If:
Then:
Msg="<div class=\"whole\"><div class=\"header\"><div class=\"title\"><h2>User Search Results</h2></div><br><hr></div>"
If:
Then:
Msg="<div><br><b>Click on any username to see their downloadable files:</b><br><br></div>";gosub sendln
If:
SType eq "first"
Then:
Msg="<div>Users with first names containing '<b>"{Search{"</b>':<br><br></div>";gosub sendln
If:
SType eq "last"
Then:
Msg="<div>Users with last names containing '<b>"{Search{"</b>':<br><br></div>";gosub sendln
If:
SType eq "user"
Then:
Msg="<div>Users with usernames containing '<b>"{Search{"</b>':<br><br></div>";gosub sendln
If:
SType eq "file"
Then:
Msg="<div>Users that own files whose filenames contain '<b>"{Search{"</b>':<br><br></div>";gosub sendln
If:
Then:
Pre="<div><div class=\"ulabel\"><a href=\""{SelfURL{"?onegate_set=flfss_list_files&session="{SessID{"&targetuser="
If:
Then:
Msg="<div><a href=\""{SelfURL{"?onegate_set=flfss_menu&session="{SessID{"\">Return to Menu</a><br></div>";gosub sendln
If:
Then:
Msg="</div><div class=\"footer\"><hr><span class=\"genby\">Fairlight File Sharing System</span></div></div>"