get_user_submissions_children first draft
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / smarty / node_methodz / function.get_user_submissions_children.php
CommitLineData
95a6ccc2 1<?php\r
2\r
3// Get all the direct replies for user submisions\r
4\r
5function smarty_function_get_user_submissions_children($params, &$smarty) {\r
6\r
7 if (!isset($_SESSION['user_id')\r
8 $user_id = $_SESSION['user_id'];\r
9 else\r
10 return -1;\r
11\r
12 if (!isset($params['listing_amount']))\r
13 $listing_amount = DEFAULT_LISTING_AMMOUNT;\r
14 else\r
15 $listing_amount = $params['listing_amount'];\r
16\r
17 if (empty($params['offset']))\r
18 $offset = 0;\r
19 else\r
20 $offset = $params['offset'];\r
21 \r
22 if (!isset($params['order_by']))\r
23 $order_by = $params['order_by'];\r
24 else\r
25 $order_by = 'node_id';\r
26\r
27 $replies=nodes::GetUserSubmissionsChildren($user_id,$listing_ammount,$offset,$order_by);\r
28\r
29 $smarty->assign('get_user_submissions_children', $replies);\r
30}\r
31\r
32?>\r
This page took 0.10837 seconds and 4 git commands to generate.