# 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 1a (20180716) ***************************/ $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; } $standAlone = false; // false if we run in the template environment if ( $standAlone ) { ?> '.$TITLE.''; } ############################################################################ /************************* Settings *****************************/ $duration = '06'; // Default duration is set here - '24', '48', or '72' $fctype = 'probability'; // Default Precipitation Forecast: 'probability' or 'percentiles' $measure = ($fctype=='probability'?($duration=='06'?'001':'025'):'50'); $iframeWidth = 660; // Width of forecast images $imageWidth = ($iframeWidth-($iframeWidth*.045)); // Adjust image width to iframe width $iframeHeight = ($iframeWidth*.75); // Computed IFrame Height $bgndColor = 'silver'; // Set HAniS Background Color Here $btnColor = 'darkslategray'; // Set Button Color here $btnTextColor = 'white'; // Set Button Text Color here $pauseSeconds = 2; // Pause on last image, in seconds $animRate = 10; // Frame Rate of animation: 5 is glacial, 10 is slow, 15 is leisurely, 20 is good, and 50 is fast - set with integer $smoothingOn = true; // Enable image smoothing - new in HAniS 2.5 /*********************** End Settings ***************************/ $gmtHourMin = gmdate("Hi"); $gmDate = gmdate("Ymd"); $tomorrow = date("Ymd", time()+86400); $fileHour = ($gmtHourMin>1030&&$gmtHourMin<2230)?'12':'00'; $dateTime = ($gmtHourMin>=2230?$tomorrow:$gmDate).$fileHour; if ($standAlone||$_SESSION['CSSwidescreen']==1) { $iframeWidth = 800; // No reason to shrink the images here! $imageWidth = ($iframeWidth-($iframeWidth*.045)); // Adjust new image width to iframe width $iframeHeight = ($imageWidth*.6875)+($imageWidth*.075); // Compute new IFrame Height }?>
'; } ############################################################################ # End of Page ############################################################################ ?>