'.$scrpt_vrsn_dt.PHP_EOL; # # -------------------------------- load settings $scrpt = 'PWS_settings.php'; $stck_lst .= basename(__FILE__).' ('.__LINE__.') include_once =>'.$scrpt.PHP_EOL; include_once $scrpt; # # ----------------------- general functions aso $scrpt = 'PWS_shared.php'; $stck_lst .= basename(__FILE__).' ('.__LINE__.') include_once =>'.$scrpt.PHP_EOL; include_once $scrpt; #----------------------------------------------- # script settings #----------------------------------------------- $show_close_x = $close_popup; // set to false or true to overrde settings $ltxt_clsppp = lang('Close'); # images $pop_img = array(); $n = 'earth'; $pop_img[$n]['url'] = 'https://www.fourmilab.ch/cgi-bin/Earth?img=learth.evif&imgsize=320&dynimg=y&opt=-p&lat=&lon=&alt=&tle=&date=0&utc=&jd='.'&_'.time(); $pop_img[$n]['txt'] = 'Color map 24 hours'; $pop_img[$n]['head'] = ' | This image courtesy of Fourmilab Switzerland'; $n = 'baro_ao'; $pop_img[$n]['url'] = 'https://ocean.weather.gov/A_sfc_full_ocean_color.png'.'?_'.time(); $pop_img[$n]['txt'] = 'Atlantic Ocean Pressuremap'; $pop_img[$n]['head'] = ''; $n = 'baro_po'; $pop_img[$n]['url'] = 'https://ocean.weather.gov/P_sfc_full_ocean_color.png'.'?_'.time(); $pop_img[$n]['txt'] = 'Pacific Ocean Pressuremap'; $pop_img[$n]['head'] = ''; $n = 'baro_us'; $pop_img[$n]['url'] = 'https://www.wpc.ncep.noaa.gov/sfc/ussatsfc.gif'.'?_'.time(); $pop_img[$n]['txt'] = 'Pressuremap'; $pop_img[$n]['head'] = ''; $n = 'rain_eu'; $pop_img[$n]['url'] = 'https://www.meteox.com/images.aspx?jaar=-3&voor=&soort=exp&c=&n=&tijdid='.time(); $pop_img[$n]['txt'] = 'rain radar'; $pop_img[$n]['head'] = ''; $n = 'rain_us'; $pop_img[$n]['url'] = 'https://s.w-x.co/staticmaps/wu/wu/radsum1200_cur/usshd/animate.png'; $pop_img[$n]['txt'] = 'rain radar'; $pop_img[$n]['head'] = ''; $n = 'rain'; $pop_img[$n]['url'] = 'https://www.rainviewer.com/map.html?loc='.$lat.','.$lon.',6'; #'https://www.rainviewer.com/map.html'; #'https://www.rainviewer.com/map.html?loc='.$lat.','.$lon.',6&oFa=1&oC=0&oU=0&oCS=1&oF=0&oAP=0&rmt=4&c=1&o=83&lm=0&th=0&sm=1&sn=1'; $pop_img[$n]['txt'] = 'rain radar'; $pop_img[$n]['head'] = ''; $pop_img[$n]['show'] = 'frame'; $n = 'aq_map'; // find your region here http://www.temis.nl/airpollution/no2col/data/omi/nrt/ $pop_img[$n]['url'] = $this_server.'fct_windy_popup.php?script=AQ'; $pop_img[$n]['txt'] = 'Air pollution'; $pop_img[$n]['head'] = ''; $pop_img[$n]['show'] = 'frame';# if ('replace wiht link' == $mywebcamimg) {$mywebcamimg = './img/camplus.jpg';} $n = 'wcam1'; $pop_img[$n]['url'] = $mywebcamimg.$extra_cam; $pop_img[$n]['txt'] = 'webcam'; $pop_img[$n]['head'] = ''; $pop_img[$n]['show'] = 'other'; $n = 'wcam2'; $pop_img[$n]['url'] = './img/camplus.jpg'; $pop_img[$n]['txt'] = 'webcam'; $pop_img[$n]['head'] = ''; $n = 'wcam3'; $pop_img[$n]['url'] = './img/camplus.jpg'; $pop_img[$n]['txt'] = 'webcam'; $pop_img[$n]['head'] = ''; $n = 'bo'; $pop_img[$n]['url'] = 'https://map.blitzortung.org/?y#5/'.$lat.'/'.$lon.''; $pop_img[$n]['txt'] = 'blitzortung'; $pop_img[$n]['head'] = ''; $pop_img[$n]['show'] = 'frame'; $n = 'uv_map'; $pop_img[$n]['url'] = 'http://www.temis.nl/uvradiation/UVI/uvief0_eu.gif'; $pop_img[$n]['txt'] = 'xxxx'; $pop_img[$n]['head'] = ''; #$pop_img[$n]['show'] = 'frame'; $nr = 'earth'; if (array_key_exists('nr',$_REQUEST) ) { $nr = trim($_REQUEST['nr']); } if (!array_key_exists($nr,$pop_img) ) { foreach ($pop_img as $nr => $value) {break;} } # $show_url = $pop_img[$nr]['url']; $ltxt_url = $pop_img[$nr]['txt']; $ltxt_header = $pop_img[$nr]['head']; $background = 'background'; if (isset ($pop_img[$nr]['show']) ) {$background = $pop_img[$nr]['show'];} # # optional close X in the top-left. if ($show_close_x == true ) { $closehtml = ' X  ' .$ltxt_clsppp.' '.$ltxt_header .'';} else { $closehtml = ''; } # stretched to fit echo ' '.$ltxt_url.' ' .my_style().' '.PHP_EOL; if ($background == 'background') { echo ''.PHP_EOL .$closehtml.' ';} elseif ($background == 'frame') { echo ' '.$closehtml.' ';} else { echo ' ' .$closehtml.' ';} # # style is printed in the header function my_style() { global $popup_css ; $return = PHP_EOL.' '.PHP_EOL; return $return; }