2050100"; $tpp = !empty($_GET['tpp']) ? $_GET['tpp'] : '20'; $start_limit = ($page - 1) * $tpp; $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"); } $pic_status = 1; if($_GET['filter'] == 'ignore') { $pic_status = 2; } showformheader("moderate&operation=pictures"); 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_pic($moderatestatus, $_GET['username'], (($dateline && $dateline != 'all') ? (TIMESTAMP - $dateline) : null), $_GET['title']); do { $start_limit = ($pagetmp - 1) * $tpp; $picarr = C::t('common_moderate')->fetch_all_by_search_for_pic($moderatestatus, $_GET['username'], (($dateline && $dateline != 'all') ? (TIMESTAMP - $dateline) : null), $_GET['title'], $start_limit, $tpp); $pagetmp = $pagetmp - 1; } while($pagetmp > 0 && empty($picarr)); $page = $pagetmp + 1; $multipage = multi($modcount, $tpp, $page, ADMINSCRIPT."?action=moderate&operation=pictures&filter=$filter&dateline={$_GET['dateline']}&username={$_GET['username']}&title={$_GET['title']}&tpp=$tpp&showcensor=$showcensor"); echo ''.cplang('moderate_all_expand').' '.cplang('moderate_all_fold').''; showtableheader(); $censor = & discuz_censor::instance(); $censor->highlight = '#FF0000'; require_once libfile('function/misc'); require_once libfile('function/home'); foreach($picarr as $pic) { $pic['dateline'] = dgmdate($pic['dateline']); $pic['title'] = $pic['title'] ? ''.$pic['title'].'' : ''.$lang['nosubject'].''; if($showcensor) { $censor->check($pic['title']); } $pic_censor_words = $censor->words_found; if(count($pic_censor_words) > 3) { $pic_censor_words = array_slice($pic_censor_words, 0, 3); } $pic['censorwords'] = implode(', ', $pic_censor_words); $pic['modpickey'] = modauthkey($pic['picid']); $pic['postip'] = $pic['postip'] . '-' . convertip($pic['postip']); $pic['url'] = pic_get($pic['filepath'], 'album', $pic['thumb'], $pic['remote']); if(count($pic_censor_words)) { $pic_censor_text = "({$pic['censorwords']})"; } else { $pic_censor_text = ''; } showtagheader('tbody', '', true, 'hover'); showtablerow("id=\"mod_$pic[picid]_row1\"", array("id=\"mod_$pic[picid]_row1_op\" rowspan=\"3\" class=\"rowform threadopt\" style=\"width:80px;\"", '', 'width="120"', 'width="120"', 'width="55"'), array( "$lang[validate]$lang[delete]$lang[ignore]", "$pic[title] $pic_censor_text$pic[postip]", "$pic[albumname]", "$pic[username] $pic[dateline]", "$lang[view]", )); showtablerow("id=\"mod_$pic[picid]_row2\"", 'colspan="4" style="padding: 10px; line-height: 180%;"', ''); showtablerow("id=\"mod_$pic[picid]_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 $picid => $act) { $moderation[$act][] = $picid; } } if($moderation['validate']) { $validates = C::t('home_pic')->update($moderation['validate'], array('status' => '0')); $albumincrease = array(); foreach(C::t('home_pic')->fetch_all($moderation['validate']) as $pics) { $albumincrease[$pics['albumid']]++; } foreach($albumincrease as $albumid=>$albuminc) { C::t('home_album')->update_num_by_albumid($albumid, $albuminc); } updatemoderate('picid', $moderation['validate'], 2); } if(!empty($moderation['delete'])) { require_once libfile('function/delete'); $pics = deletepics($moderation['delete']); $deletes = count($pics); updatemoderate('picid', $moderation['delete'], 2); } if($moderation['ignore']) { $ignores = C::t('home_pic')->update($moderation['ignore'], array('status' => '2')); updatemoderate('picid', $moderation['ignore'], 1); } if($_GET['fast']) { echo callback_js($_GET['picid']); exit; } else { cpmsg('moderate_pictures_succeed', "action=moderate&operation=pictures&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').'
$pic[postip]
$pic[username]
$pic[dateline]