Nem php kode, mangler bare lidt hjælp!
<!-- Members --><?php echo toimg(">> Members", 0); ?>
<div style="padding-left: 40px">
<?php
if($authed == FALSE) {
?>
<p>
<?php
echo toimg("[click for info]\n\n", 1);
$members = file("members/memberlist.inc");
natcasesort($members);
reset($members);
while(list($key, $name, $comments) = each($members)) {
$name = str_replace("\n", "", $name);
$name = trim($name);
echo "<tr>\n <td><a href=\"" . $PHP_SELF . "?id=" . $id . "&pid=" . $name . $admin . "\">" . toimg($name, 0) . "</a></td><td>" . toimg(" [ ", 1) . '<a href="index.php?id=3&action=postcomment&pid=' . $name . $admin . '">' . toimg("comment", 1) . '</a>' . toimg(" ]", 1). "\n</td></tr>\n";
}
?>
</p>
<?php
} else {
?>
<table style="margin-top: 10px; margin-bottom: 10px;">
<?php
$members = file("members/memberlist.inc");
natcasesort($members);
reset($members);
while(list($key, $name) = each($members)) {
$name = str_replace("\n", "", $name);
$name = trim($name);
echo "<tr>\n <td><a href=\"" . $PHP_SELF . "?id=" . $id . "&pid=" . $name . $admin . "\">" . toimg($name, 0) .'<img src="gfx/1x1.gif" width="1" height="1"><br><img src="gfx/1x1.gif" width="1" height="1"><br>' . "</a></td><td>" . toimg("[ ", 1) . '<a href="index.php?id=3&action=editmember&pid=' . $name . $admin . '">' . toimg("edit", 1) . '</a>' . toimg(" | ", 1) . '<a href="index.php?id=3&action=deletemember&pid=' . $name . $admin . '">' . toimg("delete", 1) . '</a>' . toimg(" ]", 1) . "\n</tr>\n";
}
echo '<tr><td colspan="2"><a href="index.php?id=3&action=addmember' . $admin . '">' . toimg(">> Add new member", 1) . '</a></td></tr>';
?>
</table>
<?php
}
?>
</div>
<!-- Hall of fame -->
<?php echo toimg(">> Hall of fame", 0); ?>
<div style="padding-left: 40px">
<p>
<?php
$hof = file("members/halloffame.inc");
natcasesort($hof);
reset($hof);
while(list($key, $name) = each($hof)) {
$name = str_replace("\n", "", $name);
$name = trim($name);
if($authed == TRUE) {
$delete = '<a href="members/deletehof.php?name=' . $name . $admin . '">' . toimg(" [ delete ]", 1) . "</a>";
}
echo toimg($name, 0) . '<img src="gfx/1x1.gif" width="1" height="1">' . $delete . '<br><img src="gfx/1x1.gif" width="1" height="1"><br>';
}
echo '<br>' . toimg("Honor these brave soldiers, who have once fought among us.", 0) . '';
if($authed == TRUE) {
echo toimg("\n\n>> Add a name to the Hall of Fame\n", 1);
?>
<form method="post" action="members/addhof.php?<?php echo $admin; ?>"><input type="text" size="10" name="name"></form>
<?php
}
?>
</p>
</div>
http://62.107.74.194/lotr/index.php?id=3
det ser helt forkert ud.... Hvor er fejlen..? på forhånd tak!