diff options
| -rw-r--r-- | account/delete.php | 2 | ||||
| -rw-r--r-- | account/index.php | 4 | ||||
| -rw-r--r-- | account/login/index.php | 4 | ||||
| -rw-r--r-- | account/register.php | 4 | ||||
| -rw-r--r-- | emotes/index.php | 10 | ||||
| -rw-r--r-- | emotes/reupload.php | 2 | ||||
| -rw-r--r-- | emotes/setmanip.php | 4 | ||||
| -rw-r--r-- | emotes/upload.php | 8 | ||||
| -rw-r--r-- | emotesets/addeditor.php | 4 | ||||
| -rw-r--r-- | emotesets/deleditor.php | 4 |
10 files changed, 23 insertions, 23 deletions
diff --git a/account/delete.php b/account/delete.php index 0a0bbb6..9301f19 100644 --- a/account/delete.php +++ b/account/delete.php @@ -1,5 +1,5 @@ <?php -include "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; session_start(); diff --git a/account/index.php b/account/index.php index 86bf659..bdded6e 100644 --- a/account/index.php +++ b/account/index.php @@ -1,7 +1,7 @@ <?php include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; -include "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; -include "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/images.php"; diff --git a/account/login/index.php b/account/login/index.php index fd0d386..54a6681 100644 --- a/account/login/index.php +++ b/account/login/index.php @@ -1,12 +1,12 @@ <?php -include "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; if (authorize_user() && !CLIENT_REQUIRES_JSON) { header("Location: /account"); exit; } -include "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; diff --git a/account/register.php b/account/register.php index 292684d..49fca27 100644 --- a/account/register.php +++ b/account/register.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/alert.php"; if (authorize_user()) { @@ -12,7 +12,7 @@ if (!CONFIG['account']['registration']) { exit; } -include "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; 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> diff --git a/emotesets/addeditor.php b/emotesets/addeditor.php index 08d1e41..0080276 100644 --- a/emotesets/addeditor.php +++ b/emotesets/addeditor.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/emotesets/deleditor.php b/emotesets/deleditor.php index 0476f37..0ff44a1 100644 --- a/emotesets/deleditor.php +++ b/emotesets/deleditor.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)) { |
