if ($_POST['highlight']) { $replay['highlight'] = true; } else { unset($replay['highlight']); } if ($_POST['notes']) { $replay['notes'] = $_POST['notes']; } else { unset($replay['notes']); } if ($_POST['link']) { $replay['link'] = $_POST['link']; } else { unset($replay['link']); } persist_save('REPLAYS'); } ?> <form method="post" style="margin-top:1em"> <input type="checkbox" name="highlight"<?php if ($replay['highlight']) { echo 'checked="checked"'; } ?> id="highlight" /><label for="highlight"> highlight</label><br /> notes <input type="text" name="notes" id="notes" value="<?php echo htmlentities($replay['notes']); ?> " size="90" /><br /> link <input type="text" name="link" id="link" value="<?php echo htmlentities($replay['link']);
include 'data/pokedex_numlookup.inc.php'; // prevos $file = file('data/po_evos.txt'); foreach ($file as $line) { if (!$line) { continue; } $args = explode(' ', $line); $poke = $BattlePokemonByNumber[intval($args[0])]; $args = array_splice($args, 1); $BattlePokemon[$poke]['nfe'] = true; foreach ($args as $arg) { $BattlePokemon[$BattlePokemonByNumber[intval($args[0])]]['prevo'] = $poke; } } persist_save('BattlePokemon', 'data/pokedex.inc.php'); //file_put_contents('data/pokedex.js', 'exports.BattlePokedex = '.json_encode($BattlePokemon)); echo '<a href="chartmaker.php?3">next</a><br /><br />'; var_export($BattlePokemon['ivysaur']); } else { if (isset($_REQUEST['3'])) { include 'data/pokedex.inc.php'; include 'data/typechart.inc.php'; $file = file('data/movesets.csv'); foreach ($file as $line) { $args = explode(',', $line); if (!ctype_digit($args[3])) { continue; } $species = $args[0]; $speciesid = preg_replace('/[^a-z0-9]+/', '', strtolower($species));