summaryrefslogtreecommitdiff
path: root/emotes/upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'emotes/upload.php')
-rw-r--r--emotes/upload.php14
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>