added link to RL projects

This commit is contained in:
Frank Harris 2026-06-16 16:28:05 -05:00
parent a49371c3dd
commit bb02be7daa
29 changed files with 325 additions and 36 deletions

View file

@ -16,6 +16,7 @@ ini_set('display_errors', '0');
$websiteConfig = [];
$websiteConfigFiles = [
WEBSITE_CONFIG_DIR . '/pricing.php',
WEBSITE_CONFIG_DIR . '/services.php',
WEBSITE_CONFIG_DIR . '/config.php',
WEBSITE_CONFIG_DIR . '/config.local.php',
];
@ -40,6 +41,14 @@ $websiteDefaults = [
'billing_base_url' => '/billing',
'panel_url' => 'https://panel.iaregamer.com/',
'login_url' => 'https://panel.iaregamer.com/',
'company' => [
'name' => 'Runlevel Systems',
'url' => 'https://runlevelsystems.com/',
'copyright' => "\u{00A9} 2026 Runlevel Systems",
],
'services' => [
'project_request_url' => 'https://runlevelsystems.com/start-project.php',
],
'discord_url' => null,
'support_url' => null,
'support_email' => null,
@ -445,6 +454,15 @@ function website_fetch_services(int $limit = 0): array
function website_custom_project_url(): string
{
$services = website_config('services', []);
$projectUrl = '';
if (is_array($services)) {
$projectUrl = trim((string)($services['project_request_url'] ?? ''));
}
if ($projectUrl !== '') {
return $projectUrl;
}
$supportUrl = trim((string)website_config('support_url', ''));
if ($supportUrl !== '') {
return $supportUrl;