diff options
Diffstat (limited to 'api/camera.php')
-rw-r--r-- | api/camera.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/api/camera.php b/api/camera.php new file mode 100644 index 0000000..cbf7efc --- /dev/null +++ b/api/camera.php @@ -0,0 +1,6 @@ +<?php + +if (!isset($_GET['t']) || preg_match("/[^a-zA-Z\d]/m", $_GET['t'])) die(); + +header("Content-Type: image/jpeg"); +die(base64_decode(exec('ssh root@192.168.1.27 "cd /root/alarm; node open.js ' . $_GET['t'] . '"')));
\ No newline at end of file |