obtains the list of all registered users and puts it and assigns it to smarty get_all...
authorDaniel Hromada <hromi@Aphrodité.(none)>
Sun, 30 Jan 2011 23:21:28 +0000 (00:21 +0100)
committerDaniel Hromada <hromi@Aphrodité.(none)>
Sun, 30 Jan 2011 23:21:28 +0000 (00:21 +0100)
wwwroot/inc/smarty/node_methodz/function.get_allusers.php [new file with mode: 0644]

diff --git a/wwwroot/inc/smarty/node_methodz/function.get_allusers.php b/wwwroot/inc/smarty/node_methodz/function.get_allusers.php
new file mode 100644 (file)
index 0000000..c9af95f
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+       function smarty_function_get_allusers($params,&$smarty) {
+               global $db,$node;
+               $q="select user_id, login from  users where hash='' order by login ";
+               $set=$db->query($q);
+               $users[]=$set->getRecord();
+               $smarty->assign('get_allusers',$users);
+       }
+?>
This page took 0.272211 seconds and 4 git commands to generate.