\n";
echo "\n\n\n";
$cachefile = "tmp/left.cache.php";
if (!file_exists($cachefile) || (filemtime($cachefile) < filemtime("modules")) || (filemtime($cachefile) < filemtime("left.php")))
{
$cachecontent = "\n\n";
// $cachecontent .= "
\n";
//$cachecontent .= file_get_contents("http://".$_SERVER["HTTP_HOST"]."/left.php");
$cachecontent .= file_get_contents("http://old.tourmentine.com/left.php");
//$cachecontent .= " | \n";
$cachecontent .= "\n\n\n";
$cachecontent = str_replace("","?>",$cachecontent);
$fp = fopen($cachefile,"w");
fwrite($fp,$cachecontent);
fclose($fp);
}
include $cachefile;
unset($cachefile);
echo "";
}
// ************** centre ****************
echo "";
//echo "
| \n\n";
echo "\n\n\n";
// --- gestion des modules ---
if (isset($modulepage))
{
//include "include/logo.inc.php";
switch($modulepage)
{
case "sondage":
extract($themeset, EXTR_OVERWRITE);
$headstartcode = "";
$headendcode ="";
$bodyclass="centerbody";
$module = "sondage";
$titre = "Résultats du sondage";
include "modules/magicbox.php";
break;
case "commentnews":
/*if (!isset($FileNews))
{
if (file_exists("modules/news/news.$lang.csv"))
$FileNews = "modules/news/news.$lang";
else
$FileNews = "modules/news/news";
}*/
//echo "";
if (strstr($_SERVER["REDIRECT_URL"],"billet"))
{
$cachefile = "tmp/billet.$idnews.$lang.cache.php";
if (!file_exists($cachefile) || (filemtime($cachefile) < filemtime("modules/news")))
{
$cachecontent = "\n\n";
//$cachecontent .= file_get_contents("http://".$_SERVER["HTTP_HOST"]."/include/logo.inc.php");
//$cachecontent .= file_get_contents("http://".$_SERVER["HTTP_HOST"]."/modules/commentnews.php?idnews=".$idnews."&lang=".$lang);
$cachecontent .= file_get_contents("http://old.tourmentine.com/include/logo.inc.php");
$cachecontent .= file_get_contents("http://old.tourmentine.com/modules/commentnews.php?idnews=".$idnews."&lang=".$lang);
$cachecontent .= "\n\n\n";
$cachecontent = str_replace("","?>",$cachecontent);
echo $cachecontent;
$fp = fopen($cachefile,"w");
fwrite($fp,$cachecontent);
fclose($fp);
}
else include $cachefile;
unset($cachefile);
}
else
{
//echo "";
include "include/logo.inc.php";
if (isset($File))
$FileNews = $File;
if (!isset($FileNews))
{
if (file_exists("modules/news/news.$lang.csv"))
$FileNews = "modules/news/news.$lang";
else
$FileNews = "modules/news/news";
}
$modulepage="affnews";
$start=$idnews;
$NbMaxNews=1;
include "modules/affnews.php";
//$headstartcode = "";
//$headendcode ="";
$bodyclass = "centerbody";
$module = "forum";
if ($lang == "fr")
$titre = "Commentaires";
else
$titre = "Comments";
//$goldbooktype = "comment";
$forumfile = "$FileNews.$idnews.forum.csv";
//echo "";
include "modules/magicbox.php";
}
echo "";
//$modulepage = "commentbook";
// unset($goldbooktype);
// unset($NewsFile);
// unset($File);
break;
case "backend":
if (isset($File))
$FileNews = $File;
if (!isset($FileNews))
$FileNews = "modules/news/news.fr";
include "modules/genbackend.php";
break;
default:
if (file_exists("$section/index.$lang.php"))
include "$section/index.$lang.php";
else
include "$section/index.php";
}
}
else
{
// ---- affichage des pages ----
if ($page != "index")
{
if (file_exists("$section/$page.$lang.php"))
{
include "$section/$page.$lang.php";
echo "";
}
else if (file_exists("$section/$page.php"))
{
include "$section/$page.php";
echo "";
}
else
{
if (file_exists("$section/index.$lang.php"))
include "$section/index.$lang.php";
else
include "$section/index.php";
}
}
else
{
//include "include/logo.inc.php";
// si url éronnée, affiche la page d'acceuil
if (file_exists("$section/index.$lang.php"))
include "$section/index.$lang.php";
else
include "$section/index.php";
}
}
//echo " | ";
echo "
";
// *************** droite *************************
unset ($headclass);
if ($right == 1)
{
echo "\n