Browse Source

Add serial and manufacturer fields to addmachine API

master
Skylar Ittner 3 years ago
parent
commit
ba27b06e91
  1. 6
      api/index.php

6
api/index.php

@ -152,6 +152,12 @@ switch ($VARS['action']) {
if (!empty($VARS['os'])) {
$data['os'] = $VARS['os'];
}
if (!empty($VARS['serial'])) {
$data['serial'] = $VARS['serial'];
}
if (!empty($VARS['manufacturer'])) {
$data['manufacturer'] = $VARS['manufacturer'];
}
$database->insert('machines', $data);
if ($database->error()[1] != 0) {

Loading…
Cancel
Save