From 0c415d4c3f015a34cae93c3db2670ec1f5bcea07 Mon Sep 17 00:00:00 2001 From: marko Date: Wed, 7 May 2025 12:05:08 +0200 Subject: [PATCH] WIP: create new test section --- .../cwsvJudo/configs/heliohost/config.json | 9 +++++++ .../cwsvJudo/configs/heliohost/secrets.json | 7 +++++ homepage/cwsvJudo/src/pages/test/config.php | 2 ++ homepage/cwsvJudo/src/pages/test/news.php | 27 +++++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 homepage/cwsvJudo/configs/heliohost/config.json create mode 100644 homepage/cwsvJudo/configs/heliohost/secrets.json create mode 100644 homepage/cwsvJudo/src/pages/test/config.php create mode 100644 homepage/cwsvJudo/src/pages/test/news.php diff --git a/homepage/cwsvJudo/configs/heliohost/config.json b/homepage/cwsvJudo/configs/heliohost/config.json new file mode 100644 index 0000000..1ed5bc7 --- /dev/null +++ b/homepage/cwsvJudo/configs/heliohost/config.json @@ -0,0 +1,9 @@ +{ + "cwsvJudo": { + "db": { + "host": "localhost", + "name": "cwsvjudo_main", + "user": "cwsvjudo_marko" + } + } +} \ No newline at end of file diff --git a/homepage/cwsvJudo/configs/heliohost/secrets.json b/homepage/cwsvJudo/configs/heliohost/secrets.json new file mode 100644 index 0000000..aecb80c --- /dev/null +++ b/homepage/cwsvJudo/configs/heliohost/secrets.json @@ -0,0 +1,7 @@ +{ + "cwsvJudo": { + "db": { + "cwsvjudo_marko": "kodokan" + } + } +} \ No newline at end of file diff --git a/homepage/cwsvJudo/src/pages/test/config.php b/homepage/cwsvJudo/src/pages/test/config.php new file mode 100644 index 0000000..e806b98 --- /dev/null +++ b/homepage/cwsvJudo/src/pages/test/config.php @@ -0,0 +1,2 @@ +setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); + echo "Connected successfully"; +} catch(PDOException $e) { + echo "Connection failed: " . $e->getMessage(); +} \ No newline at end of file