$value) { if ($user == $value) { $user = $key; break; } // if } // foreach $nusers = get_nusers ($stream); if (count ($nusers) == 0) { $nusers [0] = $user; $status = chnusers ($stream, $nusers); if ($status == 0) { print "$user is now allowed to access $stream"; } else { print "ERROR: Unable to add $user to nuser list of $stream"; } // if } elseif (is_member ($user, $nusers)) { print "ERROR: $user is already allowed access to $stream
"; } else { array_push ($nusers, $user); $status = chnusers ($stream, $nusers); if ($status == 0) { print "$user is now allowed to access $stream"; } else { print "ERROR: Unable to add $user to nuser list of $stream"; } // if } // if ?>

Manage Stream Locks for