home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 May / PCWorld_2008-05_cd.bin / komunikace / bitcomet / bitcomet_setup.exe / scripts / refer_crsky.lua < prev    next >
Text File  |  2007-05-08  |  347b  |  13 lines

  1. local function f(url)
  2.     local url_pattern = "%s*http://count%.crsky%.com/view_down%.asp%?down_url"
  3.     local rand = math.random(1, 5000);
  4.     local cookie = nil
  5.     if nil == string.find(url, url_pattern) then 
  6.         return nil, cookie
  7.     else
  8.         return "http://crsky.com/soft/".. rand .. ".html", cookie
  9.     end
  10. end
  11.  
  12. referer_table["refer_crsky.lua"] = f
  13.