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:
@@ -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)
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user