Revert "Subdir support and gitignore config.php"

This commit is contained in:
Hanna 2022-04-10 11:28:34 +02:00 committed by GitHub
parent 83c031edf1
commit 8b6c0ca6f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 8 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
/config.php

View File

@ -40,7 +40,6 @@ If you want to host it just for yourself a PHP development server should be enou
``` ```
git clone https://github.com/hnhx/librex.git git clone https://github.com/hnhx/librex.git
cd librex cd librex
cp config.sample.php config.php
sudo php -S 127.0.0.1:80 sudo php -S 127.0.0.1:80
``` ```
<br/> <br/>

0
config.sample.php → config.php Normal file → Executable file
View File

View File

@ -1,10 +1,10 @@
<div class="footer-container"> <div class="footer-container">
<a href="./">LibreX</a> <a href="/">LibreX</a>
<a href="https://github.com/hnhx/librex/" target="_blank">Source &amp; Instance list</a> <a href="https://github.com/hnhx/librex/" target="_blank">Source &amp; Instance list</a>
<a href="./settings.php">Settings</a> <a href="/settings.php">Settings</a>
<a href="https://based-or-botnet.neocities.org/" target="_blank">Privacy guides</a> <a href="https://based-or-botnet.neocities.org/" target="_blank">Privacy guides</a>
<a href="./api.php" target="_blank">API</a> <a href="/api.php" target="_blank">API</a>
<a href="./donate.php">Donate ❤️</a> <a href="/donate.php">Donate ❤️</a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -21,7 +21,7 @@
better_setcookie("nitter"); better_setcookie("nitter");
better_setcookie("libreddit"); better_setcookie("libreddit");
header("Location: ./settings.php"); header("Location: /settings.php");
die(); die();
} }
else if (isset($_REQUEST["reset"])) else if (isset($_REQUEST["reset"]))
@ -34,7 +34,7 @@
setcookie($name, "", time() - 1000); setcookie($name, "", time() - 1000);
} }
header("Location: ./settings.php"); header("Location: /settings.php");
die(); die();
} }
} }