Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); # check ob ein fehler aufgetreten ist. check_forum_failure($forum_failure); $title = $allgAr['title'].' :: Forum :: '.$aktTopicRow->name.' :: Beiträge zeigen'; $hmenu = '<a class="smalfont" href="?m=forum">Forum</a><b> » </b>'.$aktForumRow->kat.'<b> » </b><a class="smalfont" href="?m=forum&um=showtopics&fid='.$fid.'">'.$aktForumRow->name.'</a><b> » </b>'; $hmenu = $aktTopicRow->name; $design = new design ( $title , $hmenu ); $design->header(); # Topic Hits werden eins hochgesetzt. db_query('UPDATE `xic_topics` SET hit = hit + 1 WHERE id = "'.$tid.'"'); # mehrere seiten fals gefordert $limit = $allgAr['Fpanz']; // Limit if(empty($_GET['page'])) { $_GET['page'] = 1; } $MPL = db_make_sites ($_GET['page'] , "WHERE tid = ".$tid , $limit , "?m=forum&um=showposts&tid=$tid" , 'posts' ); $anfang = ($_GET['page'] - 1) * $limit; $antworten = ''; if ($aktTopicRow->stat == 1 AND $forum_rights['reply'] == TRUE ) { $antworten = '<b>[ <a href="?m=forum&um=newpost&tid='.$tid.'">Antworten</a> ]</b>'; } $class = 'Cmite'; $tpl = new tpl ( 'forum/showpost' ); $ar = array ( 'SITELINK' => $MPL, 'TID' => $tid, 'ANTWORTEN' => $antworten, 'TOPICNAME' => $aktTopicRow->name ); $tpl->set_ar_out($ar,0); $erg = db_query("SELECT * FROM `xic_posts` WHERE tid = ".$tid." ORDER BY time LIMIT ".$anfang.",".$limit); while($row = db_fetch_assoc($erg)) { $class = ( $class == 'Cnorm' ? 'Cmite' : 'Cnorm' ); # define some vars. $row['sig'] = ''; $row['TID'] = $tid; $row['class'] = $class; $row['date'] = date ('d.m.Y - H:i:s', $row['time'] ); $row['delete'] = ''; $row['change'] = ''; $row['avatar'] = ''; $row['posts'] = ''; $row['txt'] = (isset($_GET['such']) ? markword(bbcode ($row['txt']),$_GET['such']) : bbcode ($row['txt']) ); $posts = 0; if ( $row['erstid'] != 0 ) { $user_row = db_fetch_assoc(db_query("SELECT posts,regist FROM xic_user WHERE id = ".$row['erstid'])); $row['erst'] = '<a href="?m=user&um=6&uid='.$row['erstid'].'"><b>'.$row['erst'].'</b></a>'; $posts = $user_row['posts']; $row['posts'] = '<br />Posts: '.$user_row['posts']; #Messenger Daten werden ausgelesen $abf1 = "SELECT * FROM xic_userfields where uid = ".$row['erstid']." and fid = 7"; $erg1 = db_query($abf1); $icqnr = db_fetch_object($erg1); if (is_numeric($icqnr->val) ){ $row['erst'] .= '<br><a href="http://www.icq.com/whitepages/cmd.php?uin='.$icqnr->val.'&action=add"><img src="include/images/icons/icqblume.gif" border="0"></a>'; } # profilefields $sig = @db_result(db_query("SELECT val FROM xic_userfields WHERE uid = ".$row['erstid']." AND fid = 5"),0); if (!empty($sig)) { $row['sig'] = '<br /><hr size="1" width="100" align="left">'.bbcode($sig); } $avatar = @db_result(db_query("SELECT val FROM xic_userfields WHERE uid = ".$row['erstid']." AND fid = 6"),0); if (!empty($avatar)) { $row['avatar'] = '<br /><br /><img src="'.$avatar.'" alt="User Pic" border="0" /><br />'; } } $points=@db_result(db_query("SELECT points FROM xic_bonuspoints WHERE uid = ".$row['erstid']),0); if(empty($points)){ $points=0; } $rang=$posts+$points; $row['rang'] = rangbildforum ($rang); if ( $forum_rights['mods'] == TRUE ) { $row['delete'] = '<a href="?m=forum&um=delpost&did='.$row['id'].'&tid='.$tid.'">Löschen</a>'; } if ( $forum_rights['reply'] == TRUE AND $_SESSION['authright'] <= -1 ) { $row['change'] = ' <a href="?m=forum&um=editpost&tid='.$tid.'&oid='.$row['id'].'" style="font-size: 10px;">Ändern</a>'; } $tpl->set_ar_out($row,1); } $tpl->set_ar_out( array ( 'SITELINK' => $MPL, 'ANTWORTEN' => $antworten ) , 2 ); if ( $forum_rights['mods'] == TRUE ) { $tpl->set ( 'status', ($aktTopicRow->stat == 1 ? 'schliessen' : 'Öffnen' ) ); $tpl->set ( 'festnorm', ($aktTopicRow->art == 0 ? 'festes Thema' : 'normales Thema' ) ); $tpl->set('tid',$tid); $tpl->out(3); } $design->footer(); ?>
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); # check ob ein fehler aufgetreten ist. check_forum_failure($forum_failure); $title = $allgAr['title'].' :: Forum :: '.$aktTopicRow->name.' :: Beiträge zeigen'; $hmenu = '<a class="smalfont" href="?m=forum">Forum</a><b> » </b>'.$aktForumRow->kat.'<b> » </b><a class="smalfont" href="?m=forum&um=showtopics&fid='.$fid.'">'.$aktForumRow->name.'</a><b> » </b>'; $hmenu .= $aktTopicRow->name; $design = new design ( $title , $hmenu ); $design->header(); # Topic Hits werden eins hochgesetzt. db_query('UPDATE `xic_topics` SET hit = hit + 1 WHERE id = "'.$tid.'"'); # mehrere seiten fals gefordert $limit = $allgAr['Fpanz']; // Limit if(empty($_GET['page'])) { $_GET['page'] = 1; } $MPL = db_make_sites ($_GET['page'] , "WHERE tid = ".$tid , $limit , "?m=forum&um=showposts&tid=$tid" , 'posts' ); $anfang = ($_GET['page'] - 1) * $limit; $antworten = ''; if ($aktTopicRow->stat == 1 AND $forum_rights['reply'] == TRUE ) { $antworten = '<b>[ <a href="?m=forum&um=newpost&tid='.$tid.'">Antworten</a> ]</b>'; } $class = 'Cmite'; $tpl = new tpl ( 'forum/showpost' ); $ar = array ( 'SITELINK' => $MPL, 'TID' => $tid, 'ANTWORTEN' => $antworten, 'TOPICNAME' => $aktTopicRow->name ); $tpl->set_ar_out($ar,0); $erg = db_query("SELECT * FROM `xic_posts` WHERE tid = ".$tid." ORDER BY time LIMIT ".$anfang.",".$limit); while($row = db_fetch_assoc($erg)) { $class = ( $class == 'Cnorm' ? 'Cmite' : 'Cnorm' ); # define some vars. $row['sig'] = ''; $row['TID'] = $tid; $row['class'] = $class; $row['date'] = date ('d.m.Y - H:i:s', $row['time'] ); $row['delete'] = ''; $row['change'] = ''; $row['avatar'] = ''; $row['posts'] = ''; $row['txt'] = (isset($_GET['such']) ? markword(bbcode ($row['txt']),$_GET['such']) : bbcode ($row['txt']) ); $posts = 0; if ( $row['erstid'] != 0 ) { $user_row = db_fetch_assoc(db_query("SELECT posts,regist FROM xic_user WHERE id = ".$row['erstid'])); $row['erst'] = '<a href="?m=user&um=6&uid='.$row['erstid'].'"><b>'.$row['erst'].'</b></a>'; $posts = $user_row['posts']; $row['posts'] = '<br />Posts: '.$user_row['posts']; #Messenger Daten werden ausgelesen $abf1 = "SELECT * FROM xic_userfields where uid = ".$row['erstid']." and fid = 7"; $erg1 = db_query($abf1); $icqnr = db_fetch_object($erg1); if (is_numeric($icqnr->val) ){ $row['erst'] .= '<br><a href="http://www.icq.com/whitepages/cmd.php?uin='.$icqnr->val.'&action=add"><img src="include/images/icons/icqblume.gif" border="0"></a>'; } # profilefields $sig = @db_result(db_query("SELECT val FROM xic_userfields WHERE uid = ".$row['erstid']." AND fid = 5"),0); if (!empty($sig)) { $row['sig'] = '<br /><hr size="1" width="100" align="left">'.bbcode($sig); } $avatar = @db_result(db_query("SELECT val FROM xic_userfields WHERE uid = ".$row['erstid']." AND fid = 6"),0); if (!empty($avatar)) { $row['avatar'] = '<br /><br /><img src="'.$avatar.'" alt="User Pic" border="0" /><br />'; } } $row['rang'] = userrang ($posts); if ( $forum_rights['mods'] == TRUE ) { $row['delete'] = '<a href="?m=forum&um=delpost&did='.$row['id'].'&tid='.$tid.'">Löschen</a>'; } if ( $forum_rights['reply'] == TRUE AND $_SESSION['authright'] <= -1 ) { $row['change'] = ' <a href="?m=forum&um=editpost&tid='.$tid.'&oid='.$row['id'].'" style="font-size: 10px;">Ändern</a>'; } $tpl->set_ar_out($row,1); } $tpl->set_ar_out( array ( 'SITELINK' => $MPL, 'ANTWORTEN' => $antworten ) , 2 ); if ( $forum_rights['mods'] == TRUE ) { $tpl->set ( 'status', ($aktTopicRow->stat == 1 ? 'schliessen' : 'Öffnen' ) ); $tpl->set ( 'festnorm', ($aktTopicRow->art == 0 ? 'festes Thema' : 'normales Thema' ) ); $tpl->set('tid',$tid); $tpl->out(3); } $design->footer(); ?>
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); # check ob ein fehler aufgetreten ist. check_forum_failure($forum_failure); $title = $allgAr['title'].' :: Forum :: '.$aktTopicRow->name.' :: Beiträge zeigen'; $hmenu = '<a class="smalfont" href="?m=forum">Forum</a><b> » </b>'.$aktForumRow->kat.'<b> » </b><a class="smalfont" href="?m=forum&um=showtopics&fid='.$fid.'">'.$aktForumRow->name.'</a><b> » </b>'; $hmenu .= $aktTopicRow->name; $design = new design ( $title , $hmenu ); $design->header(); # Topic Hits werden eins hochgesetzt. db_query('UPDATE `xic_topics` SET hit = hit + 1 WHERE id = "'.$tid.'"'); # mehrere seiten fals gefordert $limit = $allgAr['Fpanz']; // Limit if(empty($_GET['page'])) { $_GET['page'] = 1; } $MPL = db_make_sites ($_GET['page'] , "WHERE tid = ".$tid , $limit , "?m=forum&um=showposts&tid=$tid" , 'posts' ); $anfang = ($_GET['page'] - 1) * $limit; $antworten = ''; if ($aktTopicRow->stat == 1 AND $forum_rights['reply'] == TRUE ) { $antworten = '<b>[ <a href="?m=forum&um=newpost&tid='.$tid.'">Antworten</a> ]</b>'; } $class = 'Cmite'; $tpl = new tpl ( 'forum/showpost' ); $ar = array ( 'SITELINK' => $MPL, 'TID' => $tid, 'ANTWORTEN' => $antworten, 'TOPICNAME' => $aktTopicRow->name ); $tpl->set_ar_out($ar,0); $erg = db_query("SELECT * FROM `xic_posts` WHERE tid = ".$tid." ORDER BY time LIMIT ".$anfang.",".$limit); while($row = db_fetch_assoc($erg)) { $class = ( $class == 'Cnorm' ? 'Cmite' : 'Cnorm' ); # define some vars. $row['sig'] = ''; $row['TID'] = $tid; $row['class'] = $class; $row['date'] = date ('d.m.Y - H:i:s', $row['time'] ); $row['delete'] = ''; $row['change'] = ''; $row['avatar'] = ''; $row['posts'] = ''; $row['txt'] = (isset($_GET['such']) ? markword(bbcode ($row['txt']),$_GET['such']) : bbcode ($row['txt']) ); $posts = 0; if ( $row['erstid'] != 0 ) { $user_row = db_fetch_assoc(db_query("SELECT posts,regist FROM xic_user WHERE id = ".$row['erstid'])); $row['erst'] = '<a href="?m=user&um=6&uid='.$row['erstid'].'"><b>'.$row['erst'].'</b></a>'; $posts = $user_row['posts']; $row['posts'] = '<br />Posts: '.$user_row['posts']; #Messenger Daten werden ausgelesen $abf1 = "SELECT * FROM xic_userfields where uid = ".$row['erstid']." and fid = 7"; $erg1 = db_query($abf1); $icqnr = db_fetch_object($erg1); if (is_numeric($icqnr->val) ){ $row['erst'] .= '<br><a href="http://www.icq.com/whitepages/cmd.php?uin='.$icqnr->val.'&action=add"><img src="include/images/icons/icqblume.gif" border="0"></a>'; } # profilefields $sig = @db_result(db_query("SELECT val FROM xic_userfields WHERE uid = ".$row['erstid']." AND fid = 5"),0); if (!empty($sig)) { $row['sig'] = '<br /><hr size="1" width="100" align="left">'.bbcode($sig); } $avatar = @db_result(db_query("SELECT val FROM xic_userfields WHERE uid = ".$row['erstid']." AND fid = 6"),0); if (!empty($avatar)) { $row['avatar'] = '<br /><br /><img src="'.$avatar.'" alt="User Pic" border="0" /><br />'; } } $row['rang'] = userrang ($posts); if ( $forum_rights['mods'] == TRUE ) { $row['delete'] = '<a href="?m=forum&um=delpost&did='.$row['id'].'&tid='.$tid.'">Löschen</a>'; } if ( $forum_rights['reply'] == TRUE AND $_SESSION['authright'] <= -1 ) { $row['change'] = ' <a href="?m=forum&um=editpost&tid='.$tid.'&oid='.$row['id'].'" style="font-size: 10px;">Ändern</a>'; } $tpl->set_ar_out($row,1); } $tpl->set_ar_out( array ( 'SITELINK' => $MPL, 'ANTWORTEN' => $antworten ) , 2 ); if ( $forum_rights['mods'] == TRUE ) { $tpl->set ( 'status', ($aktTopicRow->stat == 1 ? 'schliessen' : 'Öffnen' ) ); $tpl->set ( 'festnorm', ($aktTopicRow->art == 0 ? 'festes Thema' : 'normales Thema' ) ); $tpl->set('tid',$tid); $tpl->out(3); } $design->footer(); ?>
# profilefields $sig = @db_result(db_query("SELECT val FROM xic_userfields WHERE uid = ".$row['erstid']." AND fid = 5"),0); if (!empty($sig)) { $row['sig'] = '<br /><hr size="1" width="100" align="left">'.bbcode($sig); } $avatar = @db_result(db_query("SELECT val FROM xic_userfields WHERE uid = ".$row['erstid']." AND fid = 6"),0); if (!empty($avatar)) { $row['avatar'] = '<br /><br /><img src="'.$avatar.'" alt="User Pic" border="0" /><br />'; } } $points=@db_result(db_query("SELECT points FROM xic_bonuspoints WHERE uid = ".$row['erstid']),0); if(empty($points)){ $points=0; } $rang=$posts+$points; $row['rang'] = rangbildforum ($rang); if ( $forum_rights['mods'] == TRUE ) { $row['delete'] = '<a href="index.php?m=forum&um=delpost&did='.$row['id'].'&tid='.$tid.'">Löschen</a>'; } if ( $forum_rights['reply'] == TRUE AND $_SESSION['authright'] <= -1 ) { $row['change'] = ' <a href="index.php?m=forum&um=editpost&tid='.$tid.'&oid='.$row['id'].'" style="font-size: 10px;">Ändern</a>'; } $tpl->set_ar_out($row,1); }
Geschlossen | ||
Zurück zu Kritik und Verbesserungen |