From aa37b565c04ef996b8e63a7677aa97dd7c57ccef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Tue, 29 Nov 2022 16:17:00 +0800 Subject: [PATCH] Update index.php --- src/user/index.php | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/user/index.php b/src/user/index.php index 905d5540..354dffae 100755 --- a/src/user/index.php +++ b/src/user/index.php @@ -11,7 +11,6 @@ $uid = empty($uid) ? "" : RemoveXSS($uid); if (empty($action)) $action = ''; if (empty($aid)) $aid = ''; $menutype = 'mydede'; -//会员后台 if ($uid == '') { $iscontrol = 'yes'; if (!$cfg_ml->IsLogin()) { @@ -26,26 +25,15 @@ if ($uid == '') { $ddsize = 0; } require_once(DEDEINC.'/channelunit.func.php'); - //最新文档10条 + //最新文档20条 $archives = array(); - $sql = "SELECT arc.*, category.namerule, category.typedir, category.moresite, category.siteurl, category.sitepath, mem.userid FROM `#@__archives` arc LEFT JOIN `#@__arctype` category ON category.id=arc.typeid LEFT JOIN `#@__member` mem ON mem.mid=arc.mid WHERE arc.arcrank > -1 ORDER BY arc.sortrank DESC LIMIT 10"; + $sql = "SELECT arc.*, category.namerule, category.typedir, category.moresite, category.siteurl, category.sitepath, mem.userid FROM `#@__archives` arc LEFT JOIN `#@__arctype` category ON category.id=arc.typeid LEFT JOIN `#@__member` mem ON mem.mid=arc.mid WHERE arc.arcrank > -1 ORDER BY arc.sortrank DESC LIMIT 20"; $dsql->SetQuery($sql); $dsql->Execute(); while ($row = $dsql->GetArray()) { $row['htmlurl'] = GetFileUrl($row['id'], $row['typeid'], $row['senddate'], $row['title'], $row['ismake'], $row['arcrank'], $row['namerule'], $row['typedir'], $row['money'], $row['filename'], $row['moresite'], $row['siteurl'], $row['sitepath']); $archives[] = $row; } - //调用访客记录 - $_vars['mid'] = $cfg_ml->M_ID; - if (empty($cfg_ml->fields['face'])) { - $cfg_ml->fields['face'] = ($cfg_ml->fields['sex'] == '女') ? 'templets/images/dfgirl.png' : 'templets/images/dfboy.png'; - } - //我的收藏 - $favorites = array(); - $dsql->Execute('fl', "SELECT * FROM `#@__member_stow` WHERE mid='{$cfg_ml->M_ID}' LIMIT 5"); - while ($arr = $dsql->GetArray('fl')) { - $favorites[] = $arr; - } $dpl = new DedeTemplate(); $tpl = dirname(__FILE__)."/templets/index.htm"; $dpl->LoadTemplate($tpl);