All pastes #929377 Raw Edit

Jemand

public text v1 · immutable
·published 2008-03-05 19:03 UTC
rendered paste body
<?php

require_once('./simplepie.inc');

$feed = new SimplePie(array(
	'http://www.nytimes.com/services/xml/rss/nyt/Sports.xml',
	'http://rss.cnn.com/rss/edition_sport.rss',
	
));
$feed->handle_content_type(); ?>
<?php ob_start(); 
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>yenio - Topic: Sports</title>
<style type="text/css">
<!--
#apDiv1 {
	position:absolute;
	left:0px;
	top:0px;
	width:1005px;
	height:572px;
	z-index:1;
}
#apDiv2 {
	position:absolute;
	left:134px;
	top:318px;
	width:326px;
	height:20px;
	z-index:2;
}
#apDiv3 {
	position:absolute;
	left:454px;
	top:15px;
	width:173px;
	height:130px;
	z-index:3;
}
#apDiv4 {
	position:absolute;
	left:0px;
	top:0px;
	width:250px;
	height:180px;
	z-index:2;
}
#apDiv5 {
	position:absolute;
	left:910px;
	top:0px;
	width:91px;
	height:37px;
	z-index:3;
}
.style1 {
	font-family: Arial, Helvetica, sans-serif
}
#apDiv6 {
	position:absolute;
	left:26px;
	top:194px;
	width:228px;
	height:48px;
	z-index:4;
}
-->
</style>
<style type="text/css">
<!--
#apDiv7 {
	position:absolute;
	left:5px;
	top:206px;
	width:376px;
	height:256px;
	z-index:5;
	visibility: visible;
}
#apDiv8 {
	position:absolute;
	left:289px;
	top:546px;
	width:431px;
	height:24px;
	z-index:6;
}
#apDiv9 {
	position:absolute;
	left:273px;
	top:52px;
	width:728px;
	height:90px;
	z-index:7;
}
#apDiv10 {
	position:absolute;
	left:25px;
	top:266px;
	width:229px;
	height:108px;
	z-index:8;
}
#apDiv11 {
	position:absolute;
	left:2px;
	top:277px;
	width:26px;
	height:23px;
	z-index:8;
}
#apDiv12 {
	position:absolute;
	left:25px;
	top:277px;
	width:914px;
	height:83px;
	z-index:8;
}
#apDiv13 {	position:absolute;
	left:289px;
	top:546px;
	width:431px;
	height:24px;
	z-index:6;
}
#apDiv14 {
	position:absolute;
	left:245px;
	top:349px;
	width:146px;
	height:37px;
	z-index:9;
}
-->
</style>
</head>

<body>
<!-- google_ad_section_start -->
<div id="apDiv1">
  <div id="apDiv5">
    <div align="right" class="style1"><a href="index_tr.php">tr</a> | <a href="index_e.php">en</a> | <a href="../index.php">de</a></div>
  </div>
</div>
<div id="apDiv4"><a href="../index.php"><img src="../bilder/yenio_e.jpg" alt="yenio_d" width="250" height="180" border="0" /></a></div>
<div id="apDiv6">
  <form id="form1" name="form1" method="get" action="">
  <select name="test" id="test">
        <option selected="selected">International</option>
        <option>Economy</option>
        <option>Sports</option>
    </select>
<?php
//überprüfen ob überhaupt "test" vorhanden ist
if(isset($_GET['test'])) {

if($_GET['test'] == "International") 
{
	header('Location: http://www.yenio.com/html/international_e.php'); // diräkt s file sött länge, solangs im gliche ordner isch. sunscht url goht au.
} 
if($_GET['test'] == "Economy")
{
	header('Location: http://www.yenio.com/html/economy.php');
}
if($_GET['test'] == "Sports")
{
	header('Location: http://www.yenio.com//html/sports.php');
}

}
?>
  <label>
  <input name="Los" type="submit" class="style1" id="Los" value="Los!" />
  </label>
  </form>
</div>
<div id="apDiv9"><script type="text/javascript"><!--
google_ad_client = "pub-7390420622522972";
/* 728x90, Erstellt 04.03.08 */
google_ad_slot = "6465368864";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p align="left"><span id="apDiv12">
  

<?php
	foreach ($feed->get_items() as $item)
	{
		$feed = $item->get_feed();
	
		echo '<h4><font face="Arial,Helvetica"><font color="#000000"><a href="' . $item->get_permalink() . '">' . $item->get_title() . '</a></font></font></h4>';
		echo '<font face="Arial,Helvetica"><p>' . $item->get_content() . '</font></p>';
		echo '<font face="Arial,Helvetica"><p>Quelle: <a href="' . $item->get_feed()->get_permalink() . '"><img src ="' . $feed->get_favicon() . '" title="' . $feed->get_title() .  '" border="0" width="16" height="16" /></a> 		| ' . $item->get_date() . '</font></p>';
		echo '<hr />';
	}
?>
<div align="center" class="style1"><a href="mailto:contact@yenio.com?subject=sources">missing sources?</a> | <a href="whatis_e.html">what is yenio?</a> | <a href="mailto:soundso@soundso.de?subject=Quellen">contact</a></div>
</span></p>
<p>&nbsp;</p>
<!-- google_ad_section_end -->
</body>
</html>