/[debian-med]/trunk/community/website/inc/header.inc.php
ViewVC logotype

Contents of /trunk/community/website/inc/header.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3855 - (show annotations) (download)
Wed Sep 2 16:23:43 2009 UTC (3 years, 8 months ago) by naoliv
File size: 1700 byte(s)
Logo height and width
1 <?php
2 require_once("locale.inc.php");
3
4 $type = "text/html; charset=UTF-8";
5 $xml = "";
6
7 if (isset($_SERVER['HTTP_ACCEPT'])) {
8 if (stristr($_SERVER['HTTP_ACCEPT'], "application/xhtml+xml")) {
9 $type = "application/xhtml+xml; charset=UTF-8";
10 $xml = '<?xml version="1.0" encoding="UTF-8"?>'."\n";
11 } else {
12 $type = "text/html; charset=UTF-8";
13 $xml = '';
14 }
15 }
16
17 header("content-type: $type");
18
19 ?><?=$xml?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/2001/REC-xhtml11-20010531/DTD/xhtml11-flat.dtd">
20 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=$lang?>">
21 <head>
22 <title>Debian-Med Project</title>
23 <meta http-equiv="Content-Type" content="<?=$type?>" />
24 <link href="/inc/style.css" type="text/css" rel="stylesheet" />
25 </head>
26 <body>
27 <div style="text-align: center;">
28 <a href="http://debian-med.alioth.debian.org/">
29 <img src="/img/logo.png" alt="Debian Med Project" height="446" width="93" />
30 </a>
31 </div>
32 <div class="heading">
33 <div class="tabBar" style="text-align: center;">
34 <?= sprintf(_("Help us to see Debian used by medical practicioners and researchers! Join us on the %sAlioth page%s."),
35 '<a href="http://alioth.debian.org/projects/debian-med">', '</a>'); ?>
36 </div>
37 <?php
38 /* if ($show_locale_warning && ($_SERVER["PHP_SELF"] != "/locales.php")) {
39 <div class="tabError">
40 <p class="error">
41 <div class="floatLeft">
42 <img src="/img/warning.png" />
43 </div>
44 <?=_("You're using a low priority locale.<br />Please ask the site administrators to add your locale, or provide one yourself :).")?><br />
45 <?= sprintf(_("Visit the %sLocalization page%s.), '<a href="/locales.php">', "</a>"); ?>
46 </p>
47 </div>
48 }*/
49 ?>
50 </div>

  ViewVC Help
Powered by ViewVC 1.1.5