Refactor file inclusions: Updated paths in multiple PHP files to use absolute paths for including functions and configuration files, enhancing consistency and preventing potential path issues.

This commit is contained in:
𝓜𝓪𝓬𝓮™
2026-04-02 13:30:16 +02:00
parent 30dba2f43d
commit cd16f98a83
14 changed files with 25 additions and 25 deletions

View File

@@ -8,9 +8,9 @@ Die Website wurde umstrukturiert, um Header und Footer in zentralen Dateien zu s
### Zentrale Dateien ### Zentrale Dateien
- `includes/header.php` - Enthält den HTML-Header mit Navigation - `/includes/header.php` - Enthält den HTML-Header mit Navigation
- `includes/footer.php` - Enthält den HTML-Footer mit Links und Copyright - `/includes/footer.php` - Enthält den HTML-Footer mit Links und Copyright
- `includes/functions.php` - Helper-Funktionen für die Website - `/includes/functions.php` - Helper-Funktionen für die Website
### Konvertierte Seiten ### Konvertierte Seiten
@@ -30,7 +30,7 @@ Die Website wurde umstrukturiert, um Header und Footer in zentralen Dateien zu s
```php ```php
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
// Page configuration // Page configuration
$page_title = 'Seitentitel - HexaHost.de'; $page_title = 'Seitentitel - HexaHost.de';
@@ -99,7 +99,7 @@ generateBreadcrumbs([
### Nachher (PHP) ### Nachher (PHP)
```php ```php
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
includeHeader('Seitentitel', 'Beschreibung', 'seitenname'); includeHeader('Seitentitel', 'Beschreibung', 'seitenname');
?> ?>
<main> <main>
@@ -117,9 +117,9 @@ includeHeader('Seitentitel', 'Beschreibung', 'seitenname');
## Dateien ## Dateien
- `includes/header.php` - Zentrale Header-Datei - `/includes/header.php` - Zentrale Header-Datei
- `includes/footer.php` - Zentrale Footer-Datei - `/includes/footer.php` - Zentrale Footer-Datei
- `includes/functions.php` - Helper-Funktionen - `/includes/functions.php` - Helper-Funktionen
- `index.php` - Startseite (PHP-Version) - `index.php` - Startseite (PHP-Version)
- `contact.php` - Kontaktseite (PHP-Version) - `contact.php` - Kontaktseite (PHP-Version)
- `vpc.php` - Virtual Private Container (PHP-Version) - `vpc.php` - Virtual Private Container (PHP-Version)

View File

@@ -1,5 +1,5 @@
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
// Page configuration // Page configuration
$page_title = '404 - Seite nicht gefunden | HexaHost.de'; $page_title = '404 - Seite nicht gefunden | HexaHost.de';

View File

@@ -1,5 +1,5 @@
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
// Page configuration // Page configuration
$page_title = '500 - Serverfehler | HexaHost.de'; $page_title = '500 - Serverfehler | HexaHost.de';

View File

@@ -1,5 +1,5 @@
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
// Page configuration // Page configuration
$page_title = 'Über uns - HexaHost.de | Hosting aus Niederbayern'; $page_title = 'Über uns - HexaHost.de | Hosting aus Niederbayern';

View File

@@ -1,5 +1,5 @@
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
// Page configuration // Page configuration
$page_title = 'Allgemeine Geschäftsbedingungen - HexaHost.de | AGB'; $page_title = 'Allgemeine Geschäftsbedingungen - HexaHost.de | AGB';

View File

@@ -1,5 +1,5 @@
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
// Page configuration // Page configuration
$page_title = 'Kontakt - HexaHost.de | Hosting aus Niederbayern'; $page_title = 'Kontakt - HexaHost.de | Hosting aus Niederbayern';

View File

@@ -1,5 +1,5 @@
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
// Page configuration // Page configuration
$page_title = 'Datenschutzerklärung - HexaHost.de | Datenschutz'; $page_title = 'Datenschutzerklärung - HexaHost.de | Datenschutz';

View File

@@ -1,5 +1,5 @@
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
// Page configuration // Page configuration
$page_title = 'Impressum - HexaHost.de | Rechtliche Angaben'; $page_title = 'Impressum - HexaHost.de | Rechtliche Angaben';

View File

@@ -1,5 +1,5 @@
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
// Page configuration // Page configuration
$page_title = 'HexaHost.de - Zuverlässiges Hosting aus Niederbayern'; $page_title = 'HexaHost.de - Zuverlässiges Hosting aus Niederbayern';

View File

@@ -1,6 +1,6 @@
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
require_once 'config/products-config.php'; require_once __DIR__ . '/../../config/products-config.php';
// Produkt-Daten aus Config laden // Produkt-Daten aus Config laden
$product = getProduct('mail-gateway'); $product = getProduct('mail-gateway');

View File

@@ -1,6 +1,6 @@
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
require_once 'config/products-config.php'; require_once __DIR__ . '/../../config/products-config.php';
// Produkt-Daten aus Config laden // Produkt-Daten aus Config laden
$product = getProduct('vpc'); $product = getProduct('vpc');

View File

@@ -1,6 +1,6 @@
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
require_once 'config/products-config.php'; require_once __DIR__ . '/../../config/products-config.php';
// Produkt-Daten aus Config laden // Produkt-Daten aus Config laden
$product = getProduct('vps'); $product = getProduct('vps');

View File

@@ -1,6 +1,6 @@
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
require_once 'config/products-config.php'; require_once __DIR__ . '/../../config/products-config.php';
// Produkt-Daten aus Config laden // Produkt-Daten aus Config laden
$product = getProduct('webhosting'); $product = getProduct('webhosting');

View File

@@ -1,5 +1,5 @@
<?php <?php
require_once 'includes/functions.php'; require_once __DIR__ . '/../../includes/functions.php';
// Page configuration // Page configuration
$page_title = 'Widerrufsbelehrung - HexaHost.de'; $page_title = 'Widerrufsbelehrung - HexaHost.de';