nliautaud / p01contact

Create contact forms by writing simple tags. Also a plugin for GetSimple and Pico CMS.
MIT License
16 stars 15 forks source link

Disable plugin by default, allow per-page enabling #66

Closed ohnonot closed 8 months ago

ohnonot commented 2 years ago

PicoContact is enabled by default and sets a PHP session cookie and some undesirable headers for all pages:

Set-Cookie: PHPSESSID=ffmljcpgvdg3mqoeu4bpthavbk; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache

I created this fork to disable this behaviour. See also #56.

With this version the plugin is disabled by default, can be enabled in config/*.yml and activated only on the desired contact page(s). See README.md.

I also added a .gitignore to ignore user configuration and temporary files.

I haven't touched any other files because I don't know how GetSimple works.