150 lines
3.6 KiB
PHP
150 lines
3.6 KiB
PHP
<?php
|
|
if ($_SERVER["argv"][1] != "")
|
|
$nbnews = $_SERVER["argv"][1];
|
|
|
|
if (!isset($nbnews))
|
|
$nbnews = 5;
|
|
|
|
if (file_exists("tmp/yahoosport.$nbnews.cache.php") && $_ENV["nbnews"] == "")
|
|
include "tmp/yahoosport.$nbnews.cache.php";
|
|
else
|
|
{
|
|
include_once "include/theme.inc.php";
|
|
include_once "themes/default/theme.php";
|
|
require_once "include/standard.inc.php";
|
|
include_once "themes/default/theme.php";
|
|
//require_once "include/rssparser.inc.php";
|
|
extract($themeset, EXTR_OVERWRITE);
|
|
$right=0;
|
|
|
|
echo "<div align='center'><table><tr><td><img src='images/dazibaweb.gif' alt='Dazibaweb' /><b>2.0</b></td><td><img src='images/transparent.gif' alt='' class='icon_5' /></td><td><h1>Yahoo! Sports</h1></td></tr></table><br />";
|
|
//<table border='0'><tr>
|
|
//<td class='dazibaweb'>";
|
|
if (!isset($nbnews))
|
|
$nbnews = 5;
|
|
echo "<div class='dazibaweb'>\n";
|
|
$sitedata=1;
|
|
$source= "backends/xml/yahoosport_foot.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td class='dazibaweb'>\n";
|
|
|
|
$source= "backends/xml/yahoosport_f1.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td></tr>\n<tr><td>\n";
|
|
|
|
$source= "backends/xml/yahoosport_tennis.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td>\n";
|
|
|
|
$source= "backends/xml/yahoosport_rugb.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td></tr>\n<tr><td>\n";
|
|
|
|
$source= "backends/xml/yahoosport_bask.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td>\n";
|
|
|
|
$source = "backends/xml/yahoosport_cycl.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td></tr>\n<tr><td>\n";
|
|
|
|
$source = "backends/xml/yahoosport_sail.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td>\n";
|
|
|
|
$source = "backends/xml/yahoosport_trac.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td></tr>\n<tr><td>\n";
|
|
|
|
$source = "backends/xml/yahoosport_boxi.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td>\n";
|
|
|
|
$source = "backends/xml/yahoosport_golf.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td></tr>\n<tr><td>\n";
|
|
|
|
$source = "backends/xml/yahoosport_hand.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td>\n";
|
|
|
|
$source = "backends/xml/yahoosport_moto.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td></tr>\n<tr><td>\n";
|
|
|
|
$source = "backends/xml/yahoosport_vol.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td>\n";
|
|
|
|
$source = "backends/xml/yahoosport_rall.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
//include "modules/magicbox.php";
|
|
|
|
//echo "</td></tr>\n<tr><td>\n";
|
|
|
|
$source = "backends/xml/yahoosport_ski.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "</td><td>\n";
|
|
|
|
$source = "backends/xml/yahoosport_glace.rss";
|
|
$bodyclass="centerbody";
|
|
$module = "rssparser2";
|
|
include "modules/magicbox.php";
|
|
|
|
//echo "
|
|
//</td></tr></table>";
|
|
echo "<br /><div class='nbnews'>(contenu © Yahoo! Inc.)
|
|
</div></div>";
|
|
|
|
$page="yahoosport";
|
|
include "include/nbnews.inc.php";
|
|
|
|
echo "</div><div align='right'><h6>";
|
|
include "modules/backends/yahoosport.date.txt";
|
|
echo "</h6></div><hr /><br />";
|
|
}
|
|
|
|
?>
|