1
tapto
Globals
  • 2006/11/21 10:20

  • tapto

  • Just popping in

  • Posts: 1

  • Since: 2006/11/21


I have noticed that quite some modules require register globals = on.

Does XOOPS requiere this parameter to be on ?

Any suggeted workaround to avoid this setting ?

2
frankblack
Re: Globals
  • 2006/11/21 11:06

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


XOOPS (core) itself does not need register_globals to be on, but some of the older modules (some not maintained anymore) need it. Most of the modules should work with off.

If you want to be on the "safe" side you have to hack these modules to be working with off. IMHO there is no quick AND safe solution for this.

3
Peekay
Re: Globals
  • 2006/11/21 11:14

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Xoops itself doesn't require register_globals to be on.

If you have globals 'off' and a module will run (but not properly) you can sometimes hack it by switching on PHP debug in Xoops, taking note of the 'undefined variable' notices and defining those vars in the code.

I did this recently with a classified ads module. My notes are in this post if they are of any help. Sometimes just a few changes can fix it, but sometimes not.

If you don't want to hack the module code, you *may* be able to override your default server settings with an htaccess file containing the command:

php_flagĀ register_globalsĀ on


It's worth a try, but many hosts and Apache server configurations do not allow this.
A thread is for life. Not just for Christmas.

Login

Who's Online

408 user(s) are online (291 user(s) are browsing Support Forums)


Members: 0


Guests: 408


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits