[Pugged] Alright, my turn
Tim Perdue
ciapug@ciapug.org
Tue, 24 Sep 2002 16:25:20 -0500
--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Sep 24, 2002 at 03:58:18PM -0500, Chris Van Cleve wrote:
> SO, I updated to Mac OS X 10.2 and went through the horrendous discovery =
that my backup scheme for MySQL didn't work. Starting over from scratch, an=
d updating PHP in the process, I now have a problem I'm having difficulty g=
etting around. It worked before, but now it doesn't.
>=20
> I am testing for a needed level of access for a page. The page sets a var=
iable named $auth=20
> to 50, then in my authfile it tests as follows:
>=20
> if(!$_SESSION['usr_seclvl'] > $auth)
>=20
> Then display an access restricted message instead of the protected page. =
What happens in reality, however, is it lets anyone of any level other than=
0 (zero) into the page. Any ideas? Need mroe info than that?
>=20
> Let me know. I'll get it eventually, but I've already spent a week resurr=
ecting this already. I want speed! ;) Thanks!
I haven't fully pondered your message, but I wonder if you are running into
the issue where PHP is more strict now with global variables?
/usr/local/lib/php.ini:
register_globals =3D On
That comes turned off by default.
Tim
--=20
Founder - PHPBuilder.com / Geocrawler.com / SourceForge
GPG Public Key: http://www.perdue.net/personal/pgp.php
Perdue, Inc. / Immortal LLC
515-554-9520
--T4sUOijqQbZv57TR
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9kNhALxmgedYDVWQRAhiXAJ9A7b34yldjJ8kqt3NMU86+p818XACePHRh
XIzO2mtsGW8XGyhFfemmtcM=
=MXhd
-----END PGP SIGNATURE-----
--T4sUOijqQbZv57TR--