Forum » '.aktForumCats($aktForumRow['kat']).' » '.$aktForumRow['name'].' » ';
$hmenu .= $aktTopicRow['name'].$extented_forum_menu_sufix;
$design = new design ( $title , $hmenu, 1);
$design->header();
# Topic Hits werden eins hochgesetzt.
db_query('UPDATE `prefix_topics` SET hit = hit + 1 WHERE id = "'.$tid.'"');
# mehrere seiten fals gefordert
$limit = $allgAr['Fpanz']; // Limit
$page = ($menu->getA(3) == 'p' ? $menu->getE(3) : 1 );
$MPL = db_make_sites ($page , "WHERE tid = ".$tid , $limit , 'index.php?forum-showposts-'.$tid , 'posts' );
$anfang = ($page - 1) * $limit;
$antworten = '';
if ($aktTopicRow['stat'] == 1 AND $forum_rights['reply'] == TRUE ) {
$antworten = '[ '.$lang['answer'].' ]';
}
if ($menu->get(3) == 'select') {
db_query("INSERT INTO `prefix_topics_select` (uid,tid)
VALUES (".$_SESSION['authid'].",".$tid.")");
wd ('?forum-showposts-'.$tid, 'Das Thema wird nun beobachtet.' , 3 );
}
if ($menu->get(3) == 'sedel') {
db_query('DELETE FROM `prefix_topics_select` WHERE tid = "'.$menu->get(2).'" LIMIT 1');
wd ('?forum-showposts-'.$tid, 'Dieses Thema wird nun nicht mehr beobachtet.' , 3 );
}
$class = 'Cmite';
$tpl = new tpl ( 'forum/showpost' );
$ar = array (
'SITELINK' => $MPL,
'tid' => $tid,
'ANTWORTEN' => $antworten,
'TOPICNAME' => $aktTopicRow['name']
);
$tpl->set_ar_out($ar,0);
$i = $anfang +1;
$ges_ar = array ('wurstegal', 'maennlich', 'weiblich');
##################################
#Forenmod by matthias-schlich.de - Vorlage von Benjamin Rau - Moniwoll
#Posts
$erg = db_query("SELECT geschlecht, prefix_posts.id,txt,time,erstid,erst,url,sig,icq,avatar,posts FROM `prefix_posts` LEFT JOIN prefix_user ON prefix_posts.erstid = prefix_user.id WHERE tid = ".$tid." ORDER BY time LIMIT ".$anfang.",".$limit);
while($row = db_fetch_assoc($erg)) {
$class = ( $class == 'Cnorm' ? 'Cmite' : 'Cnorm' );
$icq1 = str_replace("-","",$row['icq']);
$icq2 = str_replace(" ","",$icq1);
// icq abfrage
// 0 - keine ICQ abfrage
// 1 - ICQ standartbilder bei &design= kann man zwischen den 26 verschiedenen icq bildern wechseln
// 2 - für eigne ICQ Statsubilder
$own_pics = "2";
$icqdesign = "25";
if ($own_pics == "1") {
if (is_numeric($icq2) ){
$row['icq'] = '';
} else {
$row['icq'] = '';
}
} elseif ($own_pics == "0") {
$row['icq'] = '';
} else{
if (is_numeric($icq2) ){
// Eigene ICQ-Bilder
$status = (icq_status($icq2));
if ($status == "1"){
$row['icq'] = '
';
}elseif ($status == "0"){
$row['icq'] = '
';
}elseif ($status == "2"){
$row['icq'] = '
';
}else {$row['icq'] = '';}
}else {
$row['icq'] = '';
}
}
if ( $row['time'] >= $_SESSION['lastlogin'] ) {
$row['fnew'] = '
';
}else{
$row['www'] = '';
}
#Letzter Login
$row['details'] = "Letzter Login:
";
}else{
$row['pm'] = '';
}
#E-Mail
if ($email == '1'){
$row['email'] = "
";
}else{
$row['email'] = '';
}
#Userdaten
$row['daten'] = "
";
$row['daten'] .= "
";
//Abfrage für Admin Menu
if ($allgAr['forum_usergb'] == 0 AND $allgAr['forum_usergallery'] == 0) {
$row['daten'] .= "";
} elseif ($allgAr['forum_usergb'] == 0 AND $allgAr['forum_usergallery'] == 1) {
$row['daten'] .= "
";
} elseif ($allgAr['forum_usergb'] == 1 AND $allgAr['forum_usergallery'] == 0) {
$row['daten'] .= "
";
} else {
$row['daten'] .= "
";
$row['daten'] .= "
";
}
//Ende
#User Online o Offline
$abf1 = "SELECT * FROM prefix_online where uid = ".$row['erstid'];
$erg1 = db_query($abf1);
$status = db_fetch_object($erg1);
if ($status->uid == $row['erstid']) {
$row['online'] = '
';
} else {
$row['online'] = '
';
}
} else {
$row['details'] = "";
$row['land'] = '';
$row['pm'] = '';
$row['email'] = '';
$row['www'] = '';
$row['daten'] = '';
$row['online'] = '';
}
#
#Edit Ende
##################################
$row['page'] = $page;
if ( $row['erstid'] != 0 ) {
$row['erst'] = ''.$row['erst'].'';
}
if ($forum_rights['mods'] == TRUE AND $i>1) {
$row['delete'] = ''.$lang['delete'].'';
}
if ( $forum_rights['reply'] == TRUE AND loggedin() ) {
$row['change'] = ' '.$lang['change'].'';
}
//Forumex - begin
$row['txt'] = FE_Vote2HTML($row['id'],$row['txt']);
//Forumex - end
if( !empty($row['url'])){
$urln=str_replace('include/downs/forumloads/', '', $row['url']);
$txta='