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:
Arctic Code 2014-02-24 09:57:18 -06:00
parent 338b72dcd5
commit db140f58c6
1 changed files with 1 additions and 1 deletions

View File

@ -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);