3711415b4eb348a5273d961fa43ed1571ec637cc
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / smarty / node_methodz / function.get_k_neurons.php
1 <?php
2
3 function smarty_function_get_k_neurons($params,&$smarty) {
4
5 global $db,$node;
6 if (isset($params['offset']) && (is_numeric($params['offset']))) {
7 $offset=$params['offset'];
8 } else {$offset=20;}
9 if (isset($params['listing_amount']) && (is_numeric($params['listing_amount']))) {
10 $listing_amount=$params['listing_amount'];
11 } else {$listing_amount=DEFAULT_LISTING_AMOUNT;}
12 if (isset($_POST['interval']) && (is_numeric($_POST['interval']))) {
13 $interval= $_POST['interval'];
14 } else {$interval = 1;}
15 if (isset($params['vector']) && ($params['vector'])) {
16 $vector=$params['vector'];
17 $interval=365;
18 } else {$vector="00";}
19
20
21 // XXX other parameters
22 $k_array=nodes::getKNeurons($_SESSION['user_id'],$offset);
23
24
25 $smarty->assign('get_k_neurons',$k_array);
26 }
27 ?>
This page took 0.29178 seconds and 3 git commands to generate.