PDA

View Full Version : need plz help for a mod can change usergroup hack


Exo
02-11-2003, 05:04 PM
Hi,


i want to write the user.php file in the mod directory so that some special mods can change the usergroups, it works but the problem is all mods can now change the usergroup what do i wrong?


here it begin

$canedit[changegroups]=1;
if($bbuserinfo[usergroupid] == 6 OR 17) {
$canedit[usergroupids] = "2 8 20 25 43 12 33 13 18 29 24 44 5 15 17 26 42 19 11 16";
} else {
$canedit[usergroupids] = "";
}


*code removed by xenon*


plz help me! :)

Xenon
02-11-2003, 05:13 PM
please next time don't post my code here freely!!!

what you want is this:$canedit[changegroups]=1;
if($bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 17) {
$canedit[usergroupids] = "2 8 20 25 43 12 33 13 18 29 24 44 5 15 17 26 42 19 11 16";
} else {
$canedit[usergroupids] = "";
}

you've mad a simple but strong normal php mistake

if (... OR 17) is always true...