|
发表于 2024-8-6 16:18:22
|
查看全部
谢谢测试!
不正常,错误信息表示多了个')'字符
很奇怪,如果有这个错误的话,应该是所有人都有这个错误才对。
我再看看,谢谢!
————————————分割线————————————
安装时,代码不完整。
我把报错的整个文件贴上来- 文件地址:souce/plugin/common_cloud_storage/include/list.php
复制代码- <?phpif (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { exit('Access Denied');}$pluginlang = lang('plugin/common_cloud_storage');showtablerow('', array('class="xiongzhu3"', 'class="xiongzhu4"'), array('<button class="submit btn" style="border-radius: 3px"><a style="color: white" href="'.ADMINSCRIPT.'?' . \common_cloud_storage\get_url() . '&attr_type=forum&tmod=list' . '">'. $pluginlang['forum'] . '</a></button>', '<button class="submit btn" style="border-radius: 3px"><a style="color: white" href="'.ADMINSCRIPT.'?' . \common_cloud_storage\get_url() . '&attr_type=home_pic&tmod=list' . '">'. $pluginlang['home_pic'] . '</a></button>', '<button class="submit btn" style="border-radius: 3px"><a style="color: white" href="'.ADMINSCRIPT.'?' . \common_cloud_storage\get_url() . '&attr_type=portal&tmod=list' . '">'. $pluginlang['portal'] . '</a></button>', ),);$count=0;$limit = 10;//单页数量$currenPage = $_GET['page']?$_GET['page']:1;//当前页面$extra='$extra';$mpurl = ADMINSCRIPT."?action=plugins&operation=config&identifier=common_cloud_storage&pmod=common_cloud_storage_list&attr_type={$_GET['attr_type']}";//没有选择类型时if(!$_GET['attr_type']){ exit;}//展示论坛附件if($_GET['attr_type']=='forum'){ $count = DB::result_first("SELECT COUNT(*) FROM " . DB::table("forum_attachment"));//总数 $dataList = array(); if($count){ $dataList = Db::fetch_all('select * from %t limit %d,%d' , array('forum_attachment',($currenPage-1)*$limit,$limit)); foreach ($dataList as $k=>$v){ $dataList[$k]['info'] = Db::fetch_first('select * from %t where aid = %i' , array('forum_attachment_'.$v['tableid'],$v['aid'])); $dataList[$k]['info']['datetime'] = date('y-m-d H:i:s',$dataList[$k]['info']['dateline']); } unset($k,$v); } include template('common_cloud_storage:forum_attachment_list');}//相册附件if($_GET['attr_type']=='home_pic'){ $count = DB::result_first("SELECT COUNT(*) FROM " . DB::table("home_pic"));//总数 $dataList = array(); if($count){ $dataList = Db::fetch_all('select * from %t limit %d,%d' , array('home_pic',($currenPage-1)*$limit,$limit)); } include template('common_cloud_storage:home_pic_list');}//论坛封面附件if($_GET['attr_type']=='portal') { $count = DB::result_first("SELECT COUNT(*) FROM " . DB::table("portal_attachment"));//总数 $dataList = array(); if($count){ $dataList = Db::fetch_all('select * from %t limit %d,%d' , array('portal_attachment',($currenPage-1)*$limit,$limit)); } include template('common_cloud_storage:portal_attachment_list');}//论坛封面附件if($_GET['attr_type']=='forum_thread') { echo '主题封面';}/*分页*/if($count){ echo multi($count, $limit, $currenPage, $mpurl);}
复制代码 |
|