-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\r
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
-<html>\r
+<?php\r
+\r
+function chars_encode($string) {\r
+ $chars = array();\r
+ $ent = null;\r
+ $chars = preg_split("//", $string, -1, PREG_SPLIT_NO_EMPTY);\r
+ for ($i = 0; $i < count($chars); $i++)\r
+ $ent[$i] = "&#" . ord($chars[$i]) . ";";\r
+ if (sizeof($ent) < 1)\r
+ return "";\r
+ return implode("",$ent);\r
+}\r
+\r
+if (isOffline()) {\r
+ switch(THIS_PAGE) {\r
+ case 'do/contact':\r
+ case 'do/offline':\r
+ break;\r
+ default:\r
+ redirect('offline');\r
+ break;\r
+ }\r
+}\r
+\r
+?>\r
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\r
<head>\r
- <title>MIT SQL Services for Athena</title>\r
- <link rel=stylesheet href="<?=$BASE_URL?>mitsql.css" type="text/css">\r
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />\r
+ <title>MIT SIPB MySQL Service for Athena</title>\r
+ <link rel="stylesheet" href="http://scripts.mit.edu/style.css" type="text/css" />\r
+ <link rel="stylesheet" href="<?=$BASE_URL?>mitsql.css" type="text/css" />\r
+ <base href="<?=$BASE_URL?>" />\r
</head>\r
-\r
<body>\r
-<div id="body">\r
-<div id="content0"><span id="sitename">MIT SQL Services</span><span id="contact"><a href="contact">Contact/Help</a></span></div>\r
-<?php include 'menu.php'; ?>\r
-<div id="content2">\r
+<div id="farouter">\r
+ <div id="outer">\r
+ <div id="rap">\r
+ <div id="masthead">\r
+ <h1 id="header"><a href="http://sql.mit.edu/">sql.mit.edu</a></h1>\r
+ <h2 id="tagline">MIT SIPB MySQL Service for Athena<br />\r
+ email: <?=chars_encode('sql@mit.edu')?></h2>\r
+ </div>\r
+ <div id="hmenu">\r
+ <?php isOnline() && include('menu.php'); ?>\r
+ </div>\r
+ <div id="main">\r
+ <div id="content_wide">\r