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