RE: [PEAR] Pear Auth

From: Date: Mon, 24 Dec 2001 10:07:57 +0000
Subject: RE: [PEAR] Pear Auth
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-630@lists.php.net to get a copy of this message
Ok, sorry Martin. I must have picked you up wrong. I have attached my previous emails, that should clarify this. If you need further info, just let me know ---------------------- I have modified the SQL some more in the hack you sent me...the previous one was rubbish (my first mod attempt that I sent you)! Now I have the problem with the following line: if ($entry[$HTTP_SERVER_VARS['PHP_SELF']] == "yes")) { .... If I have say... $pagePerm = "00000005"; ...at the top of every page, what changes would I need to make to the above line, and elsewhere in DB_Perm.php, to make it work. I've been playing with this for hours, changing this if statement to everything I can think of, and I always (as long as the code parses ok) get authorized, no matter what the permissions are. I have attached my modified DB_Perm.php, your original hack, and the test page (testAuth.php) I'm using to check it. BTW "AUPermID" is a field in my Auth table with values like 00000001,00000002,0000003, etc, as user levels (permissions). ---------------------- Thanks Simon H -----Original Message----- From: Martin Jansen [mailto:mail@martin-jansen.de] Sent: 24 December 2001 10:02 To: Simon H Cc: Stig S. Bakken; Pear-General Subject: RE: [PEAR] Pear Auth On Mon, 24 Dec 2001 09:33:55 -0000, Simon H wrote: >All I'm trying to do, is say if the user has userlevel 5 or above, they can >enter, if not, then they cant. The userlevel e.g. "$level=5;" will be at >the top of each page. I would like to integrate with or use something on >top of Pear Auth to do this. Martin did a minor mod for me but it doesn't >work, and now he's not interested, I never said that I'm not interested in helping you. You only send the files, that I patched for you, back to me and never told me, that they were not working. If you had done so, I had surely helped you :). What exactly did not work? - Martin -- Martin Jansen, <mail@martin-jansen.de> http://www.martin-jansen.de/

Attachment: [application/x-zip-compressed] auth_Perms_hack.zip
« previous php.pear.general (#630) next »