From 88e0f964e41c8c247bfe7277493801c3b93eba63 Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Mon, 15 Jun 2020 09:21:31 +0200 Subject: [PATCH] Update consultation form e-mail addresses for surgeons temporarily to main address. Disable access to directory indexes now that site is indexed in Google. WIP #3053 @0:10 --- .htaccess | 19 +++++++++++++++++++ .../cube/src/Forms/Consultation.php | 8 ++++---- 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..47084c6 --- /dev/null +++ b/.htaccess @@ -0,0 +1,19 @@ + +# BEGIN WordPress +# Les directives (lignes) entre 'BEGIN WordPress' et 'END WordPress' sont +# généré dynamiquement, et ne doivent uniquement être modifiées via les filtres WordPress. +# Toute modification des directives entre ces marqueurs sera outrepassée. + +RewriteEngine On +RewriteBase / +RewriteRule ^index\.php$ - [L] +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule . /index.php [L] + + +# END WordPress + + +# Disable directory index access +Options -Indexes diff --git a/wp-content/mu-plugins/cube/src/Forms/Consultation.php b/wp-content/mu-plugins/cube/src/Forms/Consultation.php index d30008f..bbdbf06 100644 --- a/wp-content/mu-plugins/cube/src/Forms/Consultation.php +++ b/wp-content/mu-plugins/cube/src/Forms/Consultation.php @@ -108,10 +108,10 @@ class Consultation extends Base ->required(false) ->options([ // TODO: Add proper e-mail addresses here once we have them - 'Dr Guilhaume GENESTE' => 'xxxxx@ccv-montpellier.fr', - 'Dr Grégory EDGARD-ROSA' => 'xxxxx@ccv-montpellier.fr', - 'Dr Martin GRAU ORTIZ' => 'xxxxx@ccv-montpellier.fr', - 'Dr Caroline HIRSH' => 'xxxxx@ccv-montpellier.fr', + 'Dr Guilhaume GENESTE' => 'ccv@ccv-montpellier.fr', + 'Dr Grégory EDGARD-ROSA' => 'ccv@ccv-montpellier.fr', + 'Dr Martin GRAU ORTIZ' => 'ccv@ccv-montpellier.fr', + 'Dr Caroline HIRSH' => 'ccv@ccv-montpellier.fr', ]), ]); } -- 2.39.5