Posted by rowan Thu 16th Jun 2005 15:34 - Syntax is PHP - 1274 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
PHP parser reported the following syntax error in this post:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in post on line 65
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in post on line 65
Description:
sorr7y forgot to hightlight, would this be the correct way to add new bots or
RSS readers to the phpowebtrace. thx for any help.
sorr7y forgot to hightlight, would this be the correct way to add new bots or
RSS readers to the phpowebtrace. thx for any help.
-
-
// set mime types for filetrace
-
// add mime types here for any document type you wish to track
-
// document types
-
'doc' => 'application/msword',
-
'jpg' => 'image/jpeg',
-
'pdf' => 'application/pdf',
-
'txt' => 'text/plain',
-
'xls' => 'application/vnd.ms-excel',
-
// compressed file types
-
'exe' => 'application/octet-stream',
-
'tar' => 'application/x-tar',
-
'zip' => 'application/zip',
-
'gz' => 'application/x-gzip',
-
'torrent' => 'application/x-bittorrent',
-
// multimedi files
-
'avi' => 'video/x-msvideo',
-
'mp3' => 'audio/mpeg',
-
'mpe' => 'video/mpeg',
-
'mpg' => 'video/mpeg',
-
'mpeg' => 'video/mpeg'
-
);
-
-
// search engine referer urls
-
'www.alexa.com' => 'Alexa',
-
'www.alltheinternet.com' => 'All the Internet',
-
'alltheweb.com' => 'AlltheWeb.com',
-
'www.altavista.com' => 'AltaVista',
-
'aolsearch.aol.com' => 'AOL Web Search',
-
'search.aol.com' => 'AOL Web Search',
-
'web.ask.com' => 'Ask Jeeves',
-
'search.dmoz.org' => 'DMOZ',
-
'www.dogpile.com' => 'Dogpile',
-
'search.earthlink.net' => 'EarthLink',
-
'www.entireweb.com' => 'Entireweb',
-
'euroseek.com' => 'Euroseek.com',
-
'msxml.excite.com' => 'Excite',
-
'www.gigablast.com' => 'Gigablast',
-
'www.google.com' => 'Google',
-
'www.google.co.uk' => 'Google', // UK
-
'www.hotbot.com' => 'HotBot',
-
'search.info.com' => 'Info.uk',
-
'search.iwon.com' => 'iWon',
-
'search.looksmart.com' => 'LookSmart',
-
'search.lycos.co.uk' => 'Lycos',
-
'www.metacrawler.com' => 'MetaCrawler',
-
'search.msn.com' => 'MSN Search',
-
'search.msn.co.uk' => 'MSN Search', // UK
-
'sea.search.msn.co.uk' => 'MSN Search', // UK
-
'search.netscape.com' => 'Netscape Search',
-
'www.overture.com' => 'Overture',
-
'www.search.com' => 'Search.com',
-
's.teoma.com' => 'Teoma',
-
'search.thunderstone.com' => 'Thunderstone',
-
'search.viewpoint.com' => 'Viewpoint',
-
'msxml.webcrawler.com' => 'WebCrawler',
-
'www.wisenut.com' => 'WiseNut',
-
'yell.com' => 'Yell.com',
-
'search.yahoo.com' => 'Yahoo!',
-
'uk.search.yahoo.com' => 'Yahoo!', // UK
-
'br.busca.yahoo.com' => 'Yahoo!', // Brazil
-
'www.zeal.com' => 'Zeal.com'
-
'www.pubsub.com' => 'PubSub-RSS-Reader/1.1'
-
'www.syndic8.com' => 'Syndic8/1.0',
-
);
-
-
// search engine "start of query" markers
-
'Alexa' => 'q=',
-
'All the Internet' => 'q=',
-
'AlltheWeb.com' => 'q=',
-
'AltaVista' => 'q=',
-
'AOL Web Search' => 'query=',
-
'Ask Jeeves' => 'q=',
-
'DMOZ' => 'search=',
-
'Dogpile' => 'web/',
-
'EarthLink' => 'q=',
-
'Entireweb' => 'q=',
-
'Euroseek.com' => 'string=',
-
'Excite' => 'web/',
-
'Gigablast' => 'q=',
-
'Google' => 'q=',
-
'HotBot' => 'query=',
-
'iWon' => 'searchfor=',
-
'LookSmart' => 'qt=',
-
'MetaCrawler' => 'web/',
-
'Mirago' => 'qry=',
-
'MSN Search' => 'q=',
-
'Netscape Search' => 'query=',
-
'Overture' => 'Keywords=',
-
'Search.com' => 'q=',
-
'Teoma' => 'q=',
-
'Thunderstone' => 'q=',
-
'Viewpoint' => 'k=',
-
'WebCrawler' => 'web/',
-
'WiseNut' => 'q=',
-
'Yahoo!' => 'p=',
-
'Zeal.com' => 'keyword=',
-
'Lycos' => 'query=',
-
'Info.uk' => 'query=',
-
);
-
-
// search bots and crawler client string markers
-
'AltaVista' => 'AltaVista',
-
'Ask Jeeves' => 'Ask Jeeves',
-
'Entireweb' => 'Speedy_Spider',
-
'Excite' => 'ArchitextSpider',
-
'FAST-WebCrawler' => 'AlltheWeb.com',
-
'Gigablast' => 'Gigabot',
-
'Google' => 'Googlebot',
-
'LookSmart' => 'Martini',
-
'LookSmart' => 'Zyborg', // Looksmart link check bot
-
'Mirago' => 'HenryTheMiragoRobot',
-
'MSN Search' => 'msnbot',
-
'Teoma' => 'teomaagent',
-
'Thunderstone' => 'T-H-U-N-D-E-R-S-T-O-N-E',
-
//'WiseNut' => 'http://www.WISEnutbot.com',
-
'Yahoo!' => 'Yahoo!',
-
'Yell.com' => 'Yell Weblinks Checker',
-
'Zeal.com' => 'zealbot'
-
'pubsub.com' => 'PubSub-RSS-Reader/1.1' //RSS Readers//
-
'www.syndic8.com' => 'Syndic8/1.0', //RSS Readers//,
-
);
-
-
// determine web browser *** DO NOT CHANGE ORDER OF Opera and MSIE ***
-
function findbrowser($client) {
-
-
else { $browser = 'Unknown'; }
-
-
return $browser;
-
}
-
-
// determine the operating system
-
function findos($client) {
-
}
-
else { $os = 'Unknown'; }
-
-
return $os;
-
}
-
?>
PermaLink to this entry https://pastebin.co.uk/23