1<?php 2/** 3 * Defines regular expressions for the most common search engines 4 */ 5 6$SEARCHENGINEINFO = array( 7 'dokuwiki' => array('DokuWiki Internal Search', wl()), 8 9 'google' => array('Google', 'http://www.google.com'), 10 'yahoo' => array('Yahoo!', 'http://www.yahoo.com'), 11 'yandex' => array('Яндекс (Yandex)', 'http://www.yandex.ru'), 12 'naver' => array('네이버 (Naver)', 'http://www.naver.com'), 13 'baidu' => array('百度 (Baidu)', 'http://www.baidu.com'), 14 'ask' => array('Ask', 'http://www.ask.com'), 15 'babylon' => array('Babylon', 'http://search.babylon.com'), 16 'aol' => array('AOL Search', 'http://search.aol.com'), 17 'duckduckgo' => array('DuckDuckGo', 'http://duckduckgo.com'), 18 'bing' => array('Bing', 'http://www.bing.com'), 19); 20 21$SEARCHENGINES = array( 22 23 '^(\w+\.)*google(\.co)?\.([a-z]{2,5})$' => array('google', 'q'), 24 '^(\w+\.)*bing(\.co)?\.([a-z]{2,5})$' => array('bing', 'q'), 25 '^(\w+\.)*yandex(\.co)?\.([a-z]{2,5})$' => array('yandex', 'query'), 26 '^(\w+\.)*yahoo\.com$' => array('yahoo', 'p'), 27 '^search\.naver\.com$' => array('naver', 'query'), 28 '^(\w+\.)*baidu\.com$' => array('baidu', 'wd', 'word', 'kw'), 29 30 '^search\.avg\.com$' => array('google', 'q'), 31 '^(\w+\.)*ask\.com$' => array('ask', 'ask', 'q', 'searchfor'), 32 '^(\w+\.)*search-results\.com$' => array('ask', 'ask', 'q', 'searchfor'), 33 '^search\.babylon\.com$' => array('babylon', 'q'), 34 35 '^(\w+\.)*(aol)?((search|recherches?|images|suche|alicesuche)\.)aol(\.co)?\.([a-z]{2,5})$' 36 => array('aol', 'query', 'q'), 37 '^duckduckgo\.com$' => array('duckduckgo', 'q'), 38 39); 40