Wenn ich das mache kommt folgende Fehlermeldung:
Parse error: syntax error, unexpected '}' in .../include/contents/user/user_details.php on line 57
<?php
# Copyright by: Manuel
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
$uid = intval($menu->get(2));
$abf = 'SELECT * FROM prefix_user WHERE id = "'.$uid.'"';
$erg = db_query($abf);
if (db_num_rows($erg)) {
$row = db_fetch_assoc($erg);
$ges_ar = array ('wurstegal', 'maennlich', 'weiblich');
if (!is_numeric($row['geschlecht'])) {
$row['geschlecht'] = 0;
}
if (file_exists($row['avatar'])) {
$avatar = '<img src="' . $row['avatar'] . '" alt="User Pic" border="0" />';
} elseif ($allgAr['forum_default_avatar']) {
$avatar = '<img src="include/images/avatars/' . $ges_ar[$row['geschlecht']] . '.jpg" />';
} else {
$avatar = '';
}}
$regsek = mktime ( 0,0,0, date('m'), date('d'), date('Y') ) - $row['regist'];
$regday = round($regsek / 86400);
$postpday = ( $regday == 0 ? 0 : round($row['posts'] / $regday, 2 ) );
$ar = array (
'NAME' => $row['name'],
'JOINED' => date('d M Y',$row['regist']),
'LASTAK' => date('d M Y - H:i',$row['llogin']),
'POSTS' => $row['posts'],
'postpday' => $postpday,
'RANG' => userrang ($row['posts'],$uid),
'AVATA' => $avatar,
);
$title = $allgAr['title'].' :: Users :: Details von '.$row['name'];
$hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">Users</a><b> » </b> Details von '.$row['name'].$extented_forum_menu_sufix;
$design = new design ( $title , $hmenu, 1);
$design->header();
$tpl = new tpl ( 'user/userdetails' );
$l = profilefields_show ( $uid );
$ar['rowspan'] = 4 + substr_count($l, '<tr><td class="');
$ar['profilefields'] = $l;
$tpl->set_ar_out($ar,0);
} else {
$title = $allgAr['title'].' :: Users :: User nicht gefunden';
$hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">Users</a> '.$extented_forum_menu_sufix;
$design = new design ( $title , $hmenu, 1);
$design->header();
echo 'Der Benutzer wurde nicht gefunden bzw. die Seite wurde nicht richtig aufgerufen.<br />';
}
$design->footer();
?>