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 @@ diff --git a/user/profile/password.php b/user/profile/password.php index 169c42c..649a50a 100644 --- a/user/profile/password.php +++ b/user/profile/password.php @@ -141,7 +141,7 @@ elseif($do == 'login'){ 'op' => $_GET['op'], 'do' => $_GET['do'] ); - $theurl = CURSCRIPT . "?" . url_implode($gets); + $theurl = BASESCRIPT . "?" . url_implode($gets); $logdir = DZZ_ROOT.'./data/log/'; $logfiles = get_log_files($logdir, $operation); @@ -189,11 +189,11 @@ elseif($do == 'login'){ //获取数据开始 $logs = file( $logdir.$lastlog["file"] ); $logs = array_reverse($logs); - foreach($logs as $key => $value) { - if(!empty($keyword) && strpos($value, $keyword) === FALSE) { - unset($logs[$key]); - } - } + foreach($logs as $key => $value) { + if(!empty($keyword) && strpos($value, $keyword) === FALSE) { + unset($logs[$key]); + } + } $count = count($logs); if( $lastlog["file"]!=$logfiles[0] ){ $j++; diff --git a/user/profile/template/login.htm b/user/profile/template/login.htm index a6d2d67..7676150 100644 --- a/user/profile/template/login.htm +++ b/user/profile/template/login.htm @@ -42,5 +42,8 @@ } -暂无记录 +
+
+ 没有相关的内容… +
\ No newline at end of file diff --git a/user/register/classes/checkvalue.php b/user/register/classes/checkvalue.php index 3d732de..04a3b8b 100644 --- a/user/register/classes/checkvalue.php +++ b/user/register/classes/checkvalue.php @@ -24,10 +24,10 @@ class Checkvalue{ } //验证码 - if($secqaacheck || $seccodecheck){ - if(!check_seccode( $_GET['seccodeverify'],$_GET['sechash'])){ - showTips(array('error'=>lang('submit_seccode_invalid')), $type); - } + if($secqaacheck || $seccodecheck){ + if(!check_seccode( $_GET['seccodeverify'],$_GET['sechash'])){ + showTips(array('error'=>lang('submit_seccode_invalid')), $type); + } } //验证用户名