From 292a5d0b86ec97ef2a01fd32260b1c94e797bc6f 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: Fri, 12 May 2023 17:54:31 +0800 Subject: [PATCH] Update index_body.php --- src/admin/index_body.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/admin/index_body.php b/src/admin/index_body.php index bb32059d..f0c67c0b 100644 --- a/src/admin/index_body.php +++ b/src/admin/index_body.php @@ -22,8 +22,7 @@ if (empty($dopost)) { $offUrl = SpGetNewInfo(); include DedeInclude('templets/index_body.htm'); exit(); -} -else if ($dopost == 'setskin') { +} else if ($dopost == 'setskin') { $cskin = empty($cskin) ? 1 : $cskin; $skin = !in_array($cskin, array(1, 2, 3, 4)) ? 1 : $cskin; $skinconfig = DEDEDATA.'/admin/skin.txt'; @@ -40,7 +39,7 @@ else if ($dopost == 'setskin') { $admin_catalog = join(',', $admin_catalogs); $userCatalogSql = "AND arc.typeid IN($admin_catalog) "; } - $query = "SELECT arc.id, arc.arcrank, arc.title, arc.typeid, arc.mid, arc.pubdate, arc.channel, ch.editcon, tp.typename FROM `#@__archives` arc LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel LEFT JOIN `#@__arctype` tp ON arc.typeid=tp.id WHERE arc.arcrank<>-2 {$userCatalogSql} AND arc.mid={$cuserLogin->getUserID()} ORDER BY arc.id DESC LIMIT 0,15"; + $query = "SELECT arc.id, arc.arcrank, arc.title, arc.typeid, arc.mid, arc.pubdate, arc.channel, ch.editcon, tp.typename FROM `#@__archives` arc LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel LEFT JOIN `#@__arctype` tp ON arc.typeid=tp.id WHERE arc.arcrank<>-2 {$userCatalogSql} AND arc.mid={$cuserLogin->getUserID()} ORDER BY arc.id DESC LIMIT 0,13"; $arcArr = array(); $dsql->Execute('m', $query); while($row = $dsql->GetArray('m'))