If:
Then:
declare global UName,Pass,FName,LName,Email,URL,SessID,Expire,SIDString,PEncode,SessUName,FileRoot
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"