Exemplo n.º 1
0
     $info['topiczahl'] = $config['topiczahl'];
 }
 if (!empty($row['prefix']) && isset($prefix_arr[$row['board']][$row['prefix']])) {
     $prefix = $prefix_arr[$row['board']][$row['prefix']]['value'];
     $row['prefix'] = $lang->phrase('showtopic_prefix_title');
 } else {
     $row['prefix'] = '';
 }
 $row['topic'] = $gpc->prepare($row['topic']);
 if ($row['type'] != 'd' && $row['type'] != 'w' && $row['type'] != 'f') {
     $row['type'] = 's';
 }
 if (is_id($row['last_name'])) {
     $row['last_name'] = $memberdata[$row['last_name']];
 }
 if ($slog->isTopicRead($row['tid'], $row['last'])) {
     $row['firstnew'] = 0;
     $row['alt'] = $lang->phrase('forum_icon_old');
     $row['src'] = $tpl->img('dir_open');
 } else {
     $row['firstnew'] = 1;
     $row['alt'] = $lang->phrase('forum_icon_new');
     $row['src'] = $tpl->img('dir_open2');
 }
 $row['last'] = str_date($lang->phrase('dformat1'), times($row['last']));
 if ($row['posts'] > $info['topiczahl']) {
     $row['topic_pages'] = pages($row['posts'] + 1, $info['topiczahl'], "showtopic.php?id=" . $row['id'] . "&", 0, '_small');
 } else {
     $row['topic_pages'] = '';
 }
 ($code = $plugins->load('editprofile_abos_entry_prepared')) ? eval($code) : null;
Exemplo n.º 2
0
         $row->mark = $info['auto_status'];
     }
     if ($row->mark == 'n') {
         $pref .= $lang->phrase('forum_mark_n');
     } elseif ($row->mark == 'a') {
         $pref .= $lang->phrase('forum_mark_a');
     } elseif ($row->mark == 'b') {
         $pref .= $lang->phrase('forum_mark_b');
     } elseif ($row->mark == 'g') {
         $pref .= $lang->phrase('forum_mark_g');
     }
     if ($row->sticky == '1') {
         $pref .= $lang->phrase('forum_announcement');
     }
 }
 if ($slog->isTopicRead($row->id, $row->last)) {
     $firstnew = 0;
     if ($row->status == 1 || $row->status == 2) {
         $alt = $lang->phrase('forum_icon_closed');
         $src = $tpl->img('dir_closed');
     } else {
         $alt = $lang->phrase('forum_icon_old');
         $src = $tpl->img('dir_open');
     }
 } else {
     $firstnew = 1;
     if ($row->status == 1 || $row->status == 2) {
         $alt = $lang->phrase('forum_icon_closed');
         $src = $tpl->img('dir_closed2');
     } else {
         $alt = $lang->phrase('forum_icon_new');