diff options
| -rw-r--r-- | 404.php | 8 | ||||
| -rw-r--r-- | account/change_emoteset.php | 6 | ||||
| -rw-r--r-- | account/delete.php | 4 | ||||
| -rw-r--r-- | account/index.php | 12 | ||||
| -rw-r--r-- | account/login/index.php | 10 | ||||
| -rw-r--r-- | account/login/twitch.php | 6 | ||||
| -rw-r--r-- | account/register.php | 10 | ||||
| -rw-r--r-- | account/security.php | 8 | ||||
| -rw-r--r-- | badges.php | 6 | ||||
| -rw-r--r-- | captcha.php | 8 | ||||
| -rw-r--r-- | emotes/delete.php | 6 | ||||
| -rw-r--r-- | emotes/index.php | 12 | ||||
| -rw-r--r-- | emotes/rate.php | 8 | ||||
| -rw-r--r-- | emotes/setmanip.php | 8 | ||||
| -rw-r--r-- | emotes/upload.php | 14 | ||||
| -rw-r--r-- | emotesets.php | 12 | ||||
| -rw-r--r-- | inbox.php | 8 | ||||
| -rw-r--r-- | index.php | 6 | ||||
| -rw-r--r-- | lib/accounts.php (renamed from src/accounts.php) | 0 | ||||
| -rw-r--r-- | lib/alert.php (renamed from src/alert.php) | 0 | ||||
| -rw-r--r-- | lib/captcha.php (renamed from src/captcha.php) | 0 | ||||
| -rw-r--r-- | lib/config.sample.php (renamed from src/config.sample.php) | 0 | ||||
| -rw-r--r-- | lib/emote.php (renamed from src/emote.php) | 0 | ||||
| -rw-r--r-- | lib/images.php (renamed from src/images.php) | 0 | ||||
| -rw-r--r-- | lib/partials.php (renamed from src/partials.php) | 0 | ||||
| -rw-r--r-- | lib/user.php (renamed from src/user.php) | 0 | ||||
| -rw-r--r-- | lib/utils.php (renamed from src/utils.php) | 0 | ||||
| -rw-r--r-- | lib/version.php (renamed from src/version.php) | 4 | ||||
| -rw-r--r-- | report/index.php | 10 | ||||
| -rw-r--r-- | report/list.php | 10 | ||||
| -rw-r--r-- | report/send.php | 8 | ||||
| -rw-r--r-- | rules.php | 6 | ||||
| -rw-r--r-- | software.php | 4 | ||||
| -rw-r--r-- | system/emotes/index.php | 10 | ||||
| -rw-r--r-- | system/emotes/verdict.php | 8 | ||||
| -rw-r--r-- | system/index.php | 8 | ||||
| -rw-r--r-- | users.php | 14 |
37 files changed, 117 insertions, 117 deletions
@@ -1,8 +1,8 @@ <?php -include_once "../src/config.php"; -include_once "../src/utils.php"; -include_once "../src/partials.php"; -include_once "../src/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; authorize_user(); diff --git a/account/change_emoteset.php b/account/change_emoteset.php index c2fc209..2452b23 100644 --- a/account/change_emoteset.php +++ b/account/change_emoteset.php @@ -1,7 +1,7 @@ <?php -include_once "../../src/config.php"; -include_once "../../src/alert.php"; -include_once "../../src/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; if (!authorize_user(true)) { generate_alert("/404.php", "Unauthorized", 401); diff --git a/account/delete.php b/account/delete.php index ec8c040..34570a9 100644 --- a/account/delete.php +++ b/account/delete.php @@ -1,6 +1,6 @@ <?php -include "../../src/utils.php"; -include_once "../../src/config.php"; +include "{$_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 2b9e790..665087a 100644 --- a/account/index.php +++ b/account/index.php @@ -1,10 +1,10 @@ <?php -include_once "../../src/alert.php"; -include "../../src/accounts.php"; -include "../../src/partials.php"; -include_once "../../src/config.php"; -include_once "../../src/utils.php"; -include_once "../../src/images.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/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/images.php"; authorize_user(); diff --git a/account/login/index.php b/account/login/index.php index ace116d..7aef703 100644 --- a/account/login/index.php +++ b/account/login/index.php @@ -1,15 +1,15 @@ <?php -include "../../../src/accounts.php"; +include "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; if (authorize_user()) { header("Location: /account"); exit; } -include "../../../src/partials.php"; -include_once "../../../src/config.php"; -include_once "../../../src/alert.php"; -include_once "../../../src/utils.php"; +include "{$_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"; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (!isset($_POST["username"], $_POST["password"])) { diff --git a/account/login/twitch.php b/account/login/twitch.php index 38fd6cc..23f4ea5 100644 --- a/account/login/twitch.php +++ b/account/login/twitch.php @@ -1,7 +1,7 @@ <?php -include_once "../../../src/config.php"; -include_once "../../../src/utils.php"; -include_once "../../../src/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; if (!TWITCH_REGISTRATION_ENABLE) { generate_alert("/404.php", "Registration via Twitch is disabled", 405); diff --git a/account/register.php b/account/register.php index 1da89a0..76dc27c 100644 --- a/account/register.php +++ b/account/register.php @@ -1,6 +1,6 @@ <?php -include "../../src/accounts.php"; -include_once "../../src/alert.php"; +include "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; if (authorize_user()) { header("Location: /account"); @@ -12,9 +12,9 @@ if (!ACCOUNT_REGISTRATION_ENABLE) { exit; } -include "../../src/partials.php"; -include_once "../../src/config.php"; -include_once "../../src/utils.php"; +include "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (!isset($_POST["username"], $_POST["password"])) { diff --git a/account/security.php b/account/security.php index 5545b60..a0210b5 100644 --- a/account/security.php +++ b/account/security.php @@ -1,9 +1,9 @@ <?php -include_once "../../src/accounts.php"; -include_once "../../src/alert.php"; -include_once "../../src/config.php"; -include_once "../../src/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; if ($_SERVER["REQUEST_METHOD"] != "POST" || !authorize_user(true)) { header("Location: /account"); @@ -1,7 +1,7 @@ <?php -include_once "../src/utils.php"; -include_once "../src/config.php"; -include_once "../src/user.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/user.php"; $db = new PDO(DB_URL, DB_USER, DB_PASS); diff --git a/captcha.php b/captcha.php index b454b7d..0b85bf8 100644 --- a/captcha.php +++ b/captcha.php @@ -1,8 +1,8 @@ <?php -include_once "../src/config.php"; -include_once "../src/alert.php"; -include_once "../src/captcha.php"; -include_once "../src/utils.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"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; session_start(); diff --git a/emotes/delete.php b/emotes/delete.php index 6252e45..159e293 100644 --- a/emotes/delete.php +++ b/emotes/delete.php @@ -1,7 +1,7 @@ <?php -include_once "../../src/alert.php"; -include_once "../../src/config.php"; -include_once "../../src/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; if (!authorize_user(true)) { generate_alert("/account", "Not authorized", 403); diff --git a/emotes/index.php b/emotes/index.php index af14120..80a8c1d 100644 --- a/emotes/index.php +++ b/emotes/index.php @@ -1,10 +1,10 @@ <?php -include "../../src/emote.php"; -include "../../src/accounts.php"; -include_once "../../src/config.php"; -include "../../src/partials.php"; -include "../../src/utils.php"; -include "../../src/alert.php"; +include "{$_SERVER['DOCUMENT_ROOT']}/lib/emote.php"; +include "{$_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"; authorize_user(); diff --git a/emotes/rate.php b/emotes/rate.php index 1e8eb67..fbea404 100644 --- a/emotes/rate.php +++ b/emotes/rate.php @@ -1,8 +1,8 @@ <?php -include_once "../../src/alert.php"; -include_once "../../src/utils.php"; -include_once "../../src/config.php"; -include_once "../../src/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; if (!RATING_ENABLE) { generate_alert("/404.php", "Emote ratings are disabled", 403); diff --git a/emotes/setmanip.php b/emotes/setmanip.php index 129790d..cf8add6 100644 --- a/emotes/setmanip.php +++ b/emotes/setmanip.php @@ -1,8 +1,8 @@ <?php -include_once "../../src/config.php"; -include "../../src/accounts.php"; -include "../../src/alert.php"; -include_once "../../src/utils.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/utils.php"; if (!authorize_user(true)) { return; 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> diff --git a/emotesets.php b/emotesets.php index 635f4c4..9d2fa07 100644 --- a/emotesets.php +++ b/emotesets.php @@ -1,10 +1,10 @@ <?php -include_once "../src/utils.php"; -include_once "../src/config.php"; -include_once "../src/accounts.php"; -include_once "../src/partials.php"; -include_once "../src/alert.php"; -include_once "../src/emote.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/emote.php"; authorize_user(); @@ -1,8 +1,8 @@ <?php -include_once "../src/accounts.php"; -include_once "../src/config.php"; -include_once "../src/partials.php"; -include_once "../src/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; if (!authorize_user(true)) { exit; @@ -1,7 +1,7 @@ <?php -include_once "../src/config.php"; -include_once "../src/accounts.php"; -include_once "../src/version.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/version.php"; authorize_user(); diff --git a/src/accounts.php b/lib/accounts.php index 51cb3f6..51cb3f6 100644 --- a/src/accounts.php +++ b/lib/accounts.php diff --git a/src/alert.php b/lib/alert.php index 823a97a..823a97a 100644 --- a/src/alert.php +++ b/lib/alert.php diff --git a/src/captcha.php b/lib/captcha.php index d6d2547..d6d2547 100644 --- a/src/captcha.php +++ b/lib/captcha.php diff --git a/src/config.sample.php b/lib/config.sample.php index 3d30044..3d30044 100644 --- a/src/config.sample.php +++ b/lib/config.sample.php diff --git a/src/emote.php b/lib/emote.php index ce39c09..ce39c09 100644 --- a/src/emote.php +++ b/lib/emote.php diff --git a/src/images.php b/lib/images.php index 9ec0301..9ec0301 100644 --- a/src/images.php +++ b/lib/images.php diff --git a/src/partials.php b/lib/partials.php index 760923a..760923a 100644 --- a/src/partials.php +++ b/lib/partials.php diff --git a/src/user.php b/lib/user.php index d22eeb4..d22eeb4 100644 --- a/src/user.php +++ b/lib/user.php diff --git a/src/utils.php b/lib/utils.php index 87d96c6..87d96c6 100644 --- a/src/utils.php +++ b/lib/utils.php diff --git a/src/version.php b/lib/version.php index 8c0545a..d666783 100644 --- a/src/version.php +++ b/lib/version.php @@ -2,9 +2,9 @@ // please leave it as it is ;) define("TINYEMOTES_NAME", "TinyEmotes"); define("TINYEMOTES_VERSION", "0.3.1"); -define("TINYEMOTES_LINK", "https://github.com/ilotterytea/tinyemotes"); +define("TINYEMOTES_LINK", "https://git.ilt.su/tiny/emotes.git"); -if ($s = file_get_contents("../.git/refs/heads/master")) { +if ($s = file_get_contents("{$_SERVER['DOCUMENT_ROOT']}/.git/refs/heads/master")) { define("TINYEMOTES_COMMIT", $s); } else { define("TINYEMOTES_COMMIT", null); diff --git a/report/index.php b/report/index.php index e5014c4..7b1b259 100644 --- a/report/index.php +++ b/report/index.php @@ -1,9 +1,9 @@ <?php -include_once "../../src/accounts.php"; -include_once "../../src/config.php"; -include_once "../../src/partials.php"; -include_once "../../src/utils.php"; -include_once "../../src/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.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"; if (!REPORTS_ENABLE) { generate_alert("/404.php", "Reports are disabled", 403); diff --git a/report/list.php b/report/list.php index f02731a..71c233e 100644 --- a/report/list.php +++ b/report/list.php @@ -1,9 +1,9 @@ <?php -include_once "../../src/accounts.php"; -include_once "../../src/config.php"; -include_once "../../src/partials.php"; -include_once "../../src/utils.php"; -include_once "../../src/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.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"; if (!REPORTS_ENABLE) { generate_alert("/404.php", "Reports are disabled", 403); diff --git a/report/send.php b/report/send.php index ab136e1..fe10ba6 100644 --- a/report/send.php +++ b/report/send.php @@ -1,8 +1,8 @@ <?php -include_once "../../src/accounts.php"; -include_once "../../src/config.php"; -include_once "../../src/utils.php"; -include_once "../../src/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; if (!REPORTS_ENABLE) { generate_alert("/404.php", "Reports are disabled", 403); @@ -1,7 +1,7 @@ <?php -include_once "../src/config.php"; -include_once "../src/partials.php"; -include_once "../src/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; authorize_user(); diff --git a/software.php b/software.php index e45fd86..c1f0a75 100644 --- a/software.php +++ b/software.php @@ -1,6 +1,6 @@ <?php -include_once "../src/config.php"; -include_once "../src/partials.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; $software = [ "Standalone clients" => diff --git a/system/emotes/index.php b/system/emotes/index.php index 2a48408..d172482 100644 --- a/system/emotes/index.php +++ b/system/emotes/index.php @@ -1,9 +1,9 @@ <?php -include_once "../../../src/partials.php"; -include_once "../../../src/accounts.php"; -include_once "../../../src/alert.php"; -include_once "../../../src/config.php"; -include_once "../../../src/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; if (!MOD_EMOTES_APPROVE) { generate_alert("/404.php", "Manual emote approval is disabled", 405); diff --git a/system/emotes/verdict.php b/system/emotes/verdict.php index df2f5ba..07e1300 100644 --- a/system/emotes/verdict.php +++ b/system/emotes/verdict.php @@ -1,8 +1,8 @@ <?php -include_once "../../../src/alert.php"; -include_once "../../../src/accounts.php"; -include_once "../../../src/config.php"; -include_once "../../../src/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; if (!MOD_EMOTES_APPROVE) { generate_alert("/404.php", "Manual emote approval is disabled", 405); diff --git a/system/index.php b/system/index.php index 95b17a5..f5c1677 100644 --- a/system/index.php +++ b/system/index.php @@ -1,8 +1,8 @@ <?php -include_once "../../src/partials.php"; -include_once "../../src/accounts.php"; -include_once "../../src/alert.php"; -include_once "../../src/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; if (!MOD_SYSTEM_DASHBOARD) { generate_alert("/404.php", "System dashboard is disabled", 405); @@ -1,11 +1,11 @@ <?php -include_once "../src/config.php"; -include_once "../src/user.php"; -include_once "../src/partials.php"; -include_once "../src/utils.php"; -include_once "../src/accounts.php"; -include_once "../src/alert.php"; -include_once "../src/emote.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/user.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/utils.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/alert.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/emote.php"; authorize_user(); |
