DarkSummer
Erfahrenes Mitglied
PHP:
<?php
include ("config.php");
flame();
openpage();
leftnavi();
content();
?>
<center>
<?
$newsdata = array();
$handle=opendir('data/news');
while (($file = readdir($handle))!=false)
{
if($file!="." AND $file!="..")
{
array_push($newsdata,"$file");
}
}
closedir($handle);
rsort($newsdata);
reset($newsdata); // News sortieren
for($i=0; $i<count($newsdata); $i++){
$arr=explode("|",implode("",file("data/news/$newsdata[$i]")));
// News ausgeben
if(isset($game))
{
if($arr[10] == "$game")
{
echo "<table border=0 width=\"500\">";
echo "<tr>";
echo "<td width=\"500\" height=\"100\" style=\"background-image:url(gfx/news/$game.gif)\">";
echo "<br><br><br><br><p valign=\"top\" style=\" margin-left: 10pt\">Thema: $arr[0]</p><br></td>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td border-right=1 width=\"350\"><p valign=\"top\" style=\" margin-left: 10pt\">$arr[3]</p>";
?>
<?
if($arr[4] == "" and $arr[5] == "" and $arr[4] == "" and $arr[5] == "")
{
echo "";
}
else {
echo "<p style=\" margin-left: 32pt\">Related Links:<br><hr width=\"50%\"></p>";}
?>
<?
if($arr[4] == "" or $arr[5] == "")
{
echo "";
}
else { echo "<p style=\" margin-left: 32pt\"><img src=\"gfx/news/point.jpg\" border=\"0\"> <a href=\"http://$arr[5]\" target=_self\">$arr[4]</a></p>";}
?>
<?
if($arr[6] == "" or $arr[7] == "")
{
echo "";
}
else { echo "<p style=\" margin-left: 32pt\"><img src=\"gfx/news/point.jpg\" border=\"0\"> <a href=\"http://$arr[7]\" target=_self\">$arr[6]</a></p>";}
?>
<?
echo "<br></p></td>";
echo "</tr>";
echo "<tr>";
echo "<td height=\"20\" style=\"background-image:url(gfx/news/ende1.gif)\" norewind><div align=\"right\">posted by <a href=\"mailto:$arr[2]\">$arr[1]</a> on $arr[9] - <a href=\"kommentar.php?game=$arr[10]&news=$arr[8]\">- Comments -</a><br><br></div></td>";
echo "</tr>";
echo "</table>";
}
elseif($game == "")
{
echo "<table border=0 width=\"500\">";
echo "<tr>";
echo "<td width=\"500\" height=\"100\" style=\"background-image:url(gfx/news/$arr[10].gif)\">";
echo "<br><br><br><br><p valign=\"top\" style=\" margin-left: 10pt\">Thema: $arr[0]</p><br></td>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td border-right=1 width=\"350\"><p valign=\"top\" style=\" margin-left: 10pt\">$arr[3]</p>";
?>
<?
if($arr[4] == "" and $arr[5] == "" and $arr[4] == "" and $arr[5] == "")
{
echo "";
}
else {
echo "<p style=\" margin-left: 32pt\">Related Links:<br><hr width=\"50%\"></p>";}
?>
<?
if($arr[4] == "" or $arr[5] == "")
{
echo "";
}
else { echo "<p style=\" margin-left: 32pt\"><img src=\"gfx/news/point.jpg\" border=\"0\"> <a href=\"http://$arr[5]\" target=_self\">$arr[4]</a></p>";}
?>
<?
if($arr[6] == "" or $arr[7] == "")
{
echo "";
}
else { echo "<p style=\" margin-left: 32pt\"><img src=\"gfx/news/point.jpg\" border=\"0\"> <a href=\"http://$arr[7]\" target=_self\">$arr[6]</a></p>";}
?>
<?
echo "<br></p></td>";
echo "</tr>";
echo "<tr>";
echo "<td height=\"20\" style=\"background-image:url(gfx/news/ende1.gif)\" norewind><div align=\"right\">posted by <a href=\"mailto:$arr[2]\">$arr[1]</a> on $arr[9] - <a href=\"kommentar.php?game=$arr[10]&news=$arr[8]\">- Comments -</a><br><br></div></td>";
echo "</tr>";
echo "</table>";
}
}
endcontent();
rightnavi();
closepage();
?>
er sagt mir das in der letzten zeile also scho nach ?> ein parse error ist nur warum ??? kann mir einer helfen
Zuletzt bearbeitet: