consolegen.php