diff --git a/imgs/salah.jpg b/imgs/salah.jpg new file mode 100644 index 0000000..5d0e0a7 Binary files /dev/null and b/imgs/salah.jpg differ diff --git a/prayertimes.inc b/prayertimes.inc index dda404c..b3717aa 100644 --- a/prayertimes.inc +++ b/prayertimes.inc @@ -20,24 +20,7 @@ class PrayerTimes { } public static function getLocations($q){ - $url = "http://local.yahooapis.com/MapsService/V1/geocode" . - "?appid=" . YAHOO_APPID . "&location="; - $q = urlencode($_GET['q']); - $format = isset($_GET['rss'])? 1 : 0; - - $url = $url . $q . "&output=php"; - if (strlen($q) == 0) return; - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - $res = curl_exec($ch); - $info = curl_getinfo($ch); - $ret = $info['http_code']; - curl_close($ch); - - if ($ret == 403) - return PrayerTimes::getLocationsFromGoogle($q); - else return unserialize($res); + return PrayerTimes::getLocationsFromGoogle($q); } public static function getLocationsFromGoogle($q){ @@ -123,7 +106,7 @@ class PrayerTimes { $ret = PrayerTimes::getTimezoneInfoFromCache($geohash); if ($ret != null) return $ret; - $url = "http://ws.geonames.org/timezoneJSON?lat=$lat&lng=$long"; + $url = "http://ws.geonames.net/timezoneJSON?lat=$lat&lng=$long"; $url .= "&username=" . USERNAME; $ch = curl_init(); diff --git a/views/header.inc b/views/header.inc index fb554de..40fb903 100644 --- a/views/header.inc +++ b/views/header.inc @@ -8,7 +8,7 @@ -Waqt.org - Muslim Prayer Times +Salah.com - Muslim Prayer Times @@ -17,4 +17,4 @@
 
-
+
diff --git a/views/salatrss.inc b/views/salatrss.inc index bc6cbfc..bd6b26c 100644 --- a/views/salatrss.inc +++ b/views/salatrss.inc @@ -8,8 +8,8 @@ PrayerTimes for $location - http://waqt.org - provided by waqt.org + http://salah.com + provided by salah.com RSSHEADER; @@ -21,7 +21,7 @@ RSSHEADER; $val $time - http://waqt.org?$param&time=$i + http://salah.com?$param&time=$i RSSDATA;