From d5bf2c2061464ad5a045dc623ab5c8f03ec12dd3 Mon Sep 17 00:00:00 2001 From: Pablo Ferreiro Date: Mon, 4 Apr 2022 22:39:59 +0200 Subject: [PATCH] Relative paths and gitignore config.php --- .gitignore | 1 + README.md | 1 + config.php => config.sample.php | 0 misc/footer.php | 8 ++++---- settings.php | 4 ++-- 5 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 .gitignore rename config.php => config.sample.php (100%) mode change 100755 => 100644 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b74decb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/config.php diff --git a/README.md b/README.md index c4b43e6..c1ccbed 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ If you want to host it just for yourself a PHP development server should be enou ``` git clone https://github.com/hnhx/librex.git cd librex +cp config.sample.php config.php sudo php -S 127.0.0.1:80 ```
diff --git a/config.php b/config.sample.php old mode 100755 new mode 100644 similarity index 100% rename from config.php rename to config.sample.php diff --git a/misc/footer.php b/misc/footer.php index 7e67261..f64ae4e 100644 --- a/misc/footer.php +++ b/misc/footer.php @@ -1,10 +1,10 @@ diff --git a/settings.php b/settings.php index 636ada2..70adb99 100644 --- a/settings.php +++ b/settings.php @@ -21,7 +21,7 @@ better_setcookie("nitter"); better_setcookie("libreddit"); - header("Location: /settings.php"); + header("Location: ./settings.php"); die(); } else if (isset($_REQUEST["reset"])) @@ -34,7 +34,7 @@ setcookie($name, "", time() - 1000); } - header("Location: /settings.php"); + header("Location: ./settings.php"); die(); } }