comparison top.php @ 0:629389204276

Import initial
author Franck Deroche <webmaster@defr.org>
date Sat, 20 Oct 2007 14:15:10 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:629389204276
1 <?php
2 if(is_null($_SERVER['HTTP_ACCEPT']) || stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml'))
3 header('Content-Type: application/xhtml+xml; charset=UTF-8');
4 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
5 <html xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml">
6 <head>
7 <link rel='StyleSheet' type='Text/CSS' href='/blog/css/comment.css' />
8 <?php
9 $startDate = array("year" => "2004", "month" => 6);
10 $tmpYear = $startDate['year']; $tmpMonth = $startDate['month'];
11 $curYear = (int)gmdate("Y"); $curMonth = (int)gmdate("m");
12 $arMonth = array("Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Aout", "Septembre", "Octobre", "Novembre", "Décembre");
13 $StyleSheets = array(
14 "Somatic" => "Somatic.css",
15 "OliveVerde" => "OliveVerde.css",
16 "Lite:Reloaded" => "Lite_nv.css",
17 "Brushed" => "Brushed.css",
18 ":Hover" => "HoverExp.css");
19 $CkStyle = (array_key_exists("style", $_COOKIE) && array_key_exists($_COOKIE['style'], $StyleSheets))?$_COOKIE['style']:"Somatic";
20 foreach($StyleSheets as $CSSName => $CSSHref) {
21 $t = ($CSSName == $CkStyle)?"StyleSheet":"Alternate StyleSheet";
22 echo(" <link rel='$t' type='text/css' href='/blog/css/$CSSHref' title='$CSSName' media='screen' />\n");
23 }
24 if(!empty($Titre))
25 echo(" <title>{$Titre} - Dual Blog</title>\n");
26 else
27 echo(" <title>Dual { v10 : OS Edition } Blog</title>\n");
28
29 if(stristr($_SERVER['HTTP_USER_AGENT'], "MSIE") && !$CkStyle == "Somatic")
30 echo("<style type='Text/CSS'>
31 .PostTitle {margin-bottom:0px;}
32 </style>");
33 ?>
34 <link rel="alternate" type="application/atom+xml" title="Atom feed" href="/blog/dualblog.atom" />
35 <link rel="alternate" type="application/rss+xml" title="RSS 2.0 feed" href="/blog/dualblog.rss" />
36 <link rel="icon" type="image/png" href="/favicon.png" />
37 <meta http-equiv='content-type' content='text/html; charset=utf-8' />
38 <meta name='author' content='Franck Deroche' />
39 <script type="Text/JavaScript" src="/blog/RollUp.js"></script>
40 </head>
41
42 <body id="Main">
43 <?php /* if(!empty($Summary)) {
44 echo("
45 <q id='Summary'>
46 {$Summary}
47 </q>\n");
48 }*/ ?>
49 <h1>Dual Blog : DeFr's Weblog</h1>
50 <div id="Posts">