41 lines
1.3 KiB
PHP
41 lines
1.3 KiB
PHP
<?php
|
|
|
|
/* echo "<div class='center'><h1>Laissez-nous un message...</h1></div><br />\n";
|
|
if (strstr($_SERVER["REDIRECT_URL"],"comment"))
|
|
//if ($_POST["param"] != "postgb")
|
|
{
|
|
$cachefile = "tmp/livre2.cache.php";
|
|
if (!file_exists($cachefile) || (filemtime($cachefile) < filemtime("modules/goldbook/goldbook.forum.csv")))
|
|
{
|
|
$cachecontent = "\n\n<!-- Partie mise en cache (".date("d/m/Y@H:i:s").")-->\n\n";
|
|
$cachecontent .= file_get_contents("http://".$_SERVER["HTTP_HOST"]."/modules/magicbox.php?module=forum&forumfile=goldbook/goldbook.forum.csv&idnews=goldbook&bodyclass=centerbody&titre=&lang=$lang");
|
|
$cachecontent .= "\n<!-- fin Partie mise en cache -->\n\n";
|
|
|
|
$cachecontent = str_replace("<!--NOCACHE","<?php",$cachecontent);
|
|
$cachecontent = str_replace("NOCACHE-->","?>",$cachecontent);
|
|
|
|
$fp = fopen($cachefile,"w");
|
|
fwrite($fp,$cachecontent);
|
|
fclose($fp);
|
|
}
|
|
include $cachefile;
|
|
}
|
|
else
|
|
{*/
|
|
$param="postgb";
|
|
|
|
unset($NbMaxPost);
|
|
extract($themeset, EXTR_OVERWRITE);
|
|
//$headstartcode = "<font size='3' class='centerhead'>";
|
|
//$headendcode ="</font>";
|
|
$bodyclass = "centerbody";
|
|
$module = "forum";
|
|
$idnews = "goldbook";
|
|
$forumfile = "modules/goldbook/goldbook.forum.csv";
|
|
$titre = "";
|
|
//$GoldbookFile = "goldbook";
|
|
$footerbox=0;
|
|
include "modules/magicbox.php";
|
|
unset($bodyclass);
|
|
//}
|
|
?>
|