Advertisement
Tozino

Untitled

Dec 21st, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. <html>
  2. <body>
  3. <center><h1>Note: There will no updates until the major update is done. Please bear with it. </h1></center><br></br>
  4. <?php
  5.  
  6. $nick = '/srv/disk1/1763432/www/tozino.co.nf/pokemon/ '.$_GET['nick'].'.txt';
  7. $nick2 = '/srv/disk1/1763432/www/tozino.co.nf/battle/ '.$_GET['nick'].'.txt';
  8.  
  9. $file = str_replace(' ','',$nick);
  10. $file2 = str_replace(' ','',$nick2);
  11. $pokemon = 0-1;
  12. $pokemonsite = 0;
  13. $endpokemon = 21;
  14. $tablepokemonstart = 1;
  15. $tablepokemonend = 20;
  16. $table = 0;
  17. echo "<center>";
  18. echo "<h1>".$_GET['nick']."'s Main Pokemon and Battle stastistics</h1>";
  19. echo '<table border="3"><tr><td>';
  20.  
  21. if (file_exists($file2)) {
  22. $line2 = file($file2);
  23. $pokemonnumber = $line2[0];
  24. if ($pokemonnumber >= 1 ) {
  25. $pokemonnumber = sprintf("%03d",$pokemonnumber);
  26. if ($pokemonnumber == 720) { $picturebattle = 'http://cdn.bulbagarden.net/upload/9/98/Missingno_RB.png'; }
  27. else { $picturebattle = 'http://assets22.pokemon.com/assets/cms2/img/pokedex/full/'.$pokemonnumber.'.png'; }
  28. echo '<table border="3"><tr><td><img border="0" src='.$picturebattle.' alt="Image" width="200" height="200" /></td></tr><tr><td><h1><center>Level '.$line2[3].'</center></h1></td></tr></table>' ;
  29. echo "</td><td><table border='3'width='400' height='278'><tr><td><h1><center>Wins</center></h1></td><td><h1><center>Loses</center></h1></td></tr>";
  30. echo '<tr><td><h1><center>'.$line2[1].'</center></h1></td><td><h1><center>'.$line2[2].'</center></h1></td></tr></table>';
  31. } else {
  32. echo " Looks like ".$_GET['nick']." hasn't set it for battle ";
  33. }
  34. }
  35.  
  36. echo "</tr></td></table>";
  37. if (file_exists($file)) {
  38. echo "<h1>".$_GET['nick']."'s Pokedex</h1>";
  39. echo '<table border="3"><tr><td>'.$tablepokemonstart.'-'.$tablepokemonend.'</td>';
  40. while ($pokemon <= 716) {
  41. $pokemon++ ;
  42. $pokemonsite++;
  43. $pokemonsite = sprintf("%03d", $pokemonsite);
  44. $table++;
  45. $line = file($file);
  46. $picture = 'http://assets22.pokemon.com/assets/cms2/img/pokedex/full/'.$pokemonsite.'.png';
  47.  
  48. if ($table == $endpokemon) {
  49. $tablepokemonstart = 20 + $tablepokemonstart;
  50. $tablepokemonend = 20 + $tablepokemonend;
  51. echo '</tr> <tr> <td>'.$tablepokemonstart.'-'.$tablepokemonend.'</td>';
  52.  
  53. $endpokemon = 20 + $endpokemon;
  54. }
  55. if ($line[$pokemon] == 1) {
  56. echo '<td> <img border="0" src='.$picture.' alt="Image" width="50" height="50" /> </td>' ; }
  57. if ($line[$pokemon] == 0) { echo '<td> <img border="0" src="http://cdn.bulbagarden.net/upload/6/60/Question_Mark.png" alt="Image" width="50" height="50"/> </td>' ; }
  58.  
  59. }
  60. } else { }
  61.  
  62. echo '</tr></table></center>';
  63.  
  64. ?>
  65. </body>
  66. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement