最重要的一步:
将admin\share文件夹移入\dzz\目录下
第二步:
打开\dzz\share\index.php文件,以下步骤均在此文件中操作!
- 将
if (!defined('IN_DZZ') || !defined('IN_ADMIN')) {
修改为if (!defined('IN_DZZ')) {
uid = intval(_GET['uid']);
后面添加$uid1=$_G['uid'];
if ($count = DB::result_first("SELECT COUNT(*) FROM %t WHERE $sql", $param)) {
$list = DB::fetch_all("SELECT * FROM %t WHERE $sql $orderby limit $start,$perpage", $param);
foreach ($list as $k=> $value) {
$value['sharelink'] = C::t('shorturl')->getShortUrl(getglobal('siteurl').'index.php?mod=shares&sid='.dzzencode($value['id']));
if ($value['dateline'])
$value['fdateline'] = dgmdate($value['dateline']);
if ($value['password'])
$value['password'] = dzzdecode($value['password']);
if ($value['endtime'])
$value['fendtime'] = dgmdate($value['endtime'], 'Y-m-d');
$value['fsize'] = formatsize($value['size']);
$value['ftype'] = getFileTypeName($value['type'], $value['ext']);
if ($value['type'] == 'folder')
$value['img'] = 'dzz/images/extimg/folder.png';
if ($value['img'])
$value['img'] = str_replace('dzz/images/extimg/', 'dzz/images/extimg_small/', $value['img']);
if ($value['type'] == 'image' && $value['status'] == -3)
$value['img'] = '';
$value['fstatus'] = $sharestatus[$value['status']];
if (is_file($_G['setting']['attachdir'] . './qrcode/' . $value['sid'][0] . '/'