NPDS Forum Extender -: Problèmes :- | | Sujet | Parse 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ème | Mon 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 "
".translate("Question")." | ";
$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 >".aff_langue($question)." | ";
}
echo " ";
}
function ShowFaqAll($id_cat) {
global $NPDS_Prefix;
echo "n";
echo translate("Answer");
echo " | n";
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")."
| ";
}
echo"
";
}
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 "
".translate("Categories")." | ";
$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"".aff_langue($categories)." | ";
}
echo" ";
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 signature | true | notification par Email | | ..::.. |
|
8-)
Message édité par : chelifou / 15-04-2009 16:21
Message édité par : chelifou / 15-04-2009 16:23