From 3f8e76789326d752ce04c0060929649d42743157 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Thu, 10 Apr 2014 15:37:28 +0100 Subject: [PATCH] Removing web based installer, as it is more trouble than it is worth. --- public/install.php | 408 --------------------------------------------- 1 file changed, 408 deletions(-) delete mode 100644 public/install.php diff --git a/public/install.php b/public/install.php deleted file mode 100644 index f1e61a23..00000000 --- a/public/install.php +++ /dev/null @@ -1,408 +0,0 @@ -dump($config, 5); - - file_put_contents(PHPCI_DIR . 'PHPCI/config.yml', $yaml); - - /** - * Create database: - */ - $dbhost = $config['b8']['database']['servers']['write'][0]; - $dbname = $config['b8']['database']['name'] ?: 'phpci'; - $dbuser = $config['b8']['database']['username'] ?: 'phpci'; - $dbpass = $config['b8']['database']['password']; - - $pdo = new PDO('mysql:host=' . $dbhost, $dbuser, $dbpass); - - $pdo->query('CREATE DATABASE IF NOT EXISTS `' . $dbname . '`'); - - /** - * Bootstrap PHPCI and populate database: - */ - require(PHPCI_DIR . 'bootstrap.php'); - - ob_start(); - $gen = new \b8\Database\Generator(\b8\Database::getConnection(), 'PHPCI', PHPCI_DIR . 'PHPCI/Model/Base/'); - $gen->generate(); - ob_end_clean(); - - /** - * Create our admin user: - */ - $store = \b8\Store\Factory::getStore('User'); - - try { - $user = $store->getByEmail($adminUser); - } catch (Exception $ex) { - } - - if (empty($user)) { - $user = new \PHPCI\Model\User(); - $user->setEmail($adminUser); - $user->setName($adminUser); - $user->setIsAdmin(1); - $user->setHash(password_hash($adminPass, PASSWORD_DEFAULT)); - - $store->save($user); - } - - $formAction = rtrim( $phpciUrl, '/' ) . '/session/login'; - } -} - - -switch ($installStage) { - case 'start': - $nextStage = 'database'; - break; - - case 'database': - $nextStage = 'github'; - break; - - case 'github': - $nextStage = 'email'; - break; - - case 'email': - $nextStage = 'complete'; - break; -} - -?> - - - - Install PHPCI - - - - - - - - -
-
- -
-
- - - - - -

Welcome to PHPCI!

- -

Your server has passed all of PHPCI's pre-installation checks, please press continue below to - begin installation.

- -

Please correct the problems below, then refresh this page to continue.

- - - -

- Important! - You need to run composer to install dependencies before running the installer. -

- - - - -

- Important! - ./PHPCI/config.yml needs to be writeable to continue. -

- - - -

Important! PHPCI requires PHP 5.3.3 or above.

- - - - -

Database Details

-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -

PHPCI Details

-
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- - - -

Github App Settings (Optional)

-
- -
- -
-
- -
- -
- -
-
- - - -

SMTP Settings (Optional)

-
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -

The address system emails should come from.

-
-
- -
- -
- -

The address to which notifications should go by default.

-
-
- - - -

Thank you for installing PHPCI. Click continue below to log in for the first time!

- - - - - - -
-
- -
-
- -
-
- - -
-
- -