59 lines
1.4 KiB
Markdown
59 lines
1.4 KiB
Markdown
# Website
|
|
|
|
Workspace reference: [`GSP-WORKSPACE.md`](../../../GSP-WORKSPACE.md)
|
|
|
|
## Purpose
|
|
|
|
Public Gameservers.World sales, documentation, and customer-entry website.
|
|
|
|
## Runtime Location
|
|
|
|
- Canonical public site: `Panel/modules/website/`
|
|
- Billing catalog and order flow: `Panel/modules/billing/`
|
|
- Legacy compatibility site: `Website/`
|
|
|
|
## Design Rules
|
|
|
|
- Public pages must load without fatal errors when billing config is missing
|
|
- Path and URL handling must be centralized
|
|
- Panel and login URLs must be configuration-driven
|
|
- Documentation must be readable without depending on billing database access
|
|
- Catalog pages may degrade gracefully when billing data is unavailable
|
|
|
|
## Helpers
|
|
|
|
The website module centralizes these helpers in `includes/bootstrap.php`:
|
|
|
|
- `website_url()`
|
|
- `website_asset()`
|
|
- `panel_url()`
|
|
- `login_url()`
|
|
- `billing_url()`
|
|
- `documentation_url()`
|
|
|
|
## Billing Interaction
|
|
|
|
The website does not include the billing config loader directly. It reads panel or billing DB values safely, uses them only when needed, and avoids public fatal errors tied to missing config files.
|
|
|
|
## Deployment
|
|
|
|
Recommended:
|
|
|
|
1. `DocumentRoot` -> `Panel/modules/website`
|
|
2. Apache `Alias /billing` -> `Panel/modules/billing`
|
|
3. Configure:
|
|
- `public_base_url`
|
|
- `billing_base_url`
|
|
- `panel_url`
|
|
- `login_url`
|
|
|
|
## Key Public Pages
|
|
|
|
- `index.php`
|
|
- `serverlist.php`
|
|
- `docs.php`
|
|
- `pricing.php`
|
|
- `locations.php`
|
|
- `support.php`
|
|
- `login.php`
|
|
|