uawdijnntqw1x1x1
IP : 216.73.217.142
Hostname : localhost.localdomain
Kernel : Linux localhost.localdomain 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
forum-e-syn
/
FUDforum
/
src
/
showposts.php.t
/
/
<?php /** * copyright : (C) 2001-2010 Advanced Internet Designs Inc. * email : forum@prohost.org * $Id: showposts.php.t 4994 2010-09-02 17:33:29Z naudefj $ * * 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. **/ /*{PRE_HTML_PHP}*/ if (!isset($_GET['id']) || !($tmp = db_saq('SELECT id, alias, posted_msg_count, join_date FROM {SQL_TABLE_PREFIX}users WHERE id='. (int)$_GET['id']))) { invl_inp_err(); } else { list($uid,$u_alias,$u_pcount,$u_reg_date) = $tmp; } /*{POST_HTML_PHP}*/ $TITLE_EXTRA = ': {TEMPLATE: show_posts_by}'; ses_update_status($usr->sid, '{TEMPLATE: showposts_update}'); if (!isset($_GET['start']) || !($start = (int)$_GET['start'])) { $start = 0; } if (!$is_a) { $fids = implode(',', array_keys(get_all_read_perms(_uid, ($usr->users_opt & 524288)), 2)); } if (isset($_GET['so']) && !strcasecmp((string)$_GET['so'], 'asc')) { $SORT_ORDER = 'ASC'; $SORT_ORDER_R = 'DESC'; } else { $SORT_ORDER = 'DESC'; $SORT_ORDER_R = 'ASC'; } $post_entry = ''; if ($is_a || $fids) { $qry_limit = $is_a ? '' : 'f.id IN ('. $fids .') AND '; $c = uq(q_limit('SELECT /*!40000 SQL_CALC_FOUND_ROWS */ f.name, f.id as fid, m.subject, m.id, m.post_stamp FROM {SQL_TABLE_PREFIX}msg m INNER JOIN {SQL_TABLE_PREFIX}thread t ON m.thread_id=t.id INNER JOIN {SQL_TABLE_PREFIX}forum f ON t.forum_id=f.id INNER JOIN {SQL_TABLE_PREFIX}cat c ON c.id=f.cat_id WHERE '. $qry_limit .' m.apr=1 AND m.poster_id='. $uid .' ORDER BY m.post_stamp '. $SORT_ORDER, $THREADS_PER_PAGE, $start)); while ($r = db_rowarr($c)) { $post_entry .= '{TEMPLATE: post_entry}'; } unset($c); /* We need the total for the pager & we don't trust the user to pass it via GET or POST. */ if (($total = (int) q_singleval('SELECT /*!40000 FOUND_ROWS(), */ -1')) < 0) { $total = q_singleval('SELECT count(*) FROM {SQL_TABLE_PREFIX}msg m INNER JOIN {SQL_TABLE_PREFIX}thread t ON m.thread_id=t.id INNER JOIN {SQL_TABLE_PREFIX}forum f ON t.forum_id=f.id INNER JOIN {SQL_TABLE_PREFIX}cat c ON c.id=f.cat_id WHERE '. $qry_limit .' m.apr=1 AND m.poster_id='. $uid); } if ($FUD_OPT_2 & 32768) { $pager = tmpl_create_pager($start, $THREADS_PER_PAGE, $total, '{ROOT}/sp/'. $uid .'/'. $SORT_ORDER .'/', '/'. _rsid); } else { $pager = tmpl_create_pager($start, $THREADS_PER_PAGE, $total, '{ROOT}?t=showposts&id='. $uid .'&so='. $SORT_ORDER .'&'. _rsid); } } /*{POST_PAGE_PHP_CODE}*/ ?> {TEMPLATE: SHOWPOSTS_PAGE}
/var/www/forum-e-syn/FUDforum/src/showposts.php.t