$prefix = cache_prefix(); $memberdata = cache_memberdata(); $result = $db->query("SELECT f.id, f.tid, t.topic, t.last, t.last_name, t.board, t.prefix FROM {$db->pre}fav AS f LEFT JOIN {$db->pre}topics AS t ON f.tid=t.id WHERE f.mid = '{$my->id}' ORDER BY f.id DESC", __LINE__, __FILE__); $cache = array(); while ($row = $gpc->prepare($db->fetch_assoc($result))) { $showprefix = ''; if (isset($prefix[$row['board']][$row['prefix']]) && $row['prefix'] > 0) { $showprefix = $prefix[$row['board']][$row['prefix']]; } if (is_id($row['last_name'])) { $row['last_name'] = $memberdata[$row['last_name']]; } if (isset($my->mark['t'][$row['tid']]) && $my->mark['t'][$row['tid']] > $row['last'] || $row['last'] < $my->clv) { $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'])); $cache[] = $row; } echo $tpl->parse("editprofile/fav"); } elseif ($_GET['action'] == "pw") { $breadcrumb->Add($lang->phrase('editprofile_pw')); echo $tpl->parse("header"); echo $tpl->parse("menu"); echo $tpl->parse("editprofile/pw"); $mymodules->load('editprofile_pw_bottom');
} if ($pdiff == $extension_count) { $pdiff = '<span style="color: #006600;">Yes</span>'; } elseif ($pdiff == 0) { $pdiff = '<span style="color: #990000;">No</span>'; } else { $pdiff = '<span style="color: #b8860b;">Partially</span>'; } ?> <tr> <td class="mbox"><input type="checkbox" name="delete[]" value="<?php echo $row['id']; ?> " /></td> <td class="mbox"><img src="<?php echo $tpl->img('filetypes/' . $row['icon']); ?> " alt="" /></td> <td class="mbox"><a href="admin.php?action=filetypes&job=edit&id=<?php echo $row['id']; ?> " title="Edit"><?php echo implode(', ', $extensions); ?> </a></td> <td class="mbox"><?php echo $adiff; ?> </td> <td class="mbox"><?php echo $pdiff;
$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; $cache[] = $row; } $count = count($cache);
} 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'); $src = $tpl->img('dir_open2'); } } $qhighlight = urlencode(implode(' ', $data['used']));