<? if(VALID_DOCUMENT != 1) die('what?'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<?if($_SERVER["HTTPS"]){?>
<base href="https://<?=$_SERVER['SERVER_NAME'].ROOT_PATH?>" />
<?}?>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$GLOBALS['DEFAULT_CHARSET']?>" />
<meta name="author" content="<?=AUTHOR?>" />
<meta name="description" content="<?=VERSION?>" />
<link rel="shortcut icon" href="./images/icon.gif" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="./themes/default.css" rel="stylesheet" type="text/css" />
<?$theme_name = $_SESSION['preferences']?$_SESSION['preferences']->getTheme():$GLOBALS['DEFAULT_THEME'];?>
<link href="<?=$GLOBALS['THEMES'][$theme_name]['css']?>" rel="stylesheet" type="text/css" />
<title><?=$title?$title:VERSION?></title>
</head>
<script type="text/javascript" src="./scripts/jquery.js"></script>
<?if(!$no_js){?>
<script type="text/javascript">
<?include(TMPLPATH.'tools.js')?>
</script>
<?}?>
<body>