Migration to PDO database abstraction layer
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / put.inc
1 <?php
2 function put() {
3
4
5 if (!empty($_POST['nodeshell_id'])) $nodeshell_id = db_escape_string($_POST['nodeshell_id']);
6 else $nodeshell_id = db_escape_string($_POST['nodeshell_id_select']);
7
8 if (is_array($_POST['node_chosen'])) $put_array = $_POST['node_chosen'];
9 else {
10 global $node;
11 $put_array[] = $node['node_id'];
12 }
13
14 foreach ($put_array as $chosen) {
15 nodes::putNode($chosen,$nodeshell_id);
16 }
17 }
18 ?>
This page took 0.261205 seconds and 4 git commands to generate.