Firefox PHP

Disabling password change for specified user(s)

Posted by Peter Martin 
Disabling password change for specified user(s)
February 28, 2011 02:24AM
How can I disable password changes for certain users? In psuedo-code, something like

if $user = "Demo user" then...


Could someone point me to the right file to edit, and perhaps the correct Phorum variable for username?

Thanks.
Re: Disabling password change for specified user(s)
February 28, 2011 03:15AM
Ah ha, that was easy enough. For reference in case anyone else needs something similar:

Top of include/controlcenter/password.php
Language: PHP
if ($PHORUM[';user';][';username';] == "Joe") { $PHORUM["DATA"]["HEADING"] = "Password change disabled in demo account"; return; }
Sorry, only registered users may post in this forum.

Click here to login