]>
src.bluestatic.org Git - bugdar.git/blob - install/global.php
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());
31 if (!file_exists('./includes/config.php'))
33 echo 'includes/config.php needs to be present!';
37 require_once('./includes/config.php');
38 $thepass = $password; // darn register_globals
40 define('ISSO_ESCAPE_STRINGS', 1);
41 define('ISSO_CHECK_POST_REFERER', 1);
43 require_once($pathtoisso . 'kernel.php');
45 $bugsys->application
= 'Bugdar';
46 $bugsys->apppath
= $bugsys->fetch_sourcepath(getcwd());
47 $bugsys->appversion
= '[#]version[#]';
48 $bugsys->debug
= $debug;
49 $bugsys->sourcepath
= $bugsys->fetch_sourcepath($pathtoisso);
51 $bugsys->load('db_mysql');
52 $db->database
= $database;
53 $db->connect($servername, $username, $thepass, $usepconnect);
55 $bugsys->exec_sanitize_data();
57 define('DEVDEBUG', $debug);
58 define('TABLE_PREFIX', $tableprefix);
59 define('COOKIE_PREFIX', $cookieprefix);
61 unset($database, $servername, $username, $password, $usepconnect, $tableprefix, $cookieprefix);
63 require_once('./includes/functions_datastore.php');
64 require_once('./includes/functions.php');
66 // ###################################################################
68 $bugsys->options
= array();
69 $bugsys->userinfo
= array();
70 $bugsys->datastore
= array();
72 // ###################################################################
74 $bugsys->versions
= array(
79 // ###################################################################
81 $bugsys->input_clean('mark', TYPE_UINT
);
83 // ###################################################################
84 // ###################################################################
85 // ###################################################################
87 // ###################################################################
88 // constructs the page header bit
93 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
94 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
95 <html xmlns
="http://www.w3.org/1999/xhtml" xml
:lang
="en" lang
="en">
97 <meta http
-equiv
="content-type" content
="text/html; charset=iso-8859-1" />
98 <link rel
="stylesheet" href
="install.css" media
="screen" />
99 <title
>Bugdar Installer
</title
>
106 // ###################################################################
107 // puts the end of the page down
109 function page_end($next = true)
113 if (defined('STOP_MARK') AND $next)
115 if ($bugsys->in
['mark'] >= STOP_MARK
)
117 echo '<div class="buttonlink"><a href="../admin/">Go to the Administrative Control Panel</a></div>';
121 echo '<div class="buttonlink"><a href="' . ACTIVE_SITE
. '?mark=' . ($bugsys->in
['mark'] +
1) . '">Next Step</a></div>';
134 /*=====================================================================*\
135 || ###################################################################
138 || ###################################################################
139 \*=====================================================================*/