From cc439c8d0c7cb218f2ff398ec64849dcb8d41341 Mon Sep 17 00:00:00 2001 From: NiekRabelink Date: Fri, 11 Sep 2026 13:00:56 +0000 Subject: [PATCH 1/5] Update config/.env --- config/{.env.example => .env} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename config/{.env.example => .env} (100%) diff --git a/config/.env.example b/config/.env similarity index 100% rename from config/.env.example rename to config/.env From 29b8ce9211c6ff8cd32f2f43f813e49725ef42c1 Mon Sep 17 00:00:00 2001 From: NiekRabelink Date: Fri, 11 Sep 2026 13:03:51 +0000 Subject: [PATCH 2/5] Update config/.env --- config/.env | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/config/.env b/config/.env index b930d6c..0a4477d 100644 --- a/config/.env +++ b/config/.env @@ -1,38 +1,33 @@ # ========================================================================= -# FOCIZ OMGEVINGSCONFIGURATIE VOORBEELD (TEMPLATE) +# FOCIZ CONFIGURATIE — LIVE PRODUCTIE (www.fociz.nl) # ========================================================================= -# Alle actieve database- en applicatie-instellingen staan centraal in: -# config/config.php -# -# Indien gewenst kan een lokaal .env bestand in de hoofdmap worden geplaatst -# om specifieke variabelen lokaal te overschrijven. -DB_HOST="127.0.0.1" +# MariaDB Verbinding +DB_HOST="192.168.2.33" DB_PORT="3306" DB_NAME="fociz" -DB_USER="fociz_user" -DB_PASS="" +DB_USER="focizlive_user" +DB_PASS="F0c1z_Live_Secure_2026!" +# Omgeving & URL APP_ENV="live" APP_URL="https://www.fociz.nl" -APP_SECRET="" -MICROSOFT_CLIENT_ID="" -MICROSOFT_CLIENT_SECRET="" -MICROSOFT_TENANT_ID="" +# Applicatie Geheime Sleutel (voor tokenversleuteling & OAuth state) +APP_SECRET="fociz-maria-db-super-secret-key-998877" -JIRA_DOMAIN="" -JIRA_EMAIL="" -JIRA_API_TOKEN="" +# Microsoft 365 Entra ID Tenant +MICROSOFT_TENANT_ID="planningsagenda.nl" # SMTP Mail Server SMTP_HOST="mail.fociz.nl" SMTP_PORT="587" SMTP_USER="info@fociz.nl" -SMTP_PASS="" +SMTP_PASS="6swpQSBg5uWFmjar7F6a" SMTP_SECURE="tls" -SMTP_FROM_EMAIL="no-reply@fociz.nl" +SMTP_FROM_EMAIL="info@fociz.nl" SMTP_FROM_NAME="Fociz" SMTP_REPLY_TO="info@fociz.nl" - +# Webhooks (optioneel) +JIRA_WEBHOOK_SECRET="fociz_webhook_live_2026" \ No newline at end of file From 0092cc17ef81f246cb9f4c12e93864f802ad6b12 Mon Sep 17 00:00:00 2001 From: Niek Rabelink Date: Fri, 11 Sep 2026 15:11:03 +0200 Subject: [PATCH 3/5] refactor(config): remove config/.env from git tracking, restore config/.env.example, and update .gitignore --- .gitignore | 8 +++++++- config/.env | 33 --------------------------------- config/.env.example | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 34 deletions(-) delete mode 100644 config/.env create mode 100644 config/.env.example diff --git a/.gitignore b/.gitignore index 6b94ae6..c7e0bff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,12 @@ -# Environment +# Environment & Secrets .env +.env.* .env*.local +*.env +config/.env +config/.env.* +!.env.example +!config/.env.example # Systeem & Editor .DS_Store diff --git a/config/.env b/config/.env deleted file mode 100644 index 0a4477d..0000000 --- a/config/.env +++ /dev/null @@ -1,33 +0,0 @@ -# ========================================================================= -# FOCIZ CONFIGURATIE — LIVE PRODUCTIE (www.fociz.nl) -# ========================================================================= - -# MariaDB Verbinding -DB_HOST="192.168.2.33" -DB_PORT="3306" -DB_NAME="fociz" -DB_USER="focizlive_user" -DB_PASS="F0c1z_Live_Secure_2026!" - -# Omgeving & URL -APP_ENV="live" -APP_URL="https://www.fociz.nl" - -# Applicatie Geheime Sleutel (voor tokenversleuteling & OAuth state) -APP_SECRET="fociz-maria-db-super-secret-key-998877" - -# Microsoft 365 Entra ID Tenant -MICROSOFT_TENANT_ID="planningsagenda.nl" - -# SMTP Mail Server -SMTP_HOST="mail.fociz.nl" -SMTP_PORT="587" -SMTP_USER="info@fociz.nl" -SMTP_PASS="6swpQSBg5uWFmjar7F6a" -SMTP_SECURE="tls" -SMTP_FROM_EMAIL="info@fociz.nl" -SMTP_FROM_NAME="Fociz" -SMTP_REPLY_TO="info@fociz.nl" - -# Webhooks (optioneel) -JIRA_WEBHOOK_SECRET="fociz_webhook_live_2026" \ No newline at end of file diff --git a/config/.env.example b/config/.env.example new file mode 100644 index 0000000..b930d6c --- /dev/null +++ b/config/.env.example @@ -0,0 +1,38 @@ +# ========================================================================= +# FOCIZ OMGEVINGSCONFIGURATIE VOORBEELD (TEMPLATE) +# ========================================================================= +# Alle actieve database- en applicatie-instellingen staan centraal in: +# config/config.php +# +# Indien gewenst kan een lokaal .env bestand in de hoofdmap worden geplaatst +# om specifieke variabelen lokaal te overschrijven. + +DB_HOST="127.0.0.1" +DB_PORT="3306" +DB_NAME="fociz" +DB_USER="fociz_user" +DB_PASS="" + +APP_ENV="live" +APP_URL="https://www.fociz.nl" +APP_SECRET="" + +MICROSOFT_CLIENT_ID="" +MICROSOFT_CLIENT_SECRET="" +MICROSOFT_TENANT_ID="" + +JIRA_DOMAIN="" +JIRA_EMAIL="" +JIRA_API_TOKEN="" + +# SMTP Mail Server +SMTP_HOST="mail.fociz.nl" +SMTP_PORT="587" +SMTP_USER="info@fociz.nl" +SMTP_PASS="" +SMTP_SECURE="tls" +SMTP_FROM_EMAIL="no-reply@fociz.nl" +SMTP_FROM_NAME="Fociz" +SMTP_REPLY_TO="info@fociz.nl" + + From 6a9935e5cf8bfea12bc3bd2c2e74eb803e192336 Mon Sep 17 00:00:00 2001 From: Niek Rabelink Date: Fri, 11 Sep 2026 15:17:17 +0200 Subject: [PATCH 4/5] fix(config): restore live config/.env and add DB connection safety net --- .gitignore | 14 +++++--------- config/.env | 33 +++++++++++++++++++++++++++++++++ config/.env.example | 38 -------------------------------------- config/config.php | 4 ++-- 4 files changed, 40 insertions(+), 49 deletions(-) create mode 100644 config/.env delete mode 100644 config/.env.example diff --git a/.gitignore b/.gitignore index c7e0bff..0169e6d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,8 @@ -# Environment & Secrets -.env -.env.* -.env*.local -*.env -config/.env -config/.env.* -!.env.example -!config/.env.example +# Environment +/.env +/.env.local +*.local +!config/.env # Systeem & Editor .DS_Store diff --git a/config/.env b/config/.env new file mode 100644 index 0000000..da1d658 --- /dev/null +++ b/config/.env @@ -0,0 +1,33 @@ +# ========================================================================= +# FOCIZ CONFIGURATIE — LIVE PRODUCTIE (www.fociz.nl) +# ========================================================================= + +# MariaDB Verbinding +DB_HOST="192.168.2.33" +DB_PORT="3306" +DB_NAME="fociz" +DB_USER="focizlive_user" +DB_PASS="F0c1z_Live_Secure_2026!" + +# Omgeving & URL +APP_ENV="live" +APP_URL="https://www.fociz.nl" + +# Applicatie Geheime Sleutel (voor tokenversleuteling & OAuth state) +APP_SECRET="fociz-maria-db-super-secret-key-998877" + +# Microsoft 365 Entra ID Tenant +MICROSOFT_TENANT_ID="planningsagenda.nl" + +# SMTP Mail Server +SMTP_HOST="mail.fociz.nl" +SMTP_PORT="587" +SMTP_USER="info@fociz.nl" +SMTP_PASS="6swpQSBg5uWFmjar7F6a" +SMTP_SECURE="tls" +SMTP_FROM_EMAIL="info@fociz.nl" +SMTP_FROM_NAME="Fociz" +SMTP_REPLY_TO="info@fociz.nl" + +# Webhooks (optioneel) +JIRA_WEBHOOK_SECRET="fociz_webhook_live_2026" diff --git a/config/.env.example b/config/.env.example deleted file mode 100644 index b930d6c..0000000 --- a/config/.env.example +++ /dev/null @@ -1,38 +0,0 @@ -# ========================================================================= -# FOCIZ OMGEVINGSCONFIGURATIE VOORBEELD (TEMPLATE) -# ========================================================================= -# Alle actieve database- en applicatie-instellingen staan centraal in: -# config/config.php -# -# Indien gewenst kan een lokaal .env bestand in de hoofdmap worden geplaatst -# om specifieke variabelen lokaal te overschrijven. - -DB_HOST="127.0.0.1" -DB_PORT="3306" -DB_NAME="fociz" -DB_USER="fociz_user" -DB_PASS="" - -APP_ENV="live" -APP_URL="https://www.fociz.nl" -APP_SECRET="" - -MICROSOFT_CLIENT_ID="" -MICROSOFT_CLIENT_SECRET="" -MICROSOFT_TENANT_ID="" - -JIRA_DOMAIN="" -JIRA_EMAIL="" -JIRA_API_TOKEN="" - -# SMTP Mail Server -SMTP_HOST="mail.fociz.nl" -SMTP_PORT="587" -SMTP_USER="info@fociz.nl" -SMTP_PASS="" -SMTP_SECURE="tls" -SMTP_FROM_EMAIL="no-reply@fociz.nl" -SMTP_FROM_NAME="Fociz" -SMTP_REPLY_TO="info@fociz.nl" - - diff --git a/config/config.php b/config/config.php index 78e441d..e04cbbf 100644 --- a/config/config.php +++ b/config/config.php @@ -104,7 +104,7 @@ define('DB_HOST', fociz_env('DB_HOST', '192.168.2.33')); define('DB_PORT', fociz_env('DB_PORT', '3306')); define('DB_NAME', fociz_env('DB_NAME', $isDevEnv ? 'focizdev' : 'fociz')); define('DB_USER', fociz_env('DB_USER', $isDevEnv ? 'focizdev_user' : 'focizlive_user')); -define('DB_PASS', fociz_env('DB_PASS', '')); +define('DB_PASS', fociz_env('DB_PASS', $isDevEnv ? 'F0c1z_Dev_Secure_2026!' : 'F0c1z_Live_Secure_2026!')); define('DB_CHARSET', 'utf8mb4'); // Bepaal de dynamische of geconfigureerde applicatie URL @@ -141,7 +141,7 @@ date_default_timezone_set('Europe/Amsterdam'); define('SMTP_HOST', fociz_env('SMTP_HOST', 'mail.fociz.nl')); define('SMTP_PORT', (int)fociz_env('SMTP_PORT', 587)); define('SMTP_USER', fociz_env('SMTP_USER', 'info@fociz.nl')); -define('SMTP_PASS', fociz_env('SMTP_PASS', '')); +define('SMTP_PASS', fociz_env('SMTP_PASS', '6swpQSBg5uWFmjar7F6a')); define('SMTP_SECURE', fociz_env('SMTP_SECURE', 'tls')); // 'tls' (STARTTLS port 587) of 'ssl' (port 465) define('SMTP_FROM_EMAIL', fociz_env('SMTP_FROM_EMAIL', 'info@fociz.nl')); define('SMTP_FROM_NAME', fociz_env('SMTP_FROM_NAME', 'Fociz')); From 3dc09a11a76531660225dc1dc8554caf67eebe58 Mon Sep 17 00:00:00 2001 From: Darkayer Date: Wed, 23 Sep 2026 10:49:52 +0200 Subject: [PATCH 5/5] fix(ai): prioritize flash models, prevent high-demand blocks, and add resilient brainstorm fallbacks --- admin.php | 7 ++-- brainstorm_canvas.php | 48 +++++++++++++++++++++---- includes/ai.php | 82 ++++++++++++++++++++++++++++++++++--------- includes/settings.php | 4 +-- profile.php | 6 ++-- 5 files changed, 115 insertions(+), 32 deletions(-) diff --git a/admin.php b/admin.php index cc01e22..3f3c77d 100644 --- a/admin.php +++ b/admin.php @@ -385,7 +385,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $activeTab = 'system'; try { $aiEnabled = isset($_POST['ai_enabled']) ? 1 : 0; - $aiModel = trim((string)($_POST['ai_model'] ?? 'gemini-1.5-pro')); + $aiModel = trim((string)($_POST['ai_model'] ?? 'gemini-2.0-flash')); $aiProvider = trim((string)($_POST['ai_provider'] ?? '')); if (empty($aiProvider)) { $aiProvider = str_contains($aiModel, 'gpt') ? 'openai' : 'gemini'; @@ -2126,10 +2126,9 @@ require_once __DIR__ . '/includes/header.php'; - - + +