You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

customize-flags.php 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php // -*- Mode: PHP; -*-
  2. /**
  3. * Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
  4. * Copyright (C) 2009 Entity Cyber, Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of the
  9. * License, or any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20. // Get utility functions and set globals
  21. require_once "utils.php";
  22. // Prepare settable compile options for presentation to user
  23. $flags = default_flags ();
  24. $build = "<input type=\"submit\" name=\"A\" value=\"Get Image\">";
  25. $restart = "<input type=\"submit\" name=\"A\" value=\"Start Over\">";
  26. // Begin html output
  27. include_once $top_inc;
  28. ?>
  29. <form action="build.php" method=POST>
  30. <input type="hidden" name="version" value = "<?php echo $version ?>">
  31. <input type="hidden" name="use_flags" value="1">
  32. <h3>
  33. Make changes below and press <?php echo $build ?> to create an image, <br>
  34. Or press <?php echo $restart ?> to return to the main page.
  35. </h3>
  36. <hr>
  37. <ul>
  38. <?php require ( "directions.php" ); ?>
  39. </ul>
  40. <hr>
  41. <?php echo_flags( $flags ); ?>
  42. <hr>
  43. <h3>Embedded Script:</h3>
  44. <?php echo textarea ( "embedded_script", "", "10", "50" ); ?>
  45. <br><br>
  46. <hr>
  47. <center><table width="35%"><tr>
  48. <td align="left"> <?php echo $build; ?> </td>
  49. <td align="right"> <?php echo $restart ?></td>
  50. </tr></table></center>
  51. </form>
  52. <?php include_once $bottom_inc; ?>
  53. <?
  54. // For emacs:
  55. //
  56. // Local variables:
  57. // c-basic-offset: 4
  58. // c-indent-level: 4
  59. // tab-width: 4
  60. // End:
  61. ?>