Revert "Added functionality to show when a devices was last provisioned"

This reverts commit c3e40d68fa.
This commit is contained in:
minotaur01 2016-08-20 12:34:45 -04:00
parent c3e40d68fa
commit 8c27a46565
3 changed files with 0 additions and 27 deletions

View File

@ -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";

View File

@ -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']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['device_template']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$text['label-'.$row['device_enabled']]."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['device_provisioned_on']." - ".$row['device_provisioned_by']."&nbsp;</td>\n";
echo " <td valign='top' class='row_stylebg'>".$row['device_description']."&nbsp;</td>\n";
echo " <td class='list_control_icons'>";
if (permission_exists('device_edit')) {

View File

@ -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') {