Revert "Added functionality to show when a devices was last provisioned"
This reverts commit c3e40d68fa.
This commit is contained in:
parent
c3e40d68fa
commit
8c27a46565
|
|
@ -1402,16 +1402,6 @@ $text['label-device_description']['de-at'] = "Beschreibung";
|
|||
$text['label-device_description']['ar-eg'] = "";
|
||||
$text['label-device_description']['he'] = "תאור";
|
||||
|
||||
$text['label-device_status']['en-us'] = "Status";
|
||||
$text['label-device_status']['es-cl'] = "Estado";
|
||||
$text['label-device_status']['pt-pt'] = "Estado";
|
||||
$text['label-device_status']['fr-fr'] = "Statut";
|
||||
$text['label-device_status']['pt-br'] = "Estado";
|
||||
$text['label-device_status']['pl'] = "Status ";
|
||||
$text['label-device_status']['sv-se'] = "Status";
|
||||
$text['label-device_status']['uk'] = "Стан";
|
||||
$text['label-device_status']['de-at'] = "Status";
|
||||
|
||||
$text['label-device']['en-us'] = "Device";
|
||||
$text['label-device']['es-cl'] = "Dispositivo";
|
||||
$text['label-device']['pt-pt'] = "Dispositivo";
|
||||
|
|
|
|||
|
|
@ -214,7 +214,6 @@
|
|||
echo th_order_by('device_vendor', $text['label-device_vendor'], $order_by, $order);
|
||||
echo th_order_by('device_template', $text['label-device_template'], $order_by, $order);
|
||||
echo th_order_by('device_enabled', $text['label-device_enabled'], $order_by, $order);
|
||||
echo th_order_by('device_status', $text['label-device_status'], $order_by, $order);
|
||||
echo th_order_by('device_description', $text['label-device_description'], $order_by, $order);
|
||||
echo "<td class='list_control_icons'>\n";
|
||||
if (permission_exists('device_add')) {
|
||||
|
|
@ -249,7 +248,6 @@
|
|||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['device_vendor']." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['device_template']." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$text['label-'.$row['device_enabled']]." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['device_provisioned_on']." - ".$row['device_provisioned_by']." </td>\n";
|
||||
echo " <td valign='top' class='row_stylebg'>".$row['device_description']." </td>\n";
|
||||
echo " <td class='list_control_icons'>";
|
||||
if (permission_exists('device_edit')) {
|
||||
|
|
|
|||
|
|
@ -372,21 +372,6 @@ The file name is fixed to `Account1_Extern.xml`.
|
|||
$prov->file = $file;
|
||||
$file_contents = $prov->render();
|
||||
|
||||
//register that we have seen the device
|
||||
$sql = "UPDATE v_devices ";
|
||||
$sql .= "SET device_provisioned_on=:device_provisioned_on, device_provisioned_by=:device_provisioned_by ";
|
||||
$sql .= "WHERE domain_uuid=:domain_uuid AND device_mac_address=:device_mac ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
if ($prep_statement) {
|
||||
//use the prepared statement
|
||||
$prep_statement->bindValue(':domain_uuid', $domain_uuid);
|
||||
$prep_statement->bindValue(':device_mac', strtolower($mac));
|
||||
$prep_statement->bindValue(':device_provisioned_on', date("Y-m-d H:i:s"));
|
||||
$prep_statement->bindValue(':device_provisioned_by', "HTTP");
|
||||
$prep_statement->execute();
|
||||
unset($prep_statement);
|
||||
}
|
||||
|
||||
//deliver the customized config over HTTP/HTTPS
|
||||
//need to make sure content-type is correct
|
||||
if ($_REQUEST['content_type'] == 'application/octet-stream') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue