TECK
07-06-2002, 07:46 PM
i did this to allow only user 1 to edit other admins:
forum/admin/config.php
add at the bottom:// user can edit admins
$editadmin='1';you can add as many users you want there...
forum/admin/user.php
find:adminlog(iif($userid!=0,"user id = $userid",""));below this add:unset($editadmin);
find:if ($HTTP_POST_VARS['action']=="doupdate") {
replace it with:if ($HTTP_POST_VARS['action']=="doupdate" && checklogperms($editadmin,1,"<p>You are not allowed to edit this user.</p>")) {it will not work. what do i do wrong? thanks.
forum/admin/config.php
add at the bottom:// user can edit admins
$editadmin='1';you can add as many users you want there...
forum/admin/user.php
find:adminlog(iif($userid!=0,"user id = $userid",""));below this add:unset($editadmin);
find:if ($HTTP_POST_VARS['action']=="doupdate") {
replace it with:if ($HTTP_POST_VARS['action']=="doupdate" && checklogperms($editadmin,1,"<p>You are not allowed to edit this user.</p>")) {it will not work. what do i do wrong? thanks.