diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-11 01:20:50 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-11 01:20:50 +0500 |
| commit | 63d9bc6496c3017142eb2cdf1e8834c5843702f4 (patch) | |
| tree | fe54669ca3eefd1636e3d7c0d506c06148e4a4c6 /emotes/upload.php | |
| parent | c79bb71e7694d4674c28a7e1192dd644e41fbfdb (diff) | |
fix: use include_once instead of include
Diffstat (limited to 'emotes/upload.php')
| -rw-r--r-- | emotes/upload.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/emotes/upload.php b/emotes/upload.php index 3c43b48..0efc9c6 100644 --- a/emotes/upload.php +++ b/emotes/upload.php @@ -1,5 +1,5 @@ <?php -include "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_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"; @@ -39,14 +39,14 @@ function abort_upload(string $path, PDO $db, string $id) rmdir($path); } -include "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; -include "{$_SERVER['DOCUMENT_ROOT']}/lib/images.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/images.php"; $max_width = CONFIG['emote']['maxsizex']; $max_height = CONFIG['emote']['maxsizey']; if ($_SERVER['REQUEST_METHOD'] != "POST") { - include "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; + include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; echo '' ?> <html> |
