2050100"; $tpp = !empty($_GET['tpp']) ? $_GET['tpp'] : '20'; $start_limit = ($page - 1) * $ppp; $dateline = $_GET['dateline'] ? $_GET['dateline'] : '604800'; $dateline_options = ''; foreach(array('all', '604800', '2592000', '7776000') as $v) { $selected = ''; if($dateline == $v) { $selected = "selected='selected'"; } $dateline_options .= "".cplang("dateline_$v"); } $blog_status = 1; if($_GET['filter'] == 'ignore') { $blog_status = 2; } showformheader("moderate&operation=blogs"); showtableheader('search'); showtablerow('', array('width="60"', 'width="160"', 'width="60"'), array( cplang('username'), "", cplang('moderate_title_keyword'), "", ) ); showtablerow('', array('width="60"', 'width="160"', 'width="60"'), array( "$lang[perpage]", "$tpp_options $lang[moderate_showcensor]", "$lang[moderate_bound]", "$filteroptions $dateline_options " ) ); showtablefooter(); $pagetmp = $page; $modcount = C::t('common_moderate')->count_by_search_for_blog($moderatestatus, $_GET['username'], (($dateline && $dateline != 'all') ? (TIMESTAMP - $dateline) : null), $_GET['title']); do { $start_limit = ($pagetmp - 1) * $tpp; $blogarr = C::t('common_moderate')->fetch_all_by_search_for_blog($moderatestatus, $_GET['username'], (($dateline && $dateline != 'all') ? (TIMESTAMP - $dateline) : null), $_GET['title'], $start_limit, $tpp); $pagetmp = $pagetmp - 1; } while($pagetmp > 0 && empty($blogarr)); $page = $pagetmp + 1; $multipage = multi($modcount, $tpp, $page, ADMINSCRIPT."?action=moderate&operation=blogs&filter=$filter&modfid=$modfid&ppp=$tpp&showcensor=$showcensor&dateline=$dateline"); echo ''.cplang('moderate_all_expand').' '.cplang('moderate_all_fold').''; showtableheader(); $censor = & discuz_censor::instance(); $censor->highlight = '#FF0000'; require_once libfile('function/misc'); foreach($blogarr as $blog) { $blog['dateline'] = dgmdate($blog['dateline']); $blog['subject'] = $blog['subject'] ? ''.$blog['subject'].'' : ''.$lang['nosubject'].''; if($showcensor) { $censor->check($blog['subject']); $censor->check($blog['message']); } $blog_censor_words = $censor->words_found; if(count($post_censor_words) > 3) { $blog_censor_words = array_slice($blog_censor_words, 0, 3); } $blog['censorwords'] = implode(', ', $blog_censor_words); $blog['modblogkey'] = modauthkey($blog['blogid']); $blog['postip'] = $blog['postip'] . '-' . convertip($blog['postip']); if(count($blog_censor_words)) { $blog_censor_text = "({$blog['censorwords']})"; } else { $blog_censor_text = ''; } showtagheader('tbody', '', true, 'hover'); showtablerow("id=\"mod_$blog[blogid]_row1\"", array("id=\"mod_$blog[blogid]_row1_op\" rowspan=\"3\" class=\"rowform threadopt\" style=\"width:80px;\"", '', 'width="120"', 'width="120"', 'width="55"'), array( "$lang[validate]$lang[delete]$lang[ignore]", "$blog[subject] $blog_censor_text$blog[postip]", $blog[classname], "$blog[username] $blog[dateline]", "$lang[view] $lang[edit]", )); showtablerow("id=\"mod_$blog[blogid]_row2\"", 'colspan="4" style="padding: 10px; line-height: 180%;"', ''.$blog['message'].''); showtablerow("id=\"mod_$blog[blogid]_row3\"", 'class="threadopt threadtitle" colspan="4"', "$lang[validate] | $lang[delete] | $lang[ignore]"); showtagfooter('tbody'); } showsubmit('modsubmit', 'submit', '', ''.cplang('moderate_all_validate').' '.cplang('moderate_all_delete').' '.cplang('moderate_all_ignore').' '.cplang('moderate_all_cancel').'', $multipage, false); showtablefooter(); showformfooter(); } else { $moderation = array('validate' => array(), 'delete' => array(), 'ignore' => array()); $validates = $deletes = $ignores = 0; if(is_array($moderate)) { foreach($moderate as $blogid => $act) { $moderate[$act][] = $blogid; } } if($moderate['validate']) { $validates = C::t('home_blog')->update($moderate['validate'], array('status' => '0')); $query_t = C::t('home_blog')->count_uid_by_blogid($moderate['validate']); foreach($query_t as $blog_user) { $credit_times = $blog_user['count']; updatecreditbyaction('publishblog', $blog_user['uid'], array('blogs' => 1), '', $credit_times); } updatemoderate('blogid', $moderate['validate'], 2); } if($moderate['delete']) { require_once libfile('function/delete'); $delete_blogs = deleteblogs($moderate['delete']); $deletes = count($delete_blogs); updatemoderate('blogid', $moderate['delete'], 2); } if($moderate['ignore']) { $ignores = C::t('home_blog')->update($moderate['ignore'], array('status' => '2')); updatemoderate('blogid', $moderate['ignore'], 1); } if($_GET['fast']) { echo callback_js($_GET['blogid']); exit; } else { cpmsg('moderate_blogs_succeed', "action=moderate&operation=blogs&page=$page&filter=$filter&dateline={$_GET['dateline']}&username={$_GET['username']}&title={$_GET['title']}&tpp={$_GET['tpp']}&showcensor=$showcensor", 'succeed', array('validates' => $validates, 'ignores' => $ignores, 'recycles' => $recycles, 'deletes' => $deletes)); } } ?>
'.cplang('moderate_all_expand').' '.cplang('moderate_all_fold').'
$blog[postip]
$blog[username]
$blog[dateline]