Re: [phplib-users] phplib and bookmarker - problem solved.
Brought to you by:
nhruby,
richardarcher
From: Lindsay H. <fmo...@fm...> - 2009-12-13 23:57:57
|
On Sun, 2009-12-13 at 15:00 -0500, A. F. Cano wrote: > On Sat, Dec 12, 2009 at 12:20:14AM -0600, Lindsay Haisley wrote: > > ... > > > > Check your php.ini file and see if register_long_arrays = On or Off. > > It was On, but right above that was "register_globals = Off". Turning > that On solved the problem. Admittedly that's the quick fix, as > register_globals should be Off. Maybe I'll dig into the code some more > and figure out how to do away with the global variables, but at least > bookmarker now works. Having register_globals on is considered a significant security risk, although in some circumstances you can get away with it. I've seen it exploited, and one of my hosting clients got in a fight with earthlink after someone exploited their code and Earthlink hosting had register-globals was on at the system level. I think the necessity of auto-registering globals was removed from PHPlib some time ago, but perhaps not from bookmarker. If the only problems you're having are with regard to logging in, you should be able to add the following lines to any file that needs these variables and the problem should be solved: $username = $_POST["username"]; $password = $_POST["password"]; -- Lindsay Haisley | "In an open world, | PGP public key FMP Computer Services | who needs Windows | available at 512-259-1190 | or Gates" | http://pubkeys.fmp.com http://www.fmp.com | | |