- config_loader.php: prefer local billing config FIRST (root cause fix) - was: panel config loaded first, overriding local config with wrong db name - now: local modules/billing/includes/config.inc.php always wins when present - config.inc.php: add $db_port="3306" - config.example.php: new example config with all variables documented - menu.php: add $db_port to mysqli_connect - admin_auth.php: add $db_port; remove hardcoded /_website path detection - bootstrap.php billing_get_db(): add $db_port - login.php: fix /_website path detection - adminserverlist.php: add $db_port; fix hardcoded /modules/billing/ URL - All other mysqli_connect calls: add isset($db_port) port parameter (my_servers, forgot_password, serverlist, server_status, order, register, reset_password, payment_success, my_account, admin_invoices, admin_payments, diag_remote, admin_coupons, test_db_connection, tools/check_db_user, renew_server) - timestamp.txt: updated Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/a3e1e4bb-8eb1-4e6e-b1f8-7f3952301231 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
39 lines
1.6 KiB
PHP
39 lines
1.6 KiB
PHP
<?php
|
|
###############################################
|
|
# Website Database Configuration
|
|
# This file contains the database connection
|
|
# settings for the _website standalone site.
|
|
#
|
|
# These settings should match the panel's
|
|
# database configuration in includes/config.inc.php
|
|
###############################################
|
|
$db_host="localhost";
|
|
$db_port="3306";
|
|
$db_user="localuser";
|
|
$db_pass="Pkloyn7yvpht!";
|
|
$db_name="panel";
|
|
$table_prefix="gsp_";
|
|
$db_type="mysql";
|
|
// Optional: base URL used by admin pages to build absolute image previews.
|
|
// Leave empty to prefer relative paths (local folder).
|
|
// To enable production base URL, uncomment and set it to your site, e.g.:
|
|
// $SITE_BASE_URL = 'https://gameservers.world/';
|
|
$SITE_BASE_URL = '';
|
|
|
|
// Normalize: ensure either empty or ends without trailing slash (we use join_base to handle joining)
|
|
$SITE_BASE_URL = trim((string)$SITE_BASE_URL);
|
|
|
|
// Site-wide background image (relative to site root). Change to your preferred background.
|
|
$SITE_BACKGROUND = 'images/dark.jpg';
|
|
// Normalize
|
|
$SITE_BACKGROUND = trim((string)$SITE_BACKGROUND);
|
|
|
|
// Data directory for persisted payment webhook JSON files (relative to repo root)
|
|
$SITE_DATA_DIR = realpath(__DIR__ . '/..') . DIRECTORY_SEPARATOR . 'data';
|
|
|
|
// PayPal configuration — set credentials here, never in API files
|
|
$paypal_sandbox = true; // Set to false for live payments
|
|
$paypal_client_id = ''; // Your PayPal Client ID
|
|
$paypal_client_secret = ''; // Your PayPal Client Secret
|
|
$paypal_webhook_id = ''; // Your PayPal Webhook ID (for webhook signature verification)
|
|
?>
|