From 8fb8be3186bdbcb7eb2f58caef48e0bac8b8b1e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=83=A1?= <3203164629@qq.com> Date: Tue, 21 May 2024 13:04:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=86=85=E5=AE=B9=EF=BC=9A?= =?UTF-8?q?=201.=E4=BF=AE=E6=94=B9=E7=B3=BB=E7=BB=9F=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=95=B0=E9=87=8F=E6=98=BE=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E5=85=A8=E9=97=AE=E9=A2=98=202.=E4=BF=AE=E6=94=B9=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=B8=AD=E5=BF=83-=E7=99=BB=E5=BD=95=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=88=87=E6=8D=A2=E9=A1=B5=E6=95=B0=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98=203.=E4=BF=AE=E6=94=B9=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E5=BE=BD=E7=AB=A0=E6=98=BE=E7=A4=BA=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更多更新内容请前往DzzOffice 笔记中查看 --- admin/systemlog/index.php | 16 ++++++++-------- core/template/default/common/header_right.htm | 2 +- user/profile/password.php | 12 ++++++------ user/profile/template/login.htm | 5 ++++- user/register/classes/checkvalue.php | 8 ++++---- 5 files changed, 23 insertions(+), 20 deletions(-) diff --git a/admin/systemlog/index.php b/admin/systemlog/index.php index b373e65..706e5e8 100644 --- a/admin/systemlog/index.php +++ b/admin/systemlog/index.php @@ -47,7 +47,7 @@ if($type=="list"){ $firstlogs = file( $logdir.$logfiles[0] ) ; $firstlogsnum = count($firstlogs); $countlogfile=count($logfiles); - + $count = ($countlogfile-1)*4000+$firstlogsnum; $logs = array(); $jishu=4000;//每个日志文件最多行数 $start = ($page - 1) * $lpp; @@ -87,13 +87,13 @@ if($type=="list"){ $logs = file( $logdir.$lastlog["file"] ); $logs = array_reverse($logs); if($keyword){ - foreach($logs as $key => $value) { - if(!empty($_GET['keyword']) && strpos($value, $_GET['keyword']) === FALSE) { - unset($logs[$key]); - } - } - } - $count = count($logs); + foreach($logs as $key => $value) { + if(!empty($_GET['keyword']) && strpos($value, $_GET['keyword']) === FALSE) { + unset($logs[$key]); + } + } + $count = count($logs); + } if( $lastlog["file"]!=$logfiles[0] ){ $j++; } diff --git a/core/template/default/common/header_right.htm b/core/template/default/common/header_right.htm index b235850..601df87 100644 --- a/core/template/default/common/header_right.htm +++ b/core/template/default/common/header_right.htm @@ -122,7 +122,7 @@
