PDA

View Full Version : edit info


mewgood
03-28-2002, 01:32 AM
Is it possible to make a super can't edit the admin's info?

mewgood
03-28-2002, 02:26 AM
anyone can help me out please?

Logician
03-29-2002, 07:46 AM
Not exactly what you asked but I think you can still use it: This hack will make Admin (or any user)'s info untouchable by anybody including Super Mods.

Edit: admin/user.php

find:
-- cut ---
// ###################### Start do update #######################
if ($HTTP_POST_VARS['action']=="doupdate") {

if (!isset($ausername) or $ausername == '') {
echo "<p>You did not give this user an username</p>";
exit;
}
-- cut --------

After that add:
--- cut ----
if ($ausername == 'XXXX') {
echo "<p>You can NOT edit the profile of $ausername !</p>";
exit;
}

--- cut ----

Replace XXXX with the username of Admin or any user you want to grant "untouchablity"

That's all..

Important downside: Even Admin himself cant touch the user anymore. :P But I think it's no big deal, user himself (or if it's Admin) he can still change the info, from USER CP. Besides if you want to revoke his "untouchability" you can anytime delete the code above and make him back an ordinary user.

BTW: This is *NOT* tested, but should work.

Regards,

mewgood
03-29-2002, 08:47 PM
Thanks