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

  1. local function f(url)
  2.     local url_pattern = "http://download%.pchome%.net/php/tdownload2%.php"
  3.     local cookie = "ddddPcdsxPchome=1; PChomeTrackId=6873605; PChomeTrackFirstTime=1178607019609; PChomeTrackReturnTime=1178607019609" 
  4.  
  5.     if nil == string.find(url, url_pattern) then 
  6.         return nil, nil
  7.     else
  8.         return nil, cookie
  9.     end
  10. end
  11.  
  12. referer_table["refer_pchome.lua"] = f
  13.