Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $cheatsownedinfo_query = $sqlConnection->query("SELECT * FROM `ownedcheats` WHERE `username`='$username'");
- if($cheatsownedinfo_query->num_rows == 0){
- die($CHEATSOWNED_NoCheatsOwned);
- }
- $validCheats_count = 0;
- while($ownedCheats_index = $cheatsownedinfo_query->fetch_assoc()){
- date_default_timezone_set("Australia/Sydney");
- if($ownedCheats_index['isExpiryUnlimited'] == 'false'){
- if($ownedCheats_index['expiryDate'] <= date("Y-m-d")){
- continue;
- }
- }
- $allCheatsQuery = $sqlConnection->query("SELECT * FROM `cheats` WHERE `cheatName`='".$ownedCheats_index['cheatName']."'");
- if($allCheatsQuery->num_rows == 0){
- continue;
- }
- while($currentCheatInfo = $allCheatsQuery->fetch_assoc()){
- echo Base64_EncodeUrlSafe($ownedCheats_index['expiryDate']) . ":";
- echo Base64_EncodeUrlSafe($currentCheatInfo['Name']) . ":";
- echo Base64_EncodeUrlSafe($currentCheatInfo['targetprocess']) . ":";
- echo Base64_EncodeUrlSafe($currentCheatInfo['credits']) . "\t";
- $validCheats_count++;
- }
- }
- if($validCheats_count == 0){
- die($CHEATSOWNED_AllExpired);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment