echo "No action!"; } } //---------------------------------------------------------------------- if ($action == 'addOrderForm') { $sid = $_POST['f_sid']; if ($g_dbM1->checkIfValueExists(SXN_ADMIN_TABLE_STREAMS, SXN_ADMIN_STREAMS_COLUMN_SID, $sid) == true) { $command = $_POST['f_command']; $parameters = $_POST['f_parameters']; $order = $command . ' ' . $parameters; echo "sid={$sid}<br>"; echo "order={$order}<br>"; $valueArray = array($sid, $order, 'new'); $columnArray = array(SXN_CONTROL_COMMANDS_COLUMN_SID, SXN_CONTROL_COMMANDS_COLUMN_COMMAND, SXN_CONTROL_COMMANDS_COLUMN_STATUS); if ($sid) { $g_dbM3->insertRow(SXN_CONTROL_TABLE_COMMANDS, $columnArray, $valueArray); } else { echo "No action!"; } } else { echo "SID does not exists<br>"; } $do = 'list_order'; } //---------------------------------------------------------------------- if ($action == 'addDatatypeForm') { $name = $_POST['f_name']; $unit = $_POST['f_unit']; if ($unit && $name) { addDataType($name, $unit); } else {