This topic is locked

Blokking change password option

8/22/2006 12:49:25 PM
PHPRunner General questions
W
wilco muns author

Hello,
Ik like to block the change password option for some users (not all).

Is this possible?

If so, how can i do this?

J
Jane 8/23/2006

Hi,
open changepwd.php file, find $changed=false; line and add following code after it:

if ($_SESSION["UserID"]=='user1'

|| $_SESSION["UserID"]=='user2'

|| $_SESSION["UserID"]=='user3'

)

{

echo "you aren't allowed to change password";

exit();

}