Remove call-time pass-by-reference code which produces fatal error with PHP>=5.4

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
Fix class autoloading to find DirEnumeration class.

Fix following bug:
PHP Fatal error:  Class 'DirEnumeration' not found in /home/web/prod/platal/modules/search.php on line 300, referer: https://www.polytechnique.org/search/adv

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
Fix xnetevents.
Fix fatal error because var_export doesn't handle circular dependency.

In logs there were lines such as:
PHP Fatal error:  Nesting level too deep - recursive dependency? in /home/web/prod/platal/include/security.inc.php on line 108, referer: https://www.polytechnique.org/register

More information can be found at:
- http://stackoverflow.com/questions/12488661/is-it-possible-to-list-out-all-the-global-variables-in-php
- http://php.net/manual/fr/function.var-export.php (in the comments)

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
Add missing quotes in some templates

Smarty/PHP was complaing with messages like "Notice: Use of undefined constant right - assumed 'right'"

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
Replace deprecated ereg() by preg_match()
Remove call-time pass-by-reference code which produces fatal error with PHP>=5.4

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
Fix class autoloading to find DirEnumeration class.

Fix following bug:
PHP Fatal error:  Class 'DirEnumeration' not found in /home/web/prod/platal/modules/search.php on line 300, referer: https://www.polytechnique.org/search/adv

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
Fix fatal error because var_export doesn't handle circular dependency.

In logs there were lines such as:
PHP Fatal error:  Nesting level too deep - recursive dependency? in /home/web/prod/platal/include/security.inc.php on line 108, referer: https://www.polytechnique.org/register

More information can be found at:
- http://stackoverflow.com/questions/12488661/is-it-possible-to-list-out-all-the-global-variables-in-php
- http://php.net/manual/fr/function.var-export.php (in the comments)

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
Fix href value with void(0) instead of return false

Chrome was raising this Javascript error:
"Uncaught SyntaxError: Illegal return statement"

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
Fix Javascript exception by adding invisible elements

_selectAll('to_contacts') and _selectAll('cc_contacts') were raising:
"TypeError: Cannot read property 'length' of null"
Add missing <select> elements until the code is rewritten to take care of this
situation.

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
Fix Javascript ReferenceError by using target=_blank instead of popup() in a link

Fix following reported Javascript error when clicking on the education link
present in search results: "Uncaught ReferenceError: popup is not defined"

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
Merge branch 'xorg/maint'