Created validate_device_id() function

This commit is contained in:
laf
2014-06-24 16:14:42 +01:00
parent 4d30dd9e43
commit 7e0b0f4773

View File

@@ -916,4 +916,19 @@ function scan_new_plugins()
}
function validate_device_id($id)
{
global $config;
$device_id = dbFetchCell("SELECT `device_id` FROM `devices` WHERE `device_id` = ?", array($id));
if($device_id == $id)
{
$return = true;
}
else
{
$return = false;
}
return($return);
}
?>