| 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" />
|
| 30 |
</a>
|
| 31 |
</div>
|
| 32 |
<div class="heading">
|
| 33 |
<div class="tabBar" style="text-align: center;">
|
| 34 |
<?php
|
| 35 |
$msg = _("Join us! Help us in making Doctors use Debian! See the %1Alioth page%2.");
|
| 36 |
echo str_replace(array("%1", "%2"),
|
| 37 |
array('<a href="http://alioth.debian.org/projects/debian-med">', '</a>'),
|
| 38 |
$msg);
|
| 39 |
?>
|
| 40 |
</div>
|
| 41 |
<?php
|
| 42 |
if ($show_locale_warning && $_SERVER["PHP_SELF"] != "http://debian-med.alioth.debian.org/locales.php") {
|
| 43 |
?>
|
| 44 |
<div class="row">
|
| 45 |
<span class="error">
|
| 46 |
<p class="error">
|
| 47 |
<div class="floatLeft">
|
| 48 |
<img src="/img/warning.png" />
|
| 49 |
</div>
|
| 50 |
<?=_("You're using a low priority locale.<br />Please ask the site administrators to add your locale, or provide one yourself :).")?><br />
|
| 51 |
<?=str_replace(array("%1", "%2"), array('<a href="/locales.php">', "</a>"), _("Visit the %1Localization page%2."))?>
|
| 52 |
</p>
|
| 53 |
</span>
|
| 54 |
</div>
|
| 55 |
<?php
|
| 56 |
}
|
| 57 |
?>
|
| 58 |
</div>
|