From 1d0995bb8e09503ad01a877bfef74ef6c29b0dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 30 Mar 2014 19:57:39 +0200 Subject: [PATCH] [fix] undefined vars in install script --- install/index.php | 64 ++++++----------------------------------------- 1 file changed, 8 insertions(+), 56 deletions(-) diff --git a/install/index.php b/install/index.php index 35c21fb..599bbe2 100644 --- a/install/index.php +++ b/install/index.php @@ -1,27 +1,6 @@ download it manually<∕a> and unzip it in your wallabag folder.'; @@ -85,11 +64,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']; @@ -151,7 +130,7 @@ else if (isset($_POST['install'])) { $params = array($id_user, 'language', 'en_EN.UTF8'); $query = executeQuery($handle, $sql, $params); - $successes[] = 'wallabag is now installed. You can now access it !'; + $successes[] = 'wallabag is now installed. Don\'t forget to delete install folder. Then, reload this page.'; } } } @@ -220,18 +199,18 @@ else if (isset($_POST['install'])) {

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

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.

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

      -
    • -
      -

      You have to enable pdo_sqlite extension.

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

- +