mirror of
https://github.com/gamaio/unps.us-Shortener.git
synced 2025-07-30 13:50:17 +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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user