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
|
<?php ############################################################################ # A Project of TNET Services, Inc. and Saratoga-Weather.org (WD-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. # # 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 ############################################################################ error_reporting(E_ALL ^ E_NOTICE); $SITE = array();
# Automatic Info we might need ############################################################################ $SITE['REMOTE_ADDR'] = $_SERVER['REMOTE_ADDR']; $SITE['REMOTE_HOST'] = $_SERVER['REMOTE_HOST']; $SITE['WEBROOT'] = $_SERVER['DOCUMENT_ROOT']; $SITE['REQURI'] = $_SERVER['REQUEST_URI']; $SITE['SERVERNAME'] = $_SERVER['SERVER_NAME'];
# Sitewide configuration # ############################################################################ $SITE['charset'] = 'ISO-8859-1'; // character set for webpages (iso-8859-1=latin) $SITE['CSSscreen'] = 'weather-screen-php.css'; // 800px design $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 the use of Theme Switcher $SITE['CSSscreenDefault'] = 'weather-screen-green.css'; $SITE['CSSwideOrNarrowDefault'] = 'narrow'; // 'narrow' or 'wide' ############################################# $SITE['flyoutmenu'] = true; // set to false to use classic menubar.php instead
$SITE['clientrawfile'] = './clientraw.txt'; // relative FILE location of clientraw.txt
# Configurable Carterlake/WD/PHP template Site Settings ############################################################################ $SITE['WXtags'] = 'testtags.php'; // for testtags.php weather variables $SITE['organ'] = 'Harrisonburg, VA Weather'; $SITE['copyr'] = '© ' . date("Y",time()) . ', HBurg-WX.NET'; $SITE['remote'] = "onclick=\"window.open(this.href,'_blank');return false;\""; $SITE['tz'] = 'America/New_York'; //NOTE: this *MUST* be set correctly to // translate UTC times to your LOCAL time for the displays. // http://saratoga-weather.org/timezone.txt has the list of timezone names // pick the one that is closest to your location and put in $ourTZ like: // $ourTZ = 'America/New_York'; // or // $ourTZ = 'Europe/Brussels'; $SITE['location'] = 'Harrisonburg, VA, USA'; $SITE['email'] = 'mailto:baedkesj@gmail.com'; # Weather Station sensors $SITE['UV'] = true; // set to false if no UV sensor $SITE['SOLAR'] = true; // set to false if no Solar sensor # Station location: latitude, longitude, cityname $SITE['latitude'] = '38.449'; //North=positive, South=negative decimal degrees $SITE['longitude'] = '-78.852'; //East=positive, West=negative decimal degrees $SITE['cityname'] = 'Harrisonburg';
# USA Specific settings $SITE['noaazone'] = 'VAC660'; // used for NOAA advisories and advforecast2.php forecasts $SITE['hurlURL'] = "wxadvisory.php"; // page to launch for details on NOAA advisories $SITE['NWSalertsCodes'] = array( "|VAZ026|VAC660" // "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" );
# #Forecast script settings area # $SITE['UVscript'] = 'get-UV-forecast-inc.php'; // worldwide forecast script for UV Index // comment out above line to exclude UV forecast // # if you have WXSIM and plaintext-parser.php, set $SITE['WXSIM'] = true; # to have the WXSIM forecast text appear in the dashboard along with your primary forecast org's # forecast. $SITE['WXSIM'] = true; // Set to false if no WXSIM/plaintext-parser.php $SITE['WXSIMscript'] = 'plaintext-parser.php'; // script for decoding plaintext.txt into icons
$SITE['useUSNO'] = false;
# fcsturlNWS is the point-printable forecast URL from http://www.weather.gov/ (used by advforecast2.php) $SITE['fcsturlNWS'] = 'http://forecast.weather.gov/MapClick.php?CityName=Harrisonburg&state=VA&site=LWX&textField1=38.4367&textField2=-78.874&e=0&TextType=2';
$SITE['fcsticonsdir'] = './forecast/images/'; // NOAA-style icons for NWS, WU, WXSIM forecast scripts #$SITE['googleAPI'] = '--redacted--'; // key not displayed # #---- 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['fcstscript'] = 'plaintext-parser.php'; // WXSIM forecast (if only forecast script) $SITE['fcstorg'] = 'WXSIM'; // set to 'WXSIM' for WXSIM forecast
###########################################################################
# ajax-dashboard, ajax-sidebar settings (will override defaults in # the scripts themselves when included in this site ########################################################################### $SITE['WDdateMDY'] = true; // for WD date format of month/day/year. =false for day/month/year $SITE['uomTemp'] = '°F'; $SITE['uomBaro'] = ' inHg'; $SITE['uomWind'] = ' mph'; $SITE['uomRain'] = ' 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 # note: date format used for PHP parts only. Weather-Display 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'] = '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
# carterlake-radar settings (will override defaults in # the scripts themselves when included in this site ########################################################################### $SITE['noaaradar'] = 'LWX'; // LAST 3 characters of NOAA Radar Site ID // e.g. Radar KMUX has $SITE['noaaradar'] = 'MUX'; $SITE['WUregion'] = 'ne'; // Wunderground regional maps // 'sw'=SouthWest, 'nw'=NorthWest, 'mw'=Midwest // 'sp'=South Central, 'ne'=North East, 'se'=South East $SITE['WUname1'] = 'Close-up'; // tooltip label for mode=1 $SITE['WUname2'] = 'Rockingham County'; // tooltip label for mode=2 $SITE['WUname3'] = 'Virginia'; // tooltip label for mode=3 $SITE['WUname4'] = 'Northeast Region'; // tooltip label for mode=4 $SITE['WUname5'] = 'Entire US'; // tooltip label for mode=5
########################################################################### # GRLevel3 Radar image settings $SITE['GR3radar'] = 'klwx'; // set to lower-case full name of NEXRAD radar site $SITE['GR3DIR'] = '/GR3'; // 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'] = 512; // width of GR3 images $SITE['GR3height'] = 512; // height of GR3 images $Site ['GR3maxAge' ] = 500; // image_0 has to be less than 20 minutes old for consideration $SITE['showradarstatus'] = true; // set to false to suppress 'active' message
# WU-History settings $SITE['WUID'] = 'KVAHARRI7'; // set to Wunderground ID (upper case) //$SITE['WUunits'] = 'E'; // units to display 'E'=english, 'M'=metric, 'B'=both // comment $SITE['WUunits'] above out to use uomTemp to select English or Metric $SITE['WUstationname'] = 'Harrisonburg, VA, US"'; // for legend at bottom of page $SITE['WUbirthday'] = '08-14-2006'; //Stations first day of operation format dd-mm-yyyy
$SITE['WCAPIkey'] = '--redacted--'; // key not displayed $SITE['WCunits'] = 'e'; // ='e' for F,mph,inHg,in; ='m' for C,km/h,hPa,mm $SITE['cacheFileDir'] = './cache/'; // cache file directory
$SITE['useUSNO'] = false;
########################################################################## # end of configurable settings # # set the Timezone abbreviation automatically based on $SITE['tzname']; # putenv("TZ=".$SITE['tz']); date_default_timezone_set($SITE['tz']); $SITE['tzname'] = date("T",time()); if($SITE['allowThemeSwitch']) { # begin Color Theme Switcher Plugin by Mike Challis # http://www.carmosaic.com/weather/scripts.php include_once('include-style-switcher.php'); $SITE['CSSscreen'] = validate_style_choice(); # end Color Theme Switcher Plugin } ?>
|