From 09c0c3cc59919171c62bc32c50e0b61a41a617af Mon Sep 17 00:00:00 2001 From: tensent Date: Sat, 18 Apr 2020 09:11:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=97=B6=E6=9C=80=E5=90=8E?= =?UTF-8?q?=E6=8F=92=E5=85=A5=E7=AE=A1=E7=90=86=E5=91=98=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=97=B6=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/install.php b/public/install.php index 915cf187..f69d043a 100644 --- a/public/install.php +++ b/public/install.php @@ -607,7 +607,7 @@ function register_administrator($db, $prefix, $admin){ $password = md5($admin['password'].$salt); $sql = "INSERT INTO `[PREFIX]member` (`uid`,`username`,`password`,`nickname`,`email`, `sex`,`birthday`,`qq`,`score`,`salt`,`login`,`reg_ip`,`reg_time`,`last_login_ip`,`last_login_time`,`status`) VALUES ". - "('1', '[NAME]', '[PASS]', '[NAME]', '[EMAIL]', '0', '0000-00-00', '', '0','[SALT]', '1', '0', '[TIME]', '[IP]', '[TIME]', '1');"; + "('1', '[NAME]', '[PASS]', '[NAME]', '[EMAIL]', '0', '".date('Y-m-d')."', '', '0','[SALT]', '1', '0', '[TIME]', '[IP]', '[TIME]', '1');"; $sql = str_replace( array('[PREFIX]', '[NAME]','[PASS]','[EMAIL]','[SALT]', '[TIME]', '[IP]'), array($prefix, $admin['username'],$password, $admin['email'],$salt, time(), \xin\helper\Server::getRemoteIp()),