]> src.bluestatic.org Git - isso.git/blob - installer.php
Use the new BSRegister::GetType() to find DB objects
[isso.git] / installer.php
1 <?php
2 /*=====================================================================*\
3 || ###################################################################
4 || # Blue Static ISSO Framework [#]issoversion[#]
5 || # Copyright ©2002-[#]year[#] Blue Static
6 || #
7 || # This program is free software; you can redistribute it and/or modify
8 || # it under the terms of the GNU General Public License as published by
9 || # the Free Software Foundation; version [#]gpl[#] of the License.
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 MERCHANTABILITY
13 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 || # more details.
15 || #
16 || # You should have received a copy of the GNU General Public License along
17 || # with this program; if not, write to the Free Software Foundation, Inc.,
18 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 || ###################################################################
20 \*=====================================================================*/
21
22 /**
23 * Installer subsystem
24 * install.php
25 *
26 * @package ISSO
27 */
28
29 // ###################################################################
30 /**
31 * Constructs the header of a page; imbeds the CSS from installer.css.php
32 *
33 * @access public
34 */
35 function page_start()
36 {
37 require_once($GLOBALS['isso:callback']->get('sourcepath') . 'installer.css.php');
38 ?>
39 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
40 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
41 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
42 <head>
43 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
44 <title><?= $GLOBALS['isso:callback']->get('application') ?> Installer</title>
45
46 <style type="text/css">
47 <!--
48 <?= $css ?>
49 //-->
50 </style>
51 </head>
52 <body>
53
54 <?php
55 }
56
57 // ###################################################################
58 /**
59 * Creates the end of the page and the "Next" button. The "Next" button
60 * reqires that STOP_MARK be defined to be the total number of steps,
61 * ACTIVE_SITE to be the page to link to for the next button, and
62 * STOP_LINK to be an <a> for when all the steps have been reached.
63 *
64 * @access public
65 *
66 * @param bool Produce the "Next" button?
67 */
68 function page_end($next = true)
69 {
70 if (defined('STOP_MARK') AND $next)
71 {
72 if ($GLOBALS['isso:callback']->in['mark'] >= STOP_MARK AND !defined('IGNORE_STOP'))
73 {
74 echo '<div class="buttonlink">' . STOP_LINK . '</div>';
75 }
76 else
77 {
78 echo '<div class="buttonlink"><a href="' . ACTIVE_SITE . '?mark=' . ($GLOBALS['isso:callback']->in['mark'] + 1) . '">Next Step</a></div>';
79 }
80 }
81
82 echo '
83
84 </body>
85
86 </html>';
87
88 exit;
89 }
90
91 /*=====================================================================*\
92 || ###################################################################
93 || # $HeadURL$
94 || # $Id$
95 || ###################################################################
96 \*=====================================================================*/
97 ?>