summaryrefslogtreecommitdiff
path: root/api/camera.php
blob: cbf7efcb0e8bed40963372a02374e1f19bb79f39 (plain)
1
2
3
4
5
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'] . '"')));