$days[] = strtotime("-{$i} days"); } // From 12/27 - 12/23, comment this out for performance require 'iic.php'; // This is to give each link/guid a unique anchor // The anchor is the # of days since October 17, 2007, when I started the site function id($day) { return floor(($day - strtotime("10/17/07")) / (60 * 60 * 24)); } ?> <?php foreach ($days as $day) { // From 12/27 - 12/23, switch the commenting for performance $answer = isItChristmas($day); // $answer = "NO"; ?> <item> <title><?php echo $answer; ?> </title> <description><?php echo $answer; ?> </description> <link>http://isitchristmas.com#<?php echo id($day); ?> </link>
<?php header('Content-Type: text/html'); ?> <?php require 'iic.php'; $answer = isItChristmas(); $countryCode = getCountryCode(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Is it Christmas?</title> <link rel="alternate" title="Is It Christmas?" href="rss.xml" type="application/rss+xml" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="iic.js"></script> </head> <body style="text-align: center; padding-top: 200px;"> <a href="http://github.com/isit/christmas" style="font-weight: bold; font-size: 120pt; font-family: Arial, sans-serif; text-decoration: none; color: black;" title="CODE" id="answer"> <noscript><?php