| 1 |
hanska-guest |
555 |
<?php
|
| 2 |
|
|
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 |
617 |
<?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 |
hanska-guest |
552 |
</div>
|
| 41 |
hanska-guest |
639 |
<?php
|
| 42 |
hanska-guest |
640 |
if ($show_locale_warning && $_SERVER["PHP_SELF"] != "http://debian-med.alioth.debian.org/locales.php") {
|
| 43 |
hanska-guest |
639 |
?>
|
| 44 |
|
|
<div class="row">
|
| 45 |
|
|
<span class="error">
|
| 46 |
|
|
<p class="error">
|
| 47 |
hanska-guest |
640 |
<div class="floatLeft">
|
| 48 |
|
|
<img src="/img/warning.png" />
|
| 49 |
|
|
</div>
|
| 50 |
hanska-guest |
639 |
<?=_("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 |
hanska-guest |
552 |
</div>
|