[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    dot.kde.org/static/cgi
From:       Navindra Umanee <navindra () cs ! mcgill ! ca>
Date:       2005-06-23 1:17:22
Message-ID: 1119489442.133426.32497.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 428086 by navindra:

google public service search


 M  +2 -6      google.cgi  


--- trunk/dot.kde.org/static/cgi/google.cgi #428085:428086
@@ -6,14 +6,12 @@
 require 'cgi'
 cgi = CGI.new
 
-google        = 'http://www.google.com/custom'
-site          = 'sitesearch=dot.kde.org'
+google        = 'http://www.google.com/u/dot'
 num           = 'num=100'
 must_have     = 'as_oq='
 must_not_have = 'as_eq='
 exact_phrase  = 'as_epq='
 text          = 'as_q='
-custom        = 'cof=GALT%3A%23007400%3BS%3Ahttp%3A%2F%2Fdot.kde.org%2F%3BVLC%3A%2380 \
1A8A%3BAH%3Acenter%3BBGC%3A%23ffffff%3BLH%3A108%3BLC%3A%23191970%3BGFNT%3A%23333333%3B \
L%3Ahttp%3A%2F%2Fwww.kde.org%2Fdot%2FImages%2Fkdedotnews.gif%3BLW%3A287%3BT%3A%23ffffff%3BAWFID%3A0131a0dfcf1ae323%3B'
  
 if cgi['op'] == 'articles'
    must_have += 'dept.'
@@ -33,9 +31,7 @@
    exact_phrase += "%22Also+by+#{cgi['author']}%22"
 end
 
-google = "#{google}?#{text}&#{exact_phrase}&#{must_have}&#{must_not_have}&#{num}&#{site}&#{custom}"
 +google += "?#{text}&#{exact_phrase}&#{must_have}&#{must_not_have}&#{num}"
 
 puts "Location: #{google}"
-puts "Content-type: text/html"
 puts ""
-puts "<html>Sending you to Google.  Thank you!  Come again!</html>"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic