From 3a79b69085a5a68270b5f4486c88efcabcdedb1f Mon Sep 17 00:00:00 2001 From: Banana Date: Thu, 19 Dec 2019 23:17:15 +0100 Subject: [PATCH] more basis stuff. --- CHANGELOG | 3 +- README | 3 + webroot/.htaccess | 5 ++ webroot/config.default.php | 18 +++-- webroot/index.php | 30 ++++--- webroot/lib/summoner.class.php | 139 +++++++++++++++++++++++++++++++++ 6 files changed, 180 insertions(+), 18 deletions(-) create mode 100644 webroot/lib/summoner.class.php diff --git a/CHANGELOG b/CHANGELOG index 5f9cf19..77916a7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1 +1,2 @@ -TBA version 0.1 Hydrogen \ No newline at end of file +TBA version 0.1 Hydrogen + Initial creation. Not polished yet. \ No newline at end of file diff --git a/README b/README index e69de29..78d1100 100644 --- a/README +++ b/README @@ -0,0 +1,3 @@ +selfpaste is a small self hosting paste service. + +Link shortening inspired and some code used from: https://www.jwz.org/base64-shortlinks/ \ No newline at end of file diff --git a/webroot/.htaccess b/webroot/.htaccess index b66643c..14bfbbf 100644 --- a/webroot/.htaccess +++ b/webroot/.htaccess @@ -7,4 +7,9 @@ AddDefaultCharset utf-8 SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip + + + + RewriteEngine On + RewriteRule ^(.*)$ index.php?s=$1 [QSA,L] \ No newline at end of file diff --git a/webroot/config.default.php b/webroot/config.default.php index ca72d15..b6c9f0d 100644 --- a/webroot/config.default.php +++ b/webroot/config.default.php @@ -1,10 +1,12 @@