diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..0a72ec68 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true + +[*.json] +indent_size = 4 + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 index 9b22fbed..5b0e05ab --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,47 @@ composer.lock content/uploads *.log /vendor/ +keep-context.json + + +# Configuration. +.htaccess +wp-config.php + +# Sitemap files. +sitemap.xml +sitemap.xml.gz + +# Files in the root. +*.pdf +*.jpg +*.jpeg +*.png +*.txt +*.csv + +# WP dirs. +wp-admin/* +wp-includes/* +wp-snapshots/* + +# Ignore everything in the "wp-content" directory, except custom code. +/content/languages/* +/content/uploads/* +/content/plugins/* +/content/themes/* +!content/themes/ldc + +# Ignore node dependency directories. +**/node_modules/ + +# Ignore log files and databases. +*.log +*.sql +*.sqlite + +# PhpStorm files. +/.idea/ + +# DS_Store files generated by Finder on MacOS. +**/.DS_Store diff --git a/.htaccess b/.htaccess old mode 100644 new mode 100755 index aa6512f9..8f372807 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,33 @@ +# BEGIN YOAST REDIRECTS + +RewriteEngine On +Redirect 301 "/en/espace-presse" "/en/press-space" +Redirect 301 "/en/nos-marques" "/en/our-brands" +Redirect 301 "/en/nous-connaitre" "/en/know-us" +Redirect 301 "/en/nos-engagements/bien-nourrir" "/en/nos-engagements/feed-well" +Redirect 301 "/en/nos-engagements" "/en/our-commitments" +Redirect 301 "/en/our-commitments/elever-durablement" "/en/our-commitments/sustainable-farming" +Redirect 301 "/en/our-commitments/mieux-vivre-ensemble" "/en/our-commitments/living-and-working-together" +Redirect 301 "/en/our-commitments/respecter-la-terre" "/en/our-commitments/respecting-the-land" +Redirect 301 "/en/nous-rejoindre" "/en/join-us" +Redirect 301 "/en/nous-contacter" "/en/contact-us" +Redirect 301 "/en/know-us/notre-pole-traiteur" "/en/know-us/our-catering-division" +Redirect 301 "/en/nos-metiers" "/en/our-jobs" +Redirect 301 "/en/our-commitments/respecting-the-land" "/en/our-commitments/respecting-the-nature" +Redirect 301 "/en/know-us/notre-pole-volaille-france__trashed-2" "/en/know-us/notre-pole-volaille-france-3" +Redirect 301 "/en/join-us__trashed" "/en/join-us" +Redirect 301 "/en/mentions-legales" "/en/legal-notice" +Redirect 301 "/en/politique-de-confidentialite" "/en/privacy-policy" +Redirect 301 "/en/know-us/notre-pole-volaille-france" "/en/know-us/our-france-poultry-division" +Redirect 301 "/en/know-us/notre-pole-export-international" "/en/know-us/our-export-international-division" +Redirect 301 "/filieres/belgique-kiplama-yann-caret" "/filieres/belgique-kiplama-toon-kweens" +Redirect 301 "/en/our-commitments/feed-well" "/en/our-commitments/providing-healthy-food" +Redirect 301 "/en/join-us" "/en/careers" +Redirect 301 "/en/know-us/our-catering-division" "/en/know-us/our-convenience-food-division" +Redirect 301 "/filieres/pole-volaille-snv-laurent-girard" "/filieres/pole-volaille-snv-arnaud-boinard" +Redirect 301 "/filieres/pole-traiteur-marques-marie-traditions-dasie-weight-watchers-damien-jeannot" "/filieres/pole-traiteur-plats-cuisines-marie-traditions-dasie-weight-watchers-damien-jeannot" + +# END YOAST REDIRECTS # protection contre la lecture des répertoires Options All -Indexes @@ -6,22 +36,37 @@ ServerSignature Off RewriteEngine on -# Protect wp-config.php - - deny from all +# Protect wp-config.php | autoload.php + + deny from all -# Protect .htaccess et .htpasswds - - order allow,deny - deny from all - +# @author JEREMY +# Protect hidden files + + Order allow,deny + Deny from all + -# Protect debug.log - - order allow,deny - deny from all - +# @author JEREMY +# Deny Everything in content folder except extensions +# css,jpeg,jpg,ico,png,gif,svg,js,eot,ttf,woff,woff2,mp4,mp3,ogg,ogv,mov,docx,doc,pdf,xml,html +RewriteRule ^content\/(.(?!.*\.css$|.*\.jpe?g$|.*\.ico$|.*\.png$|.*\.gif$|.*\.svg$|.*\.js$|.*\.eot$|.*\.ttf$|.*\.woff$|.*\.woff2$|.*\.mp4$|.*\.mp3$|.*\.ogg$|.*\.ogv$|.*\.mov$|.*\.docx$|.*\.doc$|.*\.pdf$|.*\.xml$|.*\.html$))*$ - [F] + +# Protect conf files (non script or resource files) + + deny from all + + +# @author JEREMY +# Deny everything in crons folder +RewriteRule ^crons\/.*$ - [F] + +# @author JEREMY +# Deny Everything in rgpd folder except needed +# css,jpeg,jpg,ico,png,gif,svg,js,eot,ttf,woff,woff2,mp4,mp3,ogg,ogv,mov,docx,doc,pdf,xml,html +# salaries/ consommateurs/ +RewriteRule ^rgpd\/(.(?!.*\.css$|.*\.jpe?g$|.*\.ico$|.*\.png$|.*\.gif$|.*\.svg$|.*\.js$|.*\.eot$|.*\.ttf$|.*\.woff$|.*\.woff2$|.*\.mp4$|.*\.mp3$|.*\.ogg$|.*\.ogv$|.*\.mov$|.*\.docx$|.*\.doc$|.*\.pdf$|.*\.xml$|.*\.html$|.*index\.php$|.*onsommateurs\/$|.*alaries\/$))*$ - [F] # Protect sql files @@ -43,9 +88,6 @@ RewriteEngine on Deny from all -# protection des fichiers sys -RedirectMatch 404 /\. - #Bloquer l'indexation des fichiers PDF Header set X-Robots-Tag "noindex, nofollow" @@ -405,7 +447,8 @@ RedirectPermanent /en//en/rubrique/key-figures/simplified-balance-sheet/4244/ ht RedirectPermanent /en//en/rubrique/ldcs-culture-and-values/culture-and-values-ldc/3568/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en//en/rubrique/medias-en/kit-media/3560/ https://www.ldc.fr/en/press-space/ RedirectPermanent /en//en/rubrique/medias-en/photos/3562/ https://www.ldc.fr/en/press-space/ -RedirectPermanent /en//en/rubrique/our-hr-policy/life-in-our-group/3644/ https://www.ldc.fr/en/join-us/ +#RedirectPermanent /en//en/rubrique/our-hr-policy/life-in-our-group/3644/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /en//en/rubrique/our-hr-policy/life-in-our-group/3644/ https://www.ldc.fr/en/careers/ RedirectPermanent /en//en/rubrique/our-projects/international-ambitions/3577/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en//en/rubrique/our-projects/our-corporate-vision/3574/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en//en/rubrique/quality-signs/les-signes-de-qualite/3616/ https://www.ldc.fr/en/our-commitments/feed-well/ @@ -415,7 +458,8 @@ RedirectPermanent /en//en/rubrique/shareholder-guide/comment-devenir-actionnaire RedirectPermanent /en//en/rubrique/shareholder-guide/your-shareholder-rights/3668/ https://www.ldc.fr/en/finance/ RedirectPermanent /en//en/rubrique/social-en/health-safety/3548/ https://www.ldc.fr/en/our-commitments/living-and-working-together/ RedirectPermanent /en/accueil/ https://www.ldc.fr/en/ -RedirectPermanent /en/careers/ https://www.ldc.fr/en/join-us/ +#RedirectPermanent /en/careers/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /en/join-us/ https://www.ldc.fr/en/careers/ RedirectPermanent /en/en/rubrique/corporate-governance/middlenext-code/3676/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/en/rubrique/corporate-governance/presentation-of-the-ldc-governance/3673/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/en/rubrique/environment/3-packing-waste-nothing-is-lost-everything-is-transformed/3641/ https://www.ldc.fr/en/our-commitments/respecting-the-nature/ @@ -432,7 +476,8 @@ RedirectPermanent /en/en/rubrique/ldc-group/organigramme-du-groupe/4422/ https:/ RedirectPermanent /en/en/rubrique/ldcs-culture-and-values/culture-and-values-ldc/3568/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/en/rubrique/medias-en/kit-media/3560/ https://www.ldc.fr/en/press-space/ RedirectPermanent /en/en/rubrique/medias-en/photos/3562/ https://www.ldc.fr/en/press-space/ -RedirectPermanent /en/en/rubrique/our-hr-policy/life-in-our-group/3644/ https://www.ldc.fr/en/join-us/ +#RedirectPermanent /en/en/rubrique/our-hr-policy/life-in-our-group/3644/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /en/en/rubrique/our-hr-policy/life-in-our-group/3644/ https://www.ldc.fr/en/careers/ RedirectPermanent /en/en/rubrique/our-projects/international-ambitions/3577/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/en/rubrique/our-projects/our-corporate-vision/3574/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/en/rubrique/quality-signs/les-signes-de-qualite/3616/ https://www.ldc.fr/en/our-commitments/feed-well/ @@ -449,9 +494,12 @@ RedirectPermanent /en/medias/ https://www.ldc.fr/en/press-space/ RedirectPermanent /en/nos-activites/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/nos-activites/feed/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/our-engagements/ https://www.ldc.fr/en/our-commitments/ -RedirectPermanent /en/rubrique/careers/joining-us/ https://www.ldc.fr/en/join-us/ -RedirectPermanent /en/rubrique/careers/joining-us/open-application/ https://www.ldc.fr/en/join-us/ -RedirectPermanent /en/rubrique/careers/our-hr-policy/ https://www.ldc.fr/en/join-us/ +#RedirectPermanent /en/rubrique/careers/joining-us/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /en/rubrique/careers/joining-us/ https://www.ldc.fr/en/carrers/ +#RedirectPermanent /en/rubrique/careers/joining-us/open-application/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /en/rubrique/careers/joining-us/open-application/ https://www.ldc.fr/en/carrers/ +#RedirectPermanent /en/rubrique/careers/our-hr-policy/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /en/rubrique/careers/our-hr-policy/ https://www.ldc.fr/en/carrers/ RedirectPermanent /en/rubrique/careers/our-jobs/ https://www.ldc.fr/en/our-jobs/ RedirectPermanent /en/rubrique/careers/our-jobs/?metierid=4211 https://www.ldc.fr/en/our-jobs/ RedirectPermanent /en/rubrique/careers/our-jobs/?metierid=4214 https://www.ldc.fr/en/our-jobs/ @@ -473,7 +521,8 @@ RedirectPermanent /en/rubrique/careers/our-jobs/support/ https://www.ldc.fr/en/o RedirectPermanent /en/rubrique/careers/our-jobs/support/?metierid=4208 https://www.ldc.fr/en/our-jobs/ RedirectPermanent /en/rubrique/careers/our-jobs/support/?metierid=4216 https://www.ldc.fr/en/our-jobs/ RedirectPermanent /en/rubrique/careers/our-jobs/support/?metierid=4221 https://www.ldc.fr/en/our-jobs/ -RedirectPermanent /en/rubrique/careers/recruitment-process/ https://www.ldc.fr/en/join-us/ +#RedirectPermanent /en/rubrique/careers/recruitment-process/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /en/rubrique/careers/recruitment-process/ https://www.ldc.fr/en/carreers/ RedirectPermanent /en/rubrique/finance-en/corporate-governance/ https://www.ldc.fr/en/know-us/ RedirectPermanent /en/rubrique/finance-en/inverstors-introduction/ https://www.ldc.fr/en/finance/ RedirectPermanent /en/rubrique/finance-en/key-figures/ https://www.ldc.fr/en/finance/ @@ -729,7 +778,8 @@ RedirectPermanent /rubrique/quality-signs/les-signes-de-qualite/3616/ https://ww RedirectPermanent /rubrique/recherche-et-developpement/recherche-developpement/1/ https://www.ldc.fr/nos-engagements/ RedirectPermanent /rubrique/recherche-et-developpement-es/bonjour-tout-le-monde/32/ https://www.ldc.fr/nos-engagements/ RedirectPermanent /rubrique/recherche-et-developpement-pl/bonjour-tout-le-monde/33/ https://www.ldc.fr/nos-engagements/ -RedirectPermanent /rubrique/recruitment-process/our-hr-policy/3647/ https://www.ldc.fr/en/join-us/ +#RedirectPermanent /rubrique/recruitment-process/our-hr-policy/3647/ https://www.ldc.fr/en/join-us/ +RedirectPermanent /rubrique/recruitment-process/our-hr-policy/3647/ https://www.ldc.fr/en/careers/ RedirectPermanent /rubrique/regulated-information/actualite/3537/?exo=2016&doc=302 https://www.ldc.fr/en/finance/ RedirectPermanent /rubrique/regulated-information/actualite/3537/?exo=2018&doc=302 https://www.ldc.fr/en/finance/ RedirectPermanent /rubrique/securite-alimentaire-et-tracabilite/securite-alimentaire-et-tracabilite/563/ https://www.ldc.fr/nos-engagements/bien-nourrir/ @@ -740,6 +790,133 @@ RedirectPermanent /rubrique/social-en/health-safety/3548/ https://www.ldc.fr/en/ RedirectPermanent /societe/celtys/ https://www.ldc.fr/nous-connaitre/ RedirectPermanent /societe/celvia-saint-jean-brevelay/ https://www.ldc.fr/nous-connaitre/ RedirectPermanent /societe/la-toque-angevine-segre https://www.ldc.fr/nous-connaitre/ +RedirectPermanent /type/ardevol/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/alimab/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/les-volailles-de-blancafort/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-viriat/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/la-toque-angevine-segre/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/les-charmilles/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-cpe/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/chapon-bressan/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/arrive-plateforme-logistique-saint-fulgent/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/drop-kepno/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/farmor-guingamp/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/les-volailles-de-keranna/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/celvia-saint-jean-brevelay-dinde/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-bourgogne/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-unite-st-laurent/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/aliments-richard/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-dpe/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/tranzit-food-nyirgelse/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marcel-favreau/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/couvoir-galina-vendee/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/arrive-plateforme-logistique-les-essarts/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/arrive-siege-et-usine-saint-fulgent/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/drop-ostrzeszow/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/distrinor/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marnevall-3/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/volailles-remi-ramon/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/roldrob/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-bretagne/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/verron/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-plb/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-briec/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/celvia-saint-jean-brevelay-elabores/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/bureau-commercial-londres/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/luche-traditions-volaille/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-an-elaborados-site-de-avila/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/huttepain-aliments/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-grand-froid/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/huttepain-bretagne/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/plateforme-logistique-de-galliwen-plg/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-rungis-siege/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/cailles-robin/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/doux-farmor/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/stam-poiraud/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/sbp-societe-bressanne-de-production/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/bureau-commercial-kehl/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/palmidor/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-cepa/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/arrive-les-essarts/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/les-fermiers-de-lardeche/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/drosed/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/s-n-v-volabraye/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/betina/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/guillet/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/galeo/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/huttepain-vendee/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/polpasz/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/s-n-v-les-fourmis/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/sedar/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/stc-transports/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/regalette-saint-nolff/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/couvoir-perrot/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-foods/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-chace/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/agis-tarare-plateforme/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/s-n-v-chateau-gontier/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/espri-restauration-wissous/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/corico/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/volailles-de-bretagne/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/couvoir-galina-perrot/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/espri-restauration-roeze/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/guillot-cobreda-romenay/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/bureau-commercial-barcelone/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/tranzit-food-nyirbator/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/bureau-commercial-bruxelles/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/sofral/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/vanal/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/celvia-serent/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-airvault/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/michel-robichon/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-unite-dinde/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/arrive-sainte-hermine/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/lionor/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/huttepain-soreal-aliments/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/celtys/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/s-n-v-servais/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/socadis/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/s-n-v-pont-morin/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/cailles-rocvent/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/arrive-chavagnes-en-paillers/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/agis-herbignac/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/guillot-cobreda-cuisery/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-sable/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/agis-tarare-site-cantubas/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/nourivrai-piace/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/plateforme-wissous/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/claude-couthouis/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/agis-avignon/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-macon-plateforme/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/boscher-volailles/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/marie-mirebeau/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/arrive-auvergne/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/anateo/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-aquitaine-bazas/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/ldc-cavol/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/kiplama/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/bellavol/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/gpa-lhours/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/mairet/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/loeuf/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/procanar/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/drosed-surowiec/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/jeusselin/ https://www.ldc.fr/nous-connaitre/#nos-implantations +RedirectPermanent /type/s-n-v-laval/ https://www.ldc.fr/nous-connaitre/#nos-implantations + + +# @author Jérémy +# https://wordpress.org/support/article/hardening-wordpress/ +# Block the include-only files. + +RewriteEngine On +RewriteBase / +RewriteRule ^wp-admin/includes/ - [F,L] +RewriteRule !^wp-includes/ - [S=3] +RewriteRule ^wp-includes/[^/]+\.php$ - [F,L] +RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L] +RewriteRule ^wp-includes/theme-compat/ - [F,L] + # BEGIN WordPress # Les directives (lignes) entre 'BEGIN WordPress' et 'END WordPress' sont diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..6607806a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "phpcs.executablePath": "vendor/bin/phpcs" +} \ No newline at end of file diff --git a/composer.json b/composer.json index 1ea99177..32864856 100644 --- a/composer.json +++ b/composer.json @@ -1,8 +1,17 @@ { + "minimum-stability": "stable", + "require-all": true, "require": { "vlucas/phpdotenv": "^4.1", - "ext-curl": "*", - "ext-json": "*", + "ext-curl": "*", + "ext-json": "*", "dompdf/dompdf": "^1.0" + }, + "require-dev": { + "automattic/vipwpcs": "^2.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", + "wp-coding-standards/wpcs": "^2.3", + "phpcompatibility/phpcompatibility-wp": "^2.1", + "slevomat/coding-standard": "^7.0" } } diff --git a/content/plugins/ldc-messages/ldc-messages.php b/content/plugins/ldc-messages/ldc-messages.php index d329a02d..76da00c3 100644 --- a/content/plugins/ldc-messages/ldc-messages.php +++ b/content/plugins/ldc-messages/ldc-messages.php @@ -249,10 +249,11 @@ function ContactAjx() { $email = getPostContacts($postID); $title = "Vous avez un message à traiter sur le site LDC"; $content = genMailString($title, nl2br(sprintf( - "

%s : %s %s
%s
%s

", + "

%s : %s %s \n E-mail : %s \n %s \n %s

", $ref, $firstname, $lastname, + $email, $mInfo['MessageLabel'] ?? '', $content ))); diff --git a/content/themes/ldc/frontpage.php b/content/themes/ldc/frontpage.php index 47daefa9..ac01c67b 100644 --- a/content/themes/ldc/frontpage.php +++ b/content/themes/ldc/frontpage.php @@ -42,4 +42,4 @@ Template Name: Homepage } ?> - +chirk_top'; - $chirkashi['bottom'] = 'chirkashi_bottom'; - $chirkashi['left'] = ''; - $chirkashi['right'] = 'chirkashi_right'; -?> - - -> - - - - - - - - - <?php wp_title(); ?> - - -> - - -
- '', - 'theme_location' => 'top', - 'menu_class' => 'top-menu__list', - 'depth' => 0, - )); - ?> - -
- -
-
- - - -
-
- -
- '', - 'theme_location' => 'header_left', - 'menu_class' => 'header__nav nav', - 'depth' => 0, - )); - ?> -
-
-
- - '', - 'theme_location' => 'header_right', - 'menu_class' => 'header__nav nav', - 'depth' => 0, - )); - ?> -
- -
-
- -
-
- - - - -
-
- -
- -
-
- -
- -
-
-
- -
- -
- -
-
- 'mobile', - 'depth' => -1, - 'walker' => new CustomWalker() - )); -*/ - ?> - - - - '', - 'theme_location' => 'header_right', - 'menu_class' => 'header__mobile-nav-list', - 'depth' => 0, - ));*/ - ?> - - '', - 'theme_location' => 'top', - 'menu_class' => 'header__mobile-nav-list header__mobile-nav-list_add', - 'depth' => 0, - ));*/ - ?> -
-
- diff --git a/content/themes/ldc/index.php b/content/themes/ldc/index.php index 3946eb93..fbdc4ec1 100644 --- a/content/themes/ldc/index.php +++ b/content/themes/ldc/index.php @@ -1,3 +1,3 @@ - \ No newline at end of file + + + + + content/ + content/plugins* + + diff --git a/rgpd/autoload.php b/rgpd/autoload.php index 4b148e2e..0b172984 100644 --- a/rgpd/autoload.php +++ b/rgpd/autoload.php @@ -44,7 +44,7 @@ function configure_smtp($phpmailer){ $phpmailer->AddBCC('sylvain.gouet@ldc.fr'); $phpmailer->AddBCC('sebastien.hattry@ldc.fr'); }else{ - $phpmailer->AddAddress('informatique.internet@ldc.fr'); + $phpmailer->AddAddress('equipe.web@ldc.fr'); } $phpmailer->SMTPAutoTLS = false; $phpmailer->SMTPOptions = array(