From 03dddf689e17f589576cabee9dd5d8cb1e6e24d5 Mon Sep 17 00:00:00 2001 From: TheOnlyMace <0815cracky@gmail.com> Date: Sat, 17 Jan 2026 00:27:03 +0100 Subject: [PATCH] Refactor product configuration loading in multiple PHP files: Updated contact-handler.php to load mail configuration, and modified mail-gateway.php, vpc.php, vps.php, and webhosting.php to utilize a centralized products-config.php for product data retrieval. Removed hardcoded package details in favor of dynamic rendering for improved maintainability. --- public/contact-handler.php | 2 +- public/mail-gateway.php | 168 ++-------------------------------- public/vpc.php | 182 ++----------------------------------- public/vps.php | 182 ++----------------------------------- public/webhosting.php | 182 ++----------------------------------- 5 files changed, 36 insertions(+), 680 deletions(-) diff --git a/public/contact-handler.php b/public/contact-handler.php index 6cedf8c..ca47f74 100644 --- a/public/contact-handler.php +++ b/public/contact-handler.php @@ -10,7 +10,7 @@ if (session_status() === PHP_SESSION_NONE) { } // Konfiguration laden -require_once 'config/config.php'; +require_once 'config/mail-config.php'; // PHPMailer Autoload (falls via Composer installiert) if (file_exists(__DIR__ . '/vendor/autoload.php')) { diff --git a/public/mail-gateway.php b/public/mail-gateway.php index 7e0170a..c2327db 100644 --- a/public/mail-gateway.php +++ b/public/mail-gateway.php @@ -1,9 +1,14 @@
- -
-
-

Mail Starter

-
- 4,99€ - /Monat -
-
-
-
- Postfächer: - 5 -
-
- Speicher/Postfach: - 5 GB -
-
- Domains: - 1 -
-
- E-Mails/Tag: - 500 -
-
-
-
✓ Spam-Filter
-
✓ Virus-Schutz
-
✓ Webmail
-
✓ IMAP/POP3
-
✓ SSL/TLS Verschlüsselung
-
- Jetzt bestellen -
- - - - - -
-
-

Mail Professional

-
- 29,99€ - /Monat -
-
-
-
- Postfächer: - 100 -
-
- Speicher/Postfach: - 25 GB -
-
- Domains: - 10 -
-
- E-Mails/Tag: - 10.000 -
-
-
-
✓ Spam-Filter (KI-gestützt)
-
✓ Virus-Schutz
-
✓ Webmail
-
✓ IMAP/POP3
-
✓ SSL/TLS Verschlüsselung
-
✓ E-Mail Archivierung (1 Jahr)
-
✓ Kalender & Kontakte
-
✓ ActiveSync für Mobile
-
- Jetzt bestellen -
- - -
-
-

Mail Enterprise

-
- 59,99€ - /Monat -
-
-
-
- Postfächer: - Unbegrenzt -
-
- Speicher/Postfach: - 50 GB -
-
- Domains: - Unbegrenzt -
-
- E-Mails/Tag: - Unbegrenzt -
-
-
-
✓ Spam-Filter (KI-gestützt)
-
✓ Virus-Schutz
-
✓ Webmail
-
✓ IMAP/POP3
-
✓ SSL/TLS Verschlüsselung
-
✓ E-Mail Archivierung (10 Jahre)
-
✓ Kalender & Kontakte
-
✓ ActiveSync für Mobile
-
✓ Dedizierte IP
-
✓ Priority Support
-
- Jetzt bestellen -
+
diff --git a/public/vpc.php b/public/vpc.php index 4e44945..dd117da 100644 --- a/public/vpc.php +++ b/public/vpc.php @@ -1,9 +1,14 @@
- -
-
-

VPC Starter

-
- 4,99€ - /Monat -
-
-
-
- CPU Kerne: - 1 vCore -
-
- RAM: - 1 GB -
-
- SSD Speicher: - 20 GB -
-
- Traffic: - 1 TB -
-
- IPv4 Adressen: - 1 -
-
-
-
✓ Proxmox LXC Container
-
✓ Root-Zugriff
-
✓ SSH-Zugang
-
✓ Backup inklusive
-
✓ 24/7 Monitoring
-
- Jetzt bestellen -
- - - - - -
-
-

VPC Professional

-
- 19,99€ - /Monat -
-
-
-
- CPU Kerne: - 4 vCores -
-
- RAM: - 8 GB -
-
- SSD Speicher: - 160 GB -
-
- Traffic: - 5 TB -
-
- IPv4 Adressen: - 2 -
-
-
-
✓ Proxmox LXC Container
-
✓ Root-Zugriff
-
✓ SSH-Zugang
-
✓ Stündliches Backup
-
✓ 24/7 Monitoring
-
✓ Snapshot-Funktion
-
✓ Priority Support
-
- Jetzt bestellen -
- - -
-
-

VPC Enterprise

-
- 39,99€ - /Monat -
-
-
-
- CPU Kerne: - 8 vCores -
-
- RAM: - 16 GB -
-
- SSD Speicher: - 320 GB -
-
- Traffic: - 10 TB -
-
- IPv4 Adressen: - 3 -
-
-
-
✓ Proxmox LXC Container
-
✓ Root-Zugriff
-
✓ SSH-Zugang
-
✓ Stündliches Backup
-
✓ 24/7 Monitoring
-
✓ Snapshot-Funktion
-
✓ Priority Support
-
✓ Individuelle Konfiguration
-
- Jetzt bestellen -
+
@@ -343,4 +179,4 @@ includeHeader($page_title, $page_description, $current_page); \ No newline at end of file +?> diff --git a/public/vps.php b/public/vps.php index 288d8d0..689308a 100644 --- a/public/vps.php +++ b/public/vps.php @@ -1,9 +1,14 @@
- -
-
-

VPS Starter

-
- 9,99€ - /Monat -
-
-
-
- CPU Kerne: - 1 vCore -
-
- RAM: - 2 GB -
-
- SSD Speicher: - 40 GB -
-
- Traffic: - 2 TB -
-
- IPv4 Adressen: - 1 -
-
-
-
✓ Proxmox KVM Virtualisierung
-
✓ Root-Zugriff
-
✓ SSH-Zugang
-
✓ Backup inklusive
-
✓ 24/7 Monitoring
-
- Jetzt bestellen -
- - - - - -
-
-

VPS Professional

-
- 39,99€ - /Monat -
-
-
-
- CPU Kerne: - 4 vCores -
-
- RAM: - 8 GB -
-
- SSD Speicher: - 160 GB -
-
- Traffic: - 8 TB -
-
- IPv4 Adressen: - 2 -
-
-
-
✓ Proxmox KVM Virtualisierung
-
✓ Root-Zugriff
-
✓ SSH-Zugang
-
✓ Stündliches Backup
-
✓ 24/7 Monitoring
-
✓ Snapshot-Funktion
-
✓ Priority Support
-
- Jetzt bestellen -
- - -
-
-

VPS Enterprise

-
- 79,99€ - /Monat -
-
-
-
- CPU Kerne: - 8 vCores -
-
- RAM: - 16 GB -
-
- SSD Speicher: - 320 GB -
-
- Traffic: - 15 TB -
-
- IPv4 Adressen: - 3 -
-
-
-
✓ Proxmox KVM Virtualisierung
-
✓ Root-Zugriff
-
✓ SSH-Zugang
-
✓ Stündliches Backup
-
✓ 24/7 Monitoring
-
✓ Snapshot-Funktion
-
✓ Priority Support
-
✓ Individuelle Konfiguration
-
- Jetzt bestellen -
+
@@ -347,4 +183,4 @@ includeHeader($page_title, $page_description, $current_page); \ No newline at end of file +?> diff --git a/public/webhosting.php b/public/webhosting.php index 355f093..6c90fc3 100644 --- a/public/webhosting.php +++ b/public/webhosting.php @@ -1,9 +1,14 @@
- -
-
-

Webhosting Starter

-
- 1,99€ - /Monat -
-
-
-
- Webspace: - 5 GB -
-
- Domains: - 1 -
-
- E-Mail-Postfächer: - 5 -
-
- Datenbanken: - 1 MySQL -
-
- Traffic: - 10 GB -
-
-
-
✓ cPanel/Webmin
-
✓ PHP 8.1
-
✓ SSL-Zertifikat
-
✓ E-Mail-Postfächer
-
✓ MySQL Datenbank
-
- Jetzt bestellen -
- - - - - -
-
-

Webhosting Professional

-
- 9,99€ - /Monat -
-
-
-
- Webspace: - 50 GB -
-
- Domains: - Unbegrenzt -
-
- E-Mail-Postfächer: - 100 -
-
- Datenbanken: - Unbegrenzt -
-
- Traffic: - 200 GB -
-
-
-
✓ cPanel/Webmin
-
✓ PHP 8.1
-
✓ SSL-Zertifikat
-
✓ E-Mail-Postfächer
-
✓ MySQL Datenbanken
-
✓ Backup-Service
-
✓ Priority Support
-
- Jetzt bestellen -
- - -
-
-

Webhosting Enterprise

-
- 19,99€ - /Monat -
-
-
-
- Webspace: - 100 GB -
-
- Domains: - Unbegrenzt -
-
- E-Mail-Postfächer: - Unbegrenzt -
-
- Datenbanken: - Unbegrenzt -
-
- Traffic: - 500 GB -
-
-
-
✓ cPanel/Webmin
-
✓ PHP 8.1
-
✓ SSL-Zertifikat
-
✓ E-Mail-Postfächer
-
✓ MySQL Datenbanken
-
✓ Backup-Service
-
✓ Priority Support
-
✓ Individuelle Konfiguration
-
- Jetzt bestellen -
+
@@ -346,4 +182,4 @@ includeHeader($page_title, $page_description, $current_page); \ No newline at end of file +?>