# 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 ############################################################################ /****************************** Version 20191127 **************************/ $viewSource = false; if (isset($_REQUEST['sce']) && strtolower($_REQUEST['sce']) == 'view' ) { //--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; } require_once("Settings.php"); require_once("common.php"); ############################################################################ $TITLE = langtransstr($SITE['organ']) . " - " .langtransstr('UNL and Climate Prediction Center Drought Monitors'); $showGizmo = true; // set to false to exclude the gizmo include("top.php"); ############################################################################ $version = '4'; // Changed to Large US Map $versionDate = '2017/04/02'; $mapsURL = 'data/png/current/current'; $dmSiteURL = 'https://droughtmonitor.unl.edu/'.$mapsURL; $usMapURL = 'https://droughtmonitor.unl.edu/data/png/'; $ourDomain = $_SERVER['HTTP_HOST']; // // /************************** Settings *****************************/ // // $divWidth = 680; // Set width of page desired. 680 for Saratoga Template. Set to 800 and over all maps remain at maximum size. // Between 660 and 800 map sizes will individually reach their maximum. # Set Default Regional Map - Only ONE $defaultRegion can be set by uncommenting it, and ONE MUST BE uncommented! #$defaultRegion = $mapsURL.'_usdm.png'; // United States #$defaultRegion = $mapsURL.'_southeast_trd.png'; // Southeast #$defaultRegion = $mapsURL.'_northeast_trd.png'; // Northeast #$defaultRegion = $mapsURL.'_midwest_trd.png'; // Midwest $defaultRegion = $mapsURL.'_high_plains_trd.png'; // High plains #$defaultRegion = $mapsURL.'_west_trd.png'; // West #$defaultRegion = $mapsURL.'_south_trd.png'; // South // ## End Set Default Regional Map # Set Default State Map - Enter the two letter abbreviation for the state, e.g. 'NE', 'GA', 'CA', etc. $defaultState = 'NE'; // Either upper or lower case will do $showHistory = true; // Show US Map With Historical Data // // /************************ End Settings ***************************/ // // $tableWidth = ($divWidth<688)?($divWidth*($divWidth/688)-10):688; // Compute table/image width $imageHeight = $tableWidth * .75; // Compute image height // ?> 4)||((date("N")==4)&&(date("G")>7)); /* Date Mashing Testbed * $pastTsameaslastT = date("Ymd",$pastTuesday)==date("Ymd",$lastTuesday); if ($pastTsameaslastT) $ymd = ($mapUp?date("Ymd",$thisTuesday):date("Ymd",$lastTuesday)); else $ymd = ($mapUp?date("Ymd",$lastTuesday):date("Ymd",$pastTuesday)); /* End Date Mashing Testbed */ $ymd = ($mapUp?date("Ymd",$lastTuesday):date("Ymd",$pastTuesday)); /* Debug Code * echo '$thisTuesday: '.date("Ymd",$thisTuesday).', $lastTuesday: '.date("Ymd",$lastTuesday).', $pastTuesday: '.date("Ymd",$pastTuesday).'
'; echo 'date("N"): '.date("N").', date("G"): '.date("G").', $mapUp: '.$mapUp.'
'; echo '$ymd; '.$ymd.', $pastTsameaslastT: '.($pastTsameaslastT?1:0).'
'; echo getUniqueImageURL($usMapURL.$ymd.'/'.$ymd.'_usdm_home.png').'
'; /* End Debug Code */ ?>