From 1be13ba1fc6466f94ae4416dcd9eece9b5b4f9a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 30 Mar 2014 21:16:45 +0200 Subject: oops, restore @tcitworld commit. I'm so tired --- install/index.php | 68 +++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 58 insertions(+), 10 deletions(-) (limited to 'install') diff --git a/install/index.php b/install/index.php index 599bbe2b..e63b2423 100644 --- a/install/index.php +++ b/install/index.php @@ -1,9 +1,30 @@ download it manually<∕a> and unzip it in your wallabag folder.'; + $errors[] = 'Impossible to download vendor.zip. Please download it manually<∕a> and unzip it in your wallabag folder.'; } else { if (extension_loaded('zip')) { @@ -64,11 +85,11 @@ else if (isset($_POST['install'])) { else { $db_path = 'sqlite:' . realpath('') . '/db/poche.sqlite'; $handle = new PDO($db_path); + $sql_structure = ""; } } else { $content = file_get_contents('inc/poche/config.inc.php'); - $sql_structure = ''; if ($_POST['db_engine'] == 'mysql') { $db_path = 'mysql:host=' . $_POST['mysql_server'] . ';dbname=' . $_POST['mysql_database']; @@ -130,7 +151,7 @@ else if (isset($_POST['install'])) { $params = array($id_user, 'language', 'en_EN.UTF8'); $query = executeQuery($handle, $sql, $params); - $successes[] = 'wallabag is now installed. Don\'t forget to delete install folder. Then, reload this page.'; + $successes[] = 'wallabag is now installed. You can now access it !'; } } } @@ -144,7 +165,7 @@ else if (isset($_POST['install'])) { - wallabag — installation + wallabag — installation @@ -199,18 +220,18 @@ else if (isset($_POST['install'])) {

- wallabag seems already installed. If you want to update it, you only have to delete install folder. + wallabag seems already installed. If you want to update it, you only have to delete install folder, then reload this page.

To install wallabag, you just have to fill the following fields. That's all.

-

Don't forget to check your server compatibility here.

+

Don't forget to check your server compatibility here.

Technical settings -
wallabag needs twig, a template engine (?). Two ways to install it: +
wallabag needs twig, a template engine (?). Two ways to install it:
  • automatically download and extract vendor.zip into your wallabag folder.

    @@ -226,7 +247,11 @@ php composer.phar install
  • Database engine:

      -
    • +
    • +
      +

      You have to enable pdo_sqlite extension.

      +
      +
      • @@ -242,7 +267,7 @@ php composer.phar install
      • - id
      • +
    @@ -264,26 +289,49 @@ php composer.phar install

- +