Check to see if domain_uuid has a value.

This commit is contained in:
Mark Crane 2015-04-06 22:27:16 +00:00
parent cbea64fea1
commit 7e76e93e40
1 changed files with 108 additions and 100 deletions

View File

@ -321,6 +321,7 @@ include "root.php";
}
//get the device settings table in the provision category and update the provision array
if (strlen($device_uuid) > 0) {
$sql = "SELECT * FROM v_device_settings ";
$sql .= "WHERE device_uuid = '".$device_uuid."' ";
$sql .= "AND device_setting_enabled = 'true' ";
@ -334,6 +335,7 @@ include "root.php";
$provision[$key] = $value;
}
unset ($prep_statement);
}
//initialize a template object
$view = new template();
@ -372,6 +374,8 @@ include "root.php";
$mac_dash = substr($mac, 0,2).'-'.substr($mac, 2,2).'-'.substr($mac, 4,2).'-'.substr($mac, 6,2).'-'.substr($mac, 8,2).'-'.substr($mac, 10,2);
//get the provisioning information from device lines table
if (strlen($device_uuid) > 0) {
//get the device lines array
$sql = "SELECT * FROM v_device_lines ";
$sql .= "WHERE device_uuid = '".$device_uuid."' ";
//$sql .= "AND domain_uuid = '".$domain_uuid."' ";
@ -423,8 +427,11 @@ include "root.php";
$view->assign("register_expires_".$line_number, $register_expires);
}
unset ($prep_statement);
}
//get the provisioning information from device keys
if (strlen($device_uuid) > 0) {
//get the device keys array
$sql = "SELECT * FROM v_device_keys ";
$sql .= "WHERE (";
$sql .= "device_uuid = '".$device_uuid."' ";
@ -468,6 +475,7 @@ include "root.php";
//increment the key
$x++;
}
}
//debug information
if ($debug == "array") {