Revision 6dfb6b27
Added by Phil Davis about 9 years ago
src/usr/local/www/diag_sockets.php | ||
---|---|---|
60 | 60 |
##|*MATCH=diag_sockets.php* |
61 | 61 |
##|-PRIV |
62 | 62 |
|
63 |
include('guiconfig.inc');
|
|
63 |
require_once('guiconfig.inc');
|
|
64 | 64 |
|
65 | 65 |
$pgtitle = array(gettext("Diagnostics"), gettext("Sockets")); |
66 | 66 |
|
Also available in: Unified diff
Update include() to include_once()
For safety, use include_once() when including various "side" files.
There are a couple of instances of include("guiconfig,inc") that I
changes to use require_once() to be consistent with everywhere else.
The remaining cases of include() are just (hundreds of) head.inc and
footer.inc - those are only at the start/end of the ordinary top-level
interactive PHP files. There is no nested interaction of those to think
about, so that should be fine.