安全性加强 提高 config/security/authkey
This commit is contained in:
parent
f470dcb5c3
commit
bb600b8dd6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue