Panel/modules/billing/includes
copilot-swe-agent[bot] d7e9b54763 Fix hardcoded ogp_users table reference in menu.php
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2025-11-07 11:54:19 +00:00
..
admin_auth.php removed all hardcoded table prefixes 2025-11-05 13:33:45 -05:00
cart_helper.php Website is completed working, moved into billing module 2025-10-23 18:19:06 -04:00
config.inc.php Update table prefix from ogp_ to gsp_ in SQL files and config 2025-11-07 10:48:01 +00:00
config.inc.php.orig Changes to be committed: 2025-10-23 19:25:29 -04:00
footer.php style fixes 2025-10-23 19:44:24 -04:00
log.php Website is completed working, moved into billing module 2025-10-23 18:19:06 -04:00
login_required.php Website is completed working, moved into billing module 2025-10-23 18:19:06 -04:00
menu.php Fix hardcoded ogp_users table reference in menu.php 2025-11-07 11:54:19 +00:00
payment_processor.php some fixes 2025-10-28 23:06:45 -04:00
README.md Website is completed working, moved into billing module 2025-10-23 18:19:06 -04:00
top.php Website is completed working, moved into billing module 2025-10-23 18:19:06 -04: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.