FTP to GIT sync

This commit is contained in:
JonatanRek
2019-08-24 13:13:04 +02:00
parent 1ea7e600c2
commit aa8235c1bf
12 changed files with 169 additions and 85 deletions

View File

@@ -3,11 +3,11 @@ class DeviceManager{
public static $devices;
function getAllDevices () {
return Db::loadAll ("SELECT * FROM devices");
return Db::loadAll ("SELECT * FROM devices WHERE approved != ?", Array(2));
}
function getAllDevicesInRoom ($roomId = "") {
return Db::loadAll ("SELECT * FROM devices WHERE room_id = ?", Array($roomId));
return Db::loadAll ("SELECT * FROM devices WHERE room_id = ? AND approved != ?", Array($roomId, 2));
}
function getOtherDevices(){