2 /*=====================================================================*\
3 || ###################################################################
4 || # Bugdar [#]version[#]
5 || # Copyright ©2002-[#]year[#] Iris Studios, Inc.
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.
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
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 \*=====================================================================*/
22 error_reporting(E_ALL
& ~E_NOTICE
);
24 // ###################################################################
29 define('ISSO_MT_START', microtime());
30 define('ISSO_ESCAPE_STRINGS', 1);
31 define('ISSO_CHECK_POST_REFERER', 1);
33 require_once('./framework/kernel.php');
35 $bugsys->set('apppath', getcwd());
36 $bugsys->set('application', 'Bugdar');
37 $bugsys->set('appversion', '[#]version[#]');
39 if (!file_exists('./includes/config.php'))
41 echo 'includes/config.php needs to be present!';
45 require_once('./includes/config.php');
47 $bugsys->set('debug', $debug);
49 define('ISSO_DB_LAYER', 'db_mysql');
50 $bugsys->load('db_mysql');
51 $db->connect($servername, $username, $password, $database, $usepconnect);
53 $bugsys->exec_sanitize_data();
55 define('DEVDEBUG', $debug);
56 define('TABLE_PREFIX', $tableprefix);
57 define('COOKIE_PREFIX', $cookieprefix);
59 unset($database, $servername, $username, $password, $usepconnect, $tableprefix, $cookieprefix);
61 require_once('./includes/functions_datastore.php');
62 require_once('./includes/functions.php');
64 // ###################################################################
66 $bugsys->options
= array();
67 $bugsys->userinfo
= array();
68 $bugsys->datastore
= array();
70 // ###################################################################
72 $bugsys->versions
= array(
77 // ###################################################################
79 $bugsys->input_clean('mark', TYPE_UINT
);
81 // ###################################################################
82 // ###################################################################
83 // ###################################################################
85 // ###################################################################
86 // constructs the page header bit
91 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
92 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
93 <html xmlns
="http://www.w3.org/1999/xhtml" xml
:lang
="en" lang
="en">
95 <meta http
-equiv
="content-type" content
="text/html; charset=iso-8859-1" />
96 <link rel
="stylesheet" href
="install.css" media
="screen" />
97 <title
>Bugdar Installer
</title
>
104 // ###################################################################
105 // puts the end of the page down
107 function page_end($next = true
)
111 if (defined('STOP_MARK') AND $next)
113 if ($bugsys->in
['mark'] >= STOP_MARK
)
115 echo '<div class="buttonlink"><a href="../admin/">Go to the Administrative Control Panel</a></div>';
119 echo '<div class="buttonlink"><a href="' . ACTIVE_SITE
. '?mark=' . ($bugsys->in
['mark'] +
1) . '">Next Step</a></div>';
132 /*=====================================================================*\
133 || ###################################################################
136 || ###################################################################
137 \*=====================================================================*/