[geeklog-devel] Getting away from global - Introducing constants
Peter Hopfgartner
peter at tantalo.net
Sun Dec 29 11:23:49 EST 2002
Dear Geeklog developers,
I would like to use GL in 2 installations, but I we have
register-globals enabled.
In order to get away from globals, I sent you a first patch, more for
the purpose of illustration. This takes away the _SEC_VERBOSE variable
and replaces it with a constant (indeed, logically _SEC_VERBOSE is a
constant, since it's value is never changed in the code).
If you find this usefull, I will do the same with the other *_VERBOSE
variables.
Please enjoy,
Peter Hopfgartner
P.S.: The patch was created as diff -Naur old_file new_file
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-const-geeklog-1.3.7-system-lib.security.php
Type: application/x-php
Size: 6986 bytes
Desc: not available
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20021229/039a327b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20021229/039a327b/attachment.sig>
More information about the geeklog-devel
mailing list