Merge pull request #155 from Robertof/master

Switch to the hcid as the comment unique ID
Major changes to the login infrastructure

Please read PR #157 for more info. You may need to edit your configuration if you are using HTTPS-only login.
Fixes
Fix xss.
Improve youtube bbcode
Avoid php message: "PHP Strict Standards:  Only variables should be passed by reference"
Merge branch 'master' of https://github.com/nerdzeu/nerdz.eu into login-patch
Better getSafeCookieDomainName

It now uses an homemade algorithm to retrieve the similarities between the domain names. Also added a note in the setup skeleton.
Merge pull request #157 from Robertof/login-patch

Major changes to the login infrastructure
Add support for db error handling in insert post. Update triggers
Add triggers for comments and pms. Remove useless code replaced by the triggers
Update postrgres_schema.sql
Fix issue related to whitelist.
Update postgres_schema.sql
Handle comments notification via database. Update required. Remove php code
Added support to dailymotion, vimeo and facebook video embedding, added spotify badge bbcode, update tpl/2
looks like i forgot to avoid PHP warning
video embedding fixes and improvements
Variable name fix
i'm an idiot.