<?php
//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}
global $userlib;
$users = $userlib->get_users(0, -1, 'login_asc', '', '', true);
for ($i = 0; $i < $users['cant']; ++$i) {
	$user = $users['data'][$i]['user'];
	$users['data'][$i]['realName'] = $tikilib->get_user_preference($user,'realName','');
	$users['data'][$i]['avatar'] = $tikilib->get_user_avatar($user);
}
$smarty->assign_by_ref('users', $users['data']);
?>