htdocs/changetz.php
changeset 44 73f74d395f95
parent 10 a97bd37e43e9
--- a/htdocs/changetz.php	Sun Jan 04 16:40:36 2009 -0500
+++ b/htdocs/changetz.php	Mon Jan 05 22:29:36 2009 -0500
@@ -1,5 +1,6 @@
 <?php
 require('../timezone.php');
+require('../stats-fe.php');
 $set_zone = false;
 if ( isset($_POST['tz']) )
 {
@@ -11,46 +12,12 @@
     $set_zone = str_replace('_', ' ', str_replace('/', ': ', $tz));
   }
 }
-?><html>
-  <head>
-    <title>Change time zone</title>
-    <style type="text/css">
-    select, option {
-      background-color: white;
-    }
-    option.other {
-      color: black;
-      font-weight: normal;
-    }
-    option.region {
-      color: black;
-      font-weight: bold;
-    }
-    option.area {
-      color: black;
-      font-weight: normal;
-      padding-left: 1em;
-    }
-    option.country {
-      color: black;
-      font-weight: bold;
-      padding-left: 1em;
-    }
-    option.city {
-      color: black;
-      font-weight: normal;
-      padding-left: 2em;
-    }
-    div.success {
-      border: 1px solid #006300;
-      background-color: #d3ffd3;
-      padding: 10px;
-      margin: 10px 0;
-    }
-    </style>
-  </head>
-  <body>
-    <?php
+
+$title = "$nick - set time zone";
+require("./themes/$webtheme/header.php");
+
+echo '<br />';
+
     if ( $set_zone )
     {
       $target = rtrim(dirname($_SERVER['REQUEST_URI']), '/') . '/';
@@ -95,5 +62,7 @@
     <input type="submit" value="Save" /><br />
     <small>Make sure you have cookies enabled.</small>
     </form>
-  </body>
-</html>
+  
+<?php
+require("./themes/$webtheme/footer.php");
+?>