Commit | Line | Data |
---|---|---|
51ff3226 | 1 | <?php |
2 | function put() { | |
5f4d5ff6 | 3 | |
51ff3226 | 4 | |
5 | if (!empty($_POST['nodeshell_id'])) $nodeshell_id = mysql_real_escape_string($_POST['nodeshell_id']); | |
6 | else $nodeshell_id = mysql_real_escape_string($_POST['nodeshell_id_select']); | |
7 | ||
51ff3226 | 8 | if (is_array($_POST['node_chosen'])) $put_array = $_POST['node_chosen']; |
5f4d5ff6 DH |
9 | else { |
10 | global $node; | |
11 | $put_array[] = $node['node_id']; | |
12 | } | |
51ff3226 | 13 | |
14 | foreach ($put_array as $chosen) { | |
5f4d5ff6 | 15 | nodes::putNode($chosen,$nodeshell_id); |
51ff3226 | 16 | } |
17 | } | |
18 | ?> |