]>
src.bluestatic.org Git - bugdar.git/blob - global.php
2c25e1d7dab674702abbbd32726f99fd8c2abdd3
2 /*=====================================================================*\
3 || ################################################################### ||
4 || # Bugdar [#]version[#]
5 || # --------------------------------------------------------------- # ||
6 || # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
7 || # This file may not be reproduced in any way without permission. # ||
8 || # --------------------------------------------------------------- # ||
9 || # User License Agreement at http://www.iris-studios.com/license/ # ||
10 || ################################################################### ||
11 \*=====================================================================*/
13 error_reporting(E_ALL
& ~E_NOTICE
);
15 // ###################################################################
20 define('ISSO_MT_START', microtime());
22 if (!file_exists('./includes/config.php'))
24 echo 'includes/config.php needs to be present!';
28 require_once('./includes/config.php');
30 define('ISSO_ESCAPE_STRINGS', 1);
31 define('ISSO_CHECK_POST_REFERER', 1);
33 require_once($pathtoisso . 'kernel.php');
35 $bugsys->application
= 'Bugdar';
36 $bugsys->apppath
= $bugsys->fetch_sourcepath(getcwd());
37 $bugsys->appversion
= '[#]version[#]';
38 $bugsys->debug
= $debug;
39 $bugsys->sourcepath
= $bugsys->fetch_sourcepath($pathtoisso);
41 $bugsys->load('db_mysql');
42 $db->database
= $database;
43 $db->connect($servername, $username, $password, $usepconnect);
45 $bugsys->exec_sanitize_data();
47 define('DEVDEBUG', $debug);
48 define('TABLE_PREFIX', $tableprefix);
49 define('COOKIE_PREFIX', $cookieprefix);
51 unset($database, $servername, $username, $password, $usepconnect, $tableprefix, $cookieprefix);
53 require_once('./includes/functions_datastore.php');
54 require_once('./includes/functions.php');
56 // ###################################################################
58 $bugsys->options
= array();
59 $bugsys->userinfo
= array();
60 $bugsys->datastore
= array();
62 // ###################################################################
64 $bugsys->in
['mark'] = intval($bugsys->in
['mark']);
66 // ###################################################################
67 // ###################################################################
68 // ###################################################################
70 // ###################################################################
71 // constructs the page header bit
76 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
77 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
78 <html xmlns
="http://www.w3.org/1999/xhtml" xml
:lang
="en" lang
="en">
80 <meta http
-equiv
="content-type" content
="text/html; charset=iso-8859-1" />
81 <link rel
="stylesheet" href
="install.css" media
="screen" />
82 <title
>Bugdar Installer
</title
>
89 // ###################################################################
90 // puts the end of the page down
92 function page_end($next = true)
96 if (defined('STOP_MARK') AND $next)
98 if ($bugsys->in
['mark'] >= STOP_MARK
)
100 echo '<div class="buttonlink"><a href="../admin/">Go to the Administrative Control Panel</a></div>';
104 echo '<div class="buttonlink"><a href="' . ACTIVE_SITE
. '?mark=' . ($bugsys->in
['mark'] +
1) . '">Next Step</a></div>';
117 /*=====================================================================*\
118 || ###################################################################
121 || ###################################################################
122 \*=====================================================================*/