diff --git a/api/api.backend.php b/api/api.backend.php index 06e4525..0212ab2 100644 --- a/api/api.backend.php +++ b/api/api.backend.php @@ -66,7 +66,7 @@ class api{ $short = base_convert($short, 10, 36); $dpass = substr(number_format(time() * mt_rand(),0,'',''),0,10); - $dpass = base_convert($short.$dpass, 10, 36); + $dpass = base_convert($short.$dpass, 10, 36); if($dpass != null): $sql = "INSERT INTO `links` (link, shortlink, dpass) VALUES ('$link', '$short', '$dpass')"; else: $sql = "INSERT INTO `links` (link, shortlink, dpass) VALUES ('$link', '$short', '$apikey')"; diff --git a/index.php b/index.php index d749491..eee03db 100644 --- a/index.php +++ b/index.php @@ -107,25 +107,10 @@
Loading...
Loading...
-