mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Screenshots
* reworked upload process to be more user-friendly * handle bricks that consist mostly of localized text separately * added handle to display errors, when adding CommunityContent on the page they originated from
This commit is contained in:
@@ -1395,11 +1395,11 @@ class Util
|
||||
|
||||
public static function createHash($length = 40) // just some random numbers for unsafe identifictaion purpose
|
||||
{
|
||||
static $seed = ".abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||
static $seed = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||
$hash = '';
|
||||
|
||||
for ($i = 0; $i < $length; $i++)
|
||||
$hash .= substr($seed, mt_rand(0, 62), 1);
|
||||
$hash .= substr($seed, mt_rand(0, 61), 1);
|
||||
|
||||
return $hash;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user