'); showsubtitle(array('', 'thread', 'recyclebin_list_thread', 'recyclebin_list_author', 'recyclebin_list_status', 'recyclebin_list_lastpost', 'recyclebin_list_operation', 'reason')); $fids = $threadlist = array(); $threads = C::t('forum_thread')->fetch_all_by_tid_fid_displayorder(0, 0, -1, 'dateline', $start_limit, $lpp, '='); foreach($threads as $tid => $value) { $fids[$value['fid']] = $value['fid']; } if($fids) { $forums = C::t('forum_forum')->fetch_all_name_by_fid($fids); foreach($threads as $tid => $thread) { $thread['forumname'] = $forums[$thread['fid']]['name']; $thread['modthreadkey'] = modauthkey($thread['tid']); $threadlist[$thread['tid']] = $thread; } } if($threadlist) { $tids = array_keys($threadlist); foreach(C::t('forum_threadmod')->fetch_all_by_tid($tids) as $row) { if(empty($threadlist[$row['tid']]['moduid'])) { $threadlist[$row['tid']]['moduid'] = $row['uid']; $threadlist[$row['tid']]['modusername'] = $row['username']; $threadlist[$row['tid']]['moddateline'] = $row['dateline']; $threadlist[$row['tid']]['modaction'] = $row['action']; $threadlist[$row['tid']]['reason'] = $row['reason']; } } foreach($threadlist as $tid => $thread) { showtablerow('', array('class="td25"', '', '', 'class="td28"', 'class="td28"'), array( "", ''.$thread['subject'].'', ''.$thread['forumname'].'', ''.$thread['author'].'
'.dgmdate($thread['dateline'], 'd').'', $thread['replies'].' / '.$thread['views'], $thread['lastposter'].'
'.dgmdate($thread['lastpost'], 'd').'', $thread['modusername'] ? $thread['modusername'].'
'.dgmdate($thread['moddateline'], 'd').'' : '', $thread['reason'] )); } } $threadcount = C::t('forum_thread')->count_by_displayorder(-1); $multipage = multi($threadcount, $lpp, $page, ADMINSCRIPT."?action=recyclebin&lpp=$lpp", 0, 6); showsubmit('', '', '', '   ', $multipage); showtablefooter(); showformfooter(); } else { $threadlist = $_GET['threadlist']; if(empty($threadlist)) { cpmsg('recyclebin_none_selected', 'action=recyclebin', 'error'); } $threadsundel = $threadsdel = 0; if(submitcheck('undelsubmit')) { $threadsundel = undeletethreads($threadlist); } elseif(submitcheck('delsubmit')) { require_once libfile('function/delete'); $threadsdel = deletethread($threadlist); } cpmsg('recyclebin_succeed', 'action=recyclebin', 'succeed', array('threadsdel' => $threadsdel, 'threadsundel' => $threadsundel)); } } elseif($operation == 'search') { if(!submitcheck('rbsubmit')) { $inforum = $_GET['inforum']; $authors = $_GET['authors']; $keywords = $_GET['keywords']; $admins = $_GET['admins']; $pstarttime = $_GET['pstarttime']; $pendtime = $_GET['pendtime']; $mstarttime = $_GET['mstarttime']; $mendtime = $_GET['mendtime']; $secStatus = false; $searchsubmit = $_GET['searchsubmit']; require_once libfile('function/forumlist'); $forumselect = ''; if($inforum) { $forumselect = preg_replace("/(\