From fecb62a3967eefda9880ce37e13693713385a093 Mon Sep 17 00:00:00 2001 From: tcit Date: Fri, 28 Mar 2014 20:00:02 +0100 Subject: [PATCH] Improvements to install script * automatically remove install/ folder * go easier though the compatibility test <-> install script pages * Small fixes which raised php warnings --- install/index.php | 36 ++++++++++++++++++++++++++------- wallabag_compatibility_test.php | 20 +++++++++++++++--- 2 files changed, 46 insertions(+), 10 deletions(-) diff --git a/install/index.php b/install/index.php index b21cec52..35c21fbe 100644 --- a/install/index.php +++ b/install/index.php @@ -1,7 +1,28 @@ download it manually<∕a> and unzip it in your wallabag folder.'; } @@ -25,7 +46,7 @@ if ($_POST['download']) { } } } -else if ($_POST['install']) { +else if (isset($_POST['install'])) { if (!is_dir('vendor')) { $errors[] = 'You must install twig before.'; } @@ -64,6 +85,7 @@ else if ($_POST['install']) { else { $db_path = 'sqlite:' . realpath('') . '/db/poche.sqlite'; $handle = new PDO($db_path); + $sql_structure = ""; } } else { @@ -129,7 +151,7 @@ else if ($_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 !'; } } } @@ -198,18 +220,18 @@ else if ($_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.

    @@ -245,7 +267,7 @@ php composer.phar install
  • - id
  • +
diff --git a/wallabag_compatibility_test.php b/wallabag_compatibility_test.php index 51ea31e1..7a52767c 100644 --- a/wallabag_compatibility_test.php +++ b/wallabag_compatibility_test.php @@ -171,7 +171,13 @@ background-color:#FF9500; - +
@@ -337,15 +343,23 @@ background-color:#FF9500;

Bottom Line: Yes, you can!

Your webhost has its act together!

+

You can download the latest version of from wallabag.org.

-

If you already have done that, you should access the index.php file of your installation to configure and start using wallabag

+

If you already have done that, you should access the index.php file of your installation to configure and/or start using wallabag

+ +

You can now return to the installation section.

+

Note: Passing this test does not guarantee that will run on your webhost — it only ensures that the basic requirements have been addressed. If you experience any problems, please let us know.

Bottom Line: Yes, you can!

For most feeds, it'll run with no problems. There are certain languages that you might have a hard time with though.

+

You can download the latest version of from wallabag.org.

-

If you already have done that, you should access the index.php file of your installation to configure and start using wallabag

+

If you already have done that, you should access the index.php file of your installation to configure and/or start using wallabag

+ +

You can now return to the installation section.

+

Note: Passing this test does not guarantee that will run on your webhost — it only ensures that the basic requirements have been addressed. If you experience any problems, please let us know.

Bottom Line: We're sorry…

-- 2.41.0