?> <div class="section"> <h2>From</h2> <?php $chosen_importer = 'importer/' . $source . '.php'; if (!file_exists($chosen_importer)) { die('No importer for source ' . $source); } $importer = new ImportExtension(); echo '<pre>'; include_once $chosen_importer; if (!$importer->validate()) { $apply = false; } $caption = count($importer->cards) . ' cards'; $nbimages = $importer->nbimages(); if (count($importer->cards) != $nbimages) { $caption .= ', ' . $nbimages . ' images'; } ?> </pre> <table> <caption><?php echo $caption; ?> cards detected <button id="import_cards_button">Show / Hide</button></caption> <tbody id="import_cards"> <tr> <th>#</th> <th>Rarity</th>