$username], 'services')[0]), true)) deny('Service not enabled for this user.'); $id = query('select', 'users', ['username' => $username], 'id')[0]; if (checkPassword($id, $auth_data['password']) !== true) deny('Wrong password.'); echo ' { "status": 1, "username": ' . json_encode($auth_data['username']) . ', "home_dir": "' . CONF['ht']['ht_path'] . '/fs/' . $id . '", "quota_size": ' . ((query('select', 'users', ['id' => $id], 'type')[0] === 'approved') ? CONF['ht']['user_quota_approved'] : CONF['ht']['user_quota_testing']) . ', "permissions": { "/": [ "*" ] } } '; !DEBUG or file_put_contents(ROOT_PATH . '/db/debug.txt', ob_get_contents()); http_response_code(200);