Migration to PDO database abstraction layer
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / put.inc
CommitLineData
51ff3226 1<?php
2function put() {
5f4d5ff6 3
51ff3226 4
78f1a5f4
H
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']);
51ff3226 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?>
This page took 0.209523 seconds and 4 git commands to generate.