Les archives de FluxBB.fr
Vous n'êtes pas identifié(e).
Pages : 1
J'ai une erreur dans le couleur des titres et je ne la trouve pas
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /mnt/167/free.fr/0/a/zonecatch/crochet.php on line 57
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /mnt/167/free.fr/0/a/zonecatch/crochet.php on line 57
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /mnt/167/free.fr/0/a/zonecatch/crochet.php on line 57
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /mnt/167/free.fr/0/a/zonecatch/crochet.php on line 57
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /mnt/167/free.fr/0/a/zonecatch/crochet.php on line 57
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /mnt/167/free.fr/0/a/zonecatch/crochet.php on line 57
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /mnt/167/free.fr/0/a/zonecatch/crochet.php on line 57
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /mnt/167/free.fr/0/a/zonecatch/crochet.php on line 57
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /mnt/167/free.fr/0/a/zonecatch/crochet.php on line 57
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /mnt/167/free.fr/0/a/zonecatch/crochet.php on line 57
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /mnt/167/free.fr/0/a/zonecatch/crochet.php on line 57
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /mnt/167/free.fr/0/a/zonecatch/crochet.php on line 57
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /mnt/167/free.fr/0/a/zonecatch/crochet.php on line 57
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /mnt/167/free.fr/0/a/zonecatch/crochet.php on line 57<?php
/// Definitions des crochets
//[Raw]
$type = "<span style=\"color:#FC021B\">";
$recherche_type = "#(\[TNA.*?\])(.*)#";
$end_style = "</span>";
//[Smackdown]
$typeblue = "<span style=\" color:blue;\">";
$recherche_typeblue = "#(\[Smackdown.*?\])(.*)#";
$end_styleblue = "</span>";
//[ECW]
$typegreen = "<span style=\" color:#4b101d\">";
$recherche_typegreen = "#(\[ECW.*?\])(.*)#";
$end_stylegreen = "</span>";
//[TNA]
$type = "<span style=\"color:#ec1d3a\">";
$recherche_type = "#(\[TNA.*?\])(.*)#";
$end_style = "</span>";
//DEBUT MOD COULEUR TITRE
$replace = $subject;
//[FREE]
if ( $replace == $subject )
{
$replace = preg_replace( $recherche_type, $type . "\${1}" . $end_style . "\${2}", $subject );
$replace = ereg_replace("$type\[\[","$type ",$replace);
$replace = ereg_replace("\]\]$end_style"," $end_style",$replace);
}
//[RS]
if ( $replace == $subject )
{
$replace = preg_replace( $recherche_typeblue, $typeblue . "\${1}" . $end_styleblue . "\${2}", $subject );
$replace = ereg_replace("$typeblue\[\[","$typeblue ",$replace);
$replace = ereg_replace("\]\]$end_styleblue"," $end_styleblue",$replace);
}
//[MU]
if ( $replace == $subject )
{
$replace = preg_replace( $recherche_typegreen, $typegreen . "\${1}" . $end_stylegreen . "\${2}", $subject );
$replace = ereg_replace("$typegreen\[\[","$typegreen ",$replace);
$replace = ereg_replace("\]\]$end_stylegreen"," $end_stylegreen",$replace);
}
//[Accepté]
if ( $replace == $subject )
{
$replace = preg_replace( $recherche_typeaccept, $typeaccept . "\${1}" . $end_styleaccept . "\${2}", $subject );
$replace = ereg_replace("$typeaccept\[\[","$typeaccept ",$replace);
$replace = ereg_replace("\]\]$end_styleaccept"," $end_styleaccept",$replace);
}
//[XXX]
if ( $replace == $subject )
{
$replace = preg_replace( $recherche_typeautre, $typeautre . "\${1}" . $end_styleautre . "\${2}", $subject );
$replace = ereg_replace("$typeautre\[\[","$typeautre ",$replace);
$replace = ereg_replace("\]\]$end_styleautre"," $end_styleautre",$replace);
}
$subject = $replace;
//FIN MOD COULEUR TITRE
?>Hors ligne
il te manque } à la ligne 57 
I don't play against a team in particular. I play to fight against the idea to lose... Life is beautiful.
Quelque #ID et beaucoup de .CLASS
Hors ligne
Pages : 1