logo

NPDS : Gestion de contenu et de communauté


Content & Community Management System (CCMS) robuste, sécurisé, complet, performant, parlant vraiment français, libre (Open-Source) et gratuit.
18 visiteur(s) et 0 membre(s) en ligne.
Activité du Site

Pages vues depuis 25/05/2001 : 108 413 451

  • Nb. de membres 8 693
  • Nb. d'articles 1 695
  • Nb. de forums 26
  • Nb. de sujets 8
  • Nb. de critiques 92

Top 10  Statistiques

Index du forum »»  Bugs, Probs ... »» [Résolu] - Parse error: syntax error, unexpected T_VARIABLE i

[Résolu] - Parse error: syntax error, unexpected T_VARIABLE i#24638

2Contributeur(s)
chelifoujpb
3 Modérateur(s)
developpeurjpbJireck
chelifou chelifouicon_post
NPDS Forum Extender
-: Problèmes :-
 
SujetParse error: syntax error, unexpected T_VARIABLE i 
Votre Système d'Exploitation-: Linux  
Votre Package Web-: Je ne sais pas !  
Votre version de PHP-: Je ne sais pas !  
Version NPDS (voir statistiques du site)-: EVOLUTION 
Type de problème-: Erreur(s) Php  
Votre hébergeur-: Autre(s)  
Votre PrioritéUrgentissime  
Description du problèmeje n'arrive plus a acceder a mon site www.iframa.com
a cause de cette erreure que je n'arrive pas a la localise
voici le code du fichier ou est signaler l'eeure suivante :Parse error: syntax error, unexpected T_VARIABLE in /home/iframa/public_html/iframa/themes/Caase-Simple/theme.php on line 1


<?php





$thename = "Caase-Simple";

$bgcolor1 = "#ffffff";

$bgcolor2 = "#990033";

$bgcolor3 = "#990033";

$bgcolor4 = "#990033";

$bgcolor5 = "#990033";

$bgcolor6 = "#990033";

$textcolor1 = "#000000";

$textcolor2 = "#000000";

$bargif = "images/stats/bar2.gif";



function FormatStory($thetext, $notes, $aid, $informant) {

global $anonymous;

if ($notes != "") {

$notes = "
".translate("Note")." $notesn";

} else {

$notes = "";

}

if ("$aid" == "$informant") {

// echo "$thetext
$notes
n";

} else {

if($informant != "") {

$boxstuff = "$informant ";

} else {

$boxstuff = "$anonymous ";

}

$boxstuff .= "".translate("writes")." "$thetext" $notesn";

echo $boxstuff;

}

}



/************************************************************/

/* Function themeindex () */

/* */

/* Control the header for your site. You need to define the */

/* BODY tag and in some part of the code call the blocks */

/* function for left side with: blocks(left); */

/************************************************************/



function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {

global $anonymous, $tipath;

echo "n"

."n"

."n"

."n"

."
n"

."
n"

//cadre des articles

."n"

."n"

."
n"

//cadre des articles

//couleur barriere superieur des articles

."n"



."n"

// COULEUR des contenus des articles

."n"

."
$titlen"

."
".translate("Posted by")." ";

formatAidHeader($aid);

echo " ".translate("on")." $time $timezone ($counter ".translate("reads").")n"

."
n"

."$topictextn";

FormatStory($thetext, $notes, $aid, $informant);

echo "
$morelinkn"

."
n"

."
nnn";

}



/************************************************************/

/* Function themearticle() */

/* */

/* Control the header for your site. You need to define the */

/* BODY tag and in some part of the code call the blocks */

/* function for left side with: blocks(left); */

/************************************************************/



function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {

global $admin, $sid, $tipath;

echo"
n"

."
n"

."
$title
n"

.translate("Posted on")." $datetime ".translate("by")." ";

formatAidHeader($aid);

if ($admin) {

echo "
[ ".translate("Edit")." | ".translate("Delete")." ]n";

}

echo "

";

echo "$topictext n";

FormatStory($thetext, $notes="", $aid, $informant);

echo "

nnn"
."
n";

}



/************************************************************/

/* Function themesidebox() */

/* */

/* Control the header for your site. You need to define the */

/* BODY tag and in some part of the code call the blocks */

/* function for left side with: blocks(left); */

/************************************************************/



function themesidebox($title, $content) {



//emplacement des blocs



echo "
n"

."n"

."n"

."n"

."n"

."
 
n"

//

."n"

."n"

."n"

// couleur fonds des blocks

."n"

."n"

."
$titlen"

."
$content
n"

."n"

// ."n"

// ."n"

// ."n"

."
n";

// ."
nnn";

}



?> 
Inclure la signature
notification par Email
..::..


Message édité par : chelifou / 12-12-2009 02:05

jpb jpbicon_post
Yo met le code avec une autre présentation car la c'est illisible... Comme le mentionne l'erreur c'est une erreur d'écriture ( soit un point virgule un guillemet une accolade ou autre mal placé) qui fait dérailler le parseur de php...