<?php
/*
* http://community.mybb.com/user-83692.html ~
*/
define("IN_MYBB", 1);
define("THIS_SCRIPT", "showgroups.php");
require_once "./global.php";
// No guests are allowed to see this page.
if(!$mybb->user['uid']) {
error("Login or Register to view this page.");
}
// Enter the GIDs you'd like to show up on the page.
$groups = array('4','10','9');
$bread = "Showgroups";
add_breadcrumb($bread, 'showgroups.php');
foreach ($groups as &$usergroups) {
$query = $db->write_query("SELECT * FROM ".TABLE_PREFIX."usergroups WHERE gid='$usergroups'");
while($row = $db->fetch_array($query)) {
$row['title'] = htmlspecialchars_uni($row['title']);
$row['description'] = htmlspecialchars_uni($row['description']);
$row['image'] = $row['image'];
eval("\$showgroupsrow .= \"".$templates->get("showgroups_row")."\";");
}
}
eval("\$showgroupsindex = \"".$templates->get("showgroups")."\";");
output_page($showgroupsindex);