/[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 1407 - (hide annotations) (download)
Sun Feb 17 13:27:41 2008 UTC (5 years, 3 months ago) by hanska-guest
File size: 1676 byte(s)
Sorry, :)
1 hanska-guest 555 <?php
2 hanska-guest 663 require_once("locale.inc.php");
3 hanska-guest 580
4     $type = "text/html; charset=UTF-8";
5     $xml = "";
6    
7 hanska-guest 579 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 hanska-guest 552 <head>
22     <title>Debian-Med Project</title>
23 hanska-guest 579 <meta http-equiv="Content-Type" content="<?=$type?>" />
24 hanska-guest 552 <link href="/inc/style.css" type="text/css" rel="stylesheet" />
25     </head>
26     <body>
27 hanska-guest 578 <div style="text-align: center;">
28 hanska-guest 621 <a href="http://debian-med.alioth.debian.org/">
29     <img src="/img/logo.png" alt="Debian Med Project" />
30     </a>
31 hanska-guest 552 </div>
32     <div class="heading">
33 hanska-guest 588 <div class="tabBar" style="text-align: center;">
34 hanska-guest 1406 <?= sprintf(_("Help us to see Debian used by medical practicioners and researchers! Join us on the %sAlioth page%s."),
35 hanska-guest 1407 '<a href="http://alioth.debian.org/projects/debian-med">', '</a>'); ?>
36 hanska-guest 552 </div>
37 hanska-guest 639 <?php
38 hanska-guest 646 /* if ($show_locale_warning && ($_SERVER["PHP_SELF"] != "/locales.php")) {
39 hanska-guest 643 <div class="tabError">
40 hanska-guest 644 <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 hanska-guest 1406 <?= sprintf(_("Visit the %sLocalization page%s.), '<a href="/locales.php">', "</a>"); ?>
46 hanska-guest 644 </p>
47 hanska-guest 643 </div>
48 hanska-guest 646 }*/
49 hanska-guest 639 ?>
50 hanska-guest 552 </div>

  ViewVC Help
Powered by ViewVC 1.1.5