Changeset 1408 in ExiteCMS for branches/PLi-Fusion/forum/viewthread.php
- Timestamp:
- 05/15/08 22:25:54 (4 years ago)
- File:
-
- 1 edited
-
branches/PLi-Fusion/forum/viewthread.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/PLi-Fusion/forum/viewthread.php
r1343 r1408 325 325 $data['group_names'] = array(); 326 326 $data['group_names'][] = array('type' => 'U', 'level' => $data['user_level'], 'name' => getuserlevel($data['user_level'])); 327 if ($data['user_groups'] != "") { 328 $gresult = dbquery("SELECT group_name, group_forumname, group_color FROM ".$db_prefix."user_groups WHERE group_id IN (".str_replace('.', ',', substr($data['user_groups'],1)).") AND group_visible & 2"); 329 $grecs = dbrows($gresult); 330 while ($gdata = dbarray($gresult)) { 331 $data['group_names'][] = array('type' => 'G', 'color' => $gdata['group_color'], 'name' => $gdata['group_forumname']==""?$gdata['group_name']:$gdata['group_forumname']); 327 328 if ($data['user_groups']) { 329 $groups = (strpos($data['user_groups'], ".") == 0 ? explode(".", substr($data['user_groups'], 1)) : explode(".", $data['user_groups'])); 330 foreach ($groups as $group) { 331 // check if this groups has subgroups. If so, add them to the array 332 getsubgroups($group); 333 } 334 for ($i = 0;$i < count($groups);$i++) { 335 $gresult = dbquery("SELECT group_name, group_forumname, group_color FROM ".$db_prefix."user_groups WHERE group_id='".$groups[$i]."' AND group_visible & 2"); 336 if(dbrows($gresult)) { 337 $gdata = dbarray($gresult); 338 $data['group_names'][] = array('type' => 'G', 'color' => $gdata['group_color'], 'name' => $gdata['group_forumname']==""?$gdata['group_name']:$gdata['group_forumname']); 339 } 332 340 } 333 341 }
Note: See TracChangeset
for help on using the changeset viewer.
