Verfasst: 08.07.2004 20:57
Gruß Christian$allowed_u[] = 'gfotostory'; //gruppe
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Gruß Christian$allowed_u[] = 'gfotostory'; //gruppe
Code: Alles auswählen
----- suche -----
$access_allowed = false;
while( list($group_id, $group_name) = $db->sql_fetchrow($result) )
{
if( in_array('g' . $group_id[group_id],$allowed_u ))
{
$access_allowed = true;
break;
}
if( in_array('g' . $group_name[group_name],$allowed_u))
{
$access_allowed = true;
break;
}
}
----- ersetze mit ------
$access_allowed = false;
$group_ary = array();
while( $group_ary = $db->sql_fetchrow($result) )
{
if( in_array('g' . $group_ary[group_id],$allowed_u ))
{
$access_allowed = true;
break;
}
if( in_array('g' . $group_ary[group_name],$allowed_u))
{
$access_allowed = true;
break;
}
}