PHP-Code:
<?php
include_once("init.php");
if($_GET['how'] == 'paged' && !isset($_GET['which']))
{
$which = 0;
}
else
{
$which = $_GET['which'];
}
$title = fof_view_title($_GET['feed'], $_GET['what'], $_GET['when'], $which, $_GET['howmany']);
$noedit = $_GET['noedit'];
?>
<!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">
<head>
<title><?php echo $title ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="fof.css" media="screen" />
<script src="fof.js" type="text/javascript"></script>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
</head>
<body id="view-page">
<?php
if(!$noedit)
{
?>
<form name="items" action="view-action.php" method="post">
<input type="hidden" name="action" />
<input type="hidden" name="return" />
<?php
$links = fof_get_nav_links($_GET['feed'], $_GET['what'], $_GET['when'], $which, $_GET['howmany']);
if($links)
{
?>
<?php
}
}
$result = fof_get_items($_GET['feed'], $_GET['what'], $_GET['when'], $which, $_GET['howmany']);
while($row = mysql_fetch_array($result))
{
$items = true;
$feed_link = htmlspecialchars($row['feed_link']);
$feed_title = htmlspecialchars($row['feed_title']);
$feed_description = htmlspecialchars($row['feed_description']);
$item_id = $row['item_id'];
$item_link = htmlspecialchars($row['item_link']);
$item_title = htmlspecialchars($row['item_title']);
$item_content = fof_balanceTags($row['item_content']);
$item_read = $row['item_read'];
$timestamp = date("j. F Y G:i ", $row['timestamp'] - (FOF_TIME_OFFSET * 60 * 60));
$dccreator = $row['dccreator'];
$dcdate = $row['dcdate'];
$dcsubject = $row['dcsubject'];
print '<div class="item">';
print '<div class="header">';
print "<a class=\"headline\" href=\"$item_link\">$item_title</a> ";
print "<a class=\"feed\" href=\"$feed_link\" title=\"$feed_description\">$feed_title</a>";
print '<span class="meta">';
if($dccreator)
{
print "by $dccreator ";
}
if($dcsubject)
{
print "on $dcsubject ";
}
if($dcdate)
{
$dcdate = date("j. F Y G:i", parse_w3cdtf($dcdate) + $asec - (FOF_TIME_OFFSET * 60 * 60));
print "at $dcdate ";
}
print "(Aktuallisiert $timestamp)</span>";
if(!$noedit)
{
}
print "<div class=\"clearer\"></div>
</div><div class=\"body\">$item_content</div></div>";
}
if(!$items)
{
echo "No items found.";
}
if(!$noedit)
{
?>
</form>
<?php
if($links)
{
?>
<?php
}
}
?>
</body>
</html>
Des ist die View.php und die ausgelesenen Inhalte bruach ich im Marquee.
Ich weiß das ich wenig kann daher frage ich um eiren rat!
MFG
Jack