Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // URL: http://dev.bukkit.org/bukkit-plugins/httptools
- $code = "123";
- if($_GET["code"] == $code){}else{
- exit("Auth failed");
- }
- $p = $_GET["player"];
- $score = $_GET["score"];
- $db = "mc_db.php";
- if(file_exists($db)){
- $contents = file_get_contents($db);
- include($db);
- }else{
- $contents = "<?php
- ";
- }
- $i = 0;
- if($data == null){
- }else{
- for($i=0;$i<1000;$i++){
- if($player[$i] == null || $player[$i] == $p) {
- break;
- }
- }
- }
- $new = $contents . '
- $data['.$p.'] = "'. $score .'";
- $player['.$i.'] = "'.$p.'";
- ';
- $f = fopen($db,"w+");
- fwrite($f,$new);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment