diff options
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> |
