diff options
Diffstat (limited to 'lib/accounts.php')
| -rw-r--r-- | lib/accounts.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/accounts.php b/lib/accounts.php index 2ddb796..36f11af 100644 --- a/lib/accounts.php +++ b/lib/accounts.php @@ -1,5 +1,5 @@ <?php -include_once "config.php"; +include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php"; function authorize_user(bool $required = false): bool { @@ -26,8 +26,6 @@ function authorize_user(bool $required = false): bool return false; } - include_once "config.php"; - $db = new PDO(CONFIG['database']['url'], CONFIG['database']['user'], CONFIG['database']['pass']); $key = $_SERVER["HTTP_AUTHORIZATION"] ?? $_COOKIE["secret_key"]; |
