* @date Jan 2013 * @todo */ use SubjectsPlus\Control\Config; use SubjectsPlus\Control\Installer; use SubjectsPlus\Control\Querier; //set varirables needed in header $subcat = "install"; $page_title = "Installation"; $sessionCheck = 'no'; $no_header = "yes"; $installCheck = 'no'; $updateCheck = 'no'; include "includes/header.php"; //logo only header displayLogoOnlyHeader(); //find what step we are in $lintStep = isset($_GET['step']) ? (int) $_GET['step'] : 0; //if installed already, display message and discontinue if (isInstalled()) { ?> <div id="maincontent" style="max-width: 800px; margin-right: auto; margin-left: auto;"> <div class="box required_field"> <h2 class="bw_head"><?php echo _("Already Installed"); ?> </h2> <p><?php echo _('There appears to already be an installation of SubjectsPlus. To reinstall please clear old database tables first.'); ?>
/** * sp_Config::displaySteps() - this method displays the setup config steps page * * @return void */ public function displaySteps() { displayLogoOnlyHeader(); ?> <br /><br /> <div id="maincontent" style="max-width: 800px; margin-right: auto; margin-left: auto;"> <div class="box" name="error_page"> <h2 class="bw_head"><?php echo _("Welcome!"); ?> </h2> <p><?php echo _("Before getting started, we need some information about the database, You will need to know the following: "); ?> </p><br /> <ul> <li><?php echo _("Database host"); ?> </li> <li><?php echo _("Database username"); ?> </li> <li><?php echo _("Database password"); ?> </li> <li><?php echo _("Database name"); ?> </li> </ul><br /> <p><?php echo _("If for any reason this automatic file creation does not work, you can simply open <code>config-default.php</code> in a text editor and fill in your information and then save it as <code>config.php</code>."); ?> </p> <br /> <a href="setup-config.php">Continue</a> </div> </div> <?php }