[geeklog-users] Getting away from global - Introducing constants

hopfgartner hopfgartner at rolmail.net
Tue Dec 31 03:35:21 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 some patch,
more for
the purpose of illustration. This takes away the _*_VERBOSE
variables
and replaces them with a constants (indeed, logically
_*_VERBOSE are constants, since their values is never
changed in the code).

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-public_html-admin-poll.php
Type: application/octet-stream
Size: 1679 bytes
Desc: not available
URL: <https://pairlist8.pair.net/pipermail/geeklog-users/attachments/20021231/40fbdab6/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-const-geeklog-1.3.7-public_html-admin-user.php
Type: application/octet-stream
Size: 2242 bytes
Desc: not available
URL: <https://pairlist8.pair.net/pipermail/geeklog-users/attachments/20021231/40fbdab6/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-const-geeklog-1.3.7-public_html-lib-common.php
Type: application/octet-stream
Size: 3025 bytes
Desc: not available
URL: <https://pairlist8.pair.net/pipermail/geeklog-users/attachments/20021231/40fbdab6/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-const-geeklog-1.3.7-public_html-usersettings.php
Type: application/octet-stream
Size: 1503 bytes
Desc: not available
URL: <https://pairlist8.pair.net/pipermail/geeklog-users/attachments/20021231/40fbdab6/attachment-0003.obj>


More information about the geeklog-users mailing list