Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | function smarty_function_get_allusers($params,&$smarty) { | |
3 | global $db,$node; | |
4 | $q="select user_id, login from users where hash='' order by login "; | |
5 | $set=$db->query($q); | |
6 | while ($set->next()) { | |
7 | $users[]=$set->getRecord(); | |
8 | $smarty->assign('get_allusers',$users); | |
9 | } | |
10 | } | |
11 | ?> |