"; } else { $cookiesX = ""; } $url = "http://instytutmeteo.pl/userwidget/sitewidgets?id=10&city_id=3099570"; $ch=curl_init(); //inicjalizacja curl_setopt($ch, CURLOPT_URL,$url); // ustaw URLa na odpowiedni adres curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // zwróć w postaci zmiennej curl_setopt($ch, CURLOPT_TIMEOUT, 3); // czas oczekiwania $result = curl_exec($ch); // wykonaj "zapytanie" cURLa curl_close($ch); // zamknięcie sesji curla //dni tygodnia $text = $result; $od = strpos($text, "dayfont d1"); $odtresc = substr($text, $od + 12); $do = strpos($odtresc, ""); $dzien1 = strtoupper(substr($odtresc, 0 , $do -1 )); $text = $result; $od = strpos($text, "dayfont d2"); $odtresc = substr($text, $od + 12); $do = strpos($odtresc, ""); $dzien2 = strtoupper(substr($odtresc, 0 , $do -1 )); $text = $result; $od = strpos($text, "dayfont d3"); $odtresc = substr($text, $od + 12); $do = strpos($odtresc, ""); $dzien3 = strtoupper(substr($odtresc, 0 , $do -1 )); $text = $result; $od = strpos($text, "dayfont d4"); $odtresc = substr($text, $od + 12); $do = strpos($odtresc, ""); $dzien4 = strtoupper(substr($odtresc, 0 , $do -1 )); $text = $result; $od = strpos($text, "dayfont d5"); $odtresc = substr($text, $od + 12); $do = strpos($odtresc, ""); $dzien5 = strtoupper(substr($odtresc, 0 , $do -1 )); $text = $result; $od = strpos($text, "dayfont d6"); $odtresc = substr($text, $od + 12); $do = strpos($odtresc, ""); $dzien6 = strtoupper(substr($odtresc, 0 , $do -1 )); //obrazki i temperatury $text = $result; $od = strpos($text, "winfo w1"); $odtresc = substr($text, $od + 56); $do = strpos($odtresc, ") no-repeat 5px -3px'"); $dzien1OBRAZEK = substr($odtresc, 0 , $do ); $text = $odtresc; $od = strpos($text, ") no-repeat 5px -3px' >"); $odtresc = substr($text, $od + 24); $do = strpos($odtresc, ""); $dzien1TEMPE = substr($odtresc, 0 , $do ); $text = $result; $od = strpos($text, "winfo w2"); $odtresc = substr($text, $od + 56); $do = strpos($odtresc, ") no-repeat 5px -3px'"); $dzien2OBRAZEK = substr($odtresc, 0 , $do ); $text = $odtresc; $od = strpos($text, ") no-repeat 5px -3px' >"); $odtresc = substr($text, $od + 24); $do = strpos($odtresc, ""); $dzien2TEMPE = substr($odtresc, 0 , $do ); $text = $result; $od = strpos($text, "winfo w3"); $odtresc = substr($text, $od + 56); $do = strpos($odtresc, ") no-repeat 5px -3px'"); $dzien3OBRAZEK = substr($odtresc, 0 , $do ); $text = $odtresc; $od = strpos($text, ") no-repeat 5px -3px' >"); $odtresc = substr($text, $od + 24); $do = strpos($odtresc, ""); $dzien3TEMPE = substr($odtresc, 0 , $do ); $text = $result; $od = strpos($text, "winfo w4"); $odtresc = substr($text, $od + 56); $do = strpos($odtresc, ") no-repeat 5px -3px'"); $dzien4OBRAZEK = substr($odtresc, 0 , $do ); $text = $odtresc; $od = strpos($text, ") no-repeat 5px -3px' >"); $odtresc = substr($text, $od + 24); $do = strpos($odtresc, ""); $dzien4TEMPE = substr($odtresc, 0 , $do ); $text = $result; $od = strpos($text, "winfo w5"); $odtresc = substr($text, $od + 56); $do = strpos($odtresc, ") no-repeat 5px -3px'"); $dzien5OBRAZEK = substr($odtresc, 0 , $do ); $text = $odtresc; $od = strpos($text, ") no-repeat 5px -3px' >"); $odtresc = substr($text, $od + 24); $do = strpos($odtresc, ""); $dzien5TEMPE = substr($odtresc, 0 , $do ); $text = $result; $od = strpos($text, "winfo w6"); $odtresc = substr($text, $od + 56); $do = strpos($odtresc, ") no-repeat 5px -3px'"); $dzien6OBRAZEK = substr($odtresc, 0 , $do ); $text = $odtresc; $od = strpos($text, ") no-repeat 5px -3px' >"); $odtresc = substr($text, $od + 24); $do = strpos($odtresc, ""); $dzien6TEMPE = substr($odtresc, 0 , $do ); /* ".$dzien1."

".$dzien1TEMPE."
".$dzien2."

".$dzien2TEMPE."
".$dzien3."

".$dzien3TEMPE."
".$dzien4."

".$dzien4TEMPE."
".$dzien5."

".$dzien5TEMPE."
".$dzien6."

".$dzien6TEMPE."
*/ if ( $user_stajnia == true && $row[3] == 1 && $row[6] > 0) { $linkpanel = "
".$linkedit; } $pytX = mysqli_query($sql,"SELECT * FROM STAJ_BG ORDER BY ID DESC "); $bg = mysqli_fetch_row($pytX); echo " Stajnia Gajewniki
".$cookiesX."
".$trescLEFT."
".$linkpanel."
".$dzien1."

".$dzien1TEMPE."
".$dzien2."

".$dzien2TEMPE."
".$dzien3."

".$dzien3TEMPE."
".$dzien4."

".$dzien4TEMPE."
".$dzien5."

".$dzien5TEMPE."
".$dzien6."

".$dzien6TEMPE."

"; $zapyt_pliki = mysqli_query($sql,"SELECT * FROM STAJ_PODSTR WHERE DZIAL = '1' AND VISI = '1' ORDER BY SEG ASC"); while ($row_pod = mysqli_fetch_row($zapyt_pliki)) { if ($row_pod[7] == 1 ) { $link = "podfull"; } else { $link = "oferta"; } echo ""; } echo"
".$row_pod[1]."

"; $zapyt_pliki = mysqli_query($sql,"SELECT * FROM STAJ_PODSTR WHERE DZIAL = '2' AND VISI = '1' ORDER BY SEG ASC"); while ($row_pod = mysqli_fetch_row($zapyt_pliki)) { if ($row_pod[7] == 1 ) { $link = "podfull"; } else { $link = "festiwal"; } echo ""; } echo"
".$row_pod[1]."

"; $zapyt_pliki = mysqli_query($sql,"SELECT * FROM STAJ_PODSTR WHERE DZIAL = '3' AND VISI = '1' ORDER BY SEG ASC"); while ($row_pod = mysqli_fetch_row($zapyt_pliki)) { if ($row_pod[7] == 1 ) { $link = "podfull"; } else { $link = "kamery"; } echo ""; } echo"
".$row_pod[1]."

"; $zapyt_pliki = mysqli_query($sql,"SELECT * FROM STAJ_PODSTR WHERE DZIAL = '4' AND VISI = '1' ORDER BY SEG ASC"); while ($row_pod = mysqli_fetch_row($zapyt_pliki)) { if ($row_pod[7] == 1 ) { $link = "podfull"; } else { $link = "sklepik"; } echo ""; } echo"
".$row_pod[1]."

"; $zapyt_pliki = mysqli_query($sql,"SELECT * FROM STAJ_PODSTR WHERE DZIAL = '5' AND VISI = '1' ORDER BY SEG ASC"); while ($row_pod = mysqli_fetch_row($zapyt_pliki)) { if ($row_pod[7] == 1 ) { $link = "podfull"; } else { $link = "sport"; } echo ""; } echo"
".$row_pod[1]."

"; $zapyt_pliki = mysqli_query($sql,"SELECT * FROM STAJ_PODSTR WHERE DZIAL = '6' AND VISI = '1' ORDER BY SEG ASC"); while ($row_pod = mysqli_fetch_row($zapyt_pliki)) { if ($row_pod[7] == 1 ) { $link = "podfull"; } else { $link = "konie"; } echo ""; } echo"
".$row_pod[1]."

"; $zapyt_pliki = mysqli_query($sql,"SELECT * FROM STAJ_PODSTR WHERE DZIAL = '7' AND VISI = '1' ORDER BY SEG ASC"); while ($row_pod = mysqli_fetch_row($zapyt_pliki)) { if ($row_pod[7] == 1 ) { $link = "podfull"; } else { $link = "galeria"; } echo ""; } echo"
".$row_pod[1]."

"; $zapyt_pliki = mysqli_query($sql,"SELECT * FROM STAJ_PODSTR WHERE DZIAL = '8' AND VISI = '1' ORDER BY SEG ASC"); while ($row_pod = mysqli_fetch_row($zapyt_pliki)) { if ($row_pod[7] == 1 ) { $link = "podfull"; } else { $link = "kontakt"; } echo ""; } echo"
".$row_pod[1]."
".$trescRIGHT."
"; if ( $bannery == 1 ) { $ilebanerow = 0; $pytBannerBig = mysqli_query($sql,"SELECT * FROM STAJ_BIGBANNER WHERE VISI = '1' ORDER BY ID ASC "); while ( $banner = mysqli_fetch_row($pytBannerBig)) { $ilebanerow++; if ( $banner[2] == true ) { $start_anchor = ""; $end_anchor = ""; } else { $start_anchor = " "; $end_anchor = " "; } echo $start_anchor."
".$end_anchor; $kulka_banera = "".$kulka_banera; } // czas przelaczania baner slider time echo"
".$kulka_banera."
"; } echo"
"; ?> "; include "znaki.php"; echo $napisik; ?>