mirror of
https://github.com/hnhx/librex.git
synced 2025-04-29 14:09:27 -04:00
Revert "Subdir support and gitignore config.php"
This commit is contained in:
parent
83c031edf1
commit
8b6c0ca6f1
5 changed files with 6 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +0,0 @@
|
||||||
/config.php
|
|
|
@ -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
0
config.sample.php → config.php
Normal file → Executable 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 & Instance list</a>
|
<a href="https://github.com/hnhx/librex/" target="_blank">Source & 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>
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue