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

  1. local function f(url)
  2.     local url_pattern1 = "%s*http://%a+%.newhua%.com/down/"
  3.     local url_pattern2 = "%s*http://%a+%.onlinedown%.net/down/"
  4.     local cookie = "Flag=UUIISPoweredByUUSoft" 
  5.  
  6.     if nil == string.find(url, url_pattern1) then 
  7.         if nil == string.find(url, url_pattern2) then
  8.             return nil, nil
  9.         else
  10.             return nil, cookie
  11.         end
  12.     else
  13.         return nil, cookie
  14.     end
  15. end
  16.  
  17. referer_table["refer_newhua.lua"] = f
  18.