Add My Account page with menu integration and config file
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
9b36ff2051
commit
40c575f025
5 changed files with 534 additions and 0 deletions
35
modules/billing/includes/config.inc.php
Normal file
35
modules/billing/includes/config.inc.php
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
###############################################
|
||||
# Website Database Configuration
|
||||
# This file contains the database connection
|
||||
# settings for the modules/billing website.
|
||||
#
|
||||
# These settings should match the panel's
|
||||
# database configuration in /includes/config.inc.php
|
||||
# to ensure both the website and panel access
|
||||
# the same database.
|
||||
###############################################
|
||||
$db_host="localhost";
|
||||
$db_user="localuser";
|
||||
$db_pass="Pkloyn7yvpht!";
|
||||
$db_name="panel";
|
||||
$table_prefix="ogp_";
|
||||
$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
|
||||
$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 module root)
|
||||
$SITE_DATA_DIR = realpath(__DIR__ . '/..') . DIRECTORY_SEPARATOR . 'data';
|
||||
?>
|
||||
|
|
@ -90,6 +90,7 @@ if ($is_logged_in) {
|
|||
<a href="index.php" class="gsw-nav-link">Home</a>
|
||||
<a href="serverlist.php" class="gsw-nav-link">Game Servers</a>
|
||||
<?php if ($is_logged_in): ?>
|
||||
<a href="my_account.php" class="gsw-nav-link gsw-nav-link-myaccount">My Account</a>
|
||||
<a href="my_servers.php" class="gsw-nav-link">My Servers</a>
|
||||
<a href="cart.php" class="gsw-nav-link">Cart
|
||||
<?php
|
||||
|
|
@ -101,6 +102,8 @@ if ($is_logged_in) {
|
|||
if ($cart_count > 0) echo ' <span class="cart-badge">' . intval($cart_count) . '</span>';
|
||||
?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="login.php" class="gsw-nav-link gsw-nav-link-myaccount">Login</a>
|
||||
<?php endif; ?>
|
||||
<?php if (basename($_SERVER['PHP_SELF']) === 'login.php'): ?>
|
||||
<a href="register.php" class="gsw-nav-link">Register</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue