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 /emotes/upload.php | |
| parent | 57472eab3c7b035392c6a5aa240593ecaa7d1ccf (diff) | |
upd: include paths
Diffstat (limited to 'emotes/upload.php')
| -rw-r--r-- | emotes/upload.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/emotes/upload.php b/emotes/upload.php index 644e4b6..01ae1ee 100644 --- a/emotes/upload.php +++ b/emotes/upload.php @@ -1,8 +1,8 @@ <?php -include "../../src/accounts.php"; -include_once "../../src/config.php"; -include_once "../../src/alert.php"; -include_once "../../src/captcha.php"; +include "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/captcha.php"; if (!EMOTE_UPLOAD) { generate_alert("/404.php", "Emote upload is disabled", 403); @@ -36,14 +36,14 @@ function abort_upload(string $path, PDO $db, string $id) rmdir($path); } -include "../../src/utils.php"; -include "../../src/images.php"; +include "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; +include "{$_SERVER['DOCUMENT_ROOT']}/lib/images.php"; $max_width = EMOTE_MAX_SIZE[0]; $max_height = EMOTE_MAX_SIZE[1]; if ($_SERVER['REQUEST_METHOD'] != "POST") { - include "../../src/partials.php"; + include "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; echo '' ?> <html> |
