Elliott C. Back: Technology FTW!

CU Store Programming WTF, in VBScript

Posted in Code, Computers & Technology, Cornell University, Humour by Elliott Back on August 23rd, 2005.

Saw this while trying to buy books from Cornell:

<% @LANGUAGE = "VBSCRIPT" %>
<%On Error Resume Next
ip = Request.ServerVariables("REMOTE_ADDR")
ipp = Left(ip,InStr(ip,".")+7)
‘if ipp = "128.253.193" then
‘ crseurl = "http://cbslinux1.cbs.cornell.edu/cgi-bin/rgw/RBTRN/FrameBookList"
‘else crseurl = "http://twok1.cbs.cornell.edu/rboS/tx/booklist"
crseurl = "http://twok1.cbs.cornell.edu/rboS/tx/booklist"%>

What’s funny is the classic “On Error Resume Next”, the hacky ip-address extraction that will break on ipv6, and the attempt to match on and off campus users which will probably not be 100% accurate because I believe some Cornell IPs don’t begin with 128.253.193 (commented out), and finally, the if/else which has also been commented out. It’s also in VBscript, which probably won’t work on anything non-ie…

This entry was posted on Tuesday, August 23rd, 2005 at 11:16 pm and is tagged with rbos, ip request, address extraction, campus users, request servervariables, booklist, remote addr, ipv6, cornell, wtf, ips, lt, cbs. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback.

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus