diff --git a/Legacy/cgi-bin/bonuslevel.org/guploads/getleveldata.php b/Legacy/cgi-bin/bonuslevel.org/guploads/getleveldata.php deleted file mode 100644 index 4440320d47ca2bfc59c16b7b2892ed4f33897e7f..0000000000000000000000000000000000000000 --- a/Legacy/cgi-bin/bonuslevel.org/guploads/getleveldata.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - $gid = $_REQUEST['gid']; - $lvlid = $_REQUEST['lvlid']; - - $db = new PDO('sqlite:game' . $gid . '/level.db'); - - $query = 'SELECT * FROM level WHERE id = :lvlid'; - $statement = $db->prepare($query); - $statement->bindValue(':lvlid', $lvlid, PDO::PARAM_INT); - - $statement->execute(); - $result = $statement->fetchAll(); - - $reply = 'bl=&err='; - - $level = $result[0]; - - $reply .= '&le=' . $level['le']; - $reply .= '&data=' . $level['data']; - $reply .= '&ldunk=' . $level['ldunk']; - /*$reply .= '&bestpd=' . $level['bestpd']; - $reply .= '&bestu=' . $level['bestu']; - $reply .= '&bests=' . $level['bests']; - $reply .= '&besterr=' . $level['besterr'];*/ - - $reply .= '&bestpd=&bestu=&bests=0&besterr='; - - echo $reply; diff --git a/Legacy/cgi-bin/bonuslevel.org/guploads/getlevelinfo.php b/Legacy/cgi-bin/bonuslevel.org/guploads/getlevelinfo.php deleted file mode 100644 index c5f9aa6f1b0c771afc31719be51abcf570f55dd7..0000000000000000000000000000000000000000 --- a/Legacy/cgi-bin/bonuslevel.org/guploads/getlevelinfo.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php - $gid = $_REQUEST['gid']; - $nb = $_REQUEST['nb']; - - $db = new PDO('sqlite:game' . $gid . '/level.db'); - - $query = 'SELECT * FROM level WHERE '; - $or = ''; - for ($i = 0; $i < $nb; $i++) { - $query .= (' ' . $or . ' id = :l' . $i . ' '); - $or = 'OR'; - } - $query .= 'LIMIT ' . $nb; - - $statement = $db->prepare($query); - - for ($i = 0; $i < $nb; $i++) { - $statement->bindValue(':l' . $i, $_REQUEST['l' . $i], PDO::PARAM_INT); - } - - $statement->execute(); - $result = $statement->fetchAll(); - - $reply = 'bl=&err=&reqnb=' . $nb; - - $i = 0; - foreach ($result as $level) { - $reply .= '&id' . $i . '=' . $level['id']; - $reply .= '&t' . $i . '=' . $level['t']; - $reply .= '&s' . $i . '=' . $level['s']; - $reply .= '&c' .$i . '=-1'; - $reply .= '&r' . $i . '=' . $level['r']; - $reply .= '&a' . $i . '=' . $level['a']; - $reply .= '&v' . $i . '=' . $level['v']; - $reply .= '&n' . $i . '=' . $level['n']; - $reply .= '&ise' . $i . '=' . $level['ise']; - - $i++; - } - - echo $reply; diff --git a/Legacy/cgi-bin/bonuslevel.org/guploads/getlevellist.php b/Legacy/cgi-bin/bonuslevel.org/guploads/getlevellist.php deleted file mode 100644 index 15d84cca6882d4012922c4ca41dce5cd09e33f14..0000000000000000000000000000000000000000 --- a/Legacy/cgi-bin/bonuslevel.org/guploads/getlevellist.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php - $limit = $_REQUEST['limit']; - $linf = $_REQUEST['linf']; - $nbitem = $_REQUEST['nbitem']; - - $db = new PDO('sqlite:game5/level.db'); - - $query = 'SELECT * FROM level ORDER BY id desc LIMIT ' . $limit . ' OFFSET ' . ($linf / 45); - - $statement = $db->prepare($query); - - $statement->execute(); - $result = $statement->fetchAll(); - - $reply = 'bl=&err=&reqnb=' . $limit; - - $i = 0; - foreach ($result as $level) { - $reply .= '&id' . $i . '=' . $level['id']; - $reply .= '&t' . $i . '=' . $level['t']; - $reply .= '&s' . $i . '=' . $level['s']; - $reply .= '&c' .$i . '=-1'; - $reply .= '&r' . $i . '=' . $level['r']; - $reply .= '&a' . $i . '=' . $level['a']; - $reply .= '&v' . $i . '=' . $level['v']; - $reply .= '&n' . $i . '=' . $level['n']; - $reply .= '&ise' . $i . '=' . $level['ise']; - - $i++; - } - - $reply .= '&nblvl=4777'; - - echo $reply; diff --git a/Legacy/cgi-bin/bonuslevel.org/guploads/getrandomlevel.php b/Legacy/cgi-bin/bonuslevel.org/guploads/getrandomlevel.php deleted file mode 100644 index c899ed84639ccc06bc9e4e85a0718c031e8e6758..0000000000000000000000000000000000000000 --- a/Legacy/cgi-bin/bonuslevel.org/guploads/getrandomlevel.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php - $gid = $_REQUEST['gid']; - $n = $_REQUEST['n']; // Number of levels - $typ = $_REQUEST['typ']; // Type (0 = Random, 1 = Top Rated, 2 = New) - - $db = new PDO('sqlite:game' . $gid . '/level.db'); - - if ($typ == 0) { - $query = 'SELECT * FROM level ORDER BY RANDOM() LIMIT ' . $n; - } else if ($typ == 1) { - $query = 'SELECT * FROM level WHERE r > 3500 ORDER BY RANDOM() LIMIT ' . $n; - } else if ($typ == 2) { - $query = "SELECT * FROM level WHERE le > '2018-01-01 00:00:00' ORDER BY RANDOM() LIMIT " . $n; - } - - $statement = $db->prepare($query); - - $statement->execute(); - $result = $statement->fetchAll(); - - $reply = 'bl=&err=&reqnb=' . $n; - - $i = 0; - foreach ($result as $level) { - $reply .= '&id' . $i . '=' . $level['id']; - $reply .= '&t' . $i . '=' . $level['t']; - $reply .= '&s' . $i . '=' . $level['s']; - $reply .= '&c' .$i . '=-1'; - $reply .= '&r' . $i . '=' . $level['r']; - $reply .= '&a' . $i . '=' . $level['a']; - $reply .= '&v' . $i . '=' . $level['v']; - $reply .= '&n' . $i . '=' . $level['n']; - - $i++; - } - - echo $reply; \ No newline at end of file diff --git a/Legacy/cgi-bin/bonuslevel.org/guploads/getuserinfo.php b/Legacy/cgi-bin/bonuslevel.org/guploads/getuserinfo.php deleted file mode 100644 index 2e0748f47fe8bb5002c873d869270a5fb32ad7b0..0000000000000000000000000000000000000000 --- a/Legacy/cgi-bin/bonuslevel.org/guploads/getuserinfo.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php - - $unb = $_REQUEST['unb']; // Number of users requested - - $db = new PDO('sqlite:game5/level.db'); - - $query = 'SELECT a, n FROM level WHERE '; - $or = ''; - for ($i = 0; $i < $unb; $i++) { - $query .= (' ' . $or . ' a = :u' . $i . ' '); - $or = 'OR'; - } - - $query .= 'LIMIT ' . $unb; - - $statement = $db->prepare($query); - - for ($i = 0; $i < $unb; $i++) { - $statement->bindValue(':u' . $i, $_REQUEST['u' . $i], PDO::PARAM_INT); - } - - $statement->execute(); - $result = $statement->fetchAll(); - - $reply = 'bl=&err=&nbus=15'; - - $i = 0; - foreach ($result as $level) { - $reply .= '&i' . $i . '=' . $level['a']; - $reply .= '&u' . $i . '=' . $level['n']; - - $i++; - } - - echo $reply; \ No newline at end of file diff --git a/Legacy/cgi-bin/bonuslevel.org/guploads/initgame.php b/Legacy/cgi-bin/bonuslevel.org/guploads/initgame.php deleted file mode 100644 index 1126e7d072b8f623c9348280da18a5fa2b34974d..0000000000000000000000000000000000000000 --- a/Legacy/cgi-bin/bonuslevel.org/guploads/initgame.php +++ /dev/null @@ -1,6 +0,0 @@ -<?php - $gid = $_REQUEST['gid']; - - if ($gid == '5') { - echo 'bl=&err=&skin=skins%2Fbasic.png&lpstyle=0&bf1=119&colors=||||&gwidth=500&gheight=440&ewidth=500&eheight=440&lvlcats=&lvlmngt=2&scoremngt=0&scoretxt=%25p+point%28s%29&title=Rolling+Turtle&flashv=1&uid=-1&uname=&ur=0&comp=&lets=1238497713&off=306_-1#297_-1#298_-1#301_-1#300_-1#299_-1#303_-1#304_-1#2379_-1#12459_-1#6826_-1#335_-1#3409_-1#1148_-1#337_-1#319_-1#341_-1#343_-1#4337_-1#244_-1#5732_-1#399_-1#601_-1#352_-1#256_-1#357_-1#168_-1#409_-1#361_-1#259_-1#4896_-1#315_-1#471_-1#358_-1#324_-1#2477_-1#435_-1#3323_-1#558_-1#567_-1#569_-1#575_-1#478_-1#906_-1#314_-1#3946_-1#5088_-1#1110_-1#3114_-1#900_-1#5100_-1#4585_-1#501_-1#3344_-1#2879_-1#1084_-1#6875_-1#485_-1#462_-1#1728_-1#563_-1#359_-1#2157_-1#4369_-1#594_-1#1076_-1#553_-1#1332_-1#3424_-1#5599_-1#3477_-1#1546_-1#1356_-1#1106_-1#750_-1#292_-1#1597_-1#6031_-1#2969_-1#5751_-1#1654_-1#5531_-1#4039_-1#4077_-1#4283_-1#5510_-1#327_-1#381_-1#2162_-1#305_-1#3931_-1#1087_-1#1862_-1#2125_-1#24264_-1#3563_-1#641_-1#363_-1#2005_-1#5521_-1#469_-1#3758_-1#1725_-1#2470_-1#1733_-1#1643_-1#1738_-1#1666_-1#8049_-1#2039_-1#1558_-1#582_-1#1608_-1#223_-1#433_-1#196_-1#7037_-1#1651_-1#2643_-1#1953_-1#1619_-1#927_-1#321_-1#1794_-1#5816_-1#411_-1#371_-1#10222_-1#7004_-1#6664_-1#7442_-1#5472_-1#302_-1#3841_-1#4561_-1#7940_-1#7968_-1#2172_-1#2398_-1#2445_-1#1412_-1#4388_-1#4160_-1#6132_-1#10748_-1#2942_-1#7196_-1#7847_-1#2544_-1#1514_-1#7870_-1#12914_-1#309_-1#412_-1#2154_-1#1297_-1#5311_-1#253_-1#3901_-1#6636_-1#189_-1#355_-1#12443_-1#5523_-1#448_-1#289_-1#421_-1#1868_-1#1186_-1#2073_-1#326_-1#4467_-1#5283_-1#9908_-1#17530_-1#1471_-1#169_-1#9110_-1#5121_-1#953_-1#8036_-1#2076_-1#498_-1#785_-1#354_-1#2021_-1#332_-1#2389_-1#6355_-1#2848_-1#711_-1#2512_-1#415_-1#382_-1#470_-1#1312_-1#6416_-1#6649_-1#5451_-1#1283_-1#3032_-1#251_-1#1625_-1#1687_-1#4140_-1#1458_-1#346_-1#1244_-1#2876_-1#414_-1#1295_-1#3547_-1#7492_-1#835_-1#1937_-1#2703_-1#1388_-1#431_-1#405_-1#247_-1#400_-1#1000_-1#25507_-1&hl=17'; - } \ No newline at end of file