|
<?php
|
|
$xhtml = preg_match('/application\/xhtml\+xml(?![+a-z])(;q=(0\.\d{1,3}|[01]))?/i',
|
|
$_SERVER['HTTP_ACCEPT'], $xhtml) && (isset($xhtml[2])?$xhtml[2]:1) > 0 ||
|
|
strpos($_SERVER["HTTP_USER_AGENT"], "W3C_Validator")!==false ||
|
|
strpos($_SERVER["HTTP_USER_AGENT"], "WebKit")!==false;
|
|
header('Content-Type: '.($xhtml?'application/xhtml+x':'text/ht').'ml; charset="utf-8"'); #IE doesn't support application/xhtml+xml - workaround
|
|
echo '<?xml version="1.0" encoding="utf-8"?>';
|
|
?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
|
|
<head>
|
|
<title>Strona główna</title>
|
|
<link type="text/css" href="style.css" rel="stylesheet" />
|
|
</head>
|
|
<body>
|
|
<div id="page">
|
|
<img src="images/logo.png" width="800px" alt="Logo strony" />
|
|
<div id="content">
|
|
<div id="dlinks">
|
|
<a href="gallery.php"><img src="images/galeria.png" alt="Galeria zdjęć" /></a> <br/>
|
|
<a href="download.php"><img src="images/download.png" alt="Download" /></a> <br/>
|
|
<a href="http://suczawa.ath.cx"><img src="images/forum.png" alt="Forum" /></a>
|
|
</div>
|
|
</div>
|
|
<div id="footer">
|
|
<a id="copyright">Copyright © 2009 ...</a><br />
|
|
<div id="links">
|
|
<a href="index.php">Strona główna</a> | <a href="gallery.php">Fotogaleria</a> | <a href="download.php">Download</a> | <a href="http://suczawa.ath.cx">Forum</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|