Initialized repository
[simplecm.git] / content / header.php
blob4f7724ebc23ca3921cf7336dd2a63fa847a9ac0b
1 <?php
3 printf ("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>\n ");
5 if (!isset($_SESSION["LoggedOn"]))
7 $Current_Theme = $Default_Theme;
9 }
13 <html>
15 <head>
17 <link rel="stylesheet" type="text/css" href="<?php
19 // is a user prefered stylesheet set?
21 if (isset($_POST["theme"]))
23 $Current_Theme = $_POST["theme"];
24 $Current_ThemePath = "$Current_Theme";
25 $_SESSION["theme"] = $Current_Theme;
29 if (isset($_SESSION["theme"]))
31 // It has. Use the users prefered stylesheet.
32 $Current_Theme = $_SESSION["theme"];
33 $Current_ThemePath = "$Current_Theme";
34 printf ("styles/$Current_Theme/" . $Current_Theme . ".css");
37 else
39 if (!isset($_POST["theme"]))
41 // Defaults_Theme
42 $Current_Theme = $Default_Theme;
43 $Current_ThemePath = $Current_Theme;
44 printf ("styles/$Default_Theme/" . $Default_Theme . ".css");
48 ?>" />
49 <title><?php echo $SITE_TITLE; ?></title>
51 </head>
54 <body>
57 <?php
58 echo "<div id='top'>";
60 include ("styles/$Current_Theme/logo.html");
61 echo "</div>";