mirror of
https://github.com/gamaio/UnPS-Short.git
synced 2024-12-22 18:32:40 +00:00
Reduce address space for generated links
There have been roughly only 1000 links made since v3.1 a 7 character alphanumeric address space is huge. My link shortener should be happy with a 3 or 4 character alphanumeric address space.
This commit is contained in:
parent
338b72dcd5
commit
db140f58c6
@ -62,7 +62,7 @@ class api{
|
||||
}
|
||||
}
|
||||
if(checkRemoteFile($link) !== true) return "<div id=\"error\">Dead Link: $link</div>";
|
||||
$short = substr(number_format(time() * mt_rand(),0,'',''),0,10);
|
||||
$short = substr(number_format(time() * mt_rand(),0,'',''),0,5);
|
||||
$short = base_convert($short, 10, 36);
|
||||
|
||||
$dpass = substr(number_format(time() * mt_rand(),0,'',''),0,10);
|
||||
|
Loading…
Reference in New Issue
Block a user