Good Night,
This is a new version of URL-Shortener that don’t create random IDs to websites, it uses the auto-increment field and replace it to other base.
It was necessary to create two new methods
[code lang=”php”]
function convertDecimalTo($decimal,$newBase,$str,$letters) {
if ($decimal >= $newBase) {
$x = $decimal % $newBase;
$y = $decimal / $newBase;
$str = $letters{$x} . $str;
if ($y < $newBase) {
$str = $letters{$y} . $str;
}
return convertDecimalTo($y,$newBase,$str,$letters);
} else {
if (strlen($str) == 0) {
$str = $letters{$decimal} . $str;
}
return $str;
}
}
function convertBaseToDecimal($value,$newBase,$letters) {
$sum = 0;
$len = strlen($value);
$end = $len-1;
for ($x=$end;$x>=0;$x–) {
$sum = $sum + strpos($letters,$value{$x}) * pow($newBase,($end – $x));
}
return $sum;
}
[/code]
You can download the full new version to PHP4
URL Shortener (LURL) using auto increment field to generate the “TAG”
Hope you enjoy,
Matheus
juegos de casino con bonos gratis bono sin depósito retirable
Люди помогите советом Цены космос а качество мыло То ЛДСП тонкая как картон Короче, нашел наконец нормальное производство — купить кухню в спб с доставкой Цены ниже салонов на 30% В общем, вся инфа вот здесь — купить кухню со встроенной техникой в спб https://zakazat-kuhnyu-mrx.ru Проверяйте производителя по этому списку Сам мучался теперь делюсь
Casino bono Tiradas Gratis mobile
españa
casino dados De Casino españa maquinas cerca de mi