$setting = array( "sid"=> NULL, "name"=> "PLUGIN_usergroups", "title"=> "Allowed Usergroups", "description"=> "Enter the IDs (GIDS) of the groups allowed to use this feature. (use \'all\' to allow everyone)", "optionscode"=> "text", "value"=> 'all', "disporder"=> 1, "gid"=> $gid );
$db->insert_query("settings", $setting);
rebuild_settings(); }
function PLUGIN_uninstall() { global $db, $mybb;
// This deletes the setting group $db->delete_query("settinggroups", "name = 'PLUGIN'");
// And this removes the settings $db->delete_query('settings', 'name IN (\'PLUGIN_usergroups\')');
rebuild_settings(); }
function PLUGIN_check_permissions($groups_comma) { global $mybb;