Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <center><h1>Note: There will no updates until the major update is done. Please bear with it. </h1></center><br></br>
- <?php
- $nick = '/srv/disk1/1763432/www/tozino.co.nf/pokemon/ '.$_GET['nick'].'.txt';
- $nick2 = '/srv/disk1/1763432/www/tozino.co.nf/battle/ '.$_GET['nick'].'.txt';
- $file = str_replace(' ','',$nick);
- $file2 = str_replace(' ','',$nick2);
- $pokemon = 0-1;
- $pokemonsite = 0;
- $endpokemon = 21;
- $tablepokemonstart = 1;
- $tablepokemonend = 20;
- $table = 0;
- echo "<center>";
- echo "<h1>".$_GET['nick']."'s Main Pokemon and Battle stastistics</h1>";
- echo '<table border="3"><tr><td>';
- if (file_exists($file2)) {
- $line2 = file($file2);
- $pokemonnumber = $line2[0];
- if ($pokemonnumber >= 1 ) {
- $pokemonnumber = sprintf("%03d",$pokemonnumber);
- if ($pokemonnumber == 720) { $picturebattle = 'http://cdn.bulbagarden.net/upload/9/98/Missingno_RB.png'; }
- else { $picturebattle = 'http://assets22.pokemon.com/assets/cms2/img/pokedex/full/'.$pokemonnumber.'.png'; }
- 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>' ;
- 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>";
- echo '<tr><td><h1><center>'.$line2[1].'</center></h1></td><td><h1><center>'.$line2[2].'</center></h1></td></tr></table>';
- } else {
- echo " Looks like ".$_GET['nick']." hasn't set it for battle ";
- }
- }
- echo "</tr></td></table>";
- if (file_exists($file)) {
- echo "<h1>".$_GET['nick']."'s Pokedex</h1>";
- echo '<table border="3"><tr><td>'.$tablepokemonstart.'-'.$tablepokemonend.'</td>';
- while ($pokemon <= 716) {
- $pokemon++ ;
- $pokemonsite++;
- $pokemonsite = sprintf("%03d", $pokemonsite);
- $table++;
- $line = file($file);
- $picture = 'http://assets22.pokemon.com/assets/cms2/img/pokedex/full/'.$pokemonsite.'.png';
- if ($table == $endpokemon) {
- $tablepokemonstart = 20 + $tablepokemonstart;
- $tablepokemonend = 20 + $tablepokemonend;
- echo '</tr> <tr> <td>'.$tablepokemonstart.'-'.$tablepokemonend.'</td>';
- $endpokemon = 20 + $endpokemon;
- }
- if ($line[$pokemon] == 1) {
- echo '<td> <img border="0" src='.$picture.' alt="Image" width="50" height="50" /> </td>' ; }
- 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>' ; }
- }
- } else { }
- echo '</tr></table></center>';
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement