This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$addr = 'Columbus,OH,43235'; | |
$maps_api_key = 'insert key here'; | |
/** | |
* Gets the timezone id (eg. America/New_York, America/Detroit) | |
* @param string $address | |
* @return string|bool | |
*/ | |
function get_timezone_from_address($address){ | |
$geocode = file_get_contents('http://maps.google.com/maps/api/geocode/json?address='.trim(preg_replace(' ', '+', $address)).'&sensor=false'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# off spiders | |
RewriteCond %{HTTP_USER_AGENT} (Baiduspider|YandexBot|Aboundex|legs|360Spider|Java|Cogentbot|Alexibot|asterias|attach|BackDoorBot|BackWeb|Bandit|BatchFTP|Bigfoot|Black.Hole|BlackWidow|BlowFish|BotALot|Buddy|BuiltBotTough|Bullseye|BunnySlippers|Cegbfeieh|CheeseBot|CherryPicker|ChinaClaw|Collector|Copier|CopyRightCheck|cosmos|Crescent|Custo|AIBOT|DISCo|DIIbot|DittoSpyder|Demon|Devil|Wonder|dragonfly|Drip|eCatch|EasyDL|ebingbong|EirGrabber|EmailCollector|EmailSiphon|EmailWolf|EroCrawler|Exabot|WebPictures|Extractor|EyeNetIE|Foobot|flunky|FrontPage|Go-Ahead-Got-It|gotit|GrabNet|Grafula|Harvest|hloader|HMView|HTTrack|humanlinks|IlseBot|Stripper|Sucker|Library|InfoNaviRobot|InfoTekies|Intelliseek|InterGET|Ninja|Iria|Jakarta|JennyBot|JetCar|JOC|JustView|Jyxobot|Kenjin.Spider|Keyword.Density|larbin|LexiBot|lftp|likse|LinkextractorPro|LNSpiderguy|LinkWalker|lwp-trivial|Simple|Magnet|Mag-Net|MarkWatch|Downloader|Mata.Hari|Memo|Microsoft.URL|Control|MIIxpc|Mirror|Locator|PiX|moget|NAMEPROTECT|Navroad|NearS |