Kyberia v2.0
[mirrors/Kyberia-bloodline.git] / inc / smarty / node_methodz / function.get_waiting_users.php
diff --git a/inc/smarty/node_methodz/function.get_waiting_users.php b/inc/smarty/node_methodz/function.get_waiting_users.php
new file mode 100644 (file)
index 0000000..a14f78a
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+
+       function smarty_function_get_waiting_users($params,&$smarty) {
+               global $db, $error, $node;
+               $node_id=$node['node_id'];
+               $q="select node_content,users.* from users left join node_content on node_content.node_id=users.user_id where user_status='waiting'";
+               if ($_SESSION['cube_vector']) $q.=" and cube_vector='".$_SESSION['cube_vector']."'";
+               else $q.=" and cube_vector IS NULL";
+               $result=$db->query($q);
+               while ($result->next()) {
+                       $get_waiting_users[]=$result->getRecord();
+               }
+               $smarty->assign('get_waiting_users',$get_waiting_users);
+
+       }
+?>
\ No newline at end of file
This page took 0.140162 seconds and 4 git commands to generate.