New raids.php shows upcoming raids (date, requirements, gearscore, groups and their signups) pulled from https://api.maaxxs-coding.de/api/raids via includes/raids_api.php (cURL + X-API-Key header), gated behind a new raids.view permission so it fits the existing permission-group model. Fresh installs seed raids.view onto Mitglied automatically; existing installs need to add it once via the Berechtigungsgruppen UI (documented in the README). API/network failures show a friendly error instead of crashing the page. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
20 lines
554 B
PHP
20 lines
554 B
PHP
<?php
|
|
// Kopiere diese Datei zu "config.php" und trage deine echten Zugangsdaten ein.
|
|
// config.php sollte NICHT ins Git-Repository oder öffentlich hochgeladen werden.
|
|
|
|
return [
|
|
'db' => [
|
|
'host' => 'localhost',
|
|
'name' => 'datenbankname',
|
|
'user' => 'datenbankbenutzer',
|
|
'pass' => 'datenbankpasswort',
|
|
'charset' => 'utf8mb4',
|
|
],
|
|
'app' => [
|
|
'name' => 'Aion2 Gilde',
|
|
],
|
|
'raids_api' => [
|
|
'url' => 'https://api.maaxxs-coding.de/api/raids',
|
|
'key' => 'dein-api-key',
|
|
],
|
|
];
|