<commit_before><?php defined('EF5_SYSTEM') || exit;
/***********************************************************
| eXtreme-Fusion 5.0 Beta 5
| Content Management System       
|
| Copyright (c) 2005-2012 eXtreme-Fusion Crew                	 
| http://extreme-fusion.org/                               		 
|
| This product is licensed under the BSD License.				 
| http://extreme-fusion.org/ef5/license/						 
***********************************************************/
$_locale->load('users');

define('THIS', FALSE);

$theme = array(
	'Title' => __('Lista użytkowników').' &raquo; '.$_sett->get('site_name'),
	'Keys' => 'Użytkownicy '.$_sett->get('site_name').', konta '.$_sett->get('site_name').', profile',
	'Desc' => 'Lista aktywnych kont na stronie '.$_sett->get('site_name')
);

$data = new Edit(
	array(
		'current' => $_route->getByID(1) ? $_route->getByID(1) : 1,
		'sort' => is_string($_route->getByID(2)) ? $_route->getByID(2) : 'all'
	)
);

$rows = $_pdo->getMatchRowsCount('SELECT * FROM [users] WHERE `status` = 0 '.($data->arr('sort')->filters('trim', 'strip') !== 'all' ? 'AND `username` LIKE "'.$data->arr('sort')->filters('trim', 'strip').'%"' : '').'');

if ($rows)
{
	$rowstart = $data->arr('current')->isNum(TRUE, FALSE) ? PAGING::getRowStart($data->arr('current')->isNum(TRUE, FALSE), intval($_sett->get('users_per_page'))) : 0;

	$cache = $_system->cache('users,'.$_user->getCacheName().',sort_by-'.$data->arr('sort')->filters('trim', 'strip').',page-'.$data->arr('current')->isNum(TRUE, FALSE), NULL, 'users', $_sett->getUns('cache', 'expire_pages'));
	if ($cache === NULL)
	{
		$query = $_pdo->getData('
			SELECT `id`, `username`, `role`, `status`, `lastvisit`
			FROM [users] WHERE `status` = 0 '.($data->arr('sort')->filters('trim', 'strip') !== 'all' ? 'AND `username` LIKE "'.$data->arr('sort')->filters('trim', 'strip').'%"' : '').'
			ORDER BY `role` ASC, `username`
			LIMIT :rowstart,:users_per_page',
			array(<commit_msg>Update pages/users.php<commit_after><?php defined('EF5_SYSTEM') || exit;
/***********************************************************
| eXtreme-Fusion 5.0 Beta 5
| Content Management System       
|
| Copyright (c) 2005-2012 eXtreme-Fusion Crew                	 
| http://extreme-fusion.org/                               		 
|
| This product is licensed under the BSD License.				 
| http://extreme-fusion.org/ef5/license/						 
***********************************************************/
$_locale->load('users');

define('THIS', FALSE);

$theme = array(
	'Title' => __('Lista użytkowników').' &raquo; '.$_sett->get('site_name'),
	'Keys' => 'Użytkownicy '.$_sett->get('site_name').', konta '.$_sett->get('site_name').', profile',
	'Desc' => 'Lista aktywnych kont na stronie '.$_sett->get('site_name')
);

$data = new Edit(
	array(
		'current' => $_route->getByID(1) ? $_route->getByID(1) : 1,
		'sort' => is_string($_route->getByID(2)) ? $_route->getByID(2) : 'all'
	)
);

$rows = $_pdo->getMatchRowsCount('SELECT * FROM [users] WHERE `status` = 0 '.($data->arr('sort')->filters('trim', 'strip') !== 'all' ? 'AND `username` LIKE "'.$data->arr('sort')->filters('trim', 'strip').'%"' : '').'');

if ($rows)
{
	$rowstart = $data->arr('current')->isNum(TRUE, FALSE) ? Paging::getRowStart($data->arr('current')->isNum(TRUE, FALSE), intval($_sett->get('users_per_page'))) : 0;

	$cache = $_system->cache('users,'.$_user->getCacheName().',sort_by-'.$data->arr('sort')->filters('trim', 'strip').',page-'.$data->arr('current')->isNum(TRUE, FALSE), NULL, 'users', $_sett->getUns('cache', 'expire_pages'));
	if ($cache === NULL)
	{
		$query = $_pdo->getData('
			SELECT `id`, `username`, `role`, `status`, `lastvisit`
			FROM [users] WHERE `status` = 0 '.($data->arr('sort')->filters('trim', 'strip') !== 'all' ? 'AND `username` LIKE "'.$data->arr('sort')->filters('trim', 'strip').'%"' : '').'
			ORDER BY `role` ASC, `username`
			LIMIT :rowstart,:users_per_page',
			array(
{'fraction_non_alphanumeric': 0.29895594601476955, 'fraction_numerical': 0.0106951871657754, 'mean_word_length': 4.6275071633237825, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '7412376', 'n_tokens_mistral': 1467, 'n_tokens_neox': 1355, 'n_words': 248}