folgender fehlercode: Parse error: syntax error, unexpected '{', expecting '(' in /usr/export/www/hosting/therules/include/contents/user/user_details.php on line 18
wenn ich das einfüge:
<?php
# Copyright by: Manuel
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
$uid = $menu->get(2);
$abf = 'SELECT * FROM prefix_user WHERE id = "'.$uid.'"';
$erg = db_query($abf);
$row = db_fetch_assoc($erg);
$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 ) );
$rp=rangcount($row['id'],$row['posts'],$row['cpoints'],$row['fwarn']);
$postar = array{25,50,75,150,250,500,1000,2000,5000,7000,10000};
$i=0;
while($postar[$i]!= "")
{
if(row['posts']<$postar[$i])
{
$hunderpozent = $postar[$i]- $postar[$i-1];
$erfahrung = 100/$hundertprozent*$row['posts'];
}
$i++;
}
$ar = array (
'NAME' => $row['name'],
'ROWSP'=>10,
'JOINED' => date('d M Y',$row['regist']),
'LASTAK' => date('d M Y - H:i',$row['llogin']),
'POSTS' => $row['posts'],
'postpday' => $postpday,
'ERFAHRUNG' => $erfahrung,
'RANG' => rangbild ($rp),
'SRANK' => spezrang ($row['id']),
'RECHT' => getlistrecht($row['recht']),
'POINTS' =>$row['cpoints'],
'RPOINT' =>$rp,
'GAMES' => getteams($row['id']),
'VERW' => verwarnstu($row['fwarn'],0),
'dze'=>getmedal(1,$row['regist']),
'fze'=>getmedal(2,$row['posts']),
'wze'=>getmedal(3,$row['cpoints']),
'cme' =>getmedal(4,$row['medal'])
);
$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, 'forum/index.htm' );
$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);
$design->footer();
?>
ich denke mal das es richtig so ist, zumindestens habe ich es so verstanden.......
die template habe ich so wie oben gepostet