第一步:
将admin\filemanage文件夹移入\dzz\目录下
第二步:
打开\dzz\filemanage\index.php文件,以下步骤均在此文件中操作!
- 将
if (!defined('IN_DZZ') || !defined('IN_ADMIN')) {
修改为if (!defined('IN_DZZ')) {
$navtitle = lang('appname');
后面添加$uid=$_G['uid'];
if ($count = DB::result_first("SELECT COUNT(*) FROM " . DB::table('resources') . " WHERE $sql", $param)) {
$data = DB::fetch_all("SELECT rid FROM " . DB::table('resources') . " WHERE $sql $order $limitsql", $param);
$multi = multi($count, $perpage, $page, $theurl);
}
将上面的代码替换为下面的代码
if ($_G['adminid']) {
if ($count = DB::result_first("SELECT COUNT(*) FROM " . DB::table('resources') . " WHERE $sql",