mirror of
https://github.com/gamaio/unps.us-Shortener.git
synced 2024-12-22 10:12:41 +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>";
|
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);
|
$short = base_convert($short, 10, 36);
|
||||||
|
|
||||||
$dpass = substr(number_format(time() * mt_rand(),0,'',''),0,10);
|
$dpass = substr(number_format(time() * mt_rand(),0,'',''),0,10);
|
||||||
|
Loading…
Reference in New Issue
Block a user