case 'm': /* goto specific message */
if (isset($p[3]) && is_numeric($p[3])) {
if ($p[4] === 'prevloaded') {
$_GET['reveal'] = $p[$i+1];
case 't': /* view thread */
if (isset($p[2]) && is_numeric($p[2])) {
// START is not currently used for thread paging.
// Set to 0, but keep code for possible future implementation.
// $_GET['start'] = $p[2];
case 'f': /* view forum */
$_GET['reply_to'] = $p[3];
case 'u': /* view user's info */
$_GET['cat'] = (int) $p[1];
$_GET['id'] = isset($p[1]) ? $p[1] : $pb[1];
case 'sp': /* show posts */
$_GET['t'] = 'showposts';
case 'l': /* login/logout */
$_GET['opt'] = $p[4] ? 'on' : 'off';
case 'sl': /* subscribed topic list */
$_GET['t'] = 'subscribed';
} else if (isset($p[1])) {
case 'bml': /* bookmark list */
$_GET['t'] = 'bookmarked';
if (isset($p[1], $p[2])) {
$_GET['t'] = 'pmsg_view';
if ($p[1] !== 'btn_delete') {
$_GET['folder_id'] = $p[1];
case 'pl': /* poll list */
case 'ml': /* member list */
case 1: case 2: $_GET['pc'] = $p[1]; break;
case 3: case 4: $_GET['us'] = $p[1]; break;
case 5: case 6: $_GET['rd'] = $p[1]; break;
case 7: case 8: $_GET['fl'] = $p[1]; break;
case 9: case 10: $_GET['lv'] = $p[1]; break;
$_GET['usr_login'] = urldecode($p[3]);
$_GET['js_redr'] = $p[5];
$_GET['t'] = 'help_index';
$_GET['section'] = $p[1];
case 'cv': /* change thread view mode */
case 'mv': /* change message view mode */
$_GET['goto'] = q_singleval('SELECT id FROM fud30_msg WHERE poll_id='.(int)$p[1]);
$_GET['pl_view'] = empty($p[2]) ? 0 : (int)$p[2];
case 'rm': /* report message */
case 'rl': /* list of reported messages */
case 'd': /* delete thread/message */
case 'em': /* email forum member */
case 'mar': /* mark all/forum read */
case 'bl': /* buddy list */
$_GET['t'] = 'buddy_list';
case 'il': /* ignore list */
$_GET['t'] = 'ignore_list';
case 'lk': /* lock/unlock thread */
case 'stt': /* split thread */
case 'ef': /* email to friend */
case 'lr': /* list referers */
$_GET['t'] = 'list_referers';
if (isset($p[1], $p[2])) {
$_GET['srch'] = urldecode($p[1]);
$_GET['field'] = isset($p[2]) ? $p[2] : '';
$_GET['search_logic'] = isset($p[3]) ? $p[3] : '';
$_GET['sort_order'] = isset($p[4]) ? $p[4] : '';
$_GET['forum_limiter'] = isset($p[5]) ? $p[5] : '';
$_GET['start'] = isset($p[6]) ? $p[6] : '';
$_GET['author'] = isset($p[7]) ? $p[7] : '';
if (!is_numeric($p[1])) {
$_GET['t'] = 'online_today';
if (isset($p[1], $p[2])) {
$_GET['reg_coppa'] = $p[1];
if (isset($p[2], $p[3])) {
case 'bm': /* bookmark/unbookmark a topic */
$_GET['bookmark'] = $p[3];
$_GET['t'] = 'ratethread';
if (isset($p[1], $p[2], $p[3])) {
$_GET['group_id'] = $p[3];
if (isset($p[1], $p[2])) {
if (isset($p[1], $p[2])) {
if (isset($p[3], $p[4])) {