commit 5e08b960d4e7bd404c88a52d272394c0a954e6ca
parent 804b9e760d03656fc205b69923e8eecbefb7a30b
Author: René Wagner <rwagner@rw-net.de>
Date: Fri, 1 May 2020 19:46:31 +0200
implements ~rwa/devShort#3
implements ~rwa/devShort#2
implements ~rwa/devShort#7
Diffstat:
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
@@ -32,14 +32,15 @@ The devShort URL shortener is the perfect choice for web developers, admins and
## 1-2-3 Step installation
-1. Download the latest [release](https://github.com/guzzisti/devShort/releases) and upload it to the desired installation place
-2. Insert a admin password in the `admin/config.json`
-3. Start using devShort!
+1. Download the latest [release](https://git.sr.ht/~rwa/devshort/refs) and upload it to the desired installation place
+2. Move `admin/config.json.example` to
+3. Adjust the configuration in `admin/config.json`, especially **insert a admin password**
+4. Start using devShort!
## About
-Maintainer: [flokX](https://github.com/flokX), Contributors: [René Wagner](https://github.com/guzzisti)
+Maintainer: [flokX](https://github.com/flokX), Contributors: [René Wagner](https://sr.ht/~rwa)
-License: [The MIT License](https://github.com/guzzisti/devShort/blob/master/LICENSE)
+License: [The MIT License](https://git.sr.ht/~rwa/devshort/tree/master/LICENSE)
Third-party credits: [Vue.js](https://vuejs.org/), [Bootstrap](https://getbootstrap.com), [Frappe Charts](https://github.com/frappe/charts) and [IO-Images](https://pixabay.com/users/io-images-1096650),
diff --git a/index.php b/index.php
@@ -15,7 +15,7 @@ file_put_contents($stats_path, json_encode($stats_content, JSON_PRETTY_PRINT), L
$links_string = "";
if ($config_content["settings"]["custom_links"]) {
foreach ($config_content["settings"]["custom_links"] as $name => $url) {
- $links_string = $links_string . "<a href=\"$url\" class=\"badge badge-secondary\">$name</a> ";
+ $links_string = $links_string . "<a href=\"$url\" class=\"badge badge-secondary\" target=\"_blank\">$name</a> ";
}
$links_string = substr($links_string, 0, -1);
}
@@ -59,7 +59,7 @@ function show_random_shortlink() {
<p class="lead">This is a shortlink service. You need a valid shortlink to get redirected.</p>
<?php show_random_shortlink(); ?>
<ul class="list-inline">
- <li class="list-inline-item"><a href="https://github.com/flokX/devShort/wiki/What-is-URL-shortening%3F">What is URL shortening?</a></li>
+ <li class="list-inline-item"><a href="https://en.wikipedia.org/wiki/URL_shortening" target="_blank">What is URL shortening?</a></li>
<li class="list-inline-item">-</li>
<li class="list-inline-item"><a href="<?php echo $config_content["settings"]["home_link"]; ?>">Home page</a></li>
<li class="list-inline-item">-</li>
@@ -71,7 +71,7 @@ function show_random_shortlink() {
<footer class="footer mt-auto py-3 bg-light">
<div class="container">
<div class="d-flex justify-content-between align-items-center">
- <span class="text-muted">© 2020 <?php $config_content["settings"]["author"]; ?> and <a href="https://github.com/flokX/devShort">devShort</a></span>
+ <span class="text-muted">© 2020 <?php $config_content["settings"]["author"]; ?> and <a href="https://sr.ht/~rwa/devShort/" target="_blank">devShort</a></span>
<?php if ($links_string) { echo "<span class=\"text-muted\">$links_string</span>"; } ?>
</div>
</div>