devshort

private self-hosted shortlink service
git clone https://git.clttr.info/devshort.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 2a72b053f20382295edda3aabd69a0525be4ee31
parent 19d169f3e3abc5f6d4d9b6c086a866d4d7e1932a
Author: Florian Kaldowski <flokX@users.noreply.github.com>
Date:   Sat, 27 Apr 2019 10:05:48 +0200

Update installer.php
Diffstat:
Minstaller.php | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/installer.php b/installer.php @@ -22,7 +22,7 @@ RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ {$installation_path}redirect.php?short=$1 [L]"; file_put_contents(__DIR__ . DIRECTORY_SEPARATOR . ".htaccess", $root_htaccess, FILE_APPEND); - // Create the .htpasswd for the secure directory. If already a hashed password is there, copy it. + // Create the .htpasswd for the secure directory. If already a hashed password is in the data.json file, copy it. $htpasswd_path = implode(DIRECTORY_SEPARATOR, array(__DIR__, "admin", ".htpasswd")); $admin_password = $config_content["installer"]["password"]; if (password_get_info($admin_password)["algo"] === 0) { @@ -79,7 +79,7 @@ require valid-user"; if ($success) { echo "<h1 class=\"mt-5\">Successful installed!</h1> <p class=\"lead\">Now you can start to shorten links. For more information visit the <a href=\"https://github.com/flokX/devShort/wiki\">devShort wiki</a>.</p> -<a href=\"admin\" class=\"btn btn-primary btn-lg \" role=\"button\">Go to the admin panel</a>"; +<a href=\"admin\" class=\"btn btn-primary btn-block\" role=\"button\">Go to the admin panel</a>"; } else { echo "<h1 class=\"mt-5\">Error while installing.</h1> <p class=\"lead\">Please configure the <i>config.json</i> as shown in the <a href=\"https://github.com/flokX/devShort/wiki/Installation#installation\">devShort wiki</a> and try again.</p> @@ -94,7 +94,7 @@ require valid-user"; <div class="container"> <div class="d-flex justify-content-between align-items-center"> <span class="text-muted">&copy; <?php echo date("Y") ?> <a href="https://github.com/flokX/devShort">devShort</a></span> - <span class="text-muted"><a href="https://github.com/flokX/devShort/wiki" class="badge badge-secondary">devShort wiki</a> <a href="https://github.com/flokX" class="badge badge-secondary">devShort author</a></span> + <span class="text-muted"><a href="https://github.com/flokX/devShort/wiki" class="badge badge-secondary">devShort wiki</a></span> </div> </div> </footer>