Notice: Undefined offset: 1 in /home/portan24/public_html/weather28/metar/wsMetarTxt.php on line 81

Notice: Undefined offset: 1 in /home/portan24/public_html/weather28/metar/wsMetarTxt.php on line 87

Notice: Array to string conversion in /home/portan24/public_html/weather28/metar/wsMetarTxt.php on line 92

Northport NY Webcam more information Northport NY Webcam


Visit our other weather sites:

Template documentation
and downloads

And another site



Display key values and files

_my_texts/wsUserSettings.php SettingsFiles should pe password protected - dated: Sep 7 2018 9:12 pm


Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /home/portan24/public_html/weather28/printSite.php on line 134
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
<?php
$pageName    
"wsUserSettings.php";
$pageVersion    "0.02 2015-11-14";
#
if (!isset($SITE)){echo "<h3>invalid call to script $pageName</h3>";exit;}
$SITE["wsModules"][$pageName] = "version: " $pageVersion;
if (!isset(
$pathString)) {$pathString="";}
$pathString .= "<!-- module ".$pageName." ==== ".$SITE["wsModules"][$pageName]." -->".PHP_EOL;
#---------------------------------------------------------
# 0.02  generated 2015-11-14
#---------------------------------------------------------
$SITE["wsDebug"]         = true;             ##### 
#$SITE["wsDebug"]        = false;            ##### remove comment mark at position 1 when you are fully satisfied with your site.
#---------------------------------------------------------
# Two important questions to select the correct questions from now on
#---------------------------------------------------------
$SITE["WXsoftware"]     = "WD";                 # CU = Cumulus  |  CW = consoleWD  |  DW = Davis_WL.com  |  MB = Meteobridge  |  MH = Meteohub  |  MP = Meteoplug  |  VW = VWS  |  WC = WeatherCat  |  WD = WeatherDisplay  |  WL = WeatherLink  |  WS = WSWIN  |  WV = Wview
$SITE["region"]         = "america";            # america = USA  |  canada = Canada  |  europe = Europe  |  other = Other
#---------------------------------------------------------
# General settings such as station location, identity
#---------------------------------------------------------

# The name of your Weather-Station and the area it services
$SITE["organ"]          = "Northport  NY Weather";
$SITE["yourArea"]       = "Northport";

# The location of your weatherstation on the globe
$SITE["latitude"]       = "40.66033";           # 24 = 60
$SITE["longitude"]      = "-73.46828";          # -170 = -50
$SITE["WUregion"]       = "ne";                 # sw = SouthWest  |  nw = NorthWest  |  mw = Midwest  |  sp = South Central  |  ne = North East  |  se = South East
$SITE["radarStation"]   = "OKX";                # 3

# The timezone you are in and the language you use
$SITE["tz"]             = "America/New_York";
$SITE["lang"]           = "en";                 # en = English  |  nl = Dutch  |  fr = French  |  de = German

# Where to load the current conditions from
$SITE["curCondFrom"]    = "metar";              # yahoo = Yahoo - needs area code  |  metar = metar - uses your nearby metar  |  wd = WeatherDisplay if it has a solar sensor and is configured correctly
$SITE["yaPlaceID"]      = "2461986";
$SITE["METAR"]          = "KISP";               # 4
#---------------------------------------------------------
# The general parts for every page
#---------------------------------------------------------

# Page and menu size
$SITE["pageWidth"]      = "1200";               # 1200 = 2400
$SITE["menuWidth"]      = "180";                # 180 = 220
$SITE["menuPlace"]      = "V";                  # V = Vertical left side  |  H = Horizontal

# The  yellow box at the top
$SITE["maintenanceShow"]= false;                # true = Display the yellow box on top of the page  |  false = Do not use
$SITE["maintenanceTxt"] = "./_my_texts/maintenance.txt";

# Type of header and what color scheme
$SITE["header"]         = "3";                  # 3 = Header with gauges  |  2 = Normal header with blocks  |  1 = Lower header with less information
$SITE["colorNumber"]    = "1";                  # 0 = weather_adapted  |  1 = green  |  2 = blue  |  3 = pastel  |  4 = red  |  5 = orange  |  6 = none  |  7 = ws_clouds  |  8 = ws_cloudsn  |  9 = ws_mist  |  10 = ws_moon  |  11 = ws_pclouds  |  12 = ws_rain  |  13 = ws_snow  |  14 = ws_storm  |  15 = ws_sun  |  16 = ws_thunder

# Optional side and bottom area
$SITE["sideDisplay"]    = true;                 # true = Side area will be used  |  false = Do not display
$SITE["bottomDisplay"]  = true;                 # true = Bottom area will be used  |  false = Do not display

# Banners for adds , photo's and so on
$SITE["bannerTop"]      = false;                # true = use my text file  |  false = Do not display
$SITE["bannerTopTxt"]   = "./_my_texts/banner.txt";
$SITE["bannerBottom"]   = false;                # true = use my text file  |  false = Do not display
$SITE["bannerBottomTxt"]= "./_my_texts/banner.txt";

# Do we strip parts of the page for joomla type use
$SITE["stripAll"]       = false;                # true = Remove all (optional) areas of a page  |  false = No "Joomla" needed. - We use the normal page setup
$SITE["stripMenu"]      = false;                # true = Menu will not be displayed  |  false = Leave menu as is

# Will we display these optional information blocks (and where)
$SITE["langFlags"]      = true;                 # true = Displayed next to the language selection  |  false = Do not display
$SITE["partners"]       = "B";                  # B = In bottom area  |  V = In side area  |  false = Do not display
$SITE["equipment"]      = "B";                  # B = In bottom area  |  V = In side area  |  false = Do not display
$SITE["otherWS"]        = "V";                  # V = In side area  |  false = Do not display

# Facebook - Twitter and other social sites
$SITE["socialSiteSupport"]= false;              # H = In header small horizontal  |  V = In side area  |  false = Do not display
$SITE["socialSiteKey"]  = "4fd8a66b72fa8566";
$SITE["socialSiteCode"] = "./_widgets/social_buttons.txt";

# Rain and Thunder-warnings
$SITE["showRain"]       = "optional";           # true = Always  |  false = Do not display  |  optional = Display with rain warning
$SITE["showLightning"]  = "optional";           # true = Always  |  false = Do not display  |  optional = Display with thunder warning

# Donate button
$SITE["donateButton"]   = false;                # V = In side area  |  false = Do not display
$SITE["donateCode"]     = "./_widgets/donateButton.php";

# Weatherwarnings and how are we going to display them
$SITE["warnings"]       = false;                # true = Use the weatherwarnings for your area  |  false = Do not display
$SITE["useCurly"]       = false;                # false = use NOAA warnings  |  1 = Use NWS warnings with Curly scripts
$SITE["warnAreaNoaa"]   = "NYC103";             # 6
$SITE["warningInside"]  = false;                # true = Display the warnings below the header  |  false = Display the warnings above all other information
$SITE["warningGreen"]   = false;                # true = Display a message also when there is no warning  |  false = Display only a message when there are warnings
$SITE["warningsXtnd"]   = false;                # true = Display the whole text of the warning   |  false = Display the main warning text only
$SITE["warningDetail"]  = "3";                  # 1 = 9999
$SITE["warn1Box"]       = false;                # true = All warnings combined into one box  |  false = Every warning in a separate box
$SITE["warnPage"]       = true;                 # true = Use template page with detailed information  |  false = Go to warning site for detailed information

# Widgets and other settings for all pages
$SITE["noChoice"]       = "wsStartPage";        # wsStartPage = Normal dashboard startpage (p=10)  |  gaugePage = Steelseries page  |  wsPrecipRadar = Rain radar page  |  wsForecast = Standard forecast page

# Website trafic
$SITE["statsCode"]      = false;                # true = Use the external statistics code in the footer  |  false = Do not use
$SITE["statsCodeTxt"]   = "./_widgets/histats.txt";

# Visitors counter
$SITE["showVisitors"]   = false;                # true = Use your own visitors counter  |  false = Do not use
$SITE["visitorsFile"]   = "wolExported.str";
$SITE["geoKey"]         = "";

# Count all pages visited
$SITE["pages_visited"]  = false;                # true = Enable this page  |  false = Do not display

# Back to top of page button
$SITE["floatTop"]       = true;                 # true = Use the floating go to top marker  |  false = Do not use
$SITE["floatTopTxt"]    = "./_widgets/float_top.php";
$SITE["skipTop"]        = true;                 # true = Go to data-part of page to display more information  |  false = Always display header

# Rotating weather-values display
$SITE["ajaxGizmoShow"]  = true;                 # true = Enable this facility  |  false = Do not display
#---------------------------------------------------------
# Menu items / extra pages to display
#---------------------------------------------------------

# Special pages    for smartphone users
$SITE["useMobile"]      = false;                 # true = Use the mobile pages for "smartphone" users  |  false = Only allow main-site use

# Contact page
$SITE["contactPage"]    = true;                 # true = Enable this page  |  false = Do not display
$SITE["contactName"]    = "Peter";
$SITE["contactEmail"]   = "wb2oqq@verizon.net";
$SITE["contactEmailTo"] = "wb2oqq@verizon.net";

# CWOP page
$SITE["cwopPage"]       = true;                 # true = Enable this page  |  false = Do not display

# Do we have one or more webcam images to display.
$SITE["webcam"]         = true;                 # true = Yes, we have a webcam we want to show  |  false = Do not display
$SITE["webcamSide"]     = "V";                  # V = In side area  |  false = Do not display
$SITE["webcamPage"]     = true;                 # true = Enable this page  |  false = Do not display

# What will be displayed during night-time
$SITE["webcamNight"]    = false;                # true = Use a "It is night" image  |  false = Use uploaded picture as normal
$SITE["webcamImgNight"] = "./jpgwebcam.jpg";

# Webcam 1
$SITE["webcamName_1"]   = "Northport NY Webcam";
$SITE["webcamImg_1"]    = "http://www.northportnyweather.com/jpgwebcam.jpg";

# Another webcam
$SITE["webcam_2"]       = false;                # true = Yes, we have a second webcam we want to show  |  false = Do not display
$SITE["webcamName_2"]   = "My webcam 2";
$SITE["webcamImg_2"]    = "http://wiri.be/image.jpg";
#---------------------------------------------------------
# Extra weather-programs used for this station
#---------------------------------------------------------

# WXSIM weather-forecasting
$SITE["wxsimPage"]      = false;                # true = Yes, we use the WXSIM paid program to make our weather-forecasts  |  false = Do not display
$SITE["wxsimData"]      = "../";
$SITE["wxsim_file"]     = "latest.csv";         # latest.csv = lates.csv file will be used  |  lastret.txt = lastret.txt file will be used
$SITE["wxsimIconsOwn"]  = false;                # false = Use template standard icons  |  true = Use YrNo icons

# Meteoplug: storage and graphs server
$SITE["meteoplug"]      = false;                # false = We do not use Meteoplug  |  true = We use Meteoplug and display the extra pages

# WD-Live: Paid-for website script/program, uses clientraw files to display extensive customizable flash dashboard
$SITE["wd_live"]        = false;                # false = No WD-live user  |  true = We use WD-Live and display the dashboard

# Meteroware-Live: free website script/program, it display a basic flash dashboard
$SITE["meteoware"]      = false;                # false = No interest in that dashboard  |  true = Yes, display the Meteoware dashboard
#---------------------------------------------------------
# Menu items / forecast pages
#---------------------------------------------------------

# Default forecast on the start-page
$SITE["fctOrg"]         = "yrno";               # yahoo = Yahoo - needs area code = all  |  wu = WeatherUnderground - needs key = all  |  wxsim = WXSIM needs extra program = all  |  yrno = Yrno needs area code = all  |  metno = MetNo = all  |  yowindow = YoWindow gadget = all  |  noaa = NOAA = america  |  ec = Environment Canada = canada  |  hwa = Het Weer Actueel - alleen voor leden = europe

# Multiple selections on forecast pages
$SITE["multi_forecast"] = false;                # true = Enable this facility  |  false = Do not display
$SITE["multi_fct_keys"] = "./_my_texts/us_multi_fct.txt";

# NOAA forecast page
$SITE["noaaPage"]       = true;                 # true = Enable this page  |  false = Do not display
$SITE["noaaIconsOwn"]   = true;                 # false = Use template standard icons  |  true = Use NOAA icons

# Weather Underground Forecast and Almanac
$SITE["wuPage"]         = false;                # true = Yes, we want this extra forecast  |  false = Do not display
$SITE["wuKey"]          = "";
$SITE["wuIconsOwn"]     = false;                # false = Use template standard icons  |  true = Use WU icons
$SITE["wuIconsCache"]   = false;                # false = Use WU icons from uor cache  |  true = Use WU icons directly form their site

# Met.no
$SITE["metnoPage"]      = true;                 # true = Yes, we want this extensive free forecast  |  false = Do not display
$SITE["metnoiconsOwn"]  = false;                # false = Use template standard icons  |  true = Use YrNo icons

# YR.no  - This forecast is required for the "smart-phone / mobile" pages
$SITE["yrnoPage"]       = true;                 # true = Yes, we want this forecast, also for our Mobile pages  |  false = Do not display
$SITE["yrnoID"]         = "United_States/New_York/Islip/";
$SITE["yrnoIconsOwn"]   = false;                # false = Use template standard icons  |  true = Use YrNo icons

# Yahoo
$SITE["yahooPage"]      = true;                 # true = Yes, we want this extra forecast  |  false = Do not display
$SITE["yahooIconsOwn"]  = false;                # false = Use template standard icons  |  true = Use Yahoo icons

# World Weather
$SITE["worldPage"]      = false;                # true = Yes, we want this extra forecast  |  false = Do not display
$SITE["worldAPI"]       = "2";                  # 1 = API version 1, only for users who have an old API-1 key  |  2 = Use API version 2, current version
$SITE["worldKey"]       = "";
$SITE["worldKey2"]      = "";
$SITE["worldIconsOwn"]  = false;                # false = Use template standard icons  |  true = Use Worldweather icons

# Refresh-times
$SITE["autoRefresh"]    = "0";                  # 0 = 999
$SITE["wsAjaxDataTime"] = "10";                 # 10 = 999
$SITE["wsSteelTime"]    = "10";                 # 10 = 999

# Miscellaneous
$SITE["charset"]        = "UTF-8";              # UTF-8 = default UTF-8 character set  |  windows-1252 = windows-1252
$SITE["topfolder"]      = "weather28/";
$SITE["password"]       = "";
#---------------------------------------------------------
# Partners
#---------------------------------------------------------

# Your visitors can find your weather data also    at: Weather Underground
$SITE["wuMember"]       = true;                 # false = We are not uploading to Weather Underground  |  true = We are a member of Weather Underground
$SITE["wuID"]           = "KNYNORTH40";
$SITE["wuStart"]        = "01-01-2014";

# Mesonet
$SITE["mesonetMember"]  = false;                # false = We are not member of a regional Mesonet of weather-Stations  |  true = We are a proud member of a regional Mesonet of weather-Stations
$SITE["mesoID"]         = "AKWN";
$SITE["mesoName"]       = "Alaskan Weather Network";
$SITE["mesoLink"]       = "http://alaskanweather.net/";
#---------------------------------------------------------
# Other organizations one can upload to
#---------------------------------------------------------

# wow.metoffice.gov.uk/
$SITE["wowMember"]      = false;                # false = We are not uploading to wow-metoffice  |  true = We are a member of wow-metoffice
$SITE["wowID"]          = "";

# Awekas
$SITE["awekasMember"]   = true;                 # false = We are not uploading to Awekas  |  true = We are a member of Awekas
$SITE["awekasID"]       = "5690";

# WeatherCloud
$SITE["wcloudMember"]   = false;                # false = We are not uploading to Weather Cloud  |  true = We are a member of Weather Cloud
$SITE["wcloudID"]       = "";

# CWOP
$SITE["cwopMember"]     = true;                 # false = We are not uploading to CWOP  |  true = We are a member of CWOP
$SITE["cwopID"]         = "AT142";

# Weatherlink.com
$SITE["wl_comMember"]   = false;                # false = We are not uploading to WeatherLink.com  |  true = We are uploading ouw weather-data to WeatherLink.com
$SITE["weatherlinkID"]  = "";

# And some more
$SITE["anWeMember"]     = false;                # false = We are not uploading to Anything Weather  |  true = We are a member of Anything Weather
$SITE["anWeID"]         = "";
$SITE["pwsMember"]      = false;                # false = We are not uploading to PWS  |  true = We are a member of PWS
$SITE["pwsID"]          = "";
$SITE["wp24ID"]         = false;                # false = We are not uploading to wp24  |  true = We are uploading to wp24
$SITE["uswg"]           = false;                # false = We are not uploading to uswg  |  true = We are uploading to uswg

# cookie support / visitors are allowed to do customization
$SITE["cookieSupport"]  = true;                 # true = Yes, we warn visitors if there adaptions need a cookie  |  false = Do not use customization / cookies
$SITE["userChangeDebug"]= true;                 # true = Allow user to change this setting  |  false = Do not use allow this one
$SITE["userChangeColors"]= true;               # true = Allow user to change this setting  |  false = Do not use allow this one
$SITE["userChangeMenu"] = false;                # true = Allow user to change this setting  |  false = Do not use allow this one
$SITE["userChangeHeader"]= true;                # true = Allow user to change this setting  |  false = Do not use allow this one
$SITE["userChangeChoice"]= true;                # true = Allow user to change this setting  |  false = Do not use allow this one
$SITE["userChangeLang"] = true;                 # true = Allow user to change this setting  |  false = Do not use allow this one
$SITE["userChangeUOM"]  = true;                 # true = Allow user to change this setting  |  false = Do not use allow this one
$SITE["userChangeForecast"]= true;              # true = Allow user to change this setting  |  false = Do not use allow this one
#---------------------------------------------------------
# Optional components attached to your weatherstation
#---------------------------------------------------------

# UV/ Solar sensors
$SITE["UV"]             = false;                # false = No UV sensor attached  |  true = We have an UV sensor on our station
$SITE["SOLAR"]          = true;                 # false = No solar sensor attached  |  true = We have a Solar sensor on our station

# Other often atttached sensors sensors
$SITE["tempInside"]     = true;                 # false = We will NOT use an inside temperature sensor  |  true = We want to display the inside temperature
$SITE["extraTemp1"]     = false;                # false = No need for an extra temperature sensor  |  true = We have an extra sensor on our station
$SITE["extraTemp2"]     = false;                # false = No need for another extra temperature sensor  |  true = We have a second extra sensor on our station

# Soil / moisture sensors
$SITE["soilUsed"]       = false;                # false = There are no soil sensors attached  |  true = We have soil sensors on our station
$SITE["soilPage"]       = false;                # false = Still we do not want a extra soil mositure page  |  true = Display the soil/moisture page
$SITE["soilCount"]      = "2";                  # 0 = 4
$SITE["soilDepth_1"]    = "10";                 # 1 = 100
$SITE["soilDepth_2"]    = "20";                 # 1 = 100
$SITE["soilDepth_3"]    = "30";                 # 1 = 100
$SITE["soilDepth_4"]    = "40";                 # 1 = 100
$SITE["uomMoist"]       = "cb";
$SITE["leafUsed"]       = false;                # false = There are no leaf sensors attached  |  true = We have leaf sensors on our station
$SITE["leafCount"]      = "2";                  # 0 = 4
#---------------------------------------------------------
# Display some extra information about:
#---------------------------------------------------------

# The type of weather-station
$SITE["DavisVP"]        = true;                 # false = Our station is not a Davis one  |  true = We use a Davis weather-station station
$SITE["stationShow"]    = true;                 # false = We do not show the weatherstation name/picture on our pages  |  true = We want to display the information about the weatherstation
$SITE["stationTxt"]     = "Davis VP2";
$SITE["stationJpg"]     = "img/davis_logo.png";
$SITE["stationLink"]    = "http://www.davisnet.com/weather/products/professional-home-weather-stations.asp";

# The website / provider
$SITE["providerShow"]   = false;                # false = Do not show the name/picture of our privider  |  true = We want to display the information about the provider
$SITE["providerTxt"]    = "iPage";
$SITE["providerJpg"]    = "img/_provider.jpg";
$SITE["providerLink"]   = "http://www.ipage.com";

# The computer (device) used
$SITE["pcShow"]         = false;                # false = Do not show the type and name of our weather-computer  |  true = We want to display the information our weather-computer
$SITE["pcTxt"]          = "My Computer";
$SITE["pcJpg"]          = "img/_computer.png";
$SITE["pcLink"]         = "http://www.computer.xyz";

# The Weather-Program
$SITE["WXsoftwareShow"] = false;                # false = No information about our weather-program is needed  |  true = We want to display the information our weather-program
#---------------------------------------------------------
# units, time and date formats and some other settings
#---------------------------------------------------------

# Some other settings first
$SITE["commaDecimal"]   = false;                # false = Use a decimal point [22.50]  |  true = Use a comma [22,50] as decimal"point"
$SITE["tempSimple"]     = false;                # false = Use multicolored temperatures  |  true = Use blue/red temperatures only
$SITE["textLowerCase"]  = false;                # false = Use all texts as they are  |  true = convert all texts to lowercase
$SITE["nightDayBefore"] = true;                 # false = Dayparts start with Night then morning, afternoon to evening)  |  true = Dayparts start with Morning then Afternoon, Evening to Night

# The units to be used for all weather-values, first one is temperature
$SITE["uomTemp"]        = "&deg;F";             # &deg;C = Celcius  |  &deg;F = Fahrenheit
$SITE["decTemp"]        = "1";                  # 0 = No decimals 14 C  |  1 = One decimal 14.1 C

# For pressure in inches you need one or two decimals
$SITE["uomBaro"]        = " inHg";              #  hPa = hPa  |   mb = milibar  |   inHg = inHg
$SITE["decBaro"]        = "2";                  # 0 = No decimals 1017 hPa  |  1 = One decimal  1017.1 hPa  |  2 = Two decimals 30,23 inHg


$SITE["uomWind"]        = " mph";               #  km/h =  km/h  |   kts =  kts  |   m/s =  m/s  |   mph =  mph
$SITE["decWind"]        = "1";                  # 0 = No decimals 14 km/h  |  1 = One decimal 3.4 m/s


$SITE["uomRain"]        = " in";                #  mm =  mm  |   in =  in
$SITE["decPrecip"]      = "2";                  # 0 = No decimals 4 mm  |  1 = One decimal 4.2 mm  |  2 = Two decimals 2.35 in


$SITE["uomSnow"]        = " in";                #  cm =  cm  |   in =  in
$SITE["decSnow"]        = "0";                  # 0 = No decimals 22 cm  |  1 = One decimal 22.4 cm


$SITE["uomDistance"]    = " mi";                #  km =  kilometer  |   mi =  mile
$SITE["decDistance"]    = "0";                  # 0 = No decimals 15 mi  |  1 = One decimal 14.8 mi


$SITE["uomPerHour"]     = "/hr";                # /hr =  / hour
$SITE["decPerHour"]     = "1";                  # 0 = No decimals  |  1 = One decimal


$SITE["uomHeight"]      = " m";                 #  ft =  feet  |   m =  meter
$SITE["decHeight"]      = "0";                  # 0 = No decimals  |  1 = One decimal

# How to display the date and time information
$SITE["hourDisplay"]    = "12";                 # 12 = 12 hours  |  24 = 24 hours
$SITE["timeFormat"]     = "M j Y g:i a";        # M j Y g:i a = Dec 31 2013 2:03 pm  |  d-m-Y H:i = 31-03-2012 14:03
$SITE["timeOnlyFormat"] = "g:i a";              # g:i a = 2:03 pm  |  H:i = 14:03
$SITE["hourOnlyFormat"] = "ga";                 # ga = 2pm  |  H = 14
$SITE["dateOnlyFormat"] = "M j Y";              # M j Y = Dec 31 2013  |  d-m-Y = 31-03-2012
$SITE["dateMDFormat"]   = "M j";                # M j = Dec 31  |  d-m = 31-03
$SITE["dateLongFormat"] = "l M j Y";            # l M j Y = Friday Jan 22 2015  |  l d F Y = Friday, 5 februari 2013
#---------------------------------------------------------
# All done
#---------------------------------------------------------
#
#---------------------------------------------------------
# COMPATIBILLITY     for WeatherDisplay / consoleWD users
# set to true ONLY if it is ABSOLUTELY  necessary to use testtags.php from Saratoga or Leuven
#---------------------------------------------------------
$SITE["use_testtags"]   = true;  
#
#---------------------------------------------------------
# IMPORTANT     will you be uploading to the default upload folder (uploadXX) where xx is the short code for your weather program
#---------------------------------------------------------
#
$SITE["standard_upload"]= false;
#
#       If you do not want or are not able to upload to the default folder set the correct upload folder here
#     
$SITE["uploadDir"]    = "../";            # example for upload to root
$SITE["clientrawDir"]     = "../";
$SITE["graphImageDir"] = "../";
#
#---------------------------------------------------------
$SITE["tpl_version"]    = "2.80";
#---------------------------------------------------------
# If you add an language add the new language code to this array
#---------------------------------------------------------
#
$SITE["installedLanguages"] = array (
"nl" => "Nederlands",
"en" => "English",
"fr" => "Fran&ccedil;ais",
"de" => "Deutsch",
);

wsLoadSettings.php SettingsFiles should pe password protected - dated: Sep 7 2017 2:19 pm


Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /home/portan24/public_html/weather28/printSite.php on line 134
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
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
<?php  ini_set('display_errors''On');   error_reporting(E_ALL);
if (isset(
$_REQUEST['sce']) && strtolower($_REQUEST['sce']) == 'view' ) {
   
$filenameReal __FILE__;            # display source of script if requested so
   
$download_size filesize($filenameReal);
   
header('Pragma: public');
   
header('Cache-Control: private');
   
header('Cache-Control: no-cache, must-revalidate');
   
header("Content-type: text/plain");
   
header("Accept-Ranges: bytes");
   
header("Content-Length: $download_size");
   
header('Connection: close');
   
readfile($filenameReal);
   exit;
}
$pageName    'wsLoadSettings.php';
$pageVersion    '3.20 2015-10-12';
#
if (!isset($SITE)){echo "<h3>invalid call to script $pageName</h3>";exit;}
$SITE['wsModules'][$pageName] = 'version: ' $pageVersion;
$pageFile basename(__FILE__);            // check to see this is the real script
if ($pageFile <> $pageName) { $SITE['wsModules'][$pageFile]    = 'this file loaded instead of '.$pageName; }
if (!isset(
$pathString)) {$pathString='';}
if (!
function_exists ('ws_message') ){
        function 
ws_message ($message,$always=false,&$string=false) {
                global 
$wsDebug$SITE;
                
$echo    $always;
                if ( 
$echo == false && isset ($wsDebug) && $wsDebug == true )             {$echo true;}
                if ( 
$echo == false && isset ($SIE['wsDebug']) && $SIE['wsDebug'] == true )     {$echo true;}
                if ( 
$echo == true  && $string === false) {echo $message.PHP_EOL;}
                if ( 
$echo == true  && $string <> false) {$string .= $message.PHP_EOL;}
        }
}
ws_message ('<!-- module '.$pageFile.' ==== '.$SITE['wsModules'][$pageFile].' -->',true,$pathString);
#---------------------------------------------------------------------------
# '3.20 2015-10-12 Release 2.8b version
#---------------------------------------------------------------------------
$ws_arr_supp_wx         = array ('CU''CW''DW''MB''MH''VW','WC''WD''WL''WS''WV''MP');
# Set all defaults
$SITE['noaaPage']       = $SITE['ecPage']       = $SITE['cwopPage']     = 'no';  // set to default / no values
$SITE['canada']         = $SITE['europe']       = $SITE['america']      = $SITE['other'] = false;
$SITE['belgium']        = $SITE['netherlands']  = $SITE['warnArea']     = false// set to default / no values
#
$SITE['wdPage'] =       $SITE['cwPage']         = $SITE['wdlPage']      = $SITE['wlPage'] = 'no';
$SITE['wcPage'] =       $SITE['cuPage']         = $SITE['mhPage']       = $SITE['mbPage'] = 'no';
$SITE['MeteoplugPage'] =$SITE['cltrPage']       = $SITE['trendPage']    = $SITE['mwPage'] = 'no';
$SITE['graphsPage'] =   $SITE['wsYTags']  = 'no';

$SITE['cookieName']    = 'weatherv4';

$SITE['colorStyles']    = array ('weather adapted''green','blue','pastel','red','orange','none','ws_clouds','ws_cloudsn','ws_mist','ws_moon','ws_pclouds','ws_rain','ws_snow','ws_storm','ws_sun','ws_thunder');
if (!
defined('ENT_HTML5')) {define ('ENT_HTML5' , (16|32) );}
$SITE['htmlVersion']    = ENT_HTML5;     // html version of this template
$SITE['commaDecimal']    = false;     // most europeans use a comma for a decimal point. others a point
$SITE['curlFollow']    = 'false';    // for sites using safe mode
#---------------------------------------------------------------------------
$SITE['imgDir']        = 'img/';        // directory under topfolder used for general images 
$SITE['cacheDir']    = 'cache/';        // directory to cache files 
$SITE['metarDir']    = 'metar/';        // directory for metar scripts 
$SITE['javascriptsDir']    = 'javaScripts/';    // all general javascripts
$SITE['forecastsDir']    = 'forecasts/';        //
$SITE['iconsDir']    = 'wsIcons/';
$SITE['defaultIconsDir']= $SITE['iconsDir'].'default_icons/';
$SITE['defaultIconsSml']= $SITE['iconsDir'].'default_icons_small/';
$SITE['windIcons']    = $SITE['iconsDir'].'windIcons/';
$SITE['windIconsSmall']    = $SITE['iconsDir'].'windIconsSmall/';
$SITE['yrnoFcst']       = 'wsyrnofct/startMobi.php'
#---------------------------------------------------------------------------
# load user settings
#---------------------------------------------------------------------------
ws_message '<!-- module wsLoadSettings.php ('.__LINE__.'): loading wsUserSettings.php  -->',true,$pathString);
include 
'_my_texts/wsUserSettings.php';
#
if (isset($_REQUEST['debug']) || $SITE['wsDebug'] == true) {
        
$SITE['wsDebug']        = true;
    
$wsDebug            true;
    
ini_set('display_errors''On');   error_reporting(E_ALL);    
    
ws_message '<!-- module wsLoadSettings.php  ('.__LINE__.'): debug is switched on by user request - error reporting ALL -->',true,$pathString);
    
$SITE['colorNumber']    = '3';

else {  
$SITE['wsDebug']        = false;
        
ini_set('display_errors'NULL);  error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); 
        
$wsDebug false;
}
if (
$SITE['region'] <> 'europe') { //  only works  in europe
    
$SITE['ewnID']     = false$SITE['ewnMember'] = false;
    
$SITE['hwaID']  = false$SITE['hwaMember'] = false;
}      
//  only works  in europe
#
/*  as of 2.8 no dynamic switching of wp supported
if (isset($_REQUEST['wp']))  { 
        $wp     = substr(strtoupper($_REQUEST['wp']).$SITE['WXsoftware'],0,2);
        if (in_array ($wp, $ws_arr_supp_wx )) {
                $SITE['switch_wp']      = $SITE['WXsoftware']   = $wp;
                ws_message ( '<!-- module wsLoadSettings.php  ('.__LINE__.'): user switches the weatherprogram to '.$SITE['WXsoftware'].' -->',true,$pathString);
                $extraP                 ='&amp;wp='.$SITE['WXsoftware'];
        }       
}
*/
if (!isset ($SITE['WXsoftware']) )      {
        
$SITE['WXsoftware']    = 'CU';         
        
ws_print_warning'WARNING - Please set your weather_program. Defaulted to '.$SITE['WXsoftware']);
}
if (
$SITE['sideDisplay'] == false && $SITE['menuPlace'] == 'V') {$SITE['sideDisplay'] = true; };    

if (!isset ($SITE['curCondFrom']))      {
        
$SITE['curCondFrom']   = 'metar';      
        
ws_print_warning'WARNING - Please set your current conddition source. Defaulted to '.$SITE['curCondFrom']);
}
if (
$SITE['curCondFrom'] == 'wd' && ($SITE['WXsoftware'] <> 'WD' && $SITE['WXsoftware'] <> 'CW')) {$SITE['curCondFrom'] = 'yahoo';}
#
if ($SITE['skipTop']) {$skiptopText '#data-area';} else {$skiptopText '';}
#
#---------------------------------------------------------------------------
#      W A R N I N G S
#---------------------------------------------------------------------------
$SITE['warningsEuro']    = $SITE['warningsNOAA']    = $SITE['warningsNWS']    = $SITE['warningsec']    = false;  
$SITE['warnImg']        = false;  // set all default no
#---------------------------------------------------------------------------
#
if ($SITE['region'] ==    'america') {            # U S A
        
$SITE['america']        = true;
    if (
$SITE['useCurly'] == true) {
        
$SITE['warningScript']    = './usa/nws-alerts/wsnws-alerts.php';
        
$SITE['warningsNWS']    = true;
    } else {
        
$SITE['warningScript']    = './usa/noaa_warn/noaaWarning.php';
        
$SITE['warningsNOAA']    =  $SITE['warnings'] ;
        
$SITE['warnImg']    = './wsIcons/NOAA_Icons_small/';
    }
} elseif (
$SITE['region'] == 'canada') {         #   C A N A D A
         
$SITE['canada']                = true;
     
$SITE['warningScript']            = './canada/ec_warning.php';
     
$SITE['warningsec']            = $SITE['warnings'];
} elseif (
$SITE['region'] ==    'europe') {     #  E U R O P E
        
$SITE['europe']         = true;
    
$SITE['warningScript']    = './europe/wrnWarningv3.php';        // Euro
    
$SITE['warningsEuro']    = $SITE['warnPage'];
    
$SITE['warnImg']    = './img/wrnImages/warn_';
} else {        
// region = other
        
$SITE['other']          = true;
        
$SITE['warningsMenu']     = false;
        
$SITE['warnings']     = false;
        
$SITE['warnPage']       = false;
        
$SITE['warningScript']    = './other/warning.php';   
}
#                                    // for more detailed info when there is a warning displayed
$SITE['noaawarningURL']    = 'http://alerts.weather.gov/cap/wwaatmget.php?x='.$SITE['warnArea'].'&y=1';
$SITE['EUwarningURL']    = 'http://www.meteoalarm.eu/index3.php?area='.$SITE['warnArea'].'&day=0&lang=ne_NL';
#
if  ($SITE['warnings'] <> true) {
        
$SITE['warnPage']       = false;
        
$SITE['warningsEuro']    = $SITE['warningsNOAA']    = $SITE['warningsNWS']    = $SITE['warningsec']    = false;  
}
#---------------------------------------------------------------------------
# mobile site
# detection which mobile device is used is done in index.php by loading mobi/ws_check_mobi.php
#---------------------------------------------------------------------------
$SITE['mobileDir']    = 'mobi/';
$SITE['mobileSite']    = $SITE['mobileDir'].'mobi.php';      // for switching to mobile site; set to "" when no mobile support is needed
#---------------------------------------------------------------------------
# Ajax
#---------------------------------------------------------------------------
$SITE['imgAjaxDir']    = 'ajaxImages/';        // directory for ajaxImages with trailing slash
$SITE['wsAjaxScript']   = $SITE['javascriptsDir'].'ajax.js';    // for AJAX enabled display
$SITE['wsAjaxDataLoad'] = 'wsAjaxDataLoad_v3.php';      // load fresh data for ajax page at users site
$SITE['ajaxGizmojs']    = $SITE['javascriptsDir'].'ajaxgizmo.js';     // rotate gizmo info
$SITE['ajaxGizmo']     = 'wsAjaxGizmo.php';         // default Giozmo
#---------------------------------------------------------------------------
# Which scripts to use to process the supplied data
#---------------------------------------------------------------------------
$SITE['functions']    = 'wsFunctions.php';          // weather functions, override
$SITE['langFunc']    = 'wsLangFunctions.php';    // general functions for languages
$SITE['menuXml']     = 'wsMenuData.xml';        // menu processes 'incMenuDataWilsele.xml';
$SITE['menuLoad']     = 'wsMenuLoad.php';
$SITE['spidersTxt']    = 'spiders.txt';
$SITE['uvScript']    = 'uvforecastv3.php';            // worldwide forecast script for UV Index
$SITE['sideInc']    = 'wsSideColom.php';
$SITE['bottomInc']    = 'wsBottom.php';
$SITE['footer']      = 'wsFooter.php';
#---------------------------------------------------------------------------
#  script names for conversion of weatherprogram data to website/ajax data
#---------------------------------------------------------------------------
$SITE['getData']    = 'wsDataGet.php';        // data from ws tags to intermidiate array
$SITE['loadData']    = 'wsDataLoad.php';        // load data into variables (mostly ajax)
#---------------------------------------------------------------------------
# Website CSS files
#---------------------------------------------------------------------------
$SITE['CSSscreen']    = 'styleMain30.css';        // general stylesheet all pages
$SITE['CSSprint']    = 'stylePrint20.css';        // general stylesheet all pages for printing
$SITE['CSStable']    = 'styleTable20.css';        // general stylesheet all tables
$SITE['CSSmenuHor']    = 'styleMenuDrop20.css';    // stylesheet horizontal drop down menus
$SITE['CSSmenuVer']    = 'styleMenuVert20x.css';    // stylesheet vertical fly-out menus
$SITE['CSSmood']    = 'styleMood20.css';        // stylesheet for adapting colors based on current  weathercondition

if ($SITE['noChoice'] = '10') {$SITE['noChoice'] = 'wsStartPage';}
$SITE['noChoiceBackup']    = $SITE['noChoice'];
$SITE['menuPlaceBackup']= $SITE['menuPlace'];
$SITE['colorBackup']      = $SITE['colorNumber'];
$SITE['headerBackup']      = $SITE['header'];
$SITE['langBackup']    = $SITE['lang'];

if (isset(
$_REQUEST['ipad']) )    {       // modify standard settings if page formatting ipad is requested
        
$SITE['ipad']           = true;
        
$SITE['sideDisplay']    = false;
        
$SITE['bottomDisplay']    = false;                                            
        
$SITE['stripAll']    = true;    
        
$SITE['stripMenu']    = true;    
        
$SITE['bannerTop']    = false;
        
$SITE['bannerBottom']    = false;
        
$SITE['warnings']       = false;
        
$SITE['warningTxt']     = false;
} else {
$SITE['ipad']           = false;}
#
$SITE['supported_regions'] = array ('america','canada','europe','other');
if (!
in_array($SITE['region'], $SITE['supported_regions']) ) {$SITE['region'] = 'europe';}
#
$SITE['supportedUnits'] = array ();
$SITE['supportedUnits'] ['temp'] = array('&deg;C''&deg;F');
$SITE['supportedUnits'] ['baro'] = array(' hPa',   ' inHg',' mb' );
$SITE['supportedUnits'] ['wind'] = array(' km/h',  ' mph'' kts'' m/s',    );
$SITE['supportedUnits'] ['rain'] = array(' mm',       ' in' );
$SITE['supportedUnits'] ['snow'] = array(' cm',       ' in' );
#
$region    $SITE['region'];
#
if (!in_array($SITE['uomTemp'], $SITE['supportedUnits'] ['temp']) ){
        if (
$region == 'europe'
                {
$SITE['uomTemp'] = $SITE['supportedUnits']['temp'][0];
        } else  {
$SITE['uomTemp'] = $SITE['supportedUnits']['temp'][1];}
}
if (!
in_array($SITE['uomBaro'], $SITE['supportedUnits'] ['baro']) ){
        if (
$region == 'europe'
                {
$SITE['uomBaro'] = $SITE['supportedUnits']['baro'][0];
        } else  {
$SITE['uomBaro'] = $SITE['supportedUnits']['baro'][1];}
}
if (!
in_array($SITE['uomWind'], $SITE['supportedUnits'] ['wind']) ){
        if (
$region == 'europe'
                {
$SITE['uomWind'] = $SITE['supportedUnits']['wind'][0];
        } else  {
$SITE['uomWind'] = $SITE['supportedUnits']['wind'][1];}
}
if (!
in_array($SITE['uomRain'], $SITE['supportedUnits'] ['rain']) ){
        if (
$region == 'europe'
                {
$SITE['uomRain'] = $SITE['supportedUnits']['rain'][0];
        } else  {
$SITE['uomRain'] = $SITE['supportedUnits']['rain'][1];}
}
if (!
in_array($SITE['uomSnow'], $SITE['supportedUnits'] ['snow']) ){
        if (
$region == 'europe'
                {
$SITE['uomSnow'] = $SITE['supportedUnits']['snow'][0];
        } else  {
$SITE['uomSnow'] = $SITE['supportedUnits']['snow'][1];}
}
#
# ------------------------   check if we are allowed to set cookie and process all cookies
#
$uomBackup = array ();
$uomBackup['uomTemp']   = $SITE['uomTemp'];
$uomBackup['uomBaro']     = $SITE['uomBaro'];
$uomBackup['uomWind']     = $SITE['uomWind'];
$uomBackup['uomRain']    = $SITE['uomRain'];
$uomBackup['uomSnow']    = $SITE['uomSnow'];
$uomBackup['uomDistance']= $SITE['uomDistance'];
$uomBackup['uomPerHour']= $SITE['uomPerHour'];
$uomBackup['uomHeight'] = $SITE['uomHeight'];

if (!isset (
$SITE['fctOrg'] ) ) { $SITE['fctOrg'] = 'yahoo';}
$SITE['fctOrgBackup']    = $SITE['fctOrg'];

#
if ($SITE['cookieSupport'] == true) {
    
ws_message '<!-- module wsLoadSettings.php ('.__LINE__.'): loading wsCookie.php   -->',false,$pathString);
    include 
'wsCookie.php' ;
}
$uomTemp    $SITE['uomTemp'];
$uomBaro    $SITE['uomBaro'];
$uomRain    $SITE['uomRain'];
$uomSnow    $SITE['uomSnow'];
$uomDistance    $SITE['uomDistance'];
$uomWind    $SITE['uomWind'];
$uomPerHour    $SITE['uomPerHour'];
$uomHeight    $SITE['uomHeight'];

# set the Timezone abbreviation automatically based on $SITE['tz'];
if (!function_exists('date_default_timezone_set')) {
     
putenv("TZ=" $SITE['tz']);
} else {
     
date_default_timezone_set($SITE['tz']);
}
$SITE['tzName']    = date("T",time());
#
#---------------------------------------------------------------------------
# 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'];}
#---------------------------------------------------------------------------
#
if ($SITE['fctOrg'] == 'yahoo') {$SITE['yahooPage'] = true;}
if (
$SITE['fctOrg'] == 'metno') {$SITE['metnoPage'] = true;}
if (
$SITE['fctOrg'] == 'wxsim') {$SITE['wxsimPage'] = true;}
if (
$SITE['fctOrg'] == 'hwa')   {$SITE['hwaPage']   = true;}
if (
$SITE['fctOrg'] == 'noaa')  {$SITE['noaaPage']  = true;}
if (
$SITE['fctOrg'] == 'ec')    {$SITE['ecPage']    = true;}
#
if ($SITE['region'] == 'america')       {$SITE['hwaPage'] = $SITE['ecPage']  = false; }
if (
$SITE['region'] == 'canada')        {$SITE['hwaPage'] = $SITE['noaaPage']= false; }
if (
$SITE['region'] == 'other')         {$SITE['hwaPage'] = $SITE['noaaPage']= $SITE['ecPage']  = false; }
if (
$SITE['region'] == 'europe')        {$SITE['noaaPage']= $SITE['ecPage']  = false; }
if (
$SITE['belgium'] == false && $SITE['netherlands'] == false) {$SITE['hwaPage'] = false;}
#
$string1  '';
if(isset(
$_SERVER['HTTP_HOST']))   {$string1     .= $_SERVER['HTTP_HOST'];}
if(isset(
$_SERVER['PHP_SELF']))    {$string1     .= $_SERVER['PHP_SELF'];}
$SITE['siteUrl']= 'http://'.str_replace ('index.php','',$string1);
#
if (isset ($index) && $index) {check_topfolder ($wsDebug);}
#
if (!isset ($SITE['uploadDir']) )       {$SITE['uploadDir']    =  'upload'.$SITE['WXsoftware'].'/';}
if (!isset (
$SITE['clientrawDir']) )    {$SITE['clientrawDir']    =  'upload'.$SITE['WXsoftware'].'/';}
if (!isset (
$SITE['graphImageDir']) )   {$SITE['graphImageDir']    =  'upload'.$SITE['WXsoftware'].'/';}

$SITE['MeteoplugPage']     = $SITE['wdlPage'] = $SITE['cltrPage'] = 'no';
$SITE['generatePage']   = 'no';
if (
$SITE['meteoplug']) {$SITE['MeteoplugPage'] = 'yes';}
if (
$SITE['wd_live'])   {$SITE['wdlPage']       = $SITE['cltrPage'] = 'yes';}
if (
$SITE['meteoware']) {$SITE['mwPage']        = 'yes';}
#
if (!isset ($SITE['wuID']) || !$SITE['wuID'] || $SITE['wuID'] == '') { $SITE['wuHistPage'] = 'no'; } else {$SITE['wuHistPage'] = 'yes';}
#
$SITE['meteowareFile']  = './mwlive/mwliveRT.php?wp='.$SITE['WXsoftware'];
$SITE['yrnoXmlName']    = 'yowindowRT.php?wp='.$SITE['WXsoftware'];
$SITE['alltime_values'] = true;                // weatherprogram supplies all-time values for temp and so on
#---------------------------------------------------------------------------
$save_to_cache          true;

$SITE['wp_scripts']     = $SITE['uploadDir'];

switch (
$SITE['WXsoftware']) {
  
    case 
'MH':  #               required settings for     M E T E O H U B   
#
    
$SITE['generatePage']    = 'yes';
    
$SITE['trendPage']     = 'yes';     
    
$SITE['graphsPage']     = 'yes';
#
    
$SITE['WXsoftwareURL']  = 'http://wiki.meteohub.de/Main_Page';
    
$SITE['WXsoftwareLongName']= 'Meteohub';
    
$SITE['WXsoftwareIcon'] = 'img/meteohub.jpg';
    
    
$SITE['realtime']    = 'cltrw';
        
$SITE['realtime_file']    = $SITE['clientrawDir'].'clientraw.txt';
    
$SITE['wp_scripts']     = 'scriptsMH/';
    
$SITE['wsTags']     = $SITE['uploadDir'].'tagsMH.txt';    
    
$SITE['ydayTags']      = $SITE['uploadDir'].'tagsYdayMH.txt';
    
    
$SITE['process']        = $SITE['wp_scripts'].'tagsMH.php'
    
$SITE['wsTagsSrc']     = $SITE['wp_scripts'].'tags.mh.html';    
    
$SITE['wsYTagsSrc']      = $SITE['wp_scripts'].'tagsyday.mh.html';    
    break;
#---------------------------------------------------------------------------
case 'MB':      #               required settings for   M E T E O B R I D G E   
#
    
$SITE['mbPage']     = 'yes';
    
$SITE['trendPage']     = 'yes';
    
$SITE['graphsPage']     = 'yes';
    
$SITE['cltrPage']       = $SITE['wdlPage']      = 'no';
    
$SITE['wd_live']        = false;
#
    
$SITE['WXsoftwareURL']  = 'http://www.meteobridge.com/wiki/index.php/Main_Page';
    
$SITE['WXsoftwareLongName']= 'Meteobridge';
    
$SITE['WXsoftwareIcon'] = 'img/meteobridge.jpg';

    
$SITE['realtime']    = 'http';
        
$SITE['realtime_file']    = $SITE['clientrawDir'].'realtime.txt';
    
$SITE['wp_scripts']     = 'scriptsMB/';
    
$SITE['wsTags']     = $SITE['uploadDir'].'tagsMB.txt';
    
$SITE['process']        = $SITE['wp_scripts'].'tagsMB.php'
    
$SITE['wsTagsSrc']     = $SITE['wp_scripts'].'tags.mb.txt';            
        break;

#---------------------------------------------------------------------------
case 'MP':      #               required settings for  Meteoplug
#
#        $SITE['DavisVP']      = false;      // false as Meteoplug does not support Davis forecast text in xml
#
    
$SITE['generatePage']    = 'yes';
    
$SITE['MeteoplugPage']     = $SITE['meteoplug']     = true;
    
$SITE['wdlPage']     = $SITE['cltrPage']     = 'no';
    
$SITE['wd_live']        = false;
    
$SITE['alltime_values'] = true;
#
    
$SITE['WXsoftwareURL']  = 'http://wiki.meteoplug.com/Main_Page';
    
$SITE['WXsoftwareLongName'] = 'Meteoplug';
    
$SITE['WXsoftwareIcon'] = 'img/meteoplug.jpg';
#
        
$SITE['realtime']    = 'none';
    
$SITE['wp_scripts']     = 'scriptsMP/';       
    
$SITE['wsTags']     = $SITE['uploadDir'].'tagsMP.txt'
    
$SITE['moonSet']      = 'inc/astronomy.php';     // to calculate moon set & rise values
        
$SITE['cacheMP']        = 300;                  // cache time max allowed in seconds
    
$SITE['process']        = $SITE['wp_scripts'].'tagsMP.php'
        
$SITE['wsTagsSrc']     = $SITE['wp_scripts'].'tags.mp.txt';
        
$save_to_cache          false;
        
$SITE['meteoplugID']      = '';
        
 
#       echo 'halt'; exit;
        
break;

#---------------------------------------------------------------------------
case 'WD':      #               required settings for   W E A T H E R   D I S P L A Y  
#
    
$SITE['wdPage']     = 'yes';
    
$SITE['trendPage']     = 'yes';
    
$SITE['graphsPage']     = 'yes';
    
$SITE['MeteoplugPage']     = 'no';
#
    
$SITE['WXsoftwareURL']  = 'http://www.weather-display.com/';
    
$SITE['WXsoftwareLongName'] = 'Weather Display';
    
$SITE['WXsoftwareIcon'] = 'img/wd.jpg';
#
    
$SITE['realtime']    = 'cltrw';
    
$SITE['realtime_file']    = $SITE['clientrawDir'].'clientraw.txt';
    
$SITE['wp_scripts']     = 'scriptsWD/';
    if (isset (
$SITE['use_testtags'])  && $SITE['use_testtags']) {
            
$SITE['wsTags']     = $SITE['uploadDir'].'testtags.php'
             
$SITE['process']        = 'ws_testtags.php';
              
$SITE['wsTagsSrc']     = $SITE['wp_scripts'].'testtags.txt';
      } else {
             
$SITE['wsTags']     = $SITE['uploadDir'].'tagsWD.txt'
             
$SITE['process']        = $SITE['wp_scripts'].'tagsWD.php';
              
$SITE['wsTagsSrc']     = $SITE['wp_scripts'].'tags.wd.txt';     
      }
        break;
#---------------------------------------------------------------------------
case 'CW':      #               required settings for   C O N S O L E  WD  (= on raspberryPI)
#
    
$SITE['cwPage']     = 'yes';
    
$SITE['trendPage']     = 'yes';
    
$SITE['wxsimPage']    = 'no';
    
$SITE['alltime_values'] = false;
    
$SITE['MeteoplugPage']     = 'no';
#
    
$SITE['WXsoftwareURL']  = 'http://www.weather-display.com/';
    
$SITE['WXsoftwareLongName'] = 'consoleWD';    
    
$SITE['WXsoftwareIcon'] = 'img/consolewd.png';
#
    
$SITE['realtime']    = 'cltrw';
    
$SITE['realtime_file']    = $SITE['clientrawDir'].'clientraw.txt';
    
$SITE['wp_scripts']     = 'scriptsCW/';
    if (isset (
$SITE['use_testtags'])  && $SITE['use_testtags']) {
            
$SITE['wsTags']     = $SITE['uploadDir'].'testtags.php'
             
$SITE['process']        = 'ws_testtags.php';
              
$SITE['wsTagsSrc']     = $SITE['wp_scripts'].'wxlocal-testtags.html';
      } else {
             
$SITE['wsTags']     = $SITE['uploadDir'].'tagsCW.txt'
             
$SITE['process']        = $SITE['wp_scripts'].'tagsCW.php';
              
$SITE['wsTagsSrc']     = $SITE['wp_scripts'].'wxlocal.html';     
      }
        break;
#---------------------------------------------------------------------------
case 'CU':      #               required settings for   C U M U L U S
#
    
$SITE['cuPage']     = 'yes';
    
$SITE['trendPage']     = 'yes';
    
$SITE['graphsPage']     = 'yes';
    
$SITE['MeteoplugPage']     = $SITE['wdlPage'] = $SITE['cltrPage'] = 'no';
    
$SITE['wd_live']        = $SITE['meteoplug']= false;
#
    
$SITE['WXsoftwareURL']  = 'http://sandaysoft.com/products/cumulus';    
    
$SITE['WXsoftwareLongName'] = 'Cumulus';
    
$SITE['WXsoftwareIcon'] = 'img/cumulus.gif';
#
    
$SITE['realtime']    = 'json';
    
$SITE['realtime_file']    = $SITE['clientrawDir'].'realtimeTags.txt';

    
$SITE['wsTags']     = $SITE['uploadDir'].'tagsCU.txt';     
    
$SITE['wp_scripts']     = 'scriptsCU/';       
    
$SITE['process']        = $SITE['wp_scripts'].'tagsCU.php';
    
$SITE['wsTagsSrc']     = $SITE['wp_scripts'].'tags.cu.txt';
        break;
#---------------------------------------------------------------------------
case 'WL':      #               required settings for   W E A T H E R L I N K
#
    
$SITE['wlPage']     = 'yes';            
    
$SITE['graphsPage']     = 'yes';
    
$SITE['alltime_values'] = false;
    
$SITE['MeteoplugPage']     = $SITE['wdlPage'] = $SITE['cltrPage'] = 'no';
    
$SITE['wd_live']        = $SITE['meteoplug']= false;
#
    
$SITE['WXsoftwareURL']  = 'http://www.davisnet.com/index.asp';    
    
$SITE['WXsoftwareLongName'] = 'WeatherLink';
    
$SITE['WXsoftwareIcon'] = 'img/weatherlink.png';
#
    
$SITE['realtime']    = 'weatherlink';
    
$SITE['realtime_file']    = $SITE['clientrawDir'].'realtimev3.txt';
    
$SITE['wp_scripts']     = 'scriptsWL/';
    
$SITE['wsTags']     = $SITE['uploadDir'].'tags.wl.txt'
    
$SITE['ydayTags']      = $SITE['uploadDir'].'tagsyday.wl.txt';
    
$SITE['moonSet']      = 'inc/astronomy.php';     // to calculate moon set & rise values
    
    
$SITE['process']        = $SITE['wp_scripts'].'tagsWL.php';  
    
$SITE['wsTagsSrc']     = $SITE['wp_scripts'].'tags.wl.htx';    
    
$SITE['wsYTagsSrc']      = $SITE['wp_scripts'].'tagsyday.wl.htx';    

        if (!
ws_date_format()) {ws_print_warning'WARNING - Please set the date format correct in your settings');} 
        break;
#---------------------------------------------------------------------------
case 'WC':      #               required settings for   W E A T H E R   C A T  (for Mac)
#
    
$SITE['wcPage']     = 'yes';            
    
$SITE['graphsPage']     = 'yes';
    
$SITE['MeteoplugPage']     = $SITE['wdlPage'] = $SITE['cltrPage'] = 'no';
    
$SITE['wd_live']        = $SITE['meteoplug']= false;
#
    
$SITE['WXsoftwareURL']  = 'http://trixology.com/weathercat/';    
    
$SITE['WXsoftwareLongName'] = 'WeatherCat';
    
$SITE['WXsoftwareIcon'] = 'img/weathercat.png';
#
    
$SITE['realtime']    = 'json';
    
$SITE['realtime_file']    = $SITE['clientrawDir'].'realtime.wc.txt';
    
$SITE['wp_scripts']     = 'scriptsWC/';
    
$SITE['wsTags']     = $SITE['uploadDir'].'tags.wc.txt'
    
$SITE['moonSet']      = 'inc/astronomy.php';     // to calculate moon set & rise values
    
$SITE['process']        = $SITE['wp_scripts'].'tagsWC.php';
    
$SITE['wsTagsSrc']     = $SITE['wp_scripts'].'tags.wc.txt';        
        break;
#---------------------------------------------------------------------------
case 'DW':      #               required settings for   WeatherLink.com
#---------------------------------------------------------------------------
#
        
$SITE['DavisVP']      = false;      // false as wl.com does not support Davis forecast text in xml
#
    
$SITE['MeteoplugPage']     = $SITE['wdlPage'] = $SITE['cltrPage'] = 'no';
    
$SITE['wd_live']        = $SITE['meteoplug']= false;
    
$SITE['alltime_values'] = false;
#
    
$SITE['WXsoftwareURL']  = 'http://www.weatherlink.com/user/'.$SITE['wlink_key'].'/index.php';    
    
$SITE['WXsoftwareLongName'] = 'Davis Weatherlink.Com';
    
$SITE['WXsoftwareIcon'] = 'img/wl_top.png';
#
        
$SITE['realtime']    = 'none';
    
$SITE['wp_scripts']     = 'scriptsDW/';       
    
$SITE['wsTags']     = $SITE['wp_scripts'].'tagsWLCOM.php'
    
$SITE['ydayTags']      = $SITE['uploadDir'].'tagsydayWLCOM.txt';
    
$SITE['moonSet']      = 'inc/astronomy.php';     // to calculate moon set & rise values
        
$SITE['cacheDW']        = 140;                  // cache time max allowed in seconds
    
$SITE['process']        = $SITE['wp_scripts'].'tagsWLCOM.php'
        
$SITE['wsTagsSrc']     = '';
        
$SITE['wsYTagsSrc']      = $SITE['wp_scripts'].'tagsyday.cron.txt';    
        
$save_to_cache          false;
        
$SITE['weatherlinkID']  = $SITE['wlink_key'];
        break;
#---------------------------------------------------------------------------
case 'WS':      #               required settings for   WSWIN / 
#
        
$SITE['trendPage']     = 'yes';        // trendpage 
    
$SITE['MeteoplugPage']     = $SITE['cltrPage'] = 'no';
    
$SITE['wd_live']        = $SITE['meteoplug']= false;
    
$SITE['alltime_values'] = false;
    
$SITE['WXsoftwareURL']  = 'http://www.pc-wetterstation.de/en1index.html';    
    
$SITE['WXsoftwareLongName'] = 'WSWIN';
    
$SITE['WXsoftwareIcon'] = 'img/wswin.gif';

        
$SITE['realtime']    = 'cltrw';
        
$SITE['realtime_file']    = $SITE['clientrawDir'].'clientraw.txt';

    
$SITE['wp_scripts']     = 'scriptsWS/';    
    
$SITE['wsTags']     = $SITE['uploadDir'].'tagsws.txt'
    
$SITE['ydayTags']      = $SITE['uploadDir'].'tagsydayWS.txt';

        
$SITE['process']        = $SITE['wp_scripts'].'tagsWS.php';
        
$SITE['wsTagsSrc']     = $SITE['wp_scripts'].'tags.ws.txt';
        
$SITE['wsYTagsSrc']      = $SITE['wp_scripts'].'tagsyday.cron.txt';    

        break;
#---------------------------------------------------------------------------
case 'WV':      #               required settings for   WVIEW / 
#
    
$SITE['WXsoftwareURL']  = 'http://www.wviewweather.com/';    
    
$SITE['WXsoftwareLongName'] = 'WVIEW';
    
$SITE['WXsoftwareIcon'] = 'img/wview.png';
    
$SITE['alltime_values'] = false;
    
$SITE['MeteoplugPage']     = $SITE['wdlPage'] = $SITE['cltrPage'] = 'no';
    
$SITE['wd_live']        = $SITE['meteoplug']= false;
        
$SITE['realtime']    = 'none';         
    
$SITE['wsTags']     = $SITE['uploadDir'].'tagsWV.htm'
    
#       $SITE['wview_day_txt']  = $SITE['uploadDir'].'tags.htm';
#    $SITE['wsCronTags']      = $SITE['uploadDir'].'yesterdayTagsWVIEW.php';
    
$SITE['ydayTags']      = $SITE['uploadDir'].'tagsydayWV.txt';
    
$SITE['moonSet']      = 'inc/astronomy.php';     // to calculate moon set & rise values
    
$SITE['wp_scripts']     = 'scriptsWV/';
        
$SITE['process']        = $SITE['wp_scripts'].'tagsWV.php'
        
$SITE['wsTagsSrc']     = $SITE['wp_scripts'].'tagsWV.htx';
        
$SITE['wsYTagsSrc']      = $SITE['wp_scripts'].'tagsyday.cron.txt';        
#
        
if (!ws_date_format()) {ws_print_warning'WARNING - Please set the date format correct in your settings');} 
        
$SITE['soilUsed']       = false;      
       
        break;
#---------------------------------------------------------------------------
case 'VW':      #               required settings for   VWS / 
#
    
$SITE['alltime_values'] = false;
    
$SITE['MeteoplugPage']     = $SITE['wdlPage'] = $SITE['cltrPage'] = 'no';
    
$SITE['wd_live']        = $SITE['meteoplug']= false;
    
$SITE['WXsoftwareURL']  = 'http://www.ambientweather.com/virtualstation.html';    
    
$SITE['WXsoftwareLongName'] = 'VWS';
    
$SITE['WXsoftwareIcon'] = 'img/vws.gif';

        if (!
ws_date_format()) {ws_print_warning'WARNING - Please set the date format correct in your settings');} 
#
    
$SITE['wsTags']     = $SITE['uploadDir'].'tagsVW.txt';        // ##### location and name of the uploaded tags file 
        
$SITE['vws_day_txt']    = $SITE['wsTags'];

        
$SITE['wp_scripts']     = 'scriptsVW/';
        
$SITE['process']        = $SITE['wp_scripts'].'tagsVWS.php';
        
$SITE['wsTagsSrc']     = $SITE['wp_scripts'].'tags.vws.htx';

# ---- VWS realtime ---------------------------------------------------------              
        
$SITE['realtime']    = 'wflash';             // type of realtime file supported
        
$SITE['wflash_folder']  = $SITE['clientrawDir'];   // location of wflash files => if we started to use wflash
        
$SITE['realtime_file']    = $SITE['wflash_folder'].'wflash.txt';  // default names of realtime files
        
$SITE['realtime_file2'] = $SITE['wflash_folder'].'wflash2.txt';       
#    
        
$SITE['soilUsed']       = false
        
$SITE['clientrawDir']     = false
        
$SITE['MeteoplugPage']     = $SITE['wdlPage'] = $SITE['cltrPage'] = 'no'
        
$SITE['trendPage']     = 'no';
        
$SITE['wd_live']        = $SITE['meteoplug']= false;

        break;
#---------------------------------------------------------------------------
default:
    echo 
'<H3>Other software not supported (yet)</h3>'.PHP_EOL; exit;
}
#---------------------------------------------------------------------------
$SITE['wsRealTime']     = 1*60+30;    // number of seconds before realtime (or clntraw) data is considered obsolete
$SITE['wsNormTime']     = 5*60+30;      // number of seconds before (tags) data is considered obsolete
$SITE['wsFtpTime']     = 60*60+30;    // number of seconds before all data (graphs) is considered obsolete
$SITE['wsDataTime']     = 5*60+30;      // number of seconds before all data (actual internal time) is considered obsolete
#---------------------------------------------------------------------------
$SITE['steelTime']      = $SITE['wsSteelTime']; // 2015-10-01  older gauge scripts
$SITE['langDir']    = 'lang/';        // all language translation files are store here

return;
# --------------- functions for checking settings --------------------------------------
function ws_print_warning ($message) {
        global 
$SITE;
        if (
$SITE['wsDebug']) {
            if (!isset (
$SITE['message']) ) {$SITE['message']='';}
            
$SITE['message'] .=  $message.'<br />'.PHP_EOL;
        }
}
function 
ws_check_setting (&$setting) {
        global 
$SITE;
        if (!isset (
$setting) )         {return false;}
        elseif (
$setting == false)      {return false;}
        elseif (
$setting === true)      {return true;}
        elseif (
$setting == 'yes')      {return true;}
        elseif (
$setting == '1')        {return true;}
        else return 
false;         
}
function 
check_topfolder ($check=true) {
        global 
$SITE;
        if (
$check <> true) {return true;}
        
    
$docRoot         $_SERVER['DOCUMENT_ROOT'].'/';
#    $docRoot         = str_replace ('//','/',$docRoot);
    
$string         $_SERVER['SCRIPT_FILENAME'];
    
$folders        str_replace($docRoot ''$string);
    
$folders        str_replace('\\' '/'$folders);
    
$arr             explode ('/'$folders);
    
$count            count($arr);
    
$n            $count 1;
    switch (
$count) {
        case 
2:
            
$FIND['topfolder']    = $arr['0'].'/';
            break;
        case 
1:
            
$FIND['topfolder']    = './';
            break;
        default:
                        
$end                    $count 2;
            
$FIND['topfolder']    = '';
            for (
$i 0$i <= ($end); $i++) {        // assemble the topfolder 
                
$FIND['topfolder'] .= $arr[$i].'/';
            }
            
$end++;
    }
    if (
$SITE["topfolder"]    <> $FIND['topfolder']) {
        
ws_print_warning ('WARNING - Change wsUserSettings.php:  $SITE["topfolder"]  from : '.$SITE["topfolder"].' to: '.$FIND['topfolder']);
        }
}
function 
ws_date_format() {
        global 
$SITE$my_date_format$my_char_sep$my_month$my_year$my_day;
        
$my_date_format $SITE['my_date_format'];
        
$my_char_sep    $SITE["my_char_sep"];
        
$my_day         $SITE["my_day"];
        
$my_month       $SITE["my_month"];
        
$my_year        $SITE["my_year"];
        if     (
$my_date_format == 'dd-mm-yyyy')  {$SITE['tags_ymd'] = array (3,2,1); $SITE['tags_ymd_sep']   = '-'; return true;}
        elseif (
$my_date_format == 'dd-mm-yy')    {$SITE['tags_ymd'] = array (3,2,1); $SITE['tags_ymd_sep']   = '-'; return true;}
        elseif (
$my_date_format == 'dd/mm/yyyy')  {$SITE['tags_ymd'] = array (3,2,1); $SITE['tags_ymd_sep']   = '/'; return true;}
        elseif (
$my_date_format == 'dd/mm/yy')    {$SITE['tags_ymd'] = array (3,2,1); $SITE['tags_ymd_sep']   = '/'; return true;}
       
        elseif (
$my_date_format == 'mm-dd-yyyy')  {$SITE['tags_ymd'] = array (3,1,2); $SITE['tags_ymd_sep']   = '-'; return true;}
        elseif (
$my_date_format == 'mm-dd-yy')    {$SITE['tags_ymd'] = array (3,1,2); $SITE['tags_ymd_sep']   = '-'; return true;}
        elseif (
$my_date_format == 'mm/dd/yyyy')  {$SITE['tags_ymd'] = array (3,1,2); $SITE['tags_ymd_sep']   = '/'; return true;}
        elseif (
$my_date_format == 'mm/dd/yy')    {$SITE['tags_ymd'] = array (3,1,2); $SITE['tags_ymd_sep']   = '/'; return true;}
# no valid setting found so far
        
if (!isset ($my_char_sep) )               {$SITE['tags_ymd'] = array (3,2,1); $SITE['tags_ymd_sep']   = '/'; return false;}
        
        
$SITE['tags_ymd_sep']   = trim($my_char_sep);
        if (
strlen ($SITE['tags_ymd_sep']) <> 1)  {$SITE['tags_ymd'] = array (3,2,1); $SITE['tags_ymd_sep']   = '/'; return false;}
# the separator is Ok, lets check the yy mm dd 
        
if (!isset ($my_month) || !isset ($my_year) || !isset ($my_day) ) 
                                                  {
$SITE['tags_ymd'] = array (3,2,1); $SITE['tags_ymd_sep']   = '/'; return false;}
        if (!
is_numeric($my_month) || !is_numeric($my_year) || !is_numeric($my_day) )
                                                  {
$SITE['tags_ymd'] = array (3,2,1); $SITE['tags_ymd_sep']   = '/'; return false;}
        
$my_month      = (int) $my_month;     
        
$my_year       = (int) $my_year;     
        
$my_day        = (int) $my_day
        
$total         =  $my_month +  $my_year  $my_day;
        if (
$total <> 6)                        {$SITE['tags_ymd'] = array (3,2,1); $SITE['tags_ymd_sep']   = '/'; return false;}
        
$error false;
        if (
$my_month || $my_month 1)     {$error true;}
        if (
$my_year 3  || $my_year 1)      {$error true;}
        if (
$my_day 3   || $my_day  1)      {$error true;}
        if (
$error)                             {$SITE['tags_ymd'] = array (3,2,1); $SITE['tags_ymd_sep']   = '/'; return false;}
        
$SITE['tags_ymd']       = array ($my_year,$my_month,$my_day);
        return 
true;
}
# ----------------------  version history
# 3.20 2015-10-12 release 2.8b version 

You find our weather info also at:

Weather Underground

AWEKAS

Citizen Weather Observer Program (CWOP)

Equipment we use:

Weather-station
Davis VP2

Davis VP2