diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-08 22:17:05 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-08 22:17:05 +0500 |
| commit | 95800ffe216a83bc0eba994ecc53ed22860fe90e (patch) | |
| tree | 69f1bcb85e63a5fc0fcbc6d70eb56e22940fd6fd /account/login | |
| parent | 57472eab3c7b035392c6a5aa240593ecaa7d1ccf (diff) | |
upd: include paths
Diffstat (limited to 'account/login')
| -rw-r--r-- | account/login/index.php | 10 | ||||
| -rw-r--r-- | account/login/twitch.php | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/account/login/index.php b/account/login/index.php index ace116d..7aef703 100644 --- a/account/login/index.php +++ b/account/login/index.php @@ -1,15 +1,15 @@ <?php -include "../../../src/accounts.php"; +include "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; if (authorize_user()) { header("Location: /account"); exit; } -include "../../../src/partials.php"; -include_once "../../../src/config.php"; -include_once "../../../src/alert.php"; -include_once "../../../src/utils.php"; +include "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (!isset($_POST["username"], $_POST["password"])) { diff --git a/account/login/twitch.php b/account/login/twitch.php index 38fd6cc..23f4ea5 100644 --- a/account/login/twitch.php +++ b/account/login/twitch.php @@ -1,7 +1,7 @@ <?php -include_once "../../../src/config.php"; -include_once "../../../src/utils.php"; -include_once "../../../src/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; if (!TWITCH_REGISTRATION_ENABLE) { generate_alert("/404.php", "Registration via Twitch is disabled", 405); |
