exit(1);
}
-define('GROUPS_PER_PAGE', 20);
+require_once INSTALLDIR.'/lib/grouplist.php';
/**
* User groups page
var $page = null;
var $profile = null;
+ function isReadOnly()
+ {
+ return true;
+ }
+
function title()
{
if ($this->page == 1) {
function showContent()
{
+ $this->elementStart('p', array('id' => 'new_group'));
+ $this->element('a', array('href' => common_local_url('newgroup'),
+ 'class' => 'more'),
+ _('Create a new group'));
+ $this->elementEnd('p');
+
+ $this->elementStart('p', array('id' => 'group_search'));
+ $this->element('a', array('href' => common_local_url('groupsearch'),
+ 'class' => 'more'),
+ _('Search for more groups'));
+ $this->elementEnd('p');
+
$offset = ($this->page-1) * GROUPS_PER_PAGE;
$limit = GROUPS_PER_PAGE + 1;