222 lines
4.9 KiB
PHP
222 lines
4.9 KiB
PHP
<?php
|
|
|
|
$nbnews = 5;
|
|
|
|
if ($_ENV["nbnews"] != "")
|
|
$nbnews = $_ENV["nbnews"];
|
|
|
|
|
|
if (isset($_COOKIE["TourmentineNbNewsCookie"]))
|
|
{
|
|
$cookieinfos = explode("-", $_COOKIE["TourmentineNbNewsCookie"]);
|
|
$nbnews = $cookieinfos[0];
|
|
}
|
|
|
|
if ($_GET["nbnews"] != "")
|
|
$nbnews = $_GET["nbnews"];
|
|
|
|
if (file_exists("tmp/pages/news/linux.$nbnews.cache.php") && $_SERVER["SERVER_SOFTWARE"] != "")
|
|
include "tmp/pages/news/linux.$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'><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>GNU/Linux</h1></td></tr></table><br />
|
|
<div align='center'>";
|
|
//<table border='0'><tr>
|
|
//<td class='dazibaweb'>";
|
|
|
|
echo "<div class='dazibaweb'>\n";
|
|
//$convert=1;
|
|
//$sitedata=1;
|
|
// da linux french page
|
|
$source = "linuxfr.rss";
|
|
$sitedata=get_sitedata($source);
|
|
extract($sitedata);
|
|
$title_site="Da Linux French Page";
|
|
$link_site="http://linuxfr.org";
|
|
$titre = "<a href=$link_site target=\"_blank\">$title_site</a>";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
//$footerboxtext="rdf";
|
|
$module = "rssparser";
|
|
include "modules/magicbox.php";
|
|
|
|
$source = "linuxfr_journaux.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td class='dazibaweb'>\n";
|
|
|
|
// LinuxFrench
|
|
$source = "linuxfrench.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$footerboxtext="rdf";
|
|
$module = "rssparser";
|
|
include "modules/magicbox.php";
|
|
|
|
$convert=1;
|
|
$source = "lealinux.rss";
|
|
$module = "rssparser";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
include "modules/magicbox.php";
|
|
unset($convert);
|
|
|
|
//echo "</td></tr><tr><td>";
|
|
//echo "</div><div class='dazibaweb'>";
|
|
|
|
$source = "gentoofr.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
// include "modules/magicbox.php";
|
|
|
|
// pclinuxonline
|
|
|
|
$source = "pclinuxonline.rss";
|
|
$sitedata=get_sitedata($source);
|
|
extract($sitedata);
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser";
|
|
include "modules/magicbox.php";
|
|
|
|
$source = "madpenguin.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td>";
|
|
|
|
// portalinux
|
|
$source = "portalinux.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser";
|
|
// include "modules/magicbox.php";
|
|
|
|
// ze-linux
|
|
$source = "zelinux.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser";
|
|
include "modules/magicbox.php";
|
|
|
|
// unixtech
|
|
$convert=1;
|
|
$source = "linuxbe.rss";
|
|
$sitedata=get_sitedata($source);
|
|
extract($sitedata);
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser";
|
|
// include "modules/magicbox.php";
|
|
unset($convert);
|
|
|
|
// freshmeat
|
|
$source = "freshmeat.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser";
|
|
//if (file_exists($source))
|
|
include "modules/magicbox.php";
|
|
|
|
// dot.kde.org
|
|
$source = "dotkde.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser";
|
|
include "modules/magicbox.php";
|
|
|
|
// debian.org
|
|
$source = "debian_org.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser";
|
|
include "modules/magicbox.php";
|
|
|
|
$source = "linuxcomp.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser";
|
|
include "modules/magicbox.php";
|
|
|
|
// newsforge newsvac
|
|
$source = "newsforge_n.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td>";
|
|
|
|
// newsforge reports
|
|
$source = "newsforge_r.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser";
|
|
include "modules/magicbox.php";
|
|
|
|
$source = "debian-fr.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser";
|
|
include "modules/magicbox.php";
|
|
|
|
$source = "portalux.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
// include "modules/magicbox.php";
|
|
|
|
$source = "debian_ch.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
//if (file_exists($source))
|
|
// include "modules/magicbox.php";
|
|
|
|
//echo "</td><td>";
|
|
|
|
$source = "mwn.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
//if (file_exists($source))
|
|
// include "modules/magicbox.php";
|
|
|
|
//echo "</td></tr><tr><td>";
|
|
//echo "</div><div class='dazibaweb'>";
|
|
|
|
|
|
$source = "gentoofr.rss";
|
|
$headclass="centerhead";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
//if (file_exists($source))
|
|
//include "modules/magicbox.php";
|
|
|
|
//echo "</td><td>";
|
|
|
|
echo "</div></div>";
|
|
|
|
$page="linux";
|
|
include "include/nbnews.inc.php";
|
|
|
|
echo "</div><div align=\"right\"><h6>";
|
|
include "modules/backends/linux.date.txt";
|
|
echo "</h6></div><hr /><br />";
|
|
}
|
|
?>
|
|
|