]> andersk Git - sql-web.git/blobdiff - tpl/head.php
contact: page formatting
[sql-web.git] / tpl / head.php
index 1389ff0fc027569413a9e4760b03fc991286eb66..6bcc7fd8a7e32f3e53e74869f32dc88aeb041531 100644 (file)
@@ -1,3 +1,17 @@
+<?php\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 Strict//EN"\r
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
 <html>\r
@@ -10,5 +24,5 @@
 <body>\r
 <div id="body">\r
 <div id="content0"><span id="sitename">MIT SIPB MySQL Service</span><span id="contact"><a href="do/contact">Contact/Help</a></span></div>\r
-<?php include 'menu.php'; ?>\r
+<div id="content1"><?php isOnline() && include('menu.php'); ?>&nbsp;</div>\r
 <div id="content2">\r
This page took 0.025637 seconds and 4 git commands to generate.