Last login value, minor update for array to [, smarty include core
When logged in, the last loggedin time is stored in the edit_user table, additional to the normal logging. More array() to [] conversion in config files, etc Javascript: add math.round Basic Class: Fix key length array mapping to more efficiont loop run DB/IO: some name fixes in get key function description/comments SmartyExtended: add CORE CSS/JS file include if exists. Follows after MAIN and BEFORE page and special
This commit is contained in:
@@ -976,15 +976,11 @@ class Basic
|
||||
$use_key_length = $this->key_length;
|
||||
}
|
||||
|
||||
return join(
|
||||
'',
|
||||
array_map(
|
||||
function () {
|
||||
return $this->key_range[rand(0, $this->one_key_length - 1)];
|
||||
},
|
||||
range(1, $use_key_length)
|
||||
)
|
||||
);
|
||||
$pieces = [];
|
||||
for ($i = 1; $i <= $use_key_length; $i ++) {
|
||||
$pieces[] = $this->key_range[random_int(0, $this->one_key_length - 1)];
|
||||
}
|
||||
return join('', $pieces);
|
||||
}
|
||||
|
||||
// ****** RANDOM KEY GEN ******
|
||||
|
||||
Reference in New Issue
Block a user