# TNET Services, Inc. # Ken True # Saratoga-Weather.org # # Copyright: (c) 1992-2007 Copyright TNET Services, Inc. ########################################################################### # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA ############################################################################ # This document uses Tab 4 Settings ############################################################################ //Version 1.01 - 28-Jul-2012 - integrated support for nws-alerts scripts require_once("Settings.php"); require_once("common.php"); $dir_path = "/bwimages"; // add support for noCron=true fetch of nws-alerts to get current alerts if(isset($SITE['NWSalertsCodes']) and count($SITE['NWSalertsCodes']) > 0) { include_once("nws-alerts-config.php"); // load the configuration for nws-alerts if(isset($noCron) and $noCron) { print "\n"; include_once("nws-alerts.php"); } } ############################################################################ if (isset($SITE['uomTemp']) ) { $tuom = $SITE['uomTemp']; } else { $tuom = explode('°',$temperature); // extract units $tuom = '°' . $tuom[1]; } ?> 2){ $index = rand(2, ($count-1)); $filename = $files[$index]; return 'Bismarckweather.net'; } else { return "The directory is empty!"; } } else { return "Please enter valid path to image directory!"; } } ?>