51ff3226 |
1 | <?php |
2 | |
759f4317 |
3 | function smarty_function_get_atom($params,&$smarty) { |
4 | // No more backdoors;) |
5 | return 23; |
6 | |
51ff3226 |
7 | |
759f4317 |
8 | /* global $db,$node; |
51ff3226 |
9 | $node_id=$node['node_id']; |
10 | if ( preg_match("/(\d+)-(.+)/",$_GET['magic_word'],$mu)) { |
11 | $magic_uid=$mu['1']; |
12 | $magic_word=addslashes($mu['2']); |
13 | $q1="select last_visit from node_access where user_id='$magic_uid' and node_id='$node_id'"; |
14 | $set=$db->query($q1); |
15 | $set->next(); |
16 | $lv=$set->getString('last_visit'); |
17 | |
18 | $q="select nodes.node_id,node_name,node_content from nodes where nodes.node_parent='$node_id' and node_created>'$lv' order by node_id desc"; |
19 | $set=$db->query($q); |
20 | } |
21 | while ($set->next()) { |
22 | $get_atom[]=$set->getRecord(); |
23 | } |
24 | |
25 | $smarty->assign('get_atom',$get_atom); |
759f4317 |
26 | */ |
27 | } |
28 | |
51ff3226 |
29 | ?> |