Plugin Directory

Changeset 835009


Ignore:
Timestamp:
01/08/2014 04:35:45 PM (12 years ago)
Author:
adatosystems
Message:

1.8 again

Location:
adatosystems-friday-zmanim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • adatosystems-friday-zmanim/tags/1.8/zmanfriday.php

    r835005 r835009  
    184184        // information here: http://www.hebcal.com/home/195/jewish-calendar-rest-api
    185185        if($instance['inisrael']) { $inisrael = "i=on"; } else { $inisrael = "i=off"; }
    186         $hebcalurl = "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'];
     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'];
    187187        $ch = curl_init();
    188188        curl_setopt($ch, CURLOPT_URL, $hebcalurl);
     
    198198        curl_close($ch);
    199199
    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']);
    201200        $hebcaljd = json_decode($hebcal,true);
    202201        if($instance['debug'] ) {
  • adatosystems-friday-zmanim/trunk/zmanfriday.php

    r835005 r835009  
    132132        }
    133133
    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."&timestamp=".$friday."&sensor=false";
     134        /* Get time offset for timzezone and DST */
    136135        $tzurl = "http://api.geonames.org/timezoneJSON?lat=".$lat."&lng=".$long."&date=".$friday_ymd."&username=adatosystems";
    137136        $ch = curl_init();
     
    185184        // information here: http://www.hebcal.com/home/195/jewish-calendar-rest-api
    186185        if($instance['inisrael']) { $inisrael = "i=on"; } else { $inisrael = "i=off"; }
    187         $hebcalurl = "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'];
     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'];
    188187        $ch = curl_init();
    189188        curl_setopt($ch, CURLOPT_URL, $hebcalurl);
     
    199198        curl_close($ch);
    200199
    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']);
    202200        $hebcaljd = json_decode($hebcal,true);
    203201        if($instance['debug'] ) {
Note: See TracChangeset for help on using the changeset viewer.