check-fetch-times.php Version 1.56 - 16-Mar-2024

Website PHP information

Running on webhost 'www.gwwilkins.org' @ IP='107.180.25.194' (reverse IP Name='194.25.180.107.host.secureserver.net')
Webserver OS: Linux a2plcpnl0650.prod.iad2.secureserver.net 2.6.32-954.3.5.lve1.4.93.el6.x86_64 #1 SMP Wed Oct 4 17:04:29 UTC 2023 x86_64
PHP Version: 7.3.33 built for Linux
PHP cmd location: /opt/alt/php73/usr/bin/php
Document root: /home/jiit5k6j38gv/public_html
Template root: /home/jiit5k6j38gv/public_html
allow_url_fopen = ON
allow_url_include = off
request_order =
Stream support for http is available
Stream support for https is available
Streams supported: compress.bzip2, compress.zlib, data, file, ftp, ftps, glob, http, https, phar, php
Socket transports: ssl, sslv3, tcp, tls, tlsv1.0, tlsv1.1, tlsv1.2, udg, udp, unix

Contents of Settings files

Settings.php permissions=-rw-r--r-- [0644]

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
<?php
############################################################################
# A Project of TNET Services, Inc. and Saratoga-Weather.org (USA template set)
############################################################################
#
#    Project:    Sample Included Website Design
#    Module:        Settings.php
#    Purpose:    Provides the Site Settings Used Throughout the Site
#     Authors:    Kevin W. Reed <kreed@tnet.com>
#                TNET Services, Inc.
#               Ken True <webmaster@saratoga-weather.org>
#               Saratoga-Weather.org
#
#     Copyright:    (c) 1992-2007 Copyright TNET Services, Inc.
############################################################################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
############################################################################
#    This document uses Tab 4 Settings
############################################################################
// Version 1.01 - 01-Oct-2011 - added support for animated conditions/forecast icons
// Version 1.02 - 22-Jul-2012 - enabled Catalan language support in $SITE['langavail']
// Version 1.03 - 02-Dec-2018 - removed WU-forecast/enabled DS-forecast.php for forecasts
// Version 1.04 - 01-Mar-2019 - added optional WC-forecast.php for WU/TWC forecasts
$SITE             = array();

############################################################################
# Sitewide configuration - website style and features
############################################################################

$SITE['CSSscreen']        = 'weather-screen-black-narrow.css'// Default screen 800px design
//   Note: $SITE['CSSscreen'] will be overridden if the Theme Switch (below) is enabled.
//   To lock your site to use only one CSS as specified in $SITE['CSSscreen'], just
//   turn off the Theme Switcher.
$SITE['CSSprint']        = 'weather-print-php.css';
#
#$SITE['CSSscreen']        = 'weather-screen.css'; // Classic design
#$SITE['CSSprint']        = 'weather-print.css';

# Mike Challis' Theme Switch configuration
$SITE['allowThemeSwitch']   = true;  // set to false to disable the use of Theme Switcher 
$SITE['CSSscreenDefault'] = 'weather-screen-black.css'// leave -narrow or -wide off this .. just change color here
$SITE['CSSwideOrNarrowDefault'] = 'narrow'// 'narrow' or 'wide'
# CSSsettings_mode
# sets allowable user style select options:
# 1 user can select style and screen width (show style select and screen width select)
# 2 user can select styles only (hide screen width select)
# 3 user can select screen width only (hide style select)
$SITE['CSSsettings_mode'] = 1;  // set to 1, 2 or 3

$SITE['flyoutmenu'] = true// set to false to use the menu list inside menubar.php instead

$SITE['charset']        = 'ISO-8859-1'// default character set for webpages (iso-8859-1=latin)
#
# Multilanguage support 
#
$SITE['lang'] = 'en';                // default language for website to use
$SITE['allowLanguageSelect'] = false// set to false to disable the use of language selector
$SITE['useLanguageFlags'] = true;    // true=show flags, false=show language 2-char abbreviations
$SITE['languageSelectDropdown'] = true// true=show dropdown list for languages, false=show linear flags list
$SITE['languageSelectButton'] = false;  // true=show 'Set' button for language select, false=use onchange to submit
$SITE['langavail'] = array('en',     // select languages to offer here.  Use comments to remove languages
// array('en', should be first entry on line above
  
'af',  // afrikaans
  
'bg',  // bulgarian
  
'ct'// 'catalan',
  
'dk'// 'danish',
  
'nl'// 'dutch',
  
'fi'// 'finnish',
  
'fr'// 'french',
//  'ga', // 'irish',
  
'de'// 'german',
  
'el'// 'greek',
  
'he'// 'hebrew',
  
'hu'// 'hungarian',
  
'it'// 'italian',
  
'no'// 'norwegian',
  
'pl'// 'polish',
  
'pt'// 'portuguese',
  
'ro'// 'romanian',
  
'es'// 'spanish',
  
'se'// 'swedish',
);
// if your software uploads almanac dates using a language OTHER THAN English, please put the month
// names in your language to replace the English ones below.  This is used primarily by the
// wxastronomy.php page for the local dates of moon phases, solistices, and equinoxes
$SITE['monthNames'] = array(  // for wxastronomy page .. replace with month names in your language 
'January','February','March','April','May','June',
'July','August','September','October','November','December'
);
// example:
//$SITE['monthNames'] = array(  // Danish for wxastronomy page .. replace with month names in your language
//'januar','februar','marts','april','maj','juni',
//'juli','august','september','oktober','november','december'
//);

############################################################################
# Sitewide configuration - Station location, identity and date/time info
############################################################################

$SITE['organ']            = 'SE Lincoln, NE USA Weather Website';
$SITE['copyr']            = '&copy; ' date("Y",time()) . ', Southeast Lincoln Weather';
$SITE['remote']            = "onclick=\"window.open(this.href,'_blank');return false;\"";
date_default_timezone_set('America/Chicago'); //Server TZ may not be correct!
$SITE['tz']             = 'America/Chicago';  //NOTE: this *MUST* be set correctly to
// translate UTC times to your LOCAL time for the displays.
//  https://us.php.net/manual/en/timezones.php  has the list of timezone names
//  pick the one that is closest to your location and put in $SITE['tz'] like:
//    $SITE['tz'] = 'America/Los_Angeles';  // or
//    $SITE['tz'] = 'Europe/Brussels';
$SITE['location']       = 'Lincoln, NE USA';
$SITE['email']            = 'gwwilk@inebraska.com';
# Station location: latitude, longitude, cityname
$SITE['latitude']        = '40.790541';    //North=positive, South=negative decimal degrees
$SITE['longitude']        = '-96.631311';  //East=positive, West=negative decimal degrees
$SITE['cityname']        = 'Lincoln';

# USA Specific settings
$SITE['noaazone']         = 'NEZ066'// used for NOAA advisories and advforecast2.php forecasts
// translate UTC times to your LOCAL time for the displays.
//  https://us.php.net/manual/en/timezones.php  has the list of timezone names
//  pick the one that is closest to your location and put in $SITE['tz'] like:
//    $SITE['tz'] = 'America/Los_Angeles';  // or
//    $SITE['tz'] = 'Europe/Brussels';
// note: date format used for PHP parts only.  Weather software dates are not processed
// except on the astronomy page

$SITE['timeFormat'] = 'D, d-M-Y g:ia T';  // Day, 31-Mar-2006 6:35pm Tz  (USA Style)
//$SITE['timeFormat'] = 'm/d/Y g:ia';      // USA  format 03/31/2006 14:03
//$SITE['timeFormat'] = 'd/m/Y H:i';       // Euro format 31/03/2006 14:03
//$SITE['timeFormat'] = 'Y-m-d H:i';       // ISO  format 2006-03-31 14:03

//$SITE['timeOnlyFormat'] = 'g:ia';          // USA format h:mm[am|pm]
$SITE['timeOnlyFormat'] = 'g:i A';          // USA format h:mm [AM|PM]
//$SITE['timeOnlyFormat'] = 'H:i';          // Euro format hh:mm  (hh=00..23);
$SITE['dateOnlyFormat'] = 'd-M-Y';        // for 31-Mar-2008 or 'j/n/Y' for Euro format
//$SITE['hourOnlyFormat'] = 'H';                    // Euro format hh (hh=00..23);
$SITE['hourOnlyFormat'] = 'g a';                        // USA format hour only (hh am/pm);

############################################################################
# Sitewide configuration - support scripts configuration
############################################################################

###########################################################################
# These values should reflect the units-of-measure your weather station
# uses to report the weather data when processing weather tags.
# Note: if you change them here, make sure to make the corresponding
#   changes in the ajax[WXname]wx.js AJAX script also.
###########################################################################

$SITE['WDdateMDY'] = true// for WD date format of month/day/year.  =false for day/month/year

$SITE['uomTemp'] = '&deg;F';  // ='&deg;C', ='&deg;F'
$SITE['uomBaro'] = ' inHg';    // =' hPa', =' mb', =' inHg'
$SITE['uomWind'] = ' mph';   // =' km/h', =' kts', =' m/s', =' mph'
$SITE['uomRain'] = ' in';     // =' mm', =' in'
$SITE['uomSoil'] = ' cb';      // =' cb', =' kp'
$SITE['uomSnow'] = ' in';     // =' cm', =' in'
$SITE['uomDistance'] = ' miles';  // or ' km' -- used for Wind Run display
$SITE['uomPerHour'] = '/hr';
//
$SITE['imagesDir'] = './ajax-images/';  // directory for ajax-images with trailing slash
// 
$SITE['cacheFileDir']   =  './cache/';   // directory to use for scripts cache files .. use './' for doc.root.dir
// 
$SITE['UVscript']        = 'get-UV-forecast-inc.php'// worldwide forecast script for UV Index
//    comment out above line to exclude UV forecast from dashboard, gizmo and wxuvforecast.php page
//
// if you have WXSIM installed set $SITE['WXSIM'] = true; otherwise set it to false
$SITE['WXSIM']            = true;  // Set to false if you have not installed WXSIM
$SITE['WXSIMscript']     = 'plaintext-parser.php'// script for decoding plaintext.txt into icons
$SITE['defaultlang']    = 'en';   // 'en' for English (WXSIM plaintext-parser.php)

# fcsturlNWS is the point-printable forecast URL from https://www.weather.gov/ (used by advforecast2.php)
$SITE['fcsticonsheight'] = '86';
$SITE['fcsticonswidth']  = '86';
$SITE['fcsturlNWS']        = 'https://forecast.weather.gov/MapClick.php?CityName=Lincoln&state=NE&site=OAX&textField1=40.8164&textField2=-96.6882&e=0&TextType=2';
$SITE['fcsticonsdir'] = './forecast/images/'// NOAA-style icons for NWS, WU, WXSIM forecast scripts
$SITE['fcsticonstype']= '.png'// default type='.jpg' -- use '.gif' for animated icons from https://www.meteotreviglio.com/
$SITE['showTwoIconRows'] = true// =true; for two rows, =false; for one row (old style)
// 
// in the following section, enable settings for ONE primary forecast organization
// pick which script AND org are to be used for your forecast here: (last uncommented pair will
// be the ones used on the wxforecast.php page and in your dashboard and sidebar

$SITE['fcstscript']        = 'advforecast2.php';  // USA-only NWS Forecast script
$SITE['fcstorg']        = 'NWS';    // set to 'NWS' for NOAA NWS

$SITE['NWSalertsSidebar'] = true// =true to insert in menubar, =false no insert to menubar 
$SITE['NWSalertsCodes'] =  array(
              
"Lancaster Co.|NEZ066|NEC109",
              
"Saunders Co.|NEZ051|NEC155",
              
"Cass Co.|NEZ067|NEC025",
              
"Otoe Co.|NEZ068|NEC131",
              
"Johnson Co.|NEZ090|NEC097",
              
"Gage Co.|NEZ089|NEC067",
              
"Saline Co.|NEZ078|NEC151",
              
"Seward Co.|NEZ065|NEC159",
              
"Butler Co.|NEZ050|NEC023"
              
);

$SITE['NWSforecasts']   = array( // for the advforecast2.php V3.xx version script
// use "Zone|Location|Point-printableURL",  as entries .. first one will be the default forecast.
  
"NEZ066|Lincoln|https://forecast.weather.gov/MapClick.php?CityName=Lincoln&state=NE&site=OAX&textField1=40.8164&textField2=-96.6882&e=0&TextType=2",
"NEZ062|Grand Island|https://forecast.weather.gov/MapClick.php?CityName=Grand+Island&state=NE&site=GID&textField1=40.9218&textField2=-98.3659&e=0&TextType=2",
"NEZ061|Kearney|https://forecast.weather.gov/MapClick.php?CityName=Kearney&state=NE&site=GID&textField1=40.7008&textField2=-99.0846&e=0&TextType=2",
"NEZ059|North Platte|https://forecast.weather.gov/MapClick.php?CityName=North+Platte&state=NE&site=LBF&textField1=41.133&textField2=-100.772&e=0&TextType=2",
"NEZ042|Columbus|https://forecast.weather.gov/MapClick.php?CityName=Columbus&state=NE&site=OAX&textField1=41.4347&textField2=-97.3556&e=0&TextType=2",
"NEZ031|Norfolk|https://forecast.weather.gov/MapClick.php?CityName=Norfolk&state=NE&site=OAX&textField1=42.0343&textField2=-97.4184&e=1&TextType=2",
"NEZ014|South Sioux City|https://forecast.weather.gov/MapClick.php?CityName=South+Sioux+City&state=NE&site=FSD&textField1=42.466&textField2=-96.4121&e=0&TextType=2",
"NEZ052|Omaha|https://forecast.weather.gov/MapClick.php?CityName=Omaha&state=NE&site=OAX&textField1=41.2639&textField2=-96.0117&e=1&TextType=2",
"NEZ093|Falls City|https://forecast.weather.gov/MapClick.php?CityName=Falls+City&state=NE&site=OAX&textField1=40.0653&textField2=-95.5996&e=0&TextType=2",
"NEZ089|Beatrice|https://forecast.weather.gov/MapClick.php?CityName=Beatrice&state=NE&site=OAX&textField1=40.2698&textField2=-96.7456&e=0&TextType=2",
"NEZ088|Fairbury|https://forecast.weather.gov/MapClick.php?CityName=Fairbury&state=NE&site=OAX&textField1=40.1409&textField2=-97.1772&e=0&TextType=2",
);

// Uncomment the two lines below to use WXSIM as the ONLY forecast script to use
// $SITE['fcstscript']    = 'plaintext-parser.php';    // WXSIM forecast (if only forecast script)
// $SITE['fcstorg']        = 'WXSIM';    // set to 'WXSIM' for WXSIM forecast

// NOAA warning zone
$SITE['noaazone']         = 'NEZ066'// used for NOAA advisories and advforecast2.php forecasts
$SITE['hurlURL']        = "wxadvisory.php"// page to launch for details on NOAA advisories
// 

// Radar settings
$SITE['noaaradar']        = 'OAX';           // LAST 3 characters of NOAA Radar Site ID
                                        // e.g. Radar KMUX has $SITE['noaaradar'] = 'MUX';
#------ Settings for WU-radar-inc.php ------
// note: the following Settings.php values will be copied automatically:
// $SITE['imagesDir'] will be used for $imagesDir
// $SITE['noaaradar'] will be used for $RDR
// $SITE['latitude'] will be used for $Lat
// $SITE['longitude'] will be used for $Long
// $SITE['cityname'] will be used for $City
// $SITE['timeFormat'] will be used for $timeFormat
// $SITE['tz'] will be used for $ourTZ
//
$SITE['WUregion']    = 'mw';                // Wunderground regional maps
// 'sw'=SouthWest, 'nw'=NorthWest, 'mw'=Midwest
// 'sp'=South Central, 'ne'=North East, 'se'=South East

$SITE['NWSregion'] = 'pir'// NOAA/NWS regional radar maps
/*
  'us' => 'Contiguous US',
  'ak' => 'Alaskan sector',
  'hi' => 'Hawaiian sector',
  'carib' => 'Caribbean sector',
  'lws' => 'LWS: Lewiston, ID sector',
  'wmc' => 'WMC: Winnemucca, NV sector',
  'las' => 'LAS: Las Vegas, NV sector',
  'cod' => 'COD: Cody, WY sector',
  'den' => 'DEN: Denver, CO sector',
  'abq' => 'ABQ: Albuquerque, NM sector',
  'pir' => 'PIR: Pierre, SD sector',
  'ict' => 'ICT: Wichita, KS sector',
  'aus' => 'AUS: Austin, TX sector',
  'msp' => 'MSP: Minneapolis, MN sector',
  'dtw' => 'DTW: Detroit, MI sector',
  'evv' => 'EVV: Evansville, IN sector',
  'lit' => 'LIT: Little Rock, AR sector',
  'alb' => 'ALB: Albany, NY sector',
  'bwi' => 'BWI: Baltimore, MD sector',
  'clt' => 'CLT: Charlotte, NC sector',
  'mgm' => 'MGM: Mongomery, AL sector',
  'tpa' => 'TPA: Tampa, FL sector',
*/
$SITE['WUsatellite'] = 'ce'// Wunderground regional satellite maps
// ="nw" North West, ="nc" North Central, ="ne" North East,
// ="wc" West Central, ="ce" Central, ="ec" East Central,
// ="sw" South West, ="sc" South Central, ="se" South East,

$SITE['WUname1'] = 'City Level';    // tooltip label for mode=1
$SITE['WUname2'] = 'Metro Area';    // tooltip label for mode=2
$SITE['WUname3'] = 'NE-IA';    // tooltip label for mode=3
$SITE['WUname4'] = 'North Central US';    // tooltip label for mode=4
$SITE['WUname5'] = 'Entire US';    // tooltip label for mode=5

// $CityPos1 - for City Level radar/animation
$SITE['CityPos1'] = 'left: 458px; top: -211px;';
$SITE['CityColor1'] = '#FFFFFF';  // color of legend display
// see instructions above to set  $CityURL value
$SITE['CityURL'] = 'https://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=OAX&brand=wui&num=1&delay=50&type=N0R&frame=0&scale=0.125&noclutter=1&t=1297881022&lat=0&lon=0&label=you&showstorms=99&map.x=400&map.y=240˘erx=668˘ery=-196&transx=268&transy=-436&showlabels=1&severe=0&rainsnow=1&lightning=1&smooth=1';

// $CityPos2 - for Metro Level radar/animation     
$SITE['CityPos2'] = 'left: 335px; top: -173px;';
$SITE['CityColor2'] = '#FFFFFF';  // color of legend display
// see instructions above to set  $MetroURL value
$SITE['MetroURL'] = 'https://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=OAX&brand=wui&num=1&delay=50&type=N0R&frame=0&scale=0.329&noclutter=1&t=1297881210&lat=0&lon=0&label=you&showstorms=99&map.x=400&map.y=240˘erx=416˘ery=130&transx=16&transy=-110&showlabels=1&severe=0&rainsnow=1&lightning=1&smooth=1';


// $CityPos3 - for unzoomed radar/animation
$SITE['CityPos3'] = 'left: 375px; top: -179px;';
$SITE['CityColor3'] = '#FFFFFF';  // color of legend display

// $CityPos4 - for US Advisory map
$SITE['CityPos4'] = 'left: 324px; top: -308px;';
$SITE['CityColor4'] = '#FFFFFF';  // color of legend display

// $CityPos5 = USA Radar/animation     
$SITE['CityPos5'] = 'left: 231px; top: -217px;';
$SITE['CityColor5'] = '#FFFFFF';  // color of legend display

// $CityPos6 - for USA Radar Map
$SITE['CityPos6'] = 'left: 320px; top: -307px;';
$SITE['CityColor6'] = 'CityColor6';  // color of legend display

// $CityPos7 - Old Regional maps (Fronts, Satellite, Wind, Snow Depth, etc)
$SITE['CityPos7'] = 'left: 228px; top: -209px;';
$SITE['CityColor7'] = '#FFFFFF';  // color of legend display

// $CityPos8 - for USA Flu map
$SITE['CityPos8'] = 'left: 320px; top: -303px;';
$SITE['CityColor8'] = '#0000FF';  // color of legend display

// $CityPos9 - for Regional Advisories map
$SITE['CityPos9'] = 'left: 232px; top: -171px;';
$SITE['CityColor9'] = '#FFFFFF';  // color of legend display

// $CityPos10 - for New (2017) Regional maps (Fronts, Satellite, Wind, Snow Depth, etc)
$SITE['CityPos10'] = 'left: 237px; top: -185px;';
$SITE['CityColor10'] = '#FFFFFF';  // color of legend display

#------ End of Settings for WU-radar-inc ------

// GRLevel3 Radar image settings (for wxgr3radar.php and radar-status.php scripts
$SITE['GR3radar']    = 'koax';    // set to lower-case full name of NEXRAD radar site
$SITE['GR3DIR']        = '/grlevel3';     // set to directory for GRLevel3 images (or '.' for root directory
$SITE['GR3type']    = 'cr';        // radar image type 'cr','br','cr248','br1' etc.
$SITE['GR3img']        = 'jpg';    // GR3 image type 'jpg' or 'png'
$SITE['GR3cnt']        = 10;        // number of images in series 10=(_0 ... _9 in name of file)
$SITE['GR3width']    = 620;        // width of GR3 images
$SITE['GR3height']  = 620;        // height of GR3 images
$SITE['showradarstatus'] = false// set to false to suppress 'active' message by radar-status.php

// Sunlight Hours Display Settings
$displayYesterday false;  // Display yesterday's sunlight hours
$displayTomorrow false// Display tomorrow's sunlight hours
$sunLightPieLink 'wxastronomy_new.php'// Link to Astronomy Page

$SITE['NOAAdir'] = './WeatherDisplay/'// Site NOAA Files Directory Location

$SITE['googleAPI'] = '--redacted--'// key not displayed  // Site Google API

$SITE['useUSNO'] = true;  // =true; default -- use the USNO api.usno.navy.mil JSON for data
                                                  // =false: use the internal calculations and no access to the USNO api.usno.navy.mil server

// WXNOAA-Radio Settings
$SITE['WXRstartup'] = 'WXM20';   // override $startup in wxradio.php
$SITE['WXRprovider'] = true;     // override $streamprovider in wxradio.php
$SITE['WXRmapprovider'] = 'OpenTopo'// override $mapProvider in wxradio.php
$SITE['WXRautoplay'] = true;     // override $autoplaystartup in wxradio.php
$SITE['WXRbackground'] = 'lightcyan'// override $backgroundColor in wxradio.php
// see https://www.w3schools.com/cssref/css_colors.asp for color names
// Optional:
$SITE['mapboxAPIkey'] = '--redacted--'// key not displayed   // use this for the API key to MapBox
// see https://www.w3schools.com/cssref/css_colors.asp for color names

// --- DarkSky.net forecast variables ---
//$SITE['fcstscript'] = 'DS-forecast.php';
//$SITE['fcstorg']    = 'DarkSky'; // set to 'DarkSky' for DarkSky.net

$SITE['DSAPIkey'] = '--redacted--'// key not displayed  // Your API key from https://darksky.net/dev

// DarkSky display Units:
// si: SI units (C,m/s,hPa,mm,km)
// ca: same as si, except that windSpeed and windGust are in kilometers per hour
// uk2: same as si, except that nearestStormDistance and visibility are in miles, and windSpeed and windGust in miles per hour
// us: Imperial units (F,mph,inHg,in,miles)

$SITE['DSshowUnitsAs'] = 'us'// ='us' for imperial, , ='si' for metric, ='ca' for canada, ='uk2' for UK
$SITE['DSforecasts'] = array(
 
// Location|lat,long  (separated by | characters)
'Lincoln, NE, USA|40.790541,-96.631311',  //East=positive, West=negative decimal degrees
/*'Saratoga, CA, USA|37.27465,-122.02295',
'Auckland, NZ|-36.910,174.771', // Awhitu, Waiuku New Zealand
'Assen, NL|53.02277,6.59037',
'Blankenburg, DE|51.8089941,10.9080649',
'Carcassonne, FR|43.2077801,2.2790407',
'Braniewo, PL|54.3793635,19.7853585',
*/
);
// --- end of DarkSky forecast variables ---
$SITE['$WCAPIkey'] = '--redacted--'// key not displayed  // WU API Key

##########################################################################
# end of configurable settings
##########################################################################
# Multilanguage support constants - please do NOT change the settings below
#DO NOT CHANGE THESE SETTINGS
$SITE['installedLanguages'] = array (
  
'af' => 'Afrikaans',
  
'bg' => '&#1073;&#1098;&#1083;&#1075;&#1072;&#1088;&#1089;&#1082;&#1080; &#1077;&#1079;&#1080;&#1082;',
  
'ct' => 'Catal&agrave;',
  
'dk' => 'Dansk',
  
'nl' => 'Nederlands',
  
'en' => 'English',
  
'fi' => 'Suomi',
  
'fr' => 'Fran&ccedil;ais',
  
'de' => 'Deutsch',
  
'el' => '&Epsilon;&lambda;&lambda;&eta;&nu;&iota;&kappa;&#940;',
  
'ga' => 'Gaeilge',
  
'hu' => 'Magyar',
  
'it' => 'Italiano',
  
'no' => 'Norsk',
  
'pl' => 'Polski',
  
'pt' => 'Portugu&ecirc;s',
  
'ro' => 'limba rom&#00226;n&#00259;',
  
'es' => 'Espa&ntilde;ol',
  
'se' => 'Svenska',
);
# DO NOT CHANGE THESE SETTINGS
$SITE['ISOLang'] = array ( // ISO 639-1 2-character language abbreviations from country domain 
  
'af' => 'af',
  
'bg' => 'bg',
  
'ct' => 'ca',
  
'dk' => 'da',
  
'nl' => 'nl',
  
'en' => 'en',
  
'fi' => 'fi',
  
'fr' => 'fr',
  
'de' => 'de',
  
'el' => 'el',
  
'ga' => 'ga',
  
'it' => 'it',
  
'hu' => 'hu',
  
'no' => 'no',
  
'pl' => 'pl',
  
'pt' => 'pt',
  
'ro' => 'ro',
  
'es' => 'es',
  
'se' => 'sv',
);
# DO NOT CHANGE THESE SETTINGS
$SITE['langCharset'] = array( // for languages that DON'T use ISO-8859-1 (latin) set
 
'bg' => 'ISO-8859-5',
 
'el' => 'ISO-8859-7',
 
'hu' => 'ISO-8859-2',
 
'ro' => 'ISO-8859-2',
 
'pl' => 'ISO-8859-2',
 
'ru' => 'UTF-8',
 
'gr' => 'UTF-8'
);
# DO NOT CHANGE THESE SETTINGS
$SITE['WULanguages'] = array ( // for WeatherUnderground forecast supported languages
  
'af' => 'afrikaans',
  
'bg' => 'bulgarian',
  
'ct' => 'catalan',
  
'dk' => 'danish',
  
'nl' => 'dutch',
  
'en' => 'english',
  
'fi' => 'finnish',
  
'fr' => 'french',
  
'de' => 'deutsch',
  
'el' => 'greek',
  
'ga' => 'gaelic',
  
'hu' => 'hungarian',
  
'it' => 'italian',
  
'no' => 'norwegian',
  
'pl' => 'polish',
  
'pt' => 'portuguese',
  
'ro' => 'romanian',
  
'es' => 'espanol',
  
'se' => 'swedish',
);
# End - multilanguage support constants
# Now prune the installedLanguages based on langavail selection
$tarray = array(); 
foreach (
$SITE['langavail'] as $n => $k) {
  if(isset(
$SITE['installedLanguages'][$k])) {
    
$tarray[$k] = $SITE['installedLanguages'][$k];
  }
}
$SITE['installedLanguages'] = $tarray;
# end prune the installedLanguages based on langavail selection
#
# set the Timezone abbreviation automatically based on $SITE['tzname'];
# Set timezone in PHP5/PHP4 manner
  
if (!function_exists('date_default_timezone_set')) {
     
putenv("TZ=" $SITE['tz']);
//     print "<!-- using putenv(\"TZ=". $SITE['tz']. "\") -->\n";
    
} else {
     
date_default_timezone_set($SITE['tz']);
//     print "<!-- using date_default_timezone_set(\"". $SITE['tz']. "\") -->\n";
   
}

putenv("TZ=".$SITE['tz']);
$SITE['tzname']    = date("T",time());

/* include the who's online functions *
    $C['files_path'] = '/home/content/58/7474958/html/whos-online/'; // full path, always end with a slash
    $C['files_url'] = 'https://www.gwwilkins.org/whos-online/'; // url, always end with a slash
    require ($C['files_path'].'include-whos-online-header.php');
    $whos_online_records = update_whos_online(); // Uncomment to enable whos-online
*/
if($SITE['allowThemeSwitch']) {
  
# begin Color Theme Switcher Plugin by Mike Challis
  # https://www.642weather.com/weather/scripts.php
  
$mobTitle ''# set mobTitle now to avoid errors on localhost
  
include_once('include-style-switcher.php');
  
$SITE['CSSscreen'] = validate_style_choice();
  
# end Color Theme Switcher Plugin
} else {
  if (!isset(
$_SESSION)) { session_start(); } // for preservation of language settings.
  
if ($SITE['CSSwideOrNarrowDefault'] == 'wide') {
          
$_SESSION['CSSwidescreen'] = 1;
          
$CSSstyle str_replace ('.css','-wide.css',$SITE['CSSscreenDefault']);
  } else {
          
$_SESSION['CSSwidescreen'] = 0;
          
$CSSstyle str_replace ('.css','-narrow.css',$SITE['CSSscreenDefault']);
  }
  
$SITE['CSSscreen'] = $CSSstyle;
}
# Automatic Info we might need
############################################################################
if(isset($_SERVER['REMOTE_ADDR']))   {$SITE['REMOTE_ADDR']    = $_SERVER['REMOTE_ADDR'];}
if(isset(
$_SERVER['REMOTE_HOST']))   {$SITE['REMOTE_HOST']    = $_SERVER['REMOTE_HOST'];}
if(isset(
$_SERVER['DOCUMENT_ROOT'])) {$SITE['WEBROOT']        = $_SERVER['DOCUMENT_ROOT'];}
if(isset(
$_SERVER['REQUEST_URI']))   {$SITE['REQURI']        = $_SERVER['REQUEST_URI'];}
if(isset(
$_SERVER['SERVER_NAME']))   {$SITE['SERVERNAME']    = $_SERVER['SERVER_NAME'];}
$SITE['remote']            = "onclick=\"window.open(this.href,'_blank');return false;\"";
$SITE['PHPversion'] = phpversion();
// default settings needed for various pages when the weather software plugin is not installed.
// do not change these
$SITE['WXsoftware']     = 'WD';
$SITE['WXsoftwareURL'] = 'https://www.weather-display.com/';
$SITE['WXsoftwareLongName'] = 'Weather-Display';
$SITE['ajaxDashboard'] = 'ajax-dashboard.php';
$SITE['trendsPage']     = 'WD-trends-inc.php'// WD-specific trends page
# now fetch the weather software settings if it exists
if(isset($_REQUEST['wx']) and file_exists('Settings-weather-'.strtoupper($_REQUEST['wx']).'.php')) {
    include_once(
'Settings-weather-'.strtoupper($_REQUEST['wx']).'.php');
} elseif(
file_exists("Settings-weather.php")) { 
    include_once(
"Settings-weather.php"); 
}
?>

Settings-weather.php permissions=-rw-r--r-- [0644]

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
############################################################################
# A Project of TNET Services, Inc. and Saratoga-Weather.org (WD-World-ML template set)
############################################################################
#
#    Project:    Sample Included Website Design
#    Module:        Settings-weather.php
#    Purpose:    Provides the Site Settings Used Throughout the Site
#     Authors:    Kevin W. Reed <kreed@tnet.com>
#                TNET Services, Inc.
#               Ken True <webmaster@saratoga-weather.org>
#               Saratoga-Weather.org
#
#     Copyright:    (c) 1992-2007 Copyright TNET Services, Inc.
############################################################################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
############################################################################
#    This document uses Tab 4 Settings
############################################################################
global $SITE;
#---------------------------------------------------------------------------
#  required settings for Weather-Display software
#---------------------------------------------------------------------------
$SITE['WXtags']            = './WeatherDisplay/testtags.php';  // for weather variables .. we're using the old name instead of WDtags.php
$SITE['ajaxScript']     = 'ajaxWDwx3.js'// for AJAX enabled display
$SITE['clientrawfile']  = './clientraw.txt';  // directory and name of Weather-Display realtime.txt file
$SITE['customclientrawfile'] = './customclientraw.txt'// WD realtime clientraw extra directory and file
$SITE['graphImageDir']  = './WeatherDisplay/';  // directory location for graph images with trailing /
# wxhistory.php settings
$SITE['HistoryStartYear'] = '2007';  // start year for station operation
$SITE['HistoryFilesDir']  = './WeatherDisplay/';    // directory location for the [month][year].htm history files
$SITE['HistoryGraphsDir'] = './WeatherDisplay/';    // directory location for the YYYYMMDD.gif graphic daily report files
# Weather Station sensors and options for dashboard
$SITE['DavisVP']        = true;  // set to false if not a Davis VP weather station
$SITE['UV']                = true;  // set to false if no UV sensor
$SITE['SOLAR']            = true;  // set to false if no Solar sensor
$SITE['showSnow']        = true;   // set to false if snow not recorded on WD
$SITE['showSnowTemp']     = 4;      // show snow instead of rain if temp (C) is <= this amount
##########################################################################
# end of configurable settings
#
// do NOT change these
$SITE['WXsoftware']     = 'WD';
$SITE['WXsoftwareURL'] = 'https://www.weather-display.com/';
$SITE['WXsoftwareLongName'] = 'Weather-Display';
$SITE['ajaxDashboard'] = 'ajax-dashboard6.php';
$SITE['trendsPage']     = 'WD-trends-inc.php'// WD-specific trends page
?>