htdocs/index.php
changeset 44 73f74d395f95
parent 34 a8daa2016cf1
child 46 186507f67064
--- 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&amp;channel=<?php echo urlencode($channel); ?>" />
     <h1>Last 24 hours</h1>
     <img alt="Graph image" src="graph.php?mode=lastday&amp;channel=<?php echo urlencode($channel); ?>" />
     <h1>Last 2 weeks</h1>
     <img alt="Graph image" src="graph.php?mode=lastweek&amp;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");
+