diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-11 01:20:50 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-11 01:20:50 +0500 |
| commit | 63d9bc6496c3017142eb2cdf1e8834c5843702f4 (patch) | |
| tree | fe54669ca3eefd1636e3d7c0d506c06148e4a4c6 /account | |
| parent | c79bb71e7694d4674c28a7e1192dd644e41fbfdb (diff) | |
fix: use include_once instead of include
Diffstat (limited to 'account')
| -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 |
4 files changed, 7 insertions, 7 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"; |
