maheshunni
New User
Joined: 10 Dec 2007 Posts: 2 Location: Bangalore
|
|
|
|
Please identify the programming language in the below code:
| Code: |
GetCDSid:
If debug Then Say '..GetCDSid'
CDSid = ''
'CGI GETVAR HTTP_COOKIE (VAR COOKIE'
parse var cookie . 'WSL-credential=' wsl ';' .
If wsl ^='' Then
Do
'PIPE (end \)',
'var wsl',
'| spec /COOKYCHK -tsei/ 1 w 1 nw',
'| COMMAND | ',
' Console | ',
'A: TAKE 1 | Var valid \',
'A: | B: CASEI LOCATE 1.7 /CURRENT/ | Specs word3-* next | var cstamp \',
'B: | C: CASEI LOCATE 13.7 /ISSUED:/ | Specs word3-* next | var istamp \',
'C: | D: CASEI LOCATE 13.8 /EXPIRES:/ | Specs word3-* next | var estamp \',
'D: | E: CASEI LOCATE 14.5 / 001:/ | Specs word4 next | var CDSid \',
'E: | stem leftovers.'
Parse var cdsid . '=' cdsid
Upper CDSid
CDSid = Strip(CDSid)
If cdsid = '' Then
wsl = ''
Else
Do
next_day = (SubWord(istamp,1,3) ^= SubWord(cstamp,1,3))
ctime = Word(cstamp,4)
itime = Word(istamp,4)
Parse Var ctime ch ':' cm ':' cs
Parse Var itime ih ':' im ':' is
recheck = (ch + next_day * 24 - ih > 2) | ,
((ch + next_day * 24 - ih = 1) & (im < cm))
If recheck Then wsl = ''
End
End
If wsl = '' Then
hdr = 'Location: 'wslurl'?back='myurl
Return |
|
|
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Where did you find this code?
Is it currently being run? If so, describe the environment where this runs.
Are there other modules with similar code in some library?
NOTE: The duplicate topic has been "locked". Let me know if the locked topic is still needed for anything. |
|