Changeset 835009
- Timestamp:
- 01/08/2014 04:35:45 PM (12 years ago)
- Location:
- adatosystems-friday-zmanim
- Files:
-
- 2 edited
-
tags/1.8/zmanfriday.php (modified) (2 diffs)
-
trunk/zmanfriday.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
adatosystems-friday-zmanim/tags/1.8/zmanfriday.php
r835005 r835009 184 184 // information here: http://www.hebcal.com/home/195/jewish-calendar-rest-api 185 185 if($instance['inisrael']) { $inisrael = "i=on"; } else { $inisrael = "i=off"; } 186 $hebcalurl = "http s://www.hebcal.com/hebcal/?v=1&cfg=json&nh=off&nx=off&year=now&month=x&ss=off&mf=off&c=off&s=on&".$inisrael."&lg=".$instance['ptext'];186 $hebcalurl = "http://www.hebcal.com/hebcal/?v=1&cfg=json&nh=off&nx=off&year=now&month=x&ss=off&mf=off&c=off&s=on&".$inisrael."&lg=".$instance['ptext']; 187 187 $ch = curl_init(); 188 188 curl_setopt($ch, CURLOPT_URL, $hebcalurl); … … 198 198 curl_close($ch); 199 199 200 //$hebcal = file_get_contents("https://www.hebcal.com/hebcal/?v=1&cfg=json&nh=off&nx=off&year=now&month=x&ss=off&mf=off&c=off&s=on&".$inisrael."&lg=".$instance['ptext']);201 200 $hebcaljd = json_decode($hebcal,true); 202 201 if($instance['debug'] ) { -
adatosystems-friday-zmanim/trunk/zmanfriday.php
r835005 r835009 132 132 } 133 133 134 /* Get time offset for timzezone and DST using maps.googleapis.com */ 135 //$tzurl = "https://maps.googleapis.com/maps/api/timezone/json?location=".$lat.",".$long."×tamp=".$friday."&sensor=false"; 134 /* Get time offset for timzezone and DST */ 136 135 $tzurl = "http://api.geonames.org/timezoneJSON?lat=".$lat."&lng=".$long."&date=".$friday_ymd."&username=adatosystems"; 137 136 $ch = curl_init(); … … 185 184 // information here: http://www.hebcal.com/home/195/jewish-calendar-rest-api 186 185 if($instance['inisrael']) { $inisrael = "i=on"; } else { $inisrael = "i=off"; } 187 $hebcalurl = "http s://www.hebcal.com/hebcal/?v=1&cfg=json&nh=off&nx=off&year=now&month=x&ss=off&mf=off&c=off&s=on&".$inisrael."&lg=".$instance['ptext'];186 $hebcalurl = "http://www.hebcal.com/hebcal/?v=1&cfg=json&nh=off&nx=off&year=now&month=x&ss=off&mf=off&c=off&s=on&".$inisrael."&lg=".$instance['ptext']; 188 187 $ch = curl_init(); 189 188 curl_setopt($ch, CURLOPT_URL, $hebcalurl); … … 199 198 curl_close($ch); 200 199 201 //$hebcal = file_get_contents("https://www.hebcal.com/hebcal/?v=1&cfg=json&nh=off&nx=off&year=now&month=x&ss=off&mf=off&c=off&s=on&".$inisrael."&lg=".$instance['ptext']);202 200 $hebcaljd = json_decode($hebcal,true); 203 201 if($instance['debug'] ) {
Note: See TracChangeset
for help on using the changeset viewer.