# 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 20170113 *****************************/ $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; } ############################################################################ ############################### Settings ################################## $standAlone = false; $divWidth = 656; // Set width of maps from 656 to 1132 ############################################################################ # # Meteotemplate # http://www.meteotemplate.com # Free website template for weather enthusiasts # Author: Jachym # Brno, Czech Republic # First release: 2015 # ############################################################################ # # Influenza - U.S. # # A plugin showing influenza spread in the U.S. # ############################################################################ # Version and change log # # v1.0 2015-12-25 Initial release # ############################################################################ // get week numbers if(!is_dir("cache")){ mkdir("cache"); } if(file_exists("cache/fluData.txt")){ if (time()-filemtime("cache/fluData.txt") > 60 * 60 * 24) { unlink("cache/fluData.txt"); } } if(file_exists("cache/fluData.txt")){ $rawData = file_get_contents("cache/fluData.txt"); } else{ $rawData = file_get_contents("https://www.cdc.gov/flu/weekly/flureport.xml"); if($rawData==""){ $rawData = curlMain("https://www.cdc.gov/flu/weekly/flureport.xml",5); } if($rawData!=""){ file_put_contents("cache/fluData.txt",$rawData); } } $xml = simplexml_load_string($rawData); if(count($xml->timeperiod)>0){ foreach($xml->timeperiod as $period){ $week = (int)$period['number']; $title = (string)$period['subtitle']; $weeks[] = array($week,$title); } } // Rearrange array to start with the most current week for($i=0;$i0) { $rotate=count($weeks)-$i; for ($k=$rotate; $k>0; $k--) { $member = array_pop($weeks); array_unshift($weeks,$member); } $i=count($weeks); // Exit 'for loop' } } ?> '.$pageName.''. $SITE = array(); $_SESSION = array(); ' '; } else { require_once("Settings.php"); require_once("common.php"); include("top.php"); } if ( !$standAlone ) { $TITLE = langtransstr($SITE['organ']) . " - " .langtransstr('US CDC Flu Maps'); $showGizmo = true; // set to false to exclude the gizmo } else { $TITLE = 'US CDC Flu Maps'; echo ' '.$TITLE.''; } ?>

Influenza Summary


0 - No Report
1 - No Activity
2 - Sporadic
3 - Local Activity
4 - Regional
5 - Widespread


Centers for Disease Control and Prevention,
National Center for Immunization and Respiratory Diseases (NCIRD)
Script Created by Jáchym, as part of his Meteotemplate.


'; } ?>