check-fetch-times.php Version 1.64 - 30-May-2026

Website PHP information

Running on webhost 'www.halethorpeweather.com' @ IP='173.248.191.184' (reverse IP Name='s4.supportedns.com')
Webserver OS: Linux s4.supportedns.com 4.18.0-553.150.1.lve.el8.x86_64 #1 SMP Tue Aug 4 17:30:48 UTC 2026 x86_64
PHP Version: 8.2.34 built for Linux
PHP cmd location: /opt/alt/php82/usr/bin/php
Document root: /home/halethor/public_html
Template root: /home/halethor/public_html
allow_url_fopen = ON
allow_url_include = off
request_order = GP
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, zip
Socket transports: ssl, sslv3, tcp, tls, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3, udg, udp, unix

Contents of Website nws-alerts files

NameSizeUpdated
nws-alerts-config.php7029Sat, 21 Jun 2025 22:28:00 +0000
./cache/nws-alertsMainData.php1081Wed, 07 Oct 2026 05:20:10 +0000
./cache/nws-alertsBoxData.php687Wed, 07 Oct 2026 05:20:10 +0000
./cache/nws-alertsIconData.php384Wed, 07 Oct 2026 05:20:10 +0000

nws-alerts-config.php permissions=-rw-r--r-- [0644]

Top of page.


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

<?php
/*################################

 NWS Public Weather Alerts

 Settings for nws-alerts

*/################################
// Version 1.02  03-Aug-2016 - Add and modify switches for nws-alerts V1.37 base
// Version 1.03  27-Jan-2018 - fix default noCron
// Version 1.04  14-May-2019 - changes for Leaflet/OpenStreetMaps instead of Google map
// Version 1.05  01-Apr-2024 - added myLat,myLong,myLoc variables for map display

$Version = "nws-alerts-config.php - V1.05 - 01-Apr-2024";

// *** denotes settings are overridden by the Settings.php file if using Saratoga Base-USA template set

// ZONE CODES & COUNTY CODES CAN BE FOUND AT https://alerts.weather.gov/
// LOCATION|Z CODE|C CODE
// Note: this array will be overridden by the Settings.php $SITE['NWSalertsCodes'] entry if using the Saratoga Base-USA template set

$myZC = array(
  
"Santa Clara Valley|CAZ513|CAC085",
//  "Santa Cruz Mtns|CAZ512|CAC081|CAC085|CAC087",
  
"Santa Cruz|CAZ529|CAC087",
//  "Monterey|CAZ530|CAC053",
//  "South/East Bay|CAZ508|CAC081",
//  "San Mateo Coast|CAZ509|CAC081",
//  "San Francisco|CAZ006|CAC075"
);


## MAIN SETTINGS
// time zone (overridden by $SITE['tz''] in Saratoga Template
$ourTZ         = 'America/Los_Angeles';        // *** Time Zone     http://www.php.net/manual/en/timezones.america.php

// folders
$cacheFileDir  = './cache/';                // *** default cache file directory - overridden by $SITE['cacheFileDir']

$icons_folder  = './alert-images';          // folder that contains the icons. No slash on end

// location info for map pin (V1.05)
$myLat  = '37.2746';   // overridden by $SITE['latitude'] in Saratoga template
$myLon  = '-122.0229'; // overridden by $SITE['longitude'] in Saratoga template
$myLoc  = 'Saratoga';  // overridden by $SITE['cityname'] in Saratoga template

// file names
$cacheFileName = 'nws-alertsMainData.php';  // main data cache file name
$aboxFileName  = 'nws-alertsBoxData.php';   // alert box cache file name
$iconFileName  = 'nws-alertsIconData.php';  // big icons cache file
$alertURL      = 'wxnws-details.php';       // web page file name for complete details - Used with Saratoga Base USA template
$summaryURL    = 'wxadvisory.php';       // web page for the alert summary - Used with Saratoga Base USA template
//$alertURL      = 'nws-details.php';       // web page file name for complete details - Used for standard web pages
//$summaryURL    = 'nws-summary.php';       // web page for the alert summary - Used for standard web pages

## GENERAL SETTINGS
$noCron        = false;                     // true=not using cron, update data when cache file expires
//                                            false=use cron to update data
$updateTime    = 600;                       // IF $noCron=true - time span in seconds to retain cache file before updating
$floodType     = true;                      // true=add prefix 'Areal' or 'River' to Flood alert title   false=no prefix to Flood alert
$noAlertText   = 'No Warnings, Watches, or Advisories';  // Text to display for no alerts.

## ALERT LOGGING
$logAlerts     = true;         // true=log alerts    false=don't log alerts
$log_folder    = './alertlog'; // folder that contains the log files. No slash on end

## ALERT BOX SETTINGS
$useAlertBox   = true;         // true=use alert box & write data file   false= not using alert box & don't write file
$titleNewline  = true;         // true=new line for each title   false=string titles with other titles
$aBox_Width    = '99%';        // width of box  examples - $aBox_Width = '80%';  $aBox_Width = '850px';
$centerText    = true;         // true=center text in alert box    false=left align text
$showNone      = true;         // true=show 'NONE' if no alerts in alert box   false=don't show alert box if no alerts
$locSort       = 1;            // location name sort - use number listed below
//                                0 = sort location as listed in $myZC array
//                                1 = sort location alphabetically

$sortbyEvent   = 2;            // sort titles by severity in alert box & then by number listed below
//                                0 = location - duplicate events will be displayed
//                                1 = location - duplicate events removed
//                                2 = event - duplicate events will be displayed
//                                3 = event - duplicate events removed


## BIG ICONS
$iconLimit     = 0;            // the number of icons to display  0=show all
$addNone       = false;        // true=add NONE foreach location with no alerts        false= don't show any NONE
$shoNone       = true;         // true=show one 'NONE' if no alerts for all location   false=don't show one 'NONE' if no alerts for all location
$useIcons      = 3;            // select number below
//                                0 = don't use icons - the cache file will not be written
//                                1 = sort by alert - duplicate events will be displayed
//                                2 = sort by alert - duplicate events removed
//                                3 = single top alert icon for each location
//                                4 = sort by location - duplicate removed
//                                5 = sort by location - duplicate events will be displayed


## XML PAGE
$useXML   = false;                          // true=create XML RSS feed   false=not using RSS feed
$rssTitle = 'Area Weather Alerts';          // title for the RSS/XML page


## Leaflet Map
$mapboxAPIkey = '--redacted--'; // key not displayed   // use this for the Access Token (API key) to MapBox
$zoomLevel  = '8';            // default zoom level
$displaymap = '1';            // map display on details page
//                               0 = do not display map
//                               1 = display map only when polygon coordinates are provided in alert
$mapProvider = 'Esri_WorldTopoMap'; // ESRI topo map - no key needed
//$mapProvider = 'OSM';     // OpenStreetMap - no key needed
//$mapProvider = 'Terrain'; // Terrain map by stamen.com - no key needed
//$mapProvider = 'OpenTopo'; // OpenTopoMap.com - no key needed
//$mapProvider = 'Wikimedia'; // Wikimedia map - no key needed
//
//$mapProvider = 'MapboxSat';  // Maps by Mapbox.com - API KEY needed in $mapboxAPIkey
//$mapProvider = 'MapboxTer';  // Maps by Mapbox.com - API KEY needed in $mapboxAPIkey

###   END OF SETTINGS   ###

// self downloader code
if (isset($_REQUEST['sce']) && ( strtolower($_REQUEST['sce']) == 'view' or
   
strtolower($_REQUEST['sce']) == 'show') ) {
   
//--self downloader --
   
$filenameReal = __FILE__;
   
$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;
}
// end nws-alerts-config.php


Top of page.

./cache/nws-alertsMainData.php permissions=-rw-r--r-- [0644]

Top of page.


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

<?php

$atomAlerts 
= array (
  
'MDZ005' =>
  array (
    
0 =>
    array (
      
0 => 'Test Message',
      
1 => 'Unknown',
      
2 => 'Unknown',
      
3 => 'Unknown',
      
4 => 1791350263,
      
5 => 1791350863,
      
6 => 'Montgomery',
      
7 => 'Monitoring message only. Please disregard.',
      
8 => 'Monitoring message only. Please disregard.',
      
9 => '#36C',
      
10 => ' <img src="./alert-images/BNK.gif" width="12" height="12" alt="Test Message" title=" Test Message" />',
      
11 => '109',
      
12 => 'Carroll Co.',
      
13 => 1,
      
14 => 'MDZ005',
      
15 => '',
      
16 => 'https://api.weather.gov/alerts/urn:oid:2.49.0.1.840.0-KEEPALIVE-29484',
    ),
  ),
);

$noAlerts = array (
  
'Anne Arundel Co.' => 'MDZ014',
  
'Frederick Co.' => 'MDZ004',
  
'Harford Co.' => 'MDZ507',
  
'Howard Co.' => 'MDZ505',
  
'Montgomery Co.' => 'MDZ503',
  
'Northern Baltimore Co.' => 'MDZ006',
  
'Prince Georges Co.' => 'MDZ013',
  
'Southern Baltimore Co. &#38; City' => 'MDZ011',
);

$validCodes = 'MDZ014|MDZ005|MDZ004|MDZ507|MDZ505|MDZ503|MDZ013|MDZ006|MDZ011|';

?>


Top of page.

./cache/nws-alertsBoxData.php permissions=-rw-r--r-- [0644]

Top of page.


1
2
3
4
5
6
7
8
9
10
11

<?php
$alertBox 
= '
<!-- nws-alerts box -->
<div style="width:99%; border:none; margin:0px auto 0px auto;">
 <div style=" background-color:#E6E6E3; text-align:center; color: #000; padding:4px 8px 4px 8px">
  <span style="white-space: nowrap"> <img src="./alert-images/BNK.gif" width="12" height="12" alt="Test Message" title=" Test Message" />&nbsp;<a href="wxadvisory.php" style="color: #000; text-decoration: none" title=" &nbsp;View summary"><b>TEST&nbsp;MESSAGE</b></a></span>&nbsp;-&nbsp;<a href="wxnws-details.php?a=MDZ005#WA1" style="color: #000; text-decoration: none" title=" &nbsp;Details for Carroll&nbsp;Co. - Test Message">Carroll&nbsp;Co.</a>  <br />
 </div>
</div>
'
;

?>


Top of page.

./cache/nws-alertsIconData.php permissions=-rw-r--r-- [0644]

Top of page.


1
2
3
4
5
6

<?php
$bigIcons 
= array (
  
1 => ' <a href="wxnws-details.php?a=MDZ005#WA" title=" &nbsp;Details for Carroll Co.&nbsp;Test Message" style="width:99%; text-decoration:none; padding-top:3px">Carroll Co.<br /><img src="./alert-images/A-none.png" alt=" &nbsp;Details for Carroll Co.&nbsp;Test Message" width="74" height="18" style="border:none; padding-bottom:3px" /><br /></a>
'
,
);
?>


Top of page.