Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

does anybody know what the use of the exclamation mark in "!isset" is?
It seems that the script below is only willing to work properly if used
without "!".

  die ("Access denied");


Re: !isset

Quoted text here. Click to load it

It is one of the basic operators, it performs a boolean NOT operation to  
given value. Ie. if the value is FALSE, the NOT operator will make it TRUE,  
and vice cersa, TRUE will become FALSE

Quoted text here. Click to load it

You are completely changing the functionality of the script to something it  
was never intended.

Quoted text here. Click to load it

This horrible piece of script registers all session variables as variables,  
then checks weather the session variable called 'password' exists,  
assumingly it is only present once the user has logged in. If it does not  
exists, the script stops giving the error message 'access denied'. Once you  
remove the exlamation mark, you are no longer checking weather the user is  
logged in or not - in fact you are throwing out anyone who is. If this is  
what you want, then you can remove the entire section of code if it is all  
the same to you. Not that it was really secure in the first place...

"Ohjelmoija  on  organismi  joka  muuttaa  kofeiinia  koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pivittyv nettisarjis
spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)  

Re: !isset

Thank you for your answer. The problem occurred in an internal
information system, accessible by only a few users. There is another
virtual host running, which needed the php.ini's session parameters
adapted. Since then the first authentication of the information system
is indeed able to authenticate the user/password and to redirect into
the "odd" script which comes up with the "access denied" message

Anyway, the only protected function is an index-update, so I won't
spend much more time on the matter.

Quoted text here. Click to load it

Site Timeline