summaryrefslogtreecommitdiff
path: root/emotes
diff options
context:
space:
mode:
Diffstat (limited to 'emotes')
-rw-r--r--emotes/index.php10
-rw-r--r--emotes/reupload.php2
-rw-r--r--emotes/setmanip.php4
-rw-r--r--emotes/upload.php8
4 files changed, 12 insertions, 12 deletions
diff --git a/emotes/index.php b/emotes/index.php
index aae7683..bcbb608 100644
--- a/emotes/index.php
+++ b/emotes/index.php
@@ -1,10 +1,10 @@
<?php
-include "{$_SERVER['DOCUMENT_ROOT']}/lib/emote.php";
-include "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php";
+include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/emote.php";
+include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php";
include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php";
-include "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php";
-include "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php";
-include "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php";
+include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php";
+include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php";
+include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php";
authorize_user();
diff --git a/emotes/reupload.php b/emotes/reupload.php
index b6598f9..2928893 100644
--- a/emotes/reupload.php
+++ b/emotes/reupload.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/partials.php";
diff --git a/emotes/setmanip.php b/emotes/setmanip.php
index d6a5f4f..c99bbff 100644
--- a/emotes/setmanip.php
+++ b/emotes/setmanip.php
@@ -1,7 +1,7 @@
<?php
include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php";
-include "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php";
-include "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php";
+include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php";
+include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php";
include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php";
if (!authorize_user(true)) {
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>