125 lines
2.9 KiB
PHP
125 lines
2.9 KiB
PHP
<?php
|
|
|
|
$nbnews = 5;
|
|
|
|
if ($_GET["nbnews"] != "")
|
|
$nbnews = $_GET["nbnews"];
|
|
if ($_ENV["nbnews"] != "")
|
|
$nbnews = $_ENV["nbnews"];
|
|
|
|
if (isset($_COOKIE["TourmentineNbNewsCookie"]))
|
|
{
|
|
$cookieinfos = explode("-", $_COOKIE["TourmentineNbNewsCookie"]);
|
|
$nbnews = $cookieinfos[0];
|
|
}
|
|
|
|
if (file_exists("tmp/pages/news/googlenews.fr.$nbnews.cache.php") && $_ENV["nbnews"] == "")
|
|
include "tmp/pages/news/googlenews.fr.$nbnews.cache.php";
|
|
else
|
|
{
|
|
include_once "themes/default/theme.php";
|
|
include_once "include/theme.inc.php";
|
|
require_once "include/rssparser.inc.php";
|
|
require_once "include/standard.inc.php";
|
|
|
|
extract($themeset, EXTR_OVERWRITE);
|
|
$right=0;
|
|
echo "<div align='center'><div class='logo'><table><tr><td><img src='/images/dazibaweb.gif' alt='Dazibaweb' /></td><td><img src='/modules/share/trans.gif' alt='' class='icon_5' /></td><td><h1>Google Actualités France</h1></td></tr></table><br /></div>";
|
|
//<table border='0' width='100%'><tr>
|
|
//<td class='dazibaweb'>";
|
|
|
|
echo "<div class='dazibaweb'>";
|
|
$convert="on";
|
|
$source= "googlenewsfr_int.rss";
|
|
$bodyclass="centerbody";
|
|
$footerboxtext="rdf";
|
|
$module = "rssparser2";
|
|
$sitedata="1";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td class='dazibaweb'>\n";
|
|
/*
|
|
$source= "googlenewsfr_france.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td></tr>\n<tr><td>\n";
|
|
|
|
$source= "googlenewsfr_eco.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td>\n";
|
|
|
|
$source= "googlenewsfr_science.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
|
|
include "modules/magicbox.php";
|
|
|
|
|
|
//echo "</td></tr>\n<tr><td>\n";
|
|
|
|
$source= "googlenewsfr_sports.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td>\n";
|
|
|
|
$source = "googlenewsfr_culture.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td></tr>\n<tr><td>\n";
|
|
|
|
$source = "googlenewsfr_sante.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td>\n";
|
|
/*
|
|
$source = "../../backends/xml/yahooactu_insolite.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
|
|
include "modules/magicbox.php";
|
|
*/
|
|
//echo "</td></tr>\n<tr><td>\n";
|
|
/*
|
|
$source = "../../backends/xml/yahooactu_sciences.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
|
|
include "modules/magicbox.php";
|
|
*/
|
|
//echo "</td><td>\n";
|
|
/*
|
|
$source = "../../backends/xml/yahooactu_sante.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
|
|
include "modules/magicbox.php";
|
|
*/
|
|
//echo "
|
|
//</td></tr></table>";
|
|
//echo "<br /><div class='nbnews'>(contenu © Yahoo! Inc./Associated Press/AFP/Caducée/Destination santé)</div>
|
|
echo "</div>";
|
|
|
|
$page="googleactu";
|
|
include "include/nbnews.inc.php";
|
|
|
|
echo "</div><div align='right'><h6>";
|
|
include "modules/backends/googlenews.date.txt";
|
|
echo "</h6></div><hr /><br />";
|
|
}
|
|
|
|
?>
|