Re: [Phplib-users] App does not work any more ! Help needed
Brought to you by:
nhruby,
richardarcher
From: Justin S. <ju...@ia...> - 2002-08-08 07:09:52
|
sounds like a problem with register_globals. By default the php.ini configuration directive register_globals is turned off as of 4.2.0. It used to be on by default, which is why you could POST or GET variables to a php script and refer to them as $username or $password. Now you are supposed to use the superglobals, and refer to the POST'ed variables as _$POST['username'] and _$POST['password'] . This is much safer, which is why the change was made, but you can always just set register_globals to off in your php.ini file if you want the old behaviour back. all about superglobals: http://www.php.net/manual/en/language.variables.predefined.php#language.variables.superglobals read more here about security in php: http://www.zend.com/zend/art/art-oertli.php Justin Simpson On Wed, 2002-08-07 at 07:58, Jose L. Marcos wrote: > Hi folks, > > may be it's a faq, but here it goes... > > I've been using quite happily an intranet app. based on PHPLib 7.2c / > Apache 1.3.14 / PHP 4.06 / Netscape 4.77 browser. > > As I've upgraded the Linux Box, I've also tried to upgrade the softs on > this box... By idea, this was... ;-( > > I've moved to PHP 4.2.2, Apache 1.3.26, Mozilla 0.99.8 and PHPLib > 7.4pre1. I've made the modifications in my prepend.php3 / local.inc and > crLoginForm.ihtml (well I use the auth_md5 class) but it doesn't work > anymore : > > - I get my usual login form, but entering user/password just gives me a > new blank login form. > > Looking in the mysqld.log file, the only thing I see is that the query > made against auth_user table is looking for a username = ''... This make > me think that the values I enter in the login form are not correctly > passed to auth_validatelogin method. > > But that's the only thing I've found ! > > Any help really apreciated, > > -- > Jose Luis > > ---------------------------------------------------------------------------- > Y no llegaste a quererme, y eran mis cinco sentidos > Y no llegaste a quererme, y que desgraciaito he sido > Y que ha tenido que aborrecerte tanto como te ha querido (Camaron) > ---------------------------------------------------------------------------- > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > |