Hi PHPBB!
First thanks for doing a great job on making an awesome piece of software.
I'm in the process of integrating authentication from a web site into PHPBB3 and during this process I have read quite a few lines of the PHP code. One thing that struck me is that include(…) are preferred over include_once in many places (274 places to be exact). Is there any particular reason that include_once isn't used instead?
One example is on line 862 in /posting.php:
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
where the user functions are included. This might cause a "Cannot redeclare ..." error as includes/functions_user.php defines some very useful functions, that might have been included previously (eg. in an authentication file, like auth_ldap.php).
Anyways what I'm asking is basically whether it would be safe for me to change all include(…) to
include_once(….)?
Thanks again for a nice piece of software.
Best regards
Jakob



