+ Added virtual groups for Admins and Mods
git-svn-id: https://svn.pioder.pl/uf-svn/uF@26 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
@@ -148,12 +148,15 @@ class Secure
|
||||
function group_exists($gid)
|
||||
{
|
||||
global $lng;
|
||||
$sql = "SELECT `g_id` FROM `".GROUPS_TABLE."` WHERE g_id='$gid'";
|
||||
$result = DataBase::fetch(DataBase::sql_query($sql,GENERAL,'Could not obtain group information.'));
|
||||
$result = $result['g_id'];
|
||||
if ($result=='')
|
||||
if ($gid != 'mods' || $gid!='admins')
|
||||
{
|
||||
message_forum($lng['no_group'],'groups.php');
|
||||
$sql = "SELECT `g_id` FROM `".GROUPS_TABLE."` WHERE g_id='$gid'";
|
||||
$result = DataBase::fetch(DataBase::sql_query($sql,GENERAL,'Could not obtain group information.'));
|
||||
$result = $result['g_id'];
|
||||
if ($result=='')
|
||||
{
|
||||
message_forum($lng['no_group'],'groups.php');
|
||||
}
|
||||
}
|
||||
}
|
||||
function TagsReplace($text)
|
||||
|
||||
Reference in New Issue
Block a user