Аккаунт активирован!
br> 13 |Вы можете входить!
14 |├── README.md ├── acceptGJFriendRequest20.php ├── accounts ├── accountManagement.php ├── backupGJAccount.php ├── loginGJAccount.php ├── lostpassword.php ├── lostusername.php ├── mail │ ├── PHPMailerAutoload.php │ ├── class.phpmailer.php │ ├── class.phpmaileroauth.php │ ├── class.phpmaileroauthgoogle.php │ ├── class.pop3.php │ ├── class.smtp.php │ ├── get_oauth_token.php │ └── travis.phpunit.xml.dist ├── registerGJAccount.php ├── syncGJAccount.php └── syncGJAccount20.php ├── api ├── getDailyLevel.php ├── getLevelInfo.php ├── getUserInfo.php └── getWeeklyLevel.php ├── blockGJUser20.php ├── config ├── connection.php ├── mail.php └── name.php ├── data ├── accounts │ └── keys.txt └── levels │ └── deleted │ └── filter.txt ├── database.sql ├── database └── accounts │ ├── backupGJAccountNew.php │ └── syncGJAccountNew.php ├── deleteGJAccComment20.php ├── deleteGJComment20.php ├── deleteGJFriendRequests20.php ├── deleteGJLevelUser20.php ├── deleteGJMessages20.php ├── downloadGJLevel.php ├── downloadGJLevel19.php ├── downloadGJLevel20.php ├── downloadGJLevel21.php ├── downloadGJLevel22.php ├── downloadGJMessage20.php ├── getAccountURL.php ├── getGJAccountComments20.php ├── getGJChallenges.php ├── getGJCommentHistory.php ├── getGJComments.php ├── getGJComments19.php ├── getGJComments20.php ├── getGJComments21.php ├── getGJCreators.php ├── getGJCreators19.php ├── getGJDailyLevel.php ├── getGJFriendRequests20.php ├── getGJGauntlets.php ├── getGJGauntlets21.php ├── getGJLevelScores.php ├── getGJLevelScores211.php ├── getGJLevels.php ├── getGJLevels19.php ├── getGJLevels20.php ├── getGJLevels21.php ├── getGJMapPacks.php ├── getGJMapPacks20.php ├── getGJMapPacks21.php ├── getGJMessages20.php ├── getGJRewards.php ├── getGJScores.php ├── getGJScores19.php ├── getGJScores20.php ├── getGJSongInfo.php ├── getGJTopArtists.php ├── getGJUserInfo20.php ├── getGJUserList20.php ├── getGJUsers20.php ├── include ├── comments │ ├── deleteGJAccComment.php │ ├── deleteGJComment.php │ ├── getGJAccountComments.php │ ├── getGJComments.php │ ├── uploadGJAccComment.php │ └── uploadGJComment.php ├── components │ ├── css │ │ └── styles.css │ ├── images │ │ └── tools_favicon.png │ └── jscolor │ │ ├── jscolor.js │ │ └── jscolor.min.js ├── levelpacks │ ├── getGJGauntlets.php │ └── getGJMapPacks.php ├── levels │ ├── cp.php │ ├── deleteGJLevelUser.php │ ├── downloadGJLevel.php │ ├── getGJDailyLevel.php │ ├── getGJLevels.php │ ├── rateGJDemon.php │ ├── rateGJStars.php │ ├── reportGJLevel.php │ ├── suggestGJStars.php │ ├── updateGJDesc.php │ └── uploadGJLevel.php ├── lib │ ├── GJPCheck.php │ ├── XORCipher.php │ ├── connection.php │ ├── defuse-crypto.phar │ ├── exploitPatch.php │ ├── generateHash.php │ ├── generatePass.php │ ├── ip_in_range.php │ ├── mail.php │ ├── mainLib.php │ └── songReup.php ├── messages │ ├── deleteGJMessages.php │ ├── downloadGJMessage.php │ ├── getGJMessages.php │ └── uploadGJMessage.php ├── misc │ ├── commands.php │ ├── cp.php │ ├── getAccountURL.php │ ├── getGJSongInfo.php │ ├── getTopArtists.php │ └── likeGJItem.php ├── mods │ └── requestUserAccess.php ├── profiles │ ├── getGJUserInfo.php │ ├── getGJUsers.php │ └── updateGJAccSettings.php ├── relationships │ ├── acceptGJFriendRequest.php │ ├── blockGJUser.php │ ├── deleteGJFriendRequests.php │ ├── getGJFriendRequests.php │ ├── getGJUserList.php │ ├── readGJFriendRequest.php │ ├── removeGJFriend.php │ ├── unblockGJUser.php │ └── uploadFriendRequest.php ├── rewards │ ├── getGJChallenges.php │ └── getGJRewards.php └── scores │ ├── autoban.php │ ├── getGDPSUserBan.php │ ├── getGJCreators.php │ ├── getGJLevelScores.php │ ├── getGJScores.php │ ├── updateGDPSUserBan.php │ └── updateGJUserScore.php ├── likeGJItem.php ├── likeGJItem19.php ├── likeGJItem20.php ├── likeGJItem21.php ├── likeGJItem211.php ├── rateGJDemon21.php ├── rateGJStars20.php ├── rateGJStars211.php ├── readGJFriendRequest20.php ├── removeGJFriend20.php ├── reportGJLevel.php ├── requestUserAccess.php ├── settings ├── dailyChests.php ├── name.php ├── reuploadAcc.php ├── security.php ├── songAdd.php └── topArtists.php ├── suggestGJStars20.php ├── tools ├── account │ ├── activate.php │ ├── changePassword.php │ ├── changePasswordNoSave.php │ ├── changeUsername.php │ └── reset.php ├── cron │ ├── autoban.php │ ├── cron.php │ ├── fixcps.php │ ├── fixlevels.php │ ├── fixnames.php │ ├── friendsLeaderboard.php │ ├── index.php │ ├── removeBlankLevels.php │ └── songsCount.php ├── index.php ├── levelReupload.php ├── levelToGD.php ├── linkAccount.php ├── logs │ ├── cplog.txt │ ├── cronlastrun.txt │ ├── fixcpslog.txt │ ├── fixfrndlog.txt │ ├── fixnameslog.txt │ ├── frndlog.txt │ └── snglog.txt ├── mod │ ├── addQuests.php │ ├── index.php │ ├── leaderboardsBan.php │ ├── leaderboardsUnban.php │ ├── packCreate.php │ ├── panel.php │ ├── revertLikes.php │ ├── suggestionList.php │ └── ui.css ├── saveDecode.php ├── songAdd.php ├── songs │ ├── index.php │ └── song │ │ └── filler.txt └── stats │ ├── dailyTable.php │ ├── index.php │ ├── modActions.php │ ├── modsList.php │ ├── noLogIn.php │ ├── packTable.php │ ├── reportList.php │ ├── songList.php │ ├── stats.php │ ├── suggestList.php │ ├── top24h.php │ ├── unlisted.php │ └── vipList.php ├── unblockGJUser20.php ├── updateGJAccSettings20.php ├── updateGJDesc20.php ├── updateGJUserScore.php ├── updateGJUserScore19.php ├── updateGJUserScore20.php ├── updateGJUserScore21.php ├── updateGJUserScore22.php ├── uploadFriendRequest20.php ├── uploadGJAccComment20.php ├── uploadGJComment.php ├── uploadGJComment19.php ├── uploadGJComment20.php ├── uploadGJComment21.php ├── uploadGJLevel.php ├── uploadGJLevel19.php ├── uploadGJLevel20.php ├── uploadGJLevel21.php └── uploadGJMessage20.php /README.md: -------------------------------------------------------------------------------- 1 |
3 |
4 |
Update your GDPS account password to $pass1 by going to link down:
46 | 47 |Can not open link? $url_reset?token=$token
"; 48 | $mail->AltBody = ''; 49 | if($mail->send()) { 50 | echo "1"; 51 | } else { 52 | echo "-1"; 53 | } 54 | } else { 55 | echo "Email not found"; 56 | } 57 | } else { 58 | if(empty($_POST["email"])) { 59 | 60 | } else { 61 | echo "Email invalid"; 62 | } 63 | } 64 | 65 | ?> 66 | -------------------------------------------------------------------------------- /accounts/lostusername.php: -------------------------------------------------------------------------------- 1 | Enter your account emailYour username is: $userName
"; 30 | $mail->AltBody = ''; 31 | if($mail->send()) { 32 | echo "Email sent"; 33 | } else { 34 | echo "-1"; 35 | } 36 | } else { 37 | echo "Email not found"; 38 | } 39 | } else { 40 | if(empty($_POST["email"])) { 41 | 42 | } else { 43 | echo "Email invalid"; 44 | } 45 | } 46 | 47 | ?> 48 | -------------------------------------------------------------------------------- /accounts/mail/PHPMailerAutoload.php: -------------------------------------------------------------------------------- 1 | 8 | * @author Jim Jagielski (jimjag)activate your $gdpsname account by going to link down:
72 | 73 |Can not open link? $url_register?token=$token
"; 74 | $mail->AltBody = ''; 75 | if($mail->send()) { 76 | echo "1"; 77 | } else { 78 | echo "-1"; 79 | } 80 | } 81 | } 82 | } 83 | } 84 | } 85 | ?> 86 | -------------------------------------------------------------------------------- /accounts/syncGJAccount.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /accounts/syncGJAccount20.php: -------------------------------------------------------------------------------- 1 | remove($_POST["userName"]); 15 | $password = $_POST["password"]; 16 | $secret = ""; 17 | $generatePass = new generatePass(); 18 | $pass = $generatePass->isValidUsrname($userName, $password); 19 | if ($pass == 1) { 20 | $query = $db->prepare("select accountID, saveData from accounts where userName = :userName"); 21 | $query->execute([':userName' => $userName]); 22 | $account = $query->fetch(); 23 | $accountID = $account["accountID"]; 24 | if(!is_numeric($accountID)){ 25 | exit("-1"); 26 | } 27 | if(!file_exists("../data/accounts/$accountID")){ 28 | $saveData = $account["saveData"]; 29 | if(substr($saveData,0,4) == "SDRz"){ 30 | $saveData = base64_decode($saveData); 31 | } 32 | }else{ 33 | $saveData = file_get_contents("../data/accounts/$accountID"); 34 | if(file_exists("../data/accounts/keys/$accountID")){ 35 | if(substr($saveData,0,3) != "H4s"){ 36 | $protected_key_encoded = file_get_contents("../data/accounts/keys/$accountID"); 37 | $protected_key = KeyProtectedByPassword::loadFromAsciiSafeString($protected_key_encoded); 38 | $user_key = $protected_key->unlockKey($password); 39 | try { 40 | $saveData = Crypto::decrypt($saveData, $user_key); 41 | } catch (Defuse\Crypto\Exception\WrongKeyOrModifiedCiphertextException $ex) { 42 | exit("-2"); 43 | } 44 | } 45 | } 46 | } 47 | echo $saveData.";21;30;a;a"; 48 | }else{ 49 | echo -1; 50 | } 51 | ?> -------------------------------------------------------------------------------- /api/getDailyLevel.php: -------------------------------------------------------------------------------- 1 | prepare( 5 | "SELECT * FROM levels 6 | WHERE levelID IN 7 | (SELECT levelID FROM dailyfeatures GROUP BY levelID) 8 | ORDER BY levelID" 9 | ); 10 | 11 | $getdailydata = $db->prepare("SELECT * FROM dailyfeatures"); 12 | 13 | $getleveldata->execute(["levels"=>$levels]); 14 | $getdailydata->execute(["dailyfeatures"=>$dailyfeatures]); 15 | 16 | $row = $getleveldata->fetchAll(PDO::FETCH_ASSOC)[0]; 17 | $rowx = $getdailydata->fetchAll(PDO::FETCH_ASSOC)[0]; 18 | 19 | $feaid = $rowx["feaID"]; 20 | $author = $row["userName"]; 21 | $levelid = $row["levelID"]; 22 | $name = $row["levelName"]; 23 | $desc = $row["levelDesc"]; 24 | $version = $row["levelVersion"]; 25 | $song = $row["songID"]; 26 | $objects = $row["objects"]; 27 | $coins = $row["coins"]; 28 | $downloads = $row["downloads"]; 29 | $likes = $row["likes"]; 30 | $ratedate = $row["rateDate"]; 31 | $difficulty = $row["starDifficulty"]; 32 | $demon = $row["starDemon"]; 33 | $date = $row["uploadDate"]; 34 | $length = $row["levelLength"]; 35 | $type = $rowx["type"]; 36 | $desc_encoded = base64_decode($desc); 37 | 38 | $data = array( 39 | "feaid"=>$feaid, 40 | "author"=>$author, 41 | "levelid"=>$levelid, 42 | "name"=>$name, 43 | "desc"=>$desc, 44 | "version"=>$version, 45 | "song"=>$song, 46 | "objects"=>$objects, 47 | "downloads"=>$downloads, 48 | "likes"=>$likes, 49 | "ratedate"=>$ratedate, 50 | "difficulty"=>$difficulty, 51 | "demon"=>$demon, 52 | "coins"=>$coins, 53 | "date"=>$date, 54 | "length"=>$length, 55 | "type"=>$type, 56 | "desc_encoded"=>$desc_encoded 57 | ); 58 | 59 | echo json_encode($data); 60 | ?> -------------------------------------------------------------------------------- /api/getLevelInfo.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT count(*) FROM levels WHERE levelID=:levelID"); 6 | $ifexists->execute(["levelID"=>$levelID]); 7 | if($ifexists->fetchColumn()==0){exit("-4");} 8 | 9 | $getleveldata = $db->prepare("SELECT * FROM levels WHERE levelID=:levelID"); 10 | $getleveldata->execute(["levelID"=>$levelID]); 11 | 12 | $row = $getleveldata->fetchAll(PDO::FETCH_ASSOC)[0]; 13 | 14 | $author = $row["userName"]; 15 | $id = $row["levelID"]; 16 | $name = $row["levelName"]; 17 | $desc = $row["levelDesc"]; 18 | $version = $row["levelVersion"]; 19 | $song = $row["songID"]; 20 | $objects = $row["objects"]; 21 | $coins = $row["coins"]; 22 | $downloads = $row["downloads"]; 23 | $likes = $row["likes"]; 24 | $ratedate = $row["rateDate"]; 25 | $difficulty = $row["starDifficulty"]; 26 | $demon = $row["starDemon"]; 27 | $date = $row["uploadDate"]; 28 | $length = $row["levelLength"]; 29 | $desc_encoded = base64_decode($desc); 30 | $unlisted = $row["unlisted"]; 31 | 32 | $data = array( 33 | "author"=>$author, 34 | "id"=>$id, 35 | "name"=>$name, 36 | "desc"=>$desc, 37 | "version"=>$version, 38 | "song"=>$song, 39 | "objects"=>$objects, 40 | "downloads"=>$downloads, 41 | "likes"=>$likes, 42 | "ratedate"=>$ratedate, 43 | "difficulty"=>$difficulty, 44 | "demon"=>$demon, 45 | "coins"=>$coins, 46 | "date"=>$date, 47 | "length"=>$length, 48 | "desc_encoded"=>$desc_encoded, 49 | "unlisted"=>$unlisted); 50 | 51 | echo json_encode($data); 52 | ?> -------------------------------------------------------------------------------- /api/getUserInfo.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT count(*) FROM users WHERE userName=:userName"); 6 | $ifexists->execute(["userName"=>$userName]); 7 | if($ifexists->fetchColumn()==0){exit();} 8 | 9 | $getuserdata = $db->prepare("SELECT * FROM users WHERE userName=:userName"); 10 | $getuserdata->execute(["userName"=>$userName]); 11 | 12 | $getaccdata = $db->prepare("SELECT * FROM accounts WHERE userName=:userName"); 13 | $getaccdata->execute(["userName"=>$userName]); 14 | 15 | $rowx = $getaccdata->fetchAll(PDO::FETCH_ASSOC)[0]; 16 | $row = $getuserdata->fetchAll(PDO::FETCH_ASSOC)[0]; 17 | 18 | $stars = $row["stars"]; 19 | $diamonds = $row["diamonds"]; 20 | $demons = $row["demons"]; 21 | $cp = $row["creatorPoints"]; 22 | $icon = $row["accIcon"]; 23 | $color1 = $row["color1"]; 24 | $color2 = $row["color2"]; 25 | $accountID = $row["extID"]; 26 | $userID = $row["userID"]; 27 | $time = $row["lastPlayed"]; 28 | $ucoins = $row["userCoins"]; 29 | $coins = $row["coins"]; 30 | 31 | $ms = $rowx["mS"]; 32 | $frs = $rowx["frS"]; 33 | $cs = $rowx["cS"]; 34 | 35 | $regdate = $rowx["registerDate"]; 36 | $yt = $rowx["youtubeurl"]; 37 | $tw = $rowx["twitter"]; 38 | $th = $rowx["twitch"]; 39 | 40 | $generatedicon = "https://gdbrowser.com/icon/icon?icon=".$icon."&form=cube&col1=".$color1."&col2=".$color2; 41 | 42 | $ifmod = $db->prepare("SELECT count(*) FROM roleassign WHERE accountID=".$accountID); 43 | $ifmod->execute([]); 44 | 45 | if($ifmod->fetchColumn()!=0) { 46 | $checkifmod = $db->prepare("SELECT roleID FROM roleassign WHERE accountID=".$accountID); 47 | $checkifmod->execute([]); 48 | $roleID = $checkifmod->fetchColumn(); 49 | $whatkindamod = $db->prepare("SELECT roleName FROM roles WHERE roleID=:roleID"); 50 | $whatkindamod->execute(["roleID"=>$roleID]); 51 | $roleName = $whatkindamod->fetchColumn(); 52 | 53 | $true = "True"; 54 | $mod = array( 55 | "isMod"=>$true, 56 | "roleName"=>$roleName); 57 | } else { 58 | $mod = array("isMod"=>"False", "roleName"=>"None"); 59 | } 60 | 61 | $data = array( 62 | "user_name"=>$userName, 63 | "stars"=>$stars, 64 | "diamonds"=>$diamonds, 65 | "demons"=>$demons, 66 | "creatorPoints"=>$cp, 67 | "icon"=>$icon, 68 | "color1"=>$color1, 69 | "color2"=>$color2, 70 | "accountID"=>$accountID, 71 | "time"=>$time, 72 | "userID"=>$userID, 73 | "iconSprite"=>$generatedicon, 74 | "ucoins"=>$ucoins, 75 | "coins"=>$coins, 76 | "regdate"=>$regdate, 77 | "yt"=>$yt, 78 | "tw"=>$tw, 79 | "th"=>$th, 80 | "ms"=>$ms, 81 | "frs"=>$frs, 82 | "cs"=>$cs, 83 | "isMod"=>$mod["isMod"], 84 | "role"=>$mod["roleName"] 85 | ); 86 | 87 | echo json_encode($data); 88 | ?> -------------------------------------------------------------------------------- /api/getWeeklyLevel.php: -------------------------------------------------------------------------------- 1 | prepare( 5 | "SELECT * FROM levels 6 | WHERE levelID IN 7 | (SELECT levelID FROM dailyfeatures WHERE type IN (1) GROUP BY levelID) 8 | ORDER BY levelID" 9 | ); 10 | $getdailydata = $db->prepare("SELECT * FROM dailyfeatures WHERE type IN (1)"); 11 | 12 | $getleveldata->execute(["levels"=>$levels]); 13 | $getdailydata->execute(["dailyfeatures"=>$dailyfeatures]); 14 | 15 | $row = $getleveldata->fetchAll(PDO::FETCH_ASSOC)[0]; 16 | $rowx = $getdailydata->fetchAll(PDO::FETCH_ASSOC)[0]; 17 | 18 | $feaid = $rowx["feaID"]; 19 | $author = $row["userName"]; 20 | $levelid = $row["levelID"]; 21 | $name = $row["levelName"]; 22 | $desc = $row["levelDesc"]; 23 | $version = $row["levelVersion"]; 24 | $song = $row["songID"]; 25 | $objects = $row["objects"]; 26 | $coins = $row["coins"]; 27 | $downloads = $row["downloads"]; 28 | $likes = $row["likes"]; 29 | $ratedate = $row["rateDate"]; 30 | $difficulty = $row["starDifficulty"]; 31 | $demon = $row["starDemon"]; 32 | $date = $row["uploadDate"]; 33 | $length = $row["levelLength"]; 34 | $type = $rowx["type"]; 35 | $desc_encoded = base64_decode($desc); 36 | 37 | $data = array( 38 | "feaid"=>$feaid, 39 | "author"=>$author, 40 | "levelid"=>$levelid, 41 | "name"=>$name, 42 | "desc"=>$desc, 43 | "version"=>$version, 44 | "song"=>$song, 45 | "objects"=>$objects, 46 | "downloads"=>$downloads, 47 | "likes"=>$likes, 48 | "ratedate"=>$ratedate, 49 | "difficulty"=>$difficulty, 50 | "demon"=>$demon, 51 | "coins"=>$coins, 52 | "date"=>$date, 53 | "length"=>$length, 54 | "type"=>$type, 55 | "desc_encoded"=>$desc_encoded 56 | ); 57 | 58 | echo json_encode($data); 59 | ?> -------------------------------------------------------------------------------- /blockGJUser20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/connection.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /config/name.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /data/accounts/keys.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /data/levels/deleted/filter.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /database/accounts/backupGJAccountNew.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/accounts/syncGJAccountNew.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deleteGJAccComment20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deleteGJComment20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deleteGJFriendRequests20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deleteGJLevelUser20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deleteGJMessages20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /downloadGJLevel.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /downloadGJLevel19.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /downloadGJLevel20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /downloadGJLevel21.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /downloadGJLevel22.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /downloadGJMessage20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getAccountURL.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJAccountComments20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJChallenges.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJCommentHistory.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJComments.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJComments19.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJComments20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJComments21.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJCreators.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJCreators19.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJDailyLevel.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJFriendRequests20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJGauntlets.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJGauntlets21.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJLevelScores.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJLevelScores211.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJLevels.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJLevels19.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJLevels20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJLevels21.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJMapPacks.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJMapPacks20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJMapPacks21.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJMessages20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJRewards.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJScores.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJScores19.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJScores20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJSongInfo.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJTopArtists.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /getGJUserInfo20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJUserList20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /getGJUsers20.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /include/comments/deleteGJAccComment.php: -------------------------------------------------------------------------------- 1 | remove($_POST["commentID"]); 8 | $accountID = $ep->remove($_POST["accountID"]); 9 | $gjp = $ep->remove($_POST["gjp"]); 10 | $GJPCheck = new GJPCheck(); 11 | $gjpresult = $GJPCheck->check($gjp,$accountID); 12 | if($gjpresult == 1){ 13 | $query2 = $db->prepare("SELECT userID FROM users WHERE extID = :accountID"); 14 | $query2->execute([':accountID' => $accountID]); 15 | if ($query2->rowCount() > 0) { 16 | $userID = $query2->fetchColumn(); 17 | } 18 | $query = $db->prepare("DELETE FROM acccomments WHERE commentID=:commentID AND userID=:userID LIMIT 1"); 19 | $query->execute([':userID' => $userID, ':commentID' => $commentID]); 20 | echo "1"; 21 | }else{ 22 | echo "-1"; 23 | } 24 | ?> -------------------------------------------------------------------------------- /include/comments/deleteGJComment.php: -------------------------------------------------------------------------------- 1 | remove($_POST["commentID"]); 8 | $accountID = $ep->remove($_POST["accountID"]); 9 | $gjp = $ep->remove($_POST["gjp"]); 10 | $GJPCheck = new GJPCheck(); 11 | $gjpresult = $GJPCheck->check($gjp,$accountID); 12 | if($gjpresult == 1){ 13 | $query = $db->prepare("SELECT userID FROM users WHERE extID = :accountID"); 14 | $query->execute([':accountID' => $accountID]); 15 | $userID = $query->fetchColumn(); 16 | $query = $db->prepare("DELETE FROM comments WHERE commentID=:commentID AND userID=:userID LIMIT 1"); 17 | $query->execute([':commentID' => $commentID, ':userID' => $userID]); 18 | if($query->rowCount() == 0){ 19 | $query = $db->prepare("SELECT levelID FROM comments WHERE commentID = :commentID"); 20 | $query->execute([':commentID' => $commentID]); 21 | $levelID = $query->fetchColumn(); 22 | $query = $db->prepare("SELECT userID FROM levels WHERE levelID = :levelID"); 23 | $query->execute([':levelID' => $levelID]); 24 | $creatorID = $query->fetchColumn(); 25 | $query = $db->prepare("SELECT extID FROM users WHERE userID = :userID"); 26 | $query->execute([':userID' => $creatorID]); 27 | $creatorAccID = $query->fetchColumn(); 28 | if($creatorAccID == $accountID){ 29 | $query = $db->prepare("DELETE FROM comments WHERE commentID=:commentID AND levelID=:levelID LIMIT 1"); 30 | $query->execute([':commentID' => $commentID, ':levelID' => $levelID]); 31 | } 32 | } 33 | echo "1"; 34 | }else{ 35 | echo "-1"; 36 | } 37 | ?> -------------------------------------------------------------------------------- /include/comments/getGJAccountComments.php: -------------------------------------------------------------------------------- 1 | remove($_POST["accountID"]); 11 | $page = $ep->remove($_POST["page"]); 12 | $commentpage = $page*10; 13 | $userID = $gs->getUserID($accountid); 14 | $query = "SELECT comment, userID, likes, isSpam, commentID, timestamp FROM acccomments WHERE userID = :userID ORDER BY timeStamp DESC LIMIT 10 OFFSET $commentpage"; 15 | $query = $db->prepare($query); 16 | $query->execute([':userID' => $userID]); 17 | $result = $query->fetchAll(); 18 | if($query->rowCount() == 0){ 19 | exit("#0:0:0"); 20 | } 21 | $countquery = $db->prepare("SELECT count(*) FROM acccomments WHERE userID = :userID"); 22 | $countquery->execute([':userID' => $userID]); 23 | $commentcount = $countquery->fetchColumn(); 24 | foreach($result as &$comment1) { 25 | if($comment1["commentID"]!=""){ 26 | $uploadDate = $gs->makeTime(time()-$comment1["timestamp"]); 27 | $commentstring .= "2~".$comment1["comment"]."~3~".$comment1["userID"]."~4~".$comment1["likes"]."~5~0~7~".$comment1["isSpam"]."~9~".$uploadDate."~6~".$comment1["commentID"]."|"; 28 | } 29 | } 30 | $commentstring = substr($commentstring, 0, -1); 31 | echo $commentstring; 32 | echo "#".$commentcount.":".$commentpage.":10"; 33 | ?> -------------------------------------------------------------------------------- /include/comments/getGJComments.php: -------------------------------------------------------------------------------- 1 | remove($_POST["binaryVersion"]); 10 | $gameVersion = $ep->remove($_POST["gameVersion"]); 11 | $commentstring = ""; 12 | $userstring = ""; 13 | 14 | $users = array(); 15 | if(isset($_POST["mode"])){ 16 | $mode = $ep->remove($_POST["mode"]); 17 | }else{ 18 | $mode = 0; 19 | } 20 | if(isset($_POST["count"]) AND is_numeric($_POST["count"])){ 21 | $count = $ep->remove($_POST["count"]); 22 | }else{ 23 | $count = 10; 24 | } 25 | $page = $ep->remove($_POST["page"]); 26 | $commentpage = $page*$count; 27 | if($mode==0){ 28 | $modeColumn = "commentID"; 29 | }else{ 30 | $modeColumn = "likes"; 31 | } 32 | if(empty($_POST["levelID"]) OR !$_POST["levelID"]){ 33 | $displayLevelID = true; 34 | $levelID = $ep->remove($_POST["userID"]); 35 | $query = "SELECT levelID, commentID, timestamp, comment, userID, likes, isSpam, percent FROM comments WHERE userID = :levelID ORDER BY $modeColumn DESC LIMIT $count OFFSET $commentpage"; 36 | $countquery = "SELECT count(*) FROM comments WHERE userID = :levelID"; 37 | }else{ 38 | $displayLevelID = false; 39 | $levelID = $ep->remove($_POST["levelID"]); 40 | $query = "SELECT levelID, commentID, timestamp, comment, userID, likes, isSpam, percent FROM comments WHERE levelID = :levelID ORDER BY $modeColumn DESC LIMIT $count OFFSET $commentpage"; 41 | $countquery = "SELECT count(*) FROM comments WHERE levelID = :levelID"; 42 | } 43 | $countquery = $db->prepare($countquery); 44 | $countquery->execute([':levelID' => $levelID]); 45 | $commentcount = $countquery->fetchColumn(); 46 | if($commentcount == 0){ 47 | exit("-2"); 48 | } 49 | $query = $db->prepare($query); 50 | $query->execute([':levelID' => $levelID]); 51 | $result = $query->fetchAll(); 52 | foreach($result as &$comment1) { 53 | if($comment1["commentID"]!=""){ 54 | $uploadDate = $gs->makeTime(time()-$comment1["timestamp"]); 55 | $actualcomment = $comment1["comment"]; 56 | if($gameVersion < 20){ 57 | $actualcomment = base64_decode($actualcomment); 58 | } 59 | if($displayLevelID){ 60 | $commentstring .= "1~".$comment1["levelID"]."~"; 61 | } 62 | $commentstring .= "2~".$actualcomment."~3~".$comment1["userID"]."~4~".$comment1["likes"]."~5~0~7~".$comment1["isSpam"]."~9~".$uploadDate."~6~".$comment1["commentID"]."~10~".$comment1["percent"]; 63 | $query12 = $db->prepare("SELECT userID, userName, icon, color1, color2, iconType, special, extID FROM users WHERE userID = :userID"); 64 | $query12->execute([':userID' => $comment1["userID"]]); 65 | if ($query12->rowCount() > 0) { 66 | $user = $query12->fetchAll()[0]; 67 | if(is_numeric($user["extID"])){ 68 | $extID = $user["extID"]; 69 | }else{ 70 | $extID = 0; 71 | } 72 | if(!in_array($user["userID"], $users)){ 73 | $users[] = $user["userID"]; 74 | $userstring .= $user["userID"] . ":" . $user["userName"] . ":" . $extID . "|"; 75 | } 76 | if($binaryVersion > 31){ 77 | $commentstring .= "~11~".$gs->getMaxValuePermission($extID, "modBadgeLevel")."~12~".$gs->getAccountCommentColor($extID).":1~".$user["userName"]."~7~1~9~".$user["icon"]."~10~".$user["color1"]."~11~".$user["color2"]."~14~".$user["iconType"]."~15~".$user["special"]."~16~".$user["extID"]; 78 | } 79 | $commentstring .= "|"; 80 | } 81 | } 82 | } 83 | $commentstring = substr($commentstring, 0, -1); 84 | $userstring = substr($userstring, 0, -1); 85 | echo $commentstring; 86 | if($binaryVersion < 32){ 87 | echo "#$userstring"; 88 | } 89 | echo "#".$commentcount.":".$commentpage.":10"; 90 | ?> -------------------------------------------------------------------------------- /include/comments/uploadGJAccComment.php: -------------------------------------------------------------------------------- 1 | remove($_POST["gjp"]); 14 | $userName = $ep->remove($_POST["userName"]); 15 | $comment = $ep->remove($_POST["comment"]); 16 | $id = $ep->remove($_POST["accountID"]); 17 | $userID = $mainLib->getUserID($id, $userName); 18 | $uploadDate = time(); 19 | //usercheck 20 | if($id != "" AND $comment != "" AND $GJPCheck->check($gjp,$id) == 1){ 21 | $decodecomment = base64_decode($comment); 22 | if($cmds->doProfileCommands($id, $decodecomment)){ 23 | exit("-1"); 24 | } 25 | $query = $db->prepare("INSERT INTO acccomments (userName, comment, userID, timeStamp) 26 | VALUES (:userName, :comment, :userID, :uploadDate)"); 27 | $query->execute([':userName' => $userName, ':comment' => $comment, ':userID' => $userID, ':uploadDate' => $uploadDate]); 28 | echo 1; 29 | }else{ 30 | echo -1; 31 | } 32 | ?> -------------------------------------------------------------------------------- /include/comments/uploadGJComment.php: -------------------------------------------------------------------------------- 1 | remove($_POST["gjp"]); 15 | $userName = $ep->remove($_POST["userName"]); 16 | $comment = $ep->remove($_POST["comment"]); 17 | $gameversion = $_POST["gameVersion"]; 18 | if($gameversion < 20){ 19 | $comment = base64_encode($comment); 20 | } 21 | $levelID = $ep->remove($_POST["levelID"]); 22 | if(!empty($_POST["percent"])){ 23 | $percent = $ep->remove($_POST["percent"]); 24 | }else{ 25 | $percent = 0; 26 | } 27 | if(!empty($_POST["accountID"]) AND $_POST["accountID"]!="0"){ 28 | $id = $ep->remove($_POST["accountID"]); 29 | $register = 1; 30 | $GJPCheck = new GJPCheck(); 31 | $gjpresult = $GJPCheck->check($gjp,$id); 32 | if($gjpresult != 1){ 33 | exit("-1"); 34 | } 35 | }else{ 36 | $id = $ep->remove($_POST["udid"]); 37 | $register = 0; 38 | if(is_numeric($id)){ 39 | exit("-1"); 40 | } 41 | } 42 | $userID = $mainLib->getUserID($id, $userName); 43 | $uploadDate = time(); 44 | $decodecomment = base64_decode($comment); 45 | if($cmds->doCommands($id, $decodecomment, $levelID)){ 46 | exit("-1"); 47 | } 48 | if($id != "" AND $comment != ""){ 49 | $query = $db->prepare("INSERT INTO comments (userName, comment, levelID, userID, timeStamp, percent) VALUES (:userName, :comment, :levelID, :userID, :uploadDate, :percent)"); 50 | if($register == 1){ 51 | $query->execute([':userName' => $userName, ':comment' => $comment, ':levelID' => $levelID, ':userID' => $userID, ':uploadDate' => $uploadDate, ':percent' => $percent]); 52 | echo 1; 53 | if($percent != 0){ 54 | $query2 = $db->prepare("SELECT percent FROM levelscores WHERE accountID = :accountID AND levelID = :levelID"); 55 | $query2->execute([':accountID' => $id, ':levelID' => $levelID]); 56 | $result = $query2->fetchColumn(); 57 | if ($query2->rowCount() == 0) { 58 | $query = $db->prepare("INSERT INTO levelscores (accountID, levelID, percent, uploadDate) 59 | VALUES (:accountID, :levelID, :percent, :uploadDate)"); 60 | } else { 61 | if($result < $percent){ 62 | $query = $db->prepare("UPDATE levelscores SET percent=:percent, uploadDate=:uploadDate WHERE accountID=:accountID AND levelID=:levelID"); 63 | $query->execute([':accountID' => $id, ':levelID' => $levelID, ':percent' => $percent, ':uploadDate' => $uploadDate]); 64 | } 65 | } 66 | } 67 | }else{ 68 | $query->execute([':userName' => $userName, ':comment' => $comment, ':levelID' => $levelID, ':userID' => $userID, ':uploadDate' => $uploadDate, ':percent' => $percent]); 69 | echo 1; 70 | } 71 | }else{ 72 | echo -1; 73 | } 74 | ?> 75 | -------------------------------------------------------------------------------- /include/components/images/tools_favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woidzero/IoCore/38e161086e5d7266dd8df16ff9d2401c103d8e6c/include/components/images/tools_favicon.png -------------------------------------------------------------------------------- /include/levelpacks/getGJGauntlets.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT ID,level1,level2,level3,level4,level5 FROM gauntlets WHERE level5 != '0' ORDER BY ID ASC"); 9 | $query->execute(); 10 | $result = $query->fetchAll(); 11 | foreach($result as &$gauntlet){ 12 | $lvls = $gauntlet["level1"].",".$gauntlet["level2"].",".$gauntlet["level3"].",".$gauntlet["level4"].",".$gauntlet["level5"]; 13 | $gauntletstring .= "1:".$gauntlet["ID"].":3:".$lvls."|"; 14 | $string .= $gauntlet["ID"].$lvls; 15 | } 16 | $gauntletstring = substr($gauntletstring, 0, -1); 17 | echo $gauntletstring; 18 | echo "#".$generateHash->genSolo2($string); 19 | ?> -------------------------------------------------------------------------------- /include/levelpacks/getGJMapPacks.php: -------------------------------------------------------------------------------- 1 | remove($_POST["page"]); 8 | $packpage = $page*10; 9 | $mappackstring = ""; 10 | $lvlsmultistring = ""; 11 | $query = $db->prepare("SELECT colors2,rgbcolors,ID,name,levels,stars,coins,difficulty FROM `mappacks` ORDER BY `ID` ASC LIMIT 10 OFFSET $packpage"); 12 | $query->execute(); 13 | $result = $query->fetchAll(); 14 | $packcount = $query->rowCount(); 15 | foreach($result as &$mappack) { 16 | $lvlsmultistring .= $mappack["ID"] . ","; 17 | $colors2 = $mappack["colors2"]; 18 | if($colors2 == "none" OR $colors2 == ""){ 19 | $colors2 = $mappack["rgbcolors"]; 20 | } 21 | $mappackstring .= "1:".$mappack["ID"].":2:".$mappack["name"].":3:".$mappack["levels"].":4:".$mappack["stars"].":5:".$mappack["coins"].":6:".$mappack["difficulty"].":7:".$mappack["rgbcolors"].":8:".$colors2."|"; 22 | } 23 | $query = $db->prepare("SELECT count(*) FROM mappacks"); 24 | $query->execute(); 25 | $totalpackcount = $query->fetchColumn(); 26 | $mappackstring = substr($mappackstring, 0, -1); 27 | $lvlsmultistring = substr($lvlsmultistring, 0, -1); 28 | echo $mappackstring; 29 | echo "#".$totalpackcount.":".$packpage.":10"; 30 | echo "#"; 31 | require "../lib/generateHash.php"; 32 | $hash = new generateHash(); 33 | echo $hash->genPack($lvlsmultistring); 34 | ?> -------------------------------------------------------------------------------- /include/levels/cp.php: -------------------------------------------------------------------------------- 1 | prepare("update users 5 | set creatorPoints = ( 6 | select COUNT(*) 7 | from levels 8 | where levels.userID = users.userID AND starStars != 0 9 | ) + ( 10 | select COUNT(*) 11 | from levels 12 | where levels.userID = users.userID AND levels.starFeatured != 0 AND levels.starEpic = 0 13 | ) + ( 14 | select COUNT(*) 15 | from levels 16 | where levels.userID = users.userID AND levels.starEpic = 1 AND levels.starFeatured = 0 17 | ) + ( 18 | select COUNT(*) 19 | from levels 20 | where levels.userID = users.userID AND levels.starEpic = 1 AND levels.starFeatured = 0 21 | ) + ( 22 | select COUNT(*) 23 | from levels 24 | where levels.userID = users.userID AND levels.starEpic = 1 AND levels.starFeatured = 1 25 | ) + ( 26 | select COUNT(*) 27 | from levels 28 | where levels.userID = users.userID AND levels.starEpic = 1 AND levels.starFeatured = 1 29 | )"); 30 | $query->execute(); 31 | ?> 32 | -------------------------------------------------------------------------------- /include/levels/deleteGJLevelUser.php: -------------------------------------------------------------------------------- 1 | remove($_POST["levelID"]); 10 | $accountID = $ep->remove($_POST["accountID"]); 11 | $gjp = $ep->remove($_POST["gjp"]); 12 | $GJPCheck = new GJPCheck(); 13 | $gjpresult = $GJPCheck->check($gjp,$accountID); 14 | if(!is_numeric($levelID)){ 15 | exit("-1"); 16 | } 17 | if($gjpresult == 1){ 18 | $userID = $mainLib->getUserID($accountID); 19 | $query = $db->prepare("DELETE from levels WHERE levelID=:levelID AND userID=:userID AND starStars = 0 LIMIT 1"); 20 | $query->execute([':levelID' => $levelID, ':userID' => $userID]); 21 | $query6 = $db->prepare("INSERT INTO actions (type, value, timestamp, value2) VALUES 22 | (:type,:itemID, :time, :ip)"); 23 | $query6->execute([':type' => 8, ':itemID' => $levelID, ':time' => time(), ':ip' => $userID]); 24 | if(file_exists("../../data/levels/$levelID") AND $query->rowCount() != 0){ 25 | rename("../../data/levels/$levelID","../../data/levels/deleted/$levelID"); 26 | } 27 | echo "1"; 28 | }else{ 29 | echo "-1"; 30 | } 31 | ?> -------------------------------------------------------------------------------- /include/levels/getGJDailyLevel.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT feaID FROM dailyfeatures WHERE timestamp < :current AND type = :type ORDER BY timestamp DESC LIMIT 1"); 14 | $query->execute([':current' => $current, ':type' => $weekly]); 15 | $dailyID = $query->fetchColumn(); 16 | if($weekly == 1){ 17 | $dailyID = $dailyID + 100001; //the fuck went through robtops head when he was implementing this 18 | } 19 | //Time left 20 | $timeleft = $midnight - $current; 21 | //output 22 | echo $dailyID ."|". $timeleft; 23 | ?> 24 | -------------------------------------------------------------------------------- /include/levels/rateGJDemon.php: -------------------------------------------------------------------------------- 1 | remove($_POST["gjp"]); 14 | $rating = $ep->remove($_POST["rating"]); 15 | $levelID = $ep->remove($_POST["levelID"]); 16 | $id = $ep->remove($_POST["accountID"]); 17 | $GJPCheck = new GJPCheck(); 18 | $gjpresult = $GJPCheck->check($gjp,$id); 19 | if($gs->checkPermission($id, "actionRateDemon") == false OR $gjpresult != 1){ 20 | exit("-1"); 21 | } 22 | $auto = 0; 23 | $demon = 0; 24 | switch($rating){ 25 | case 1: 26 | $dmn = 3; 27 | $dmnname = "Easy"; 28 | break; 29 | case 2: 30 | $dmn = 4; 31 | $dmnname = "Medium"; 32 | break; 33 | case 3: 34 | $dmn = 0; 35 | $dmnname = "Hard"; 36 | break; 37 | case 4: 38 | $dmn = 5; 39 | $dmnname = "Insane"; 40 | break; 41 | case 5: 42 | $dmn = 6; 43 | $dmnname = "Extreme"; 44 | break; 45 | } 46 | $timestamp = time(); 47 | $query = $db->prepare("UPDATE levels SET starDemonDiff=:demon WHERE levelID=:levelID"); 48 | $query->execute([':demon' => $dmn, ':levelID'=>$levelID]); 49 | $query = $db->prepare("INSERT INTO modactions (type, value, value3, timestamp, account) VALUES ('10', :value, :levelID, :timestamp, :id)"); 50 | $query->execute([':value' => $dmnname, ':timestamp' => $timestamp, ':id' => $id, ':levelID' => $levelID]); 51 | echo $levelID; 52 | ?> 53 | -------------------------------------------------------------------------------- /include/levels/rateGJStars.php: -------------------------------------------------------------------------------- 1 | remove($_POST["gjp"]); 10 | $stars = $ep->remove($_POST["stars"]); 11 | $levelID = $ep->remove($_POST["levelID"]); 12 | $accountID = $ep->remove($_POST["accountID"]); 13 | if($accountID != "" AND $gjp != ""){ 14 | $GJPCheck = new GJPCheck(); 15 | $gjpresult = $GJPCheck->check($gjp,$accountID); 16 | if($gjpresult == 1){ 17 | $permState = $gs->checkPermission($accountID, "actionRateStars"); 18 | if($permState){ 19 | $difficulty = $gs->getDiffFromStars($stars); 20 | $gs->rateLevel($accountID, $levelID, 0, $difficulty["diff"], $difficulty["auto"], $difficulty["demon"]); 21 | echo 1; 22 | }else{ 23 | echo -1; 24 | } 25 | }else{echo -1;} 26 | }else{echo -1;} -------------------------------------------------------------------------------- /include/levels/reportGJLevel.php: -------------------------------------------------------------------------------- 1 | remove($_POST["levelID"]); 11 | $ip = $gs->getIP(); 12 | $query = "SELECT count(*) FROM reports WHERE levelID = :levelID AND hostname = :hostname"; 13 | $query = $db->prepare($query); 14 | $query->execute([':levelID' => $levelID, ':hostname' => $ip]); 15 | 16 | if($query->fetchColumn() == 0){ 17 | $query = $db->prepare("INSERT INTO reports (levelID, hostname) VALUES (:levelID, :hostname)"); 18 | $query->execute([':levelID' => $levelID, ':hostname' => $ip]); 19 | echo $db->lastInsertId(); 20 | }else{ 21 | echo -1; 22 | } 23 | } 24 | ?> -------------------------------------------------------------------------------- /include/levels/suggestGJStars.php: -------------------------------------------------------------------------------- 1 | remove($_POST["gjp"]); 11 | $stars = $ep->remove($_POST["stars"]); 12 | $feature = $ep->remove($_POST["feature"]); 13 | $levelID = $ep->remove($_POST["levelID"]); 14 | $accountID = $ep->remove($_POST["accountID"]); 15 | if($accountID != "" AND $gjp != ""){ 16 | $GJPCheck = new GJPCheck(); 17 | $gjpresult = $GJPCheck->check($gjp,$accountID); 18 | if($gjpresult == 1){ 19 | $difficulty = $gs->getDiffFromStars($stars); 20 | if($gs->checkPermission($accountID, "actionRateStars")){ 21 | $gs->rateLevel($accountID, $levelID, $stars, $difficulty["diff"], $difficulty["auto"], $difficulty["demon"]); 22 | $gs->featureLevel($accountID, $levelID, $feature); 23 | $gs->verifyCoinsLevel($accountID, $levelID, 1); 24 | echo 1; 25 | include "cp.php"; 26 | }else if($gs->checkPermission($accountID, "actionSuggestRating")){ 27 | $gs->suggestLevel($accountID, $levelID, $difficulty["diff"], $stars, $feature, $difficulty["auto"], $difficulty["demon"]); 28 | echo 1; 29 | }else{ 30 | echo -2; 31 | } 32 | }else{ 33 | echo -2; 34 | } 35 | }else{ 36 | echo -2; 37 | } 38 | ?> 39 | -------------------------------------------------------------------------------- /include/levels/updateGJDesc.php: -------------------------------------------------------------------------------- 1 | remove($_POST["levelDesc"]); 13 | $levelID = $ep->remove($_POST["levelID"]); 14 | if (isset($_POST['udid']) && !empty($_POST['udid'])) { 15 | $id = $ep->remove($_POST["udid"]); 16 | if (is_numeric($id)) { 17 | exit("-1"); 18 | } 19 | } else { 20 | $id = $ep->remove($_POST["accountID"]); 21 | $gjp = $ep->remove($_POST["gjp"]); 22 | $gjpresult = $GJPCheck->check($gjp, $id); 23 | if ($gjpresult != 1) { 24 | exit("-1"); 25 | } 26 | } 27 | $levelDesc = str_replace('-', '+', $levelDesc); 28 | $levelDesc = str_replace('_', '/', $levelDesc); 29 | $rawDesc = base64_decode($levelDesc); 30 | if (strpos($rawDesc, 'Вы можете входить!
14 |Time | 21 |Suggester | 22 |Level ID | 23 |Difficulty | 24 |Stars | 25 |Featured | 26 |Close | 27 |
---|---|---|---|---|---|---|
".date("d/m/Y G:i", $sugg["timestamp"]). 56 | " | 57 |".$gs->getAccountName($sugg["suggestBy"])." (".$sugg["suggestBy"].")". 58 | " | 59 |".htmlspecialchars($sugg["suggestLevelId"],ENT_QUOTES). 60 | " | 61 |".htmlspecialchars($gs->getDifficulty($sugg["suggestDifficulty"],$sugg["suggestAuto"],$sugg["suggestDemon"]), ENT_QUOTES). 62 | " | 63 |".htmlspecialchars($sugg["suggestStars"],ENT_QUOTES). 64 | " | 65 |".htmlspecialchars($sugg["suggestFeatured"],ENT_QUOTES). 66 | " | 67 |Delete". 68 | " |
61 | 62 |
63 |# | ID | Name | Creator | Time |
---|---|---|---|---|
$feaID | $levelID | "; 16 | //level name 17 | $query = $db->prepare("SELECT levelName, userID FROM levels WHERE levelID = :level"); 18 | $query->execute([':level' => $levelID]); 19 | $level = $query->fetch(); 20 | $levelName = $level["levelName"]; 21 | $userID = $level["userID"]; 22 | echo "$levelName | "; 23 | //creator name 24 | $query = $db->prepare("SELECT userName FROM users WHERE userID = :userID"); 25 | $query->execute([':userID' => $userID]); 26 | $creator = $query->fetchColumn(); 27 | echo "$creator | "; 28 | //timestamp 29 | $time = date("d/m/Y H:i", $time); 30 | echo "$time |
Moderator | Count | Levels rated | Last time online |
---|---|---|---|
".$mod["userName"]." | ".$actionscount." | ".$lvlcount." | ".$time." |
Moderator | Action | Value | Value2 | LevelID | Time |
---|---|---|---|---|---|
".$account." | ".$actionname." | ".$value." | ".$value2." | future | ".$time." |
".$account." | ".$actionname." | ".$value." | ".$value2." | ".$action["value3"]." | ".$time." |
User | Last Online |
---|---|
" . $username . " | $time |
# | ID | Name | Registration date | |
---|---|---|---|---|
$x | ".$account["accountID"] . " | " . $account["userName"] . " | $register | "; 19 | ob_flush(); 20 | flush(); 21 | $time = time() - 2592000; 22 | if($account["registerDate"] < $time){ 23 | echo "1 | "; 24 | } 25 | echo "
# | ID | Map Pack | Stars | Coins | Levels |
---|---|---|---|---|---|
$x | ".$pack["ID"]." | ".htmlspecialchars($pack["name"],ENT_QUOTES)." | ".$pack["stars"]." | ".$pack["coins"]." | "; 13 | $x++; 14 | foreach($lvlarray as &$lvl){ 15 | echo $lvl . " - "; 16 | $query = $db->prepare("SELECT levelName FROM levels WHERE levelID = :levelID"); 17 | $query->execute([':levelID' => $lvl]); 18 | $levelName = $query->fetchColumn(); 19 | echo $levelName . ", "; 20 | } 21 | echo " |
# | Name | Level 1 | Level 2 | Level 3 | Level 4 | Level 5 |
---|---|---|---|---|---|---|
".$gauntlet["ID"]." | ".$gauntletname." | "; 87 | for ($x = 1; $x < 6; $x++) { 88 | echo ""; 89 | $lvl = $gauntlet["level".$x]; 90 | echo $lvl . " - "; 91 | $query = $db->prepare("SELECT levelName FROM levels WHERE levelID = :levelID"); 92 | $query->execute([':levelID' => $lvl]); 93 | $levelName = $query->fetchColumn(); 94 | echo "$levelName | "; 95 | } 96 | echo "
LevelID | Reported |
---|---|
".$id." | ".$count." times |
ID | 12 |Song Name | 13 |Song Author | 14 |Size | 15 |
---|---|---|---|
" . $song["ID"] . " | " . htmlspecialchars($song["name"], ENT_QUOTES) . " | " . $song['authorName'] . " | " . $song['size'] . "mb |
Difficulty | Total | Unrated | Rated | Featured | Epic |
---|---|---|---|---|---|
$params3 | ".$query->fetchColumn()." | "; 11 | $query = $db->prepare("SELECT count(*) FROM levels WHERE starStars = 0 ".$params." ".$params2); 12 | $query->execute(); 13 | $row .= "".$query->fetchColumn()." | "; 14 | $query = $db->prepare("SELECT count(*) FROM levels WHERE starStars <> 0 ".$params." ".$params2); 15 | $query->execute(); 16 | $row .= "".$query->fetchColumn()." | "; 17 | $query = $db->prepare("SELECT count(*) FROM levels WHERE starFeatured <> 0 ".$params." ".$params2); 18 | $query->execute(); 19 | $row .= "".$query->fetchColumn()." | "; 20 | $query = $db->prepare("SELECT count(*) FROM levels WHERE starEpic <> 0 ".$params." ".$params2); 21 | $query->execute(); 22 | $row .= "".$query->fetchColumn()." |
Difficulty | Total | Unrated | Rated | Featured | Epic |
---|
Type | Count | 52 | prepare("SELECT count(*) FROM users"); 54 | $query->execute(); 55 | $thing = $query->fetchColumn(); 56 | echo "
---|---|
Total | $thing |
Registered | $thing |
Active | $thing |
Time | Suggested by | Level ID | Difficulty | Stars | Featured |
---|---|---|---|---|---|
".date("d/m/Y G:i", $sugg["timestamp"])." | ".$gs->getAccountName($sugg["suggestBy"])."(".$sugg["suggestBy"].") | ".htmlspecialchars($sugg["suggestLevelId"],ENT_QUOTES)." | ".htmlspecialchars($gs->getDifficulty($sugg["suggestDifficulty"],$sugg["suggestAuto"],$sugg["suggestDemon"]), ENT_QUOTES)." | ".htmlspecialchars($sugg["suggestStars"],ENT_QUOTES)." | ".htmlspecialchars($sugg["suggestFeatured"],ENT_QUOTES)." |
# | UserID | UserName | Stars |
---|---|---|---|
$x | $userID | $username | $stars |
ID | Name |
---|---|
".$level["levelID"]." | ".$level["levelName"]." |
User | Last Online |
---|---|
" . $username . " | $time |