website logo
Auteur
avatar
zvenn

Forum » » CSS » » [Résolu] - style de l'edito pour les pages statiques ?


Posté : 14 mars 2007 à 18:17 icone du post

Bon comme je le disais je suis une buse en php lol.

je pense avoir bien suivi tes instructions en modifiant le static.php mais du coup j'ai une erreur
Parse error: parse error, unexpected '{' in ...easyphp1-7\www\static.php on line 34

static.php ressemble à ça maintenant :

if (!function_exists("Mysql_Connexion")) {!include! ("mainfile.php");}

div#edito, div.static
{
text-align: justify;
padding: 5px;
background-color: #eff7ff;
border: 1px solid #0755a2;
margin-bottom: 5px;
}
$pdst=$npds;
!include! ("header.php");
echo '<div class="static">';
if (($op!="") and ($op)) {
// Troll Control for security
if (eregi("(^[0-9a-z_\.-])",$op) and !stristr($op,".*://") and !stristr($op,"..") and !stristr($op,"../") and !stristr($op, "script") and !stristr($op, "cookie") and !stristr($op, "!iframe!") and !stristr($op, "applet") and !stristr($op, "object") and !stristr($op, "meta")) {
if (file_exists("static/$op")) {
if (!$metalang) {
!include! ("static/$op");
} else {
ob_start();
!include! ("static/$op");
$remp=ob_get_contents();
ob_end_clean();
echo meta_lang(aff_code(aff_langue($remp)));
}
if (!$imgtmp=theme_image("box/print.gif")) { $imgtmp="images/print.gif"; }
echo "<br /><p align=\"center\"><a href=\"print.php?sid=static:$op&metalang=$metalang\"><img src=\"$imgtmp\" border=\"0\" alt=\"".translate("Printer Friendly Page")."\" align=\"middle\"></a></p>";

// Si vous voulez tracer les appels au pages statiques : supprimer les // devant la ligne ci-dessous
// Ecr_Log("security", "static/$op", "");
} else {
echo "<center class=\"ROUGE\">".translate("Please enter information according to the specifications")."</center><br />";
}
} else {
echo "<center class=\"ROUGE\">".translate("Please enter information according to the specifications")."</center><br />";
}
}
echo '</div>';
!include! ("footer.php");
?>

Désolé de pas tout capter

Message édité par : zvenn / 14-03-2007 18:21


Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=22081&forum=50