Presque!
Le message d'erreur est toujours là et la colonne de la radio reste déformée; http://skit.hopto.org
J'ai essayé d'enlever le <head> pour voir si le bug venait bien de ça mais apparemment non...
Tu as besoin d'une partie spéciale du code?
la partie php:
<?php
# ***** BEGIN LICENSE BLOCK *****
# This file is part of DotClear.
# Copyright (c) 2004 Olivier Meunier and contributors. All rights
# reserved.
#
# DotClear is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# DotClear is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with DotClear; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# ***** END LICENSE BLOCK *****
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php dcInfo('lang'); ?>"lang="<?php dcInfo('lang'); ?>"><head>
<meta http-equiv="Content-Type"
content="text/html; charset=<?php dcInfo('encoding'); ?>" /> <meta name="MSSmartTagsPreventParsing" content="TRUE" />
<?php dcHeadLinks(); ?>
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php dcInfo('rss'); ?>" /> <link rel="alternate" type="application/atom+xml" title="Atom" href="<?php dcInfo('atom'); ?>" /> <meta name="DC.title" content="<?php dcInfo(); ?>" />
<title><?php dcSinglePostTitle('%s - '); dcSingleCatTitle('%s - '); dcSingleMonthTitle('%s - '); dcCustomTitle('%s - '); dcInfo(); ?></title>
<link rel="stylesheet" type="text/css" href="<?php dcInfo('theme'); ?>/style.css" media="screen" /> <?php dcPostTrackbackAutoDiscovery(); ?>
</head>
<!-- définition de la chanson aléatoire-->
<? $var=mt_rand(1,45); ?>
<!-- fin de la définition-->
<body>
<!-- Colonne de gauche: Top et Footer -->
<div id="ban">
<div id="archives">
<h2>Archives</h2>
<?php dcMonthsList(); ?>
</div>
<div id="peluche">
<h2>Minus and Cortex's Place</h2>
</div>
<div id="syndicate">
<h2>Syndication</h2>
<ul>
<li><a href="<?php dcInfo('rss'); ?>">fil rss</a></li> <li><a href="<?php dcInfo('rss'); ?>?type=co">fil rss commentaires</a></li> <li><a href="<?php dcInfo('atom'); ?>">fil atom</a></li> <li><a href="<?php dcInfo('atom'); ?>?type=co">fil atom commentaires</a></li> <li><a href="http://validator.w3.org/check?uri=referer">XHTML 1.0 Strict</a></li>
<li><a href="http://jigsaw.w3.org/css-validator/">CSS</a></li>
</ul>
</div>
<div id="footer">
<!-- Veuillez laisser les liens de paternite. Merci. -->
Propulsé par <a href="http://www.dotclear.net/">DotClear</a><br />
Designé par <a href="http://skit.hopto.org">Skit</a> et <a href="http://klohweb.free.fr/">kloh</a><br />
Sous <a href="http://creativecommons.org/licenses/by-nc/2.0/fr/">licence CC</a><br />
Get <a href="http://www.mozilla-europe.org/fr/products/firefox/">Firefox</a>
</div>
</div>
<!-- Page : Main et Sidebar -->
<div id="page">
<div id="main">
<div>
<div id="calendar">
<!--<h2>Calendrier</h2>-->
<?php #Affichage du calendrier
dcCalendar('<table summary="Calendrier">%s</table>'); ?> <span></span>
</div>
<div id="Dicton">
<h2>Pensée profonde</h2>
<?
$var2=mt_rand(1,10);
if ($var2==1)
{ $var2="Use me like <br \>a chupa chups!";
}
elseif ($var2==2)
{ $var2="I don't discriminate.<br \>I hate everyone.";
}
elseif ($var2==3)
{ $var2="Sex 'n<br \>Drugs 'n<br \>Rock'n roll!";
}
elseif ($var2==4)
{ $var2="You say<br \>I'm a whore<br \>like it's a<br \>bad thing...";
}
elseif ($var2==5)
{ $var2="Les cheveux noirs<br \>comme une popstar!";
}
elseif ($var2==6)
{ $var2="If you have to be a loser,<br \>Be a True Rebel Loser!";
}
elseif ($var2==7)
{ $var2="Kill a hero...<br \>...Be an Emo.";
}
elseif ($var2==8)
{ $var2="ChocapicKitten<br \>ou<br \>La volonté de choquer.";
}
elseif ($var2==9)
{ $var2="Arrête de te plaindre<br \>et<br \>Ouvre la bouche!";
}
elseif ($var2==10)
{ $var2="Le coeur empoisonné,<br \>Les oreilles décollées,<br \>L'anus lubrifié,<br \>La gueule tuméfiée.";
}
echo "<p id=\"text00\">\"<b><i>".$var2."\"</b></i></p>";?>
</div>
<div id="search">
<form action="<?php dcInfo('search'); ?>" method="get">
<h2><label for="q">Rechercher</label></h2>
<p class="field"><input name="q" id="q" type="text" size="10"
value="<?php dcSearchString(); ?>" accesskey="4" /></p>
<p class="field"><input type="submit" class="submit" value="ok" /></p>
</form>
</div>
</div>
<div id="content">
<?php if ($err_msg != '') : /* Si on a une quelconque erreur, on l'affiche */?>
<div class="error"><strong>Erreur : </strong>
<?php echo $err_msg; ?></div>
<?php elseif ($preview) : /* Si on demande la prévisualisation d'un commentaire */?>
<h3>Commentaire pour <?php dcPostTitle(); ?></h3>
<div id="comment-preview">
<blockquote>
<?php dcCommentPreview(); ?>
</blockquote>
</div>
<h3>Changer le commentaire</h3>
<?php include dirname(__FILE__).'/form.php'; ?>
<?php elseif ($mode != 'post') : /* Si aucune erreur et mode != post on affiche une liste de billets */?>
<?php # Phrase affiché en cas de recherche (%s est le mot cherché)
dcSearchString('<p>Résultats de votre recherche de <em>%s</em>.</p>'); ?>
<?php include dirname(__FILE__).'/list.php'; ?>
<?php else : /* Sinon, mode = post, donc billet unique (avec commentaires et tout le reste)*/?>
<?php include dirname(__FILE__).'/post.php'; ?>
<?php endif; ?>
</div>
</div>
<div id="sidebar">
<div id="sidebar1">
<div id="categories" align="center">
<h2>Radio</h2>
<?php
if( isset($_COOKIE['musique']) AND is_numeric($_POST['musique']) ) {
if( $_COOKIE['musique'] == 1 )
$music = 1; // OUI
else
$music = 0; // NON
} else
$music = -1; // Pas défini
if( isset($_POST['musique']) ) { $_musique = ( is_numeric($_POST['musique']) AND $_POST['musique'] == 1 ) ? 1 : 0 ;
// SI $_POST['musique'] existe
// - Si la valeur et numérique et = à OUI alors OUI
// - Sinon NON
setcookie('musique', $_musique); // On enregistre la cookie
$music = $_musique;
}
if( $music != 1 ) { // Si $music est = à 0 (NON) ou -1 (n'existe pas) echo '
<iframe src="http://lupuce2.free.fr/Radio/index.php" name="radio" scrolling="no" frameborder="0" style="width: 220px; height: 320px"></iframe>
<form method="post" action="">
<p>
<input type="image" src="http://lupuce2.free.fr/Blog/themes/Bloc Lady Vengeance/img/activ.gif" alt="envoi" />
<input name="musique" type="hidden" value="1">
<!-- Activation $_POST[\'musique\'] = 1; -->
</p>
</form>';
} else { echo '
<iframe src="http://lupuce2.free.fr/Radio/index.php?autoplay=', $var, '" name="radio" scrolling="no" frameborder="0" style="width: 220px; height: 320px"></iframe>
<form method="post" action="">
<p>
<input type="image" src="http://lupuce2.free.fr/Blog/themes/Bloc Lady Vengeance/img/desactiv.gif" alt="envoi" />
<input name="musique" type="hidden" value="0">
<!-- Désactivation $_POST[\'musique\'] = 0; -->
</p>
</form>';
}
?>
</div>
<div id="links">
<h2>Liens</h2>
<?php dcBlogroll::linkList(); ?>
</div>
<!-- Si vous souhaitez rajouter un bloc sous celui des Liens, decommentez la ligne ci-dessous -->
<!-- <div id="bloc1"></div> -->
<!-- Pour configurer ce bloc, utilisez l'espace le concernant dans style.css a la ligne 410 -->
</div>
<div id="sidebar2">
<!-- Si vous souhaitez rajouter un bloc sous celui des Liens, decommentez la ligne ci-dessous -->
<!-- <div id="bloc2"></div> -->
<!-- Pour configurer ce bloc, utilisez l'espace le concernant dans style.css a la ligne 454 -->
</div>
</div>
</div>
<!-- Blocs en plus pour ajouter des images en tout genre si besoin -->
<div id="block1"><span></span></div><div id="block2"><span></span></div>
<div id="block3"><span></span></div><div id="block4"><span></span></div>
<div id="block5"><span></span></div><div id="block6"><span></span></div>
</body>
</html>