From: eldy <> Date: Mon, 29 Sep 2003 17:24:12 +0000 (+0000) Subject: Prepare code for decodeUTFkeys plugin. X-Git-Tag: AWSTATS_6_0_BETA~209 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd99cca162504e776ccad7d4cf69ed7e97c3523b;p=thirdparty%2FAWStats.git Prepare code for decodeUTFkeys plugin. --- diff --git a/wwwroot/cgi-bin/lib/search_engines.pm b/wwwroot/cgi-bin/lib/search_engines.pm index ad76474f..0ad9004c 100644 --- a/wwwroot/cgi-bin/lib/search_engines.pm +++ b/wwwroot/cgi-bin/lib/search_engines.pm @@ -194,12 +194,20 @@ "msn\.","origq=" ); -# If no rules are known, this will be used to search keyword parameter -@WordsToExtractSearchUrl= ("ask=","claus=","general=","key=","kw=","keyword=","keywords=","MT=","p=","q=","qr=","qt=","query=","s=","search=","searchText=","string=","su=","txtsearch=","w="); - +# If no rules are known, WordsToExtractSearchUrl will be used to search keyword parameter # If no rules are known and search in WordsToExtractSearchUrl failed, this will be used to clean URL of not keyword parameters. +#------------------------------------------------- +@WordsToExtractSearchUrl= ("ask=","claus=","general=","key=","kw=","keyword=","keywords=","MT=","p=","q=","qr=","qt=","query=","s=","search=","searchText=","string=","su=","txtsearch=","w="); @WordsToCleanSearchUrl= ("act=","annuaire=","btng=","cat=","categoria=","cfg=","cof=","cou=","count=","cp=","dd=","domain=","dt=","dw=","enc=","exec=","geo=","hc=","height=","hits=","hl=","hq=","hs=","id=","kl=","lang=","loc=","lr=","matchmode=","medor=","message=","meta=","mode=","order=","page=","par=","pays=","pg=","pos=","prg=","qc=","refer=","sa=","safe=","sc=","sort=","src=","start=","style=","stype=","sum=","tag=","temp=","theme=","type=","url=","user=","width=","what=","\\.x=","\\.y=","y=","look="); +# SearchEnginesKnownUTFCoding +# Known param that proves a search engines has coded its param in UTF8 +#------------------------------------------------- +%SearchEnginesKnownUTFCoding=( +# Most common search engines +"google\.","ie=utf-8", +"alltheweb\.com","cs=utf-8" +); # SearchEnginesHashIDLib