--- a/htdocs/index.php Sun Jan 04 16:40:36 2009 -0500
+++ b/htdocs/index.php Mon Jan 05 22:29:36 2009 -0500
@@ -5,21 +5,10 @@
$channel_list = stats_channel_list();
$first_channel = $channel_list[0];
$channel = ( isset($_REQUEST['channel']) && in_array($_REQUEST['channel'], $channel_list) ) ? $_REQUEST['channel'] : $first_channel;
+
+$title = "$nick - Statistics";
+require("./themes/$webtheme/header.php");
?>
-
-<html>
- <head>
- <title><?php echo $nick; ?> - Statistics</title>
- <style type="text/css">
- div.footer {
- font-size: smaller;
- padding-top: 10px;
- margin-top: 10px;
- border-top: 1px solid #aaa;
- }
- </style>
- </head>
- <body>
<div style="float: right;">
<p>
<?php
@@ -82,13 +71,12 @@
}
?>
</ul>
+ <h1>Last 60 minutes</h1>
+ <img alt="Graph image" src="graph.php?mode=lasthour&channel=<?php echo urlencode($channel); ?>" />
<h1>Last 24 hours</h1>
<img alt="Graph image" src="graph.php?mode=lastday&channel=<?php echo urlencode($channel); ?>" />
<h1>Last 2 weeks</h1>
<img alt="Graph image" src="graph.php?mode=lastweek&channel=<?php echo urlencode($channel); ?>" />
-
- <div class="footer">
- <b><?php echo $nick; ?> is a privacy-respecting bot.</b> <a href="privacy.php">Read about what information <?php echo $nick; ?> collects</a>
- </div>
- </body>
-</head>
+<?php
+require("./themes/$webtheme/footer.php");
+