Panel/Panel/modules/billing/includes
copilot-swe-agent[bot] 176f532737
feat: relocate billing runtime to module and harden updater panel pathing
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/50299e05-4ee0-4b5b-80e4-bc5f872c106e

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-18 13:46:11 +00:00
..
admin_auth.php feat: relocate billing runtime to module and harden updater panel pathing 2026-05-18 13:46:11 +00:00
cart_helper.php feat: relocate billing runtime to module and harden updater panel pathing 2026-05-18 13:46:11 +00:00
config.example.php feat: relocate billing runtime to module and harden updater panel pathing 2026-05-18 13:46:11 +00:00
config_loader.php feat: relocate billing runtime to module and harden updater panel pathing 2026-05-18 13:46:11 +00:00
footer.php feat: relocate billing runtime to module and harden updater panel pathing 2026-05-18 13:46:11 +00:00
log.php feat: relocate billing runtime to module and harden updater panel pathing 2026-05-18 13:46:11 +00:00
login_required.php feat: relocate billing runtime to module and harden updater panel pathing 2026-05-18 13:46:11 +00:00
menu.php feat: relocate billing runtime to module and harden updater panel pathing 2026-05-18 13:46:11 +00:00
panel_bridge.php feat: relocate billing runtime to module and harden updater panel pathing 2026-05-18 13:46:11 +00:00
payment_processor.php feat: relocate billing runtime to module and harden updater panel pathing 2026-05-18 13:46:11 +00:00
README.md feat: relocate billing runtime to module and harden updater panel pathing 2026-05-18 13:46:11 +00:00
session_bridge.php feat: relocate billing runtime to module and harden updater panel pathing 2026-05-18 13:46:11 +00:00
top.php feat: relocate billing runtime to module and harden updater panel pathing 2026-05-18 13:46:11 +00:00

Website Includes Directory

This directory contains configuration and shared files for the standalone _website folder.

config.inc.php

Central database configuration file for the website. This file contains the database connection settings that are used by all website PHP files through the db.php file.

Important: The values in this file should match the panel's database configuration in /includes/config.inc.php to ensure the website can access the same database as the panel.

Configuration Variables

  • $db_host - Database server hostname
  • $db_user - Database username
  • $db_pass - Database password
  • $db_name - Database name
  • $table_prefix - Table prefix (default: "ogp_")
  • $db_type - Database type (default: "mysql")

Usage

The website files include db.php, which in turn loads this configuration file:

require_once('db.php');  // db.php loads includes/config.inc.php

This centralizes database credentials in one place, making the website easier to configure and maintain as a standalone site.