getSettings(); $context = [ 'db' => $panelDb, 'settings' => is_array($settings) ? $settings : [], 'table_prefix' => $table_prefix, ]; return $context; } } if (!function_exists('billing_get_panel_db')) { /** * Convenience wrapper to fetch the shared OGPDatabase handle. * * @return OGPDatabase|null */ function billing_get_panel_db() { $ctx = billing_panel_bootstrap(); return $ctx['db'] ?? null; } } if (!function_exists('billing_get_panel_settings')) { /** * Convenience wrapper to fetch panel settings (time zone, steam creds, etc.). * * @return array */ function billing_get_panel_settings() { $ctx = billing_panel_bootstrap(); return $ctx['settings'] ?? []; } }