]> andersk Git - sql-web.git/blob - tpl/head.php
8b17dae7293c88f7385ba6cd8c8bc18a2fdb33ed
[sql-web.git] / tpl / head.php
1 <?php\r
2 \r
3 function chars_encode($string) {\r
4    $chars = array();\r
5    $ent = null;\r
6    $chars = preg_split("//", $string, -1, PREG_SPLIT_NO_EMPTY);\r
7    for ($i = 0; $i < count($chars); $i++)\r
8                 $ent[$i] = "&#" . ord($chars[$i]) . ";";\r
9    if (sizeof($ent) < 1)\r
10      return "";\r
11    return implode("",$ent);\r
12 }\r
13 \r
14 if (isOffline()) {\r
15         switch(THIS_PAGE) {\r
16                 case 'do/contact':\r
17                 case 'do/offline':\r
18                         break;\r
19                 default:\r
20                         redirect('offline');\r
21                         break;\r
22         }\r
23 }\r
24 \r
25 ?>\r
26 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r
27         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
28 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\r
29 <head>\r
30         <meta http-equiv="content-type" content="text/html; charset=utf-8" />\r
31     <title>MIT SIPB MySQL Service for Athena</title>\r
32         <link rel="stylesheet" href="http://scripts.mit.edu/style.css" type="text/css" />\r
33     <link rel="stylesheet" href="<?=$BASE_URL?>mitsql.css" type="text/css" />\r
34         <base href="<?=$BASE_URL?>" />\r
35 </head>\r
36 <body>\r
37 <div id="farouter">\r
38         <div id="outer">\r
39                 <div id="rap">\r
40                         <div id="masthead">\r
41                                 <h1 id="header"><a href="http://sql.mit.edu/">sql.mit.edu</a></h1>\r
42                                 <h2 id="tagline">MIT SIPB MySQL Service for Athena<br />\r
43                                         email: <?=chars_encode('sql@mit.edu')?></h2>\r
44                         </div>\r
45                         <div id="hmenu">\r
46                                 <?php isOnline() && include('menu.php'); ?>\r
47                         </div>\r
48                         <div id="main">\r
49                                 <div id="content_wide">\r
This page took 0.025608 seconds and 3 git commands to generate.