diff --git a/upload/install/index.php b/upload/install/index.php index 38a8dbf..2379438 100644 --- a/upload/install/index.php +++ b/upload/install/index.php @@ -343,7 +343,7 @@ if($method == 'show_license') { $uid = DZUCFULL ? 1 : $adminuser['uid']; - $authkey = substr(md5($_SERVER['SERVER_ADDR'].$_SERVER['HTTP_USER_AGENT'].$dbhost.$dbuser.$dbpw.$dbname.$username.$password.$pconnect.substr($timestamp, 0, 6)), 8, 6).random(10); + $authkey = md5($_SERVER['SERVER_ADDR'].$_SERVER['HTTP_USER_AGENT'].$dbhost.$dbuser.$dbpw.$dbname.$username.$password.$pconnect.substr($timestamp, 0, 8)).random(18); $_config['db'][1]['dbhost'] = $dbhost; $_config['db'][1]['dbname'] = $dbname; $_config['db'][1]['dbpw'] = $dbpw;