commit c799dbc93bc3bff133f909ebca1f379deb363fe1 Author: Avior Date: Tue Jun 11 10:02:49 2019 +0200 Initial Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4d87999 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +meekrodb.*.php diff --git a/index.php b/index.php new file mode 100644 index 0000000..468251b --- /dev/null +++ b/index.php @@ -0,0 +1,58 @@ + $result['count']+1, + ), "id=%s", $_GET['l']); + if(isset($result["url"])) header("Location : ".$result["url"]); + else echo 'Link not found! Back'; +} elseif(isset($_GET['create'])) { + if(count($_GET) > 1) { + foreach ($_GET as $key => $value) { + if($key != 'create') $_GET['create'] .= '&'.$key.'='.$value; + } + } + $tables = DB::tableList(); + foreach ($tables as $table) if($table == $tablee) $shouldbetrue = true; + if(!$shouldbetrue) { + DB::query(' + CREATE TABLE '.$tablee.' ( + id INT AUTO_INCREMENT PRIMARY KEY, + url VARCHAR(256) UNIQUE NOT NULL, + count INT(100) NOT NULL DEFAULT \'0\' + ); + '); + } + $row = DB::queryFirstRow("SELECT id, url FROM ".$tablee." WHERE url=%s LIMIT 1", $_GET['create']); + if(isset($row)) { + echo "Already Existing Link : "; + } else { + DB::insert($tablee, array( + 'url' => $_GET['create'] + )); + + } + $url = 'https://s.delta-wings.net/?l='.DB::queryFirstRow("SELECT id, url FROM ".$tablee." WHERE url=%s LIMIT 1", $_GET['create'])['id']; + echo ''.$url.''; +} elseif (isset($_GET['get'])) { + $row = DB::queryFirstRow("SELECT id, url, count FROM ".$tablee." WHERE id=%s LIMIT 1", $_GET['get']); + echo 'ID = '.$row['id'].''; + echo '
URL = '.$row['url'].''; + echo '
Click Count = '.$row['count']; + echo '
Return'; +} else { + echo '

Made in less than 2 hours by Aviortheking! Redirect to Website




'; +}