__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* copyright : (C) 2001-2011 Advanced Internet Designs Inc.
* email : forum@prohost.org
* $Id$
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; version 2 of the License.
**/
function get_prev_next_th_id($frm_id, $th, &$prev, &$next)
{
$next = $prev = '';
$id = q_singleval('SELECT seq FROM fud30_tv_'. $frm_id .' WHERE thread_id='. $th);
if (!$id) {
return;
}
$nn = $np = 0;
$c = uq('SELECT m.id, m.subject, tv.seq, t.moved_to FROM fud30_tv_'. $frm_id .' tv INNER JOIN fud30_thread t ON tv.thread_id=t.id INNER JOIN fud30_msg m ON t.root_msg_id=m.id WHERE tv.seq IN('. ($id - 1) .', '. ($id + 1) .')');
while ($r = db_rowarr($c)) {
if ($r[2] < $id) {
if ($r[3]) { /* Moved topic, let's try to find another, */
$np = 1; continue;
}
$prev = '<tr>
<td class="ar GenText">Previous Topic:</td>
<td class="GenText al"><a href="[[relativeurl]]/index.php?t='.$_GET['t'].'&goto='.$r[0].'&'._rsid.'#msg_'.$r[0].'">'.$r[1].'</a></td>
</tr>';
} else {
if ($r[3]) { /* Moved topic, let's try to find another, */
$nn = 1; continue;
}
$next = '<tr>
<td class="GenText ar">Next Topic:</td>
<td class="GenText al"><a href="[[relativeurl]]/index.php?t='.$_GET['t'].'&goto='.$r[0].'&'._rsid.'#msg_'.$r[0].'">'.$r[1].'</a></td>
</tr>';
}
}
unset($c);
if ($np) {
$r = db_saq(q_limit('SELECT m.id, m.subject FROM fud30_tv_'. $frm_id .' tv INNER JOIN fud30_thread t ON tv.thread_id=t.id INNER JOIN fud30_msg m ON t.root_msg_id=m.id WHERE tv.seq IN('. ($id - 10) .', '. ($id - 2) .') ORDER BY tv.seq ASC', 1));
$prev = '<tr>
<td class="ar GenText">Previous Topic:</td>
<td class="GenText al"><a href="[[relativeurl]]/index.php?t='.$_GET['t'].'&goto='.$r[0].'&'._rsid.'#msg_'.$r[0].'">'.$r[1].'</a></td>
</tr>';
}
if ($nn) {
$r = db_saq(q_limit('SELECT m.id, m.subject FROM fud30_tv_'. $frm_id .' tv INNER JOIN fud30_thread t ON tv.thread_id=t.id INNER JOIN fud30_msg m ON t.root_msg_id=m.id WHERE tv.seq IN('. ($id + 2) .', '. ($id + 10) .') ORDER BY tv.seq DESC', 1));
$next = '<tr>
<td class="GenText ar">Next Topic:</td>
<td class="GenText al"><a href="[[relativeurl]]/index.php?t='.$_GET['t'].'&goto='.$r[0].'&'._rsid.'#msg_'.$r[0].'">'.$r[1].'</a></td>
</tr>';
}
}
?>| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| admincp.inc | File | 4.2 KB | 0644 |
|
| allowed_user_lnk.inc | File | 3.62 KB | 0644 |
|
| cookies.inc | File | 8.13 KB | 0644 |
|
| draw_forum_list.inc | File | 9.43 KB | 0644 |
|
| draw_forum_path.inc | File | 1.01 KB | 0644 |
|
| drawmsg.inc | File | 24.32 KB | 0644 |
|
| drawpmsg.inc | File | 9.51 KB | 0644 |
|
| err.inc | File | 4.3 KB | 0644 |
|
| errmsg.inc | File | 6.18 KB | 0644 |
|
| forumsel.inc | File | 2.39 KB | 0644 |
|
| get_cur_ppage.inc | File | 1.04 KB | 0644 |
|
| imsg_edt.inc | File | 32.45 KB | 0644 |
|
| logedin.inc | File | 5.92 KB | 0644 |
|
| post_common.inc | File | 4.77 KB | 0644 |
|
| post_opt.inc | File | 2.74 KB | 0644 |
|
| private.inc | File | 7.24 KB | 0644 |
|
| return.inc | File | 1.13 KB | 0644 |
|
| tabs.inc | File | 1.63 KB | 0644 |
|
| th_nav.inc | File | 2.35 KB | 0644 |
|
| thread_view_common.inc | File | 3.62 KB | 0644 |
|
| usercp.inc | File | 1.14 KB | 0644 |
|
| users.inc | File | 21.61 KB | 0644 |
|