From 11ef4de52d387ef2a93bd9bbaf00b745f2bbf3e4 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 10 Feb 2015 01:14:28 +0100 Subject: [PATCH] added a final screen --- install/index.php | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/install/index.php b/install/index.php index 1f11413a..bd9e502d 100755 --- a/install/index.php +++ b/install/index.php @@ -49,6 +49,7 @@ else if (isset($_POST['install'])) { $errors[] = 'You must install twig before.'; } else { $continue = true; + $final = false; $salt = generate_salt(); $content = file_get_contents('inc/poche/config.inc.default.php'); @@ -142,7 +143,7 @@ else if (isset($_POST['install'])) { foreach ($moreQueries as $query) { executeQuery($handle, $query, array()); } - $successes[] = 'wallabag is now installed. You can now access it !'; + if (!copy('inc/poche/config.inc.default.php', 'inc/poche/config.inc.php')) { $errors[] = 'Installation aborted, impossible to create inc/poche/config.inc.php file. Maybe you don\'t have write access to create it.'; @@ -153,6 +154,7 @@ else if (isset($_POST['install'])) { } $content = str_replace("define ('SALT', '');", "define ('SALT', '".$salt."');", $content); file_put_contents('inc/poche/config.inc.php', $content); + $final = true; } } } @@ -300,8 +302,8 @@ cursor: pointer; min-height: 50px; line-height: 50px; text-align: center; - margin-bottom: 30px; - border-radius: 3px; + margin-bottom: 30px; + border-radius: 3px; } h2, legend { @@ -329,6 +331,21 @@ border: 1px solid #000; background-color: #FFF; color: #000; } +.final { + margin-top: 10%; + margin-left: 30%; + max-width: 400px; + text-align: center; + border-radius: 6px; +} +.final h1 { + line-height: 50px; +} + +.final em { + margin-top: 40px; + font-size: 12px; +} @@ -346,7 +363,8 @@ border: 1px solid #000;
  • Online doc
  • help
  • wallabag.org
  • - + +

    Errors during installation:

    @@ -654,6 +672,12 @@ php composer.phar install
    + +
    +

    wallabag is now installed ! :-)

    + Click here to access the login form
    + The installation will now try to delete the install directory. If this fails, delete it manually.
    +