From 47c24a68c1c185413ad9d4b0cca754346546bf46 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 16 Oct 2005 05:26:08 +0000 Subject: [PATCH] r558: Basic installer core created --- install/global.php | 121 ++++++++++++++++ install/install.css | 43 ++++++ install/install.php | 72 ++++++++++ install/schema.php | 326 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 562 insertions(+) create mode 100644 install/global.php create mode 100644 install/install.css create mode 100644 install/install.php create mode 100644 install/schema.php diff --git a/install/global.php b/install/global.php new file mode 100644 index 0000000..83574e6 --- /dev/null +++ b/install/global.php @@ -0,0 +1,121 @@ +application = 'BugStrike'; +$bugsys->apppath = $bugsys->fetch_sourcepath(getcwd()); +$bugsys->appversion = '[#]version[#]'; +$bugsys->debug = $debug; +$bugsys->sourcepath = $bugsys->fetch_sourcepath($pathtoisso); + +$bugsys->load('db_mysql'); +$db->database = $database; +$db->connect($servername, $username, $password, $usepconnect); + +$bugsys->exec_sanitize_data(); + +define('DEVDEBUG', $debug); +define('TABLE_PREFIX', $tableprefix); +define('COOKIE_PREFIX', $cookieprefix); + +unset($database, $servername, $username, $password, $usepconnect, $tableprefix, $cookieprefix); + +require_once('./includes/functions_datastore.php'); +require_once('./includes/functions.php'); + +// ################################################################### +// init the big three +$bugsys->options = array(); +$bugsys->userinfo = array(); +$bugsys->datastore = array(); + +// ################################################################### + +$bugsys->in['mark'] = intval($bugsys->in['mark']); + +// ################################################################### +// ################################################################### +// ################################################################### + +// ################################################################### +// constructs the page header bit + +function page_start() +{ +?> + + + + + + BugStrike Installer + + + +in['mark'] >= STOP_MARK) + { + echo 'Go to the Administrative Control Panel'; + } + else + { + echo 'Next Step'; + } + } + + echo ' + + + +'; +} + +/*=====================================================================*\ +|| ################################################################### +|| # $HeadURL$ +|| # $Id$ +|| ################################################################### +\*=====================================================================*/ +?> \ No newline at end of file diff --git a/install/install.css b/install/install.css new file mode 100644 index 0000000..7d7cfef --- /dev/null +++ b/install/install.css @@ -0,0 +1,43 @@ +/*=====================================================================*\ +|| ################################################################### || +|| # BugStrike [#]version[#] +|| # --------------------------------------------------------------- # || +|| # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # || +|| # This file may not be reproduced in any way without permission. # || +|| # --------------------------------------------------------------- # || +|| # User License Agreement at http://www.iris-studios.com/license/ # || +|| ################################################################### || +\*=====================================================================*/ + +body +{ + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 12px; +} + +body a +{ + color: rgb(0, 0, 238); +} + +h1 +{ + color: rgb(66, 137, 155); +} + +.buttonlink a +{ + font-weight: bold; + padding: 5px; + border: 1px solid black; + text-decoration: none; + color: rgb(37, 37, 37); + background-color: rgb(239, 239, 239); +} + +/*=====================================================================*\ +|| ################################################################### +|| # $HeadURL$ +|| # $Id$ +|| ################################################################### +\*=====================================================================*/ \ No newline at end of file diff --git a/install/install.php b/install/install.php new file mode 100644 index 0000000..744e0fb --- /dev/null +++ b/install/install.php @@ -0,0 +1,72 @@ +in['mark'] == 0) +{ +?> +

Welcome to BugStrike

+ +

This installer will take you through the procedure of setting up your BugStrike installation. If you are seeing this message, that means that your configuration file was read properly and that your database is accessible.

+ +

The following steps will initialize your database, place the default settings and data in your database, and finally ask you to enter in some settings to allow you to access the system when the installer finishes.

+ +

To begin the installation process, please click the button below.

+in['mark'] == 1) +{ +?> +

Initializing Database

+ +

This step will load the tables into your database so the rest of the installation can proceed forward.

+ + $query) + { + $db->query($query); + echo 'Creating table ' . $table . '
' . "\n"; + } +} + +// ################################################################### + +if ($bugsys->in['mark'] == 2) +{ + +} + +// ################################################################### + +page_end(); + +/*=====================================================================*\ +|| ################################################################### +|| # $HeadURL$ +|| # $Id$ +|| ################################################################### +\*=====================================================================*/ +?> \ No newline at end of file diff --git a/install/schema.php b/install/schema.php new file mode 100644 index 0000000..3870837 --- /dev/null +++ b/install/schema.php @@ -0,0 +1,326 @@ + \ No newline at end of file -- 2.43.5