53 lines
1.3 KiB
PHP
Executable File
53 lines
1.3 KiB
PHP
Executable File
<?php
|
|
|
|
|
|
if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
|
|
exit('Access Denied');
|
|
}
|
|
|
|
$ident = $plugin['identifier'];
|
|
$purl = 'action=plugins&operation=config&do='. $plugin['pluginid'] .'&identifier='.$plugin['identifier'].'&pmod='.$_GET['pmod'].'&tmod='.$_GET['tmod'];
|
|
$curl = ADMINSCRIPT . '?'.$purl;
|
|
|
|
$_GET['act'] = $_GET['act'] ? $_GET['act'] : 'lists';
|
|
$page = max(1, intval($_GET['page']));
|
|
|
|
$limit = 20;
|
|
$start = ($page - 1) * $limit;
|
|
|
|
|
|
switch($_GET['act']){
|
|
|
|
case 'delete' :
|
|
if( !$_GET['tid'] || ($_GET['formhash']!=FORMHASH) ) exit;
|
|
|
|
C::t('forum_thread')->update( $_GET['tid'], array(
|
|
'across_fids' => ''
|
|
) );
|
|
|
|
cpmsg('操作成功',$purl,'succeed');
|
|
|
|
break;
|
|
|
|
default :
|
|
loadcache('forums');
|
|
$page = max(1, intval($_GET['page']));
|
|
|
|
$limit = 20;
|
|
$start = ($page - 1) * $limit;
|
|
|
|
$count = DB::result_first("select count(*) from %t where across_fids != ''", array('forum_thread'));
|
|
$lists = array();
|
|
if($count){
|
|
$lists = DB::fetch_all("select tid,fid,subject,authorid,author,across_fids,dateline from %t where across_fids != '' order by tid desc %i", array('forum_thread', DB::limit($start, $limit)));
|
|
}
|
|
|
|
$multipage = multi($count, $limit, $page , $curl);
|
|
|
|
include template('thread_across:admin_across');
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|