in['mark'] == 0) { ?>
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) { ?>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 . 'Default table data for usergroups, statuses, priorities, and other various options are being loaded. This will allow you to use BugStrike with minimal setup.
$records) { foreach ($records AS $record) { $fields = $values = array(); foreach ($record AS $field => $value) { $fields[] = $field; $values[] = addslashes($value); } $db->query("INSERT INTO " . TABLE_PREFIX . "$table (" . implode(',', $fields) . ") VALUES ('" . implode("', '", $values) . "')"); } echo 'Populating table ' . $table . 'Default settings are being loaded into the system.
$setting) { $db->query("INSERT INTO " . TABLE_PREFIX . "setting (varname, value) VALUES ('" . $varname . "', '" . addslashes($setting[3]) . "')"); } echo 'Settings loaded...'; } // ################################################################### if ($bugsys->in['mark'] == 4) { $value = 'http' . ($_SERVER['HTTPS'] == 'on' ? 's' : '') . '://' . $_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] != '80' ? ':' . $_SERVER['SERVER_PORT'] : '') . str_replace('/install/install.php', '', $_SERVER['SCRIPT_NAME']); ?>These three settings are fundamental in setting up your bug tracking system. Please fill them in to proceed with the installation.
in['mark'] == 5) { ?>Your settings have been saved. Now you must create a new administrative account for yourself. This account will have complete control over the system.
query("UPDATE " . TABLE_PREFIX . "setting SET value = '" . $bugsys->in['trackertitle'] . "' WHERE varname = 'trackertitle'"); $db->query("UPDATE " . TABLE_PREFIX . "setting SET value = '" . $bugsys->in['trackerurl'] . "' WHERE varname = 'trackerurl'"); $db->query("UPDATE " . TABLE_PREFIX . "setting SET value = '" . $bugsys->in['webmasteremail'] . "' WHERE varname = 'webmasteremail'"); page_end(false); } // ################################################################### if ($bugsys->in['mark'] == 6) { ?>Your new user has been added.
load('functions'); $salt = $funct->rand(15); $db->query(" INSERT INTO " . TABLE_PREFIX . "user (email, displayname, password, salt, authkey, showemail, showcolours, usergroupid) VALUES ('" . $bugsys->in['email'] . "', '" . $bugsys->in['displayname'] . "', '" . md5(md5($bugsys->in['password']) . md5($salt)) . "', '$salt', '" . $funct->rand() . "', 1, 1, 6 )" ); } // ################################################################### if ($bugsys->in['mark'] == 7) { ?>In order to make BugStrike the most efficient possible, the system caches the maximum amount of data it can. This reduces the load of your server without compromising usability. Currently the caches are being built.
\n"; build_usergroups(); echo "Cached usergroups