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.
38 visiteur(s) et 0 membre(s) en ligne.
Activité du Site

Pages vues depuis 25/05/2001 : 108 408 672

  • 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_IF

[Résolu] - Parse error: syntax error, unexpected T_IF#24314

1Contributeur(s)
chelifou
3 Modérateur(s)
developpeurjpbJireck
chelifou chelifouicon_post
NPDS Forum Extender
-: Problèmes :-
 
SujetParse error: syntax error, unexpected T_IF 
Votre Système d'Exploitation-: Windows XP  
Votre Package Web-: Easyphp 1.8 et + 
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éUrgent  
Description du problèmeMon FAQ sur mon site www.ifram.com/iframa, ne fonctionne plus et l'erreur suivante apparait "Parse error: syntax error, unexpected T_IF in /home/iframa/public_html/iframa/faq.php on line 1"
alors qu'on local tout fonctionne bien

voici le code complet du fichier faq.php

<?php

if (!function_exists("Mysql_Connexion")) {
!!!include!!! ("mainfile.php");
}
function ShowFaq($id_cat, $categories) {
global $sitename;
global $NPDS_Prefix;
echo "
n";
echo "$sitename   ".translate("FAQ (Frequently Ask Question)");
echo "
n";
echo "
";
echo"".translate("Category:")." ".translate("Main")." -> ".StripSlashes($categories);
echo "
<script type="text/!!!javascript!!!" language="!!!javascript!!!">
var NS4 = (document.layers);
var IE4 = (document.all);
var win = window;
var n = 0;
function findInPage(str) {
var txt, i, found;
if (str == "")
return false;
if (NS4) {
if (!win.find(str))
while(win.find(str, false, true))
n++;
else
n++;
if (n == 0)
alert("".translate("No matches found to your query")."");
}
if (IE4) {
txt = win.document.body.createTextRange();
for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
txt.moveStart("character", 1);
txt.moveEnd("textedit");
}
if (found) {
txt.moveStart("character", -1);
txt.findText(str);
txt.select(); //lwf
txt.scrollIntoView();
n++;
} else {
if (n > 0) {
n = 0;
findInPage(str);
} else
alert("".translate("No matches found to your query")."");
}
}
return false;
}
</script>";
echo "                                       
  



";
$result = sql_query("select id, id_cat, question, answer from ".$NPDS_Prefix."faqanswer where id_cat='$id_cat'");
while (list($id, $id_cat, $question, $answer) = sql_fetch_row($result)) {
$rowcolor = tablos();
echo" <$rowcolor >";
}
echo "
".translate("Question")."".aff_langue($question)."
";
}
function ShowFaqAll($id_cat) {
global $NPDS_Prefix;
echo "
n";
echo translate("Answer");
echo "
n";
echo "";
}
echo"
n";
$result = sql_query("select id, id_cat, question, answer from ".$NPDS_Prefix."faqanswer where id_cat='$id_cat'");
while(list($id, $id_cat, $question, $answer) = sql_fetch_row($result)) {
$rowcolor = tablos();
echo"
 ".aff_langue($question)." 

";
$answer=aff_code(aff_langue($answer));
echo meta_lang($answer);
// !!!include!!!("modules/blocscroll/cblock.php");
echo "


".translate("Back to Top")."



";
}
if (!$myfaq) {
!!!include!!! ("header.php");
// !!!include!!! cache manager
if ($SuperCache) {
$cache_obj = new cacheManager();
$cache_obj->startCachingPage();
}
if (($cache_obj->genereting_output==1) or ($cache_obj->genereting_output==-1) or (!$SuperCache)) {
opentable();
echo "
n";
echo "$sitename ".translate("FAQ (Frequently Ask Question)");
echo "
n";
echo "

";
$result = sql_query("select id_cat, categories from ".$NPDS_Prefix."faqcategories ORDER BY id_cat ASC");
while(list($id_cat, $categories) = sql_fetch_row($result)) {
$rowcolor=tablos();
$catname = urlencode(aff_langue($categories));
echo"";
}
echo"
".translate("Categories")."
".aff_langue($categories)."
";
closetable();
}
if ($SuperCache) {
$cache_obj->endCachingPage();
}
!!!include!!! ("footer.php");
} else {
$title="FAQ : ".removeHack(StripSlashes($categories));
!!!include!!!("header.php");
// !!!include!!! cache manager
if ($SuperCache) {
$cache_obj = new cacheManager();
$cache_obj->startCachingPage();
}
if (($cache_obj->genereting_output==1) or ($cache_obj->genereting_output==-1) or (!$SuperCache)) {
opentable();
ShowFaq($id_cat, removeHack($categories));
ShowFaqAll($id_cat);
closetable();
}
if ($SuperCache) {
$cache_obj->endCachingPage();
}
!!!include!!!("footer.php");
}
?> 
Inclure la signaturetrue 
notification par Email
..::..
8-)

Message édité par : chelifou / 15-04-2009 16:21



Message édité par : chelifou / 15-04-2009 16:23