SetQuery("SELECT uid,username FROM #@__group_user WHERE gid='{$id}' ORDER BY jointime DESC LIMIT 0,8"); $db->Execute(); $newmenber = ''; while($rs = $db->GetArray()){ $newmenber .= "
  • ".$rs['username']."
  • \n"; } //Max replies $db->SetQuery("SELECT uid,username,replies FROM #@__group_user WHERE gid='{$id}' ORDER BY replies DESC LIMIT 0,5"); $db->Execute(); $replies = ''; while($rs = $db->GetArray()){ $replies .= "
  • ".$rs['username']." (".$rs['replies'].")
  • \n"; } //Max posts $db->SetQuery("SELECT uid,username,posts FROM #@__group_user WHERE gid='{$id}' ORDER BY posts DESC LIMIT 0,5"); $db->Execute(); $posts = ''; while($rs = $db->GetArray()){ $posts .= "
  • ".$rs['username']." (".$rs['posts'].")
  • \n"; } if(!isset($typeid)) $typeid = ''; //Small types if(!isset($smalltype)) $smalltype = '0'; $smalltype = ereg_replace("[^0-9,]","",$smalltype); $smalltypes = ""; $smalltype_array = array(); if($smalltype!='0'){ $smalltype = @explode(",",$smalltype); if(is_array($smalltype)) $smalltype = array_filter($smalltype); $smalltype = @implode(",",$smalltype); if(empty($smalltype)) $smalltype = 0; $db->SetQuery("SELECT `id`,`smalltypes` FROM `#@__group_smalltypes` WHERE `userid`=".$userid." AND `id` IN(".$smalltype.") ORDER BY `disorder` ASC"); $db->Execute(); while($rs = $db->GetArray()){ array_push($smalltype_array,$rs); $selected = ""; if($typeid==$rs['id']) $selected = "style='color:red;'"; $smalltypes .= "
    ".$rs['smalltypes']."
    \n"; } } ?>
    SetQuery("SELECT uname,message FROM #@__group_guestbook WHERE gid='{$id}' ORDER BY stime DESC LIMIT 0,5"); $db->Execute(); while($rs = $db->GetArray()){ ?>
    :
    []