From 01e579aecf9b18ab1271f279badfa27aaaf9328f Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Thu, 22 Jan 2026 00:31:35 +0100 Subject: [PATCH] asdasd --- config/community.php | 1 + config/config.php | 1 + config/fileload.php | 1 + config/prod/db.php | 1 + config/prod/demolive.txt | 1 - config/prod/domaindata.php | 1 + config/prod/emailtemplates.php | 1 + config/prod/settings.php | 1 + config/staging/db.php | 1 + config/staging/domaindata.php | 1 + config/staging/emailtemplates.php | 1 + config/staging/settings.php | 1 + config/staging/stagingdemo.txt | 1 - debug/.gitkeep | 0 partials/landing/.gitkeep | 0 partials/landing/account/.gitkeep | 0 partials/landing/community/.gitkeep | 0 partials/landing/main/.gitkeep | 0 partials/landing/search/.gitkeep | 0 partials/structure/layout_end.php | 1 + partials/structure/layout_start.php | 1 + partials/structure/matomo.php | 1 + partials/structure/nav.php | 1 + public/.htaccess | 1 + public/api/_db.php | 16 -- public/api/materials.php | 6 - public/api/printer-materials.php | 35 ---- public/api/printers.php | 6 - public/assets/.gitkeep | 0 public/assets/bilder/.gitkeep | 0 public/assets/css/.gitkeep | 0 public/assets/fonts/.gitkeep | 0 public/assets/js/.gitkeep | 0 public/index.html | 265 ---------------------------- public/index.php | 1 + public/page/404.php | 1 + public/page/community.php | 1 + public/page/community_thread.php | 1 + public/page/dashboard.php | 1 + public/page/debug.php | 1 + public/page/index.php | 1 + public/page/login.php | 1 + public/page/logout.php | 1 + public/page/register.php | 1 + public/page/reset.php | 1 + public/page/search.php | 1 + public/page/verify.php | 1 + seed.sql | 52 ------ src/App/AccountPages.php | 1 + src/App/App.php | 1 + src/App/Assets.php | 1 + src/App/Auth.php | 1 + src/App/Community.php | 1 + src/App/Config.php | 1 + src/App/Crypto.php | 1 + src/App/Database.php | 1 + src/App/Flash.php | 1 + src/App/I18n.php | 1 + src/App/Mailer.php | 1 + src/App/Request.php | 1 + src/App/Search.php | 1 + src/App/SessionManager.php | 1 + src/config.php | 10 -- src/helpers.php | 1 + 64 files changed, 44 insertions(+), 392 deletions(-) create mode 100644 config/community.php create mode 100644 config/config.php create mode 100644 config/fileload.php create mode 100644 config/prod/db.php delete mode 100644 config/prod/demolive.txt create mode 100644 config/prod/domaindata.php create mode 100644 config/prod/emailtemplates.php create mode 100644 config/prod/settings.php create mode 100644 config/staging/db.php create mode 100644 config/staging/domaindata.php create mode 100644 config/staging/emailtemplates.php create mode 100644 config/staging/settings.php delete mode 100644 config/staging/stagingdemo.txt create mode 100644 debug/.gitkeep create mode 100644 partials/landing/.gitkeep create mode 100644 partials/landing/account/.gitkeep create mode 100644 partials/landing/community/.gitkeep create mode 100644 partials/landing/main/.gitkeep create mode 100644 partials/landing/search/.gitkeep create mode 100644 partials/structure/layout_end.php create mode 100644 partials/structure/layout_start.php create mode 100644 partials/structure/matomo.php create mode 100644 partials/structure/nav.php create mode 100644 public/.htaccess delete mode 100755 public/api/_db.php delete mode 100755 public/api/materials.php delete mode 100755 public/api/printer-materials.php delete mode 100755 public/api/printers.php create mode 100644 public/assets/.gitkeep create mode 100644 public/assets/bilder/.gitkeep create mode 100644 public/assets/css/.gitkeep create mode 100644 public/assets/fonts/.gitkeep create mode 100644 public/assets/js/.gitkeep delete mode 100755 public/index.html create mode 100644 public/index.php create mode 100644 public/page/404.php create mode 100644 public/page/community.php create mode 100644 public/page/community_thread.php create mode 100644 public/page/dashboard.php create mode 100644 public/page/debug.php create mode 100644 public/page/index.php create mode 100644 public/page/login.php create mode 100644 public/page/logout.php create mode 100644 public/page/register.php create mode 100644 public/page/reset.php create mode 100644 public/page/search.php create mode 100644 public/page/verify.php delete mode 100755 seed.sql create mode 100644 src/App/AccountPages.php create mode 100644 src/App/App.php create mode 100644 src/App/Assets.php create mode 100644 src/App/Auth.php create mode 100644 src/App/Community.php create mode 100644 src/App/Config.php create mode 100644 src/App/Crypto.php create mode 100644 src/App/Database.php create mode 100644 src/App/Flash.php create mode 100644 src/App/I18n.php create mode 100644 src/App/Mailer.php create mode 100644 src/App/Request.php create mode 100644 src/App/Search.php create mode 100644 src/App/SessionManager.php delete mode 100755 src/config.php create mode 100644 src/helpers.php diff --git a/config/community.php b/config/community.php new file mode 100644 index 0000000..e5553d8 --- /dev/null +++ b/config/community.php @@ -0,0 +1 @@ + PDO::ERRMODE_EXCEPTION, - PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, -]; -try { - $pdo = new PDO($dsn, $cfg['db_user'], $cfg['db_pass'], $options); -} catch (PDOException $e) { - http_response_code(500); - header('Content-Type: application/json'); - echo json_encode(['error' => 'DB connection failed']); - exit; -} diff --git a/public/api/materials.php b/public/api/materials.php deleted file mode 100755 index 3b743ed..0000000 --- a/public/api/materials.php +++ /dev/null @@ -1,6 +0,0 @@ -query("SELECT * FROM materials WHERE is_active = 1 ORDER BY code"); -echo json_encode($stmt->fetchAll(), JSON_UNESCAPED_UNICODE); diff --git a/public/api/printer-materials.php b/public/api/printer-materials.php deleted file mode 100755 index 29ccf7f..0000000 --- a/public/api/printer-materials.php +++ /dev/null @@ -1,35 +0,0 @@ - 'printer id missing']); - exit; -} - -$printerStmt = $pdo->prepare("SELECT * FROM printers WHERE id = ?"); -$printerStmt->execute([$printer_id]); -$printer = $printerStmt->fetch(); -if (!$printer) { - http_response_code(404); - echo json_encode(['error' => 'printer not found']); - exit; -} - -$sql = "SELECT m.*, pms.support_level, pms.partial_reason, pms.extra_info - FROM materials m - LEFT JOIN printer_material_support pms - ON pms.material_id = m.id AND pms.printer_id = :pid - WHERE m.is_active = 1 - ORDER BY m.code"; -$stmt = $pdo->prepare($sql); -$stmt->execute([':pid' => $printer_id]); -$materials = $stmt->fetchAll(); - -echo json_encode([ - 'printer' => $printer, - 'materials' => $materials -], JSON_UNESCAPED_UNICODE); diff --git a/public/api/printers.php b/public/api/printers.php deleted file mode 100755 index c560186..0000000 --- a/public/api/printers.php +++ /dev/null @@ -1,6 +0,0 @@ -query("SELECT * FROM printers WHERE is_active = 1 ORDER BY name"); -echo json_encode($stmt->fetchAll(), JSON_UNESCAPED_UNICODE); diff --git a/public/assets/.gitkeep b/public/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/bilder/.gitkeep b/public/assets/bilder/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/css/.gitkeep b/public/assets/css/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/fonts/.gitkeep b/public/assets/fonts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/public/assets/js/.gitkeep b/public/assets/js/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/public/index.html b/public/index.html deleted file mode 100755 index f78b489..0000000 --- a/public/index.html +++ /dev/null @@ -1,265 +0,0 @@ - - - - - 3D-Druck Materialmatrix - - - - - -
-
-
-

3D-Druck Materialmatrix

-

Schnell prüfen, welche Filamente auf welchen Druckern laufen.

-
- -
- -
- - - - -
-
- - - - - - - - - - - - - - - -
MaterialEigenschaftenTg °CDüsePlatteZusatzAnwendungKinderEmission
-
- - - - -
-

- Hinweis: Dieses Projekt wird privat betrieben und befindet sich im Aufbau. - Es sind noch nicht alle Drucker und Materialien eingetragen. - Alle Angaben erfolgen nach bestem Wissen, jedoch ohne Gewähr auf Vollständigkeit oder Richtigkeit. -

-
-
-
-
- - - - diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..e5553d8 --- /dev/null +++ b/public/index.php @@ -0,0 +1 @@ + 'localhost', - 'db_name' => 'd0453540', - 'db_user' => 'd0453540', - 'db_pass' => 'P6jGRrSaX8QSiBMEJBL7', - 'db_charset' => 'utf8mb4', -]; diff --git a/src/helpers.php b/src/helpers.php new file mode 100644 index 0000000..e5553d8 --- /dev/null +++ b/src/helpers.php @@ -0,0 +1 @@ +