Hi Scott,
</style>
<link rel="stylesheet" type="text/css" href="SWSPalerts.css" media="screen" title="screen" />
<meta name="Robots" content="index,nofollow" />
</head>
<body>
<!-- SWSP alert box update -->
<?php include_once("SWSP-config.php"); // for settings
// update SWSP alert box if needed
if($useAlertBox) { // if set to true, do the following
$SWSPtime = date("U"); // current time
$SWSPabTime = date("U",filemtime($dataFolder.'/SWSPdatacache.php')); // cache file time
if($SWSPtime - $SWSPabTime > $SWSPcacheTime) { // IF cache time expired, do the following
include("SWSP-core.php"); // update the cache file
echo "<!-- SWSPalertBox: Cache file updated. -->\n";
}
else {
echo "<!-- SWSPalertBox: Cache file has not expired. -->\n";
}
} ?>
<!-- End of SWSP alert box update -->
<?php
############################################################################
include("header.php");
############################################################################
include("menubar.php");
############################################################################
//
$useTopWarning = true; // set to true to use only the rss-top-warning script
// set to false to use the rss-advisory script instead
?>
<div id="main-copy">
<div align="center">
<div class="column-dark">
<div align="center">
<div class="column-dark"><center><span style="color:#000000">
<br/>
<font size="4"><strong>Current Weather Conditions in Pittsburg, New Hampshire
<span style="color:#FF0000">(LIVE)</span></font></strong><br/>
<span style="color:#000000"><font size="1">Station Latitude: 45:06:21 N Longitude: 071:17:25 W Altitude: 2030 ft.</font></span><br/>
<span style="color:#000000"><font size="2">Over 2,220,000 page visits since being established: October 1, 2005</font></span>
</div>
<?php // insert desired warning box at top of page
if(isset($SITE['NWSalertsCodes']) and count($SITE['NWSalertsCodes']) > 0) {
// Add nws-alerts alert box cache file
include_once("nws-alerts-config.php");
include($cacheFileDir.$aboxFileName);
// Insert nws-alerts alert box
echo $alertBox;
?>
<script type="text/javascript" src="nws-alertmap.js"></script>
<?php
} else { // use atom scripts of choice
if ($useTopWarning) {
include_once("atom-top-warning.php");
} else {
print " <div class=\"advisoryBox\">\n";
$_REQUEST['inc'] = 'y';
$_REQUEST['summary'] = 'Y';
include_once("atom-advisory.php");
print " </div>\n";
}
}
?>
<div align="center">
<img src="<?php echo $SITE['imagesDir']; ?>spacer.gif" alt="spacer"
height="2" width="730" style="padding:0; margin:0; border: none" />
<div align="center">
<?php if(isset($SITE['ajaxDashboard']) and file_exists($SITE['ajaxDashboard']))
{ include_once("ajax-dashboard692.php");
} else {
print "<p> </p>\n";
print "<p> </p>\n";
print "<p>Note: ajax-dashboard not included since weather station not yet specified.</p>\n";
for ($i=0;$i<5;$i++) { print "<p> </p>\n"; }
}?>
I am very confused about which code I should use. I think over the years I may included two sets of code in my index page. I have included part of my index page. Could you please advise me which code I should use. I can't get the message "No alerts" to change either. It use to say "No alerts for Eastern Vermont, New Hampshire, and Western Maine" that makes me think I'm using the wrong code.
Thanks very much.
John