Hierarchy fixup
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / smarty / node_methodz / function.get_bookmark.php
diff --git a/wwwroot/inc/smarty/node_methodz/function.get_bookmark.php b/wwwroot/inc/smarty/node_methodz/function.get_bookmark.php
new file mode 100644 (file)
index 0000000..fa8aa64
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+function smarty_function_get_bookmark($brawco,&$smarty) {
+       global $db;
+       $q="select * from node_access left join nodes on node_access.node_id=nodes.node_id where user_id='".$_SESSION['user_id']."' and node_bookmark='yes' order by bookmark_category,node_name";
+       $result=$db->query($q);
+       while ($result->next()) {
+               $record[]=$result->getRecord();
+       }
+       $smarty->assign('get_bookmark',$record);
+
+}
+?>
This page took 0.092997 seconds and 4 git commands to generate.