[Pugged] Alright, my turn

Bryan Baker ciapug@ciapug.org
Tue, 24 Sep 2002 16:12:13 -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, and updating PHP in the process, I now have a problem I'm having difficulty getting around. It worked before, but now it doesn't.
> 
> I am testing for a needed level of access for a page. The page sets a variable named $auth to 50, then in my authfile it tests as follows:
> 
> if(!$_SESSION['usr_seclvl'] > $auth)

you might try:
if(!($_SESSION['usr_seclvl'] > $auth))

I think it's evaluating the $_SESSION['usr_seclvl'] and ignoring the 
rest. or how about simplifying it?

if($_SESSION['usr_seclvl'] < $auth)


> 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?
> 
> Let me know. I'll get it eventually, but I've already spent a week resurrecting this already. I want speed! ;) Thanks!
> 
> Chris
> _______________________________________________
> Ciapug mailing list
> Ciapug@ciapug.org
> http://cialug.org/mailman/listinfo/ciapug
> 
> 


-- 
Bryan Baker
-------------------------------------------------------------------
Virgo (August 23 - September 22)

   It will occur to you to wonder, what if Jesus had actually
   said "The geek shall inherit the earth", but was just misquoted?
   Then you'll think of Bill Gates.  Then you'll start to worry.