<commit_before><?php
/**
* @version		$Id$
* @package		Joomla
* @copyright		Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport('joomla.html.pagination');

$db				=& JFactory::getDBO();
$user			=& JFactory::getUser();

// TODO -  pagination needs to be completed in module
$limit 		= $mainframe->getUserStateFromRequest('limit', 'limit', $mainframe->getCfg('list_limit'), 'int');
$limitstart = $mainframe->getUserStateFromRequest('mod_logged.limitstart', 'limitstart', 0, 'int');

$query = 'SELECT COUNT(*) FROM #__users AS u'
	    .' RIGHT JOIN #__session AS s ON s.userid = u.id'
	    .' WHERE guest != 1 AND s.gid = u.gid AND s.username = u.username AND s.usertype = u.usertype'
	    .' ORDER BY u.usertype, u.username'; 
$db->setQuery( $query );
$total = $db->loadResult();

// page navigation
$pageNav = new JPagination( $total, $limitstart, $limit );

$query = 'SELECT * FROM #__users AS u'
	    .' RIGHT JOIN #__session AS s ON s.userid = u.id'
	    .' WHERE guest != 1 AND s.gid = u.gid AND s.username = u.username AND s.usertype = u.usertype'
	    .' ORDER BY u.usertype, u.username';
$db->setQuery( $query );
$rows = $db->loadObjectList();

require( dirname( __FILE__ ).DS.'tmpl'.DS.'default.php' );<commit_msg>re #191 : Removed legacy code<commit_after><?php
/**
 * @version     $Id$
 * @category    Nooku
 * @package     Nooku_Server
 * @subpackage  Modules
 * @copyright   Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

/**
 * Users Module
 *
 * @author      <NAME> <http://nooku.assembla.com/profile/johanjanssens>
 * @category    Nooku
 * @package     Nooku_Server
 * @subpackage  Modules
 */

echo KService::get('mod://admin/logged.html')
    ->module($module)
    ->attribs($attribs)
    ->display();

{'fraction_non_alphanumeric': 0.15161987041036717, 'fraction_numerical': 0.009935205183585313, 'mean_word_length': 3.5770750988142295, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5007033', 'n_tokens_mistral': 831, 'n_tokens_neox': 769, 'n_words': 227}