summaryrefslogtreecommitdiff
path: root/account
diff options
context:
space:
mode:
Diffstat (limited to 'account')
-rw-r--r--account/change_emoteset.php6
-rw-r--r--account/delete.php4
-rw-r--r--account/index.php12
-rw-r--r--account/login/index.php10
-rw-r--r--account/login/twitch.php6
-rw-r--r--account/register.php10
-rw-r--r--account/security.php8
7 files changed, 28 insertions, 28 deletions
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");