n/oldblog
Archived
1
0
Fork 0
This repository has been archived on 2024-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
oldblog/pages/livre2.php

42 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2023-04-30 21:28:42 +02:00
<?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);
//}
?>