166 lines
3.7 KiB
PHP
166 lines
3.7 KiB
PHP
|
<?php
|
||
|
$nbnews = 5;
|
||
|
|
||
|
if ($_ENV["nbnews"] != "")
|
||
|
$nbnews = $_SERVER["argv"][1];
|
||
|
if ($_GET["nbnews"] != "")
|
||
|
$nbnews = $_GET["nbnews"];
|
||
|
|
||
|
if (isset($_COOKIE["TourmentineNbNewsCookie"]))
|
||
|
{
|
||
|
$cookieinfos = explode("-", $_COOKIE["TourmentineNbNewsCookie"]);
|
||
|
$nbnews = $cookieinfos[0];
|
||
|
}
|
||
|
|
||
|
if (file_exists("tmp/pages/news/info.$nbnews.cache.php") && $_SERVER["SERVER_SOFTWARE"] != "")
|
||
|
include "tmp/pages/news/info.$nbnews.cache.php";
|
||
|
else
|
||
|
{
|
||
|
include_once "include/theme.inc.php";
|
||
|
include_once "themes/default/theme.php";
|
||
|
require_once "include/standard.inc.php";
|
||
|
require_once "include/rssparser.inc.php";
|
||
|
extract($themeset, EXTR_OVERWRITE);
|
||
|
|
||
|
echo "<div align='center'><div class='logo'><table summary=''><tr><td><img src='/images/dazibaweb.gif' alt='Dazibaweb' /></td><td><img src='/images/transparent.gif' alt='' class='icon_5' /></td><td><h1>Informatique</h1></td></tr></table><br /></div>";
|
||
|
//<table border='0'><tr>
|
||
|
//<td class='dazibaweb'>\n";
|
||
|
if (!isset($nbnews))
|
||
|
$nbnews = 5;
|
||
|
|
||
|
echo "<div class='dazibaweb'>";
|
||
|
|
||
|
$source="hoaxbuster.rss";
|
||
|
$sitedata=get_sitedata($source);
|
||
|
$headclass="centerhead";
|
||
|
$bodyclass="centerbody";
|
||
|
$footerboxtext="rdf";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
|
||
|
//echo "</td><td class='dazibaweb'>\n";
|
||
|
|
||
|
$source = "presencepc.rss";
|
||
|
$bodyclass="centerbody";
|
||
|
$footerboxtext="rdf";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
|
||
|
$source="pcinpact.rss";
|
||
|
$headclass="centerhead";
|
||
|
$bodyclass="centerbody";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
|
||
|
# $source="inpactvirtuel.rss";
|
||
|
# $headclass="centerhead";
|
||
|
# $bodyclass="centerbody";
|
||
|
# $module = "rssparser";
|
||
|
# include "modules/magicbox.php";
|
||
|
|
||
|
//echo "</td></tr><tr><td>\n";
|
||
|
|
||
|
$source="cafzone.rss";
|
||
|
$bodyclass="centerbody";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
|
||
|
$source="gameblog.rss";
|
||
|
$bodyclass="centerbody";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
|
||
|
//echo "</td><td>\n";
|
||
|
|
||
|
//$convert=1;
|
||
|
$source = "mozillazine-fr.rss";
|
||
|
$bodyclass="centerbody";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
//$convert=0;
|
||
|
/*$source="nospoon.rss";
|
||
|
$bodyclass="centerbody";
|
||
|
$footerboxtext="rdf";
|
||
|
$module = "rssparser2";
|
||
|
include "modules/magicbox.php";*/
|
||
|
|
||
|
//echo "</td><td>\n";
|
||
|
|
||
|
unset($convert);
|
||
|
$source="branchezvous.rss";
|
||
|
$bodyclass="centerbody";
|
||
|
$footerboxtext="rdf";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
|
||
|
//echo "</td></tr><tr><td>\n";
|
||
|
|
||
|
$source="beneficenet.rss";
|
||
|
$bodyclass="centerbody";
|
||
|
$footerboxtext="rdf";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
|
||
|
//echo "</td><td>\n";
|
||
|
|
||
|
$convert="on";
|
||
|
$source="jouezcom.rss";
|
||
|
$bodyclass="centerbody";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
|
||
|
$source="zdnet.rss";
|
||
|
$bodyclass="centerbody";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
|
||
|
/*$source="zdnet_net.rss";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";*/
|
||
|
|
||
|
$source="silicon.rss";
|
||
|
$headclass="centerhead";
|
||
|
$bodyclass="centerbody";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
|
||
|
//echo "</td></tr><tr><td>\n";
|
||
|
|
||
|
$source = "bbspot.rss";
|
||
|
$bodyclass="centerbody";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
|
||
|
$source = "osnews.rss";
|
||
|
$bodyclass="centerbody";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
|
||
|
$source = "slashdot.rss";
|
||
|
$bodyclass="centerbody";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
|
||
|
//echo "</td><td>\n";
|
||
|
|
||
|
$source = "kuro5hin.rss";
|
||
|
$sitedata=get_sitedata($source);
|
||
|
$bodyclass="centerbody";
|
||
|
$module = "rssparser";
|
||
|
include "modules/magicbox.php";
|
||
|
|
||
|
/*echo "
|
||
|
</td></tr></table><br />
|
||
|
</div>";*/
|
||
|
echo "</div>";
|
||
|
|
||
|
$page="info";
|
||
|
include "include/nbnews.inc.php";
|
||
|
|
||
|
echo "</div><div align='right'><h6>";
|
||
|
include "modules/backends/info.date.txt";
|
||
|
echo "</h6></div><hr /><br />";
|
||
|
}
|
||
|
|
||
|
?>
|