Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
423 B

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. if( $CUser->Data['id'] > 1 ){
  4. $VID = intval( $_POST['VID'] );
  5. if( $VID ){
  6. $QS = "SELECT * FROM `videos` WHERE `id` = {$VID}";
  7. $ZIZI = new SQLite_DB( '/srv/www/web/lib/controller/data/reports.db');
  8. $LREC = $ZIZI->Query( $QS );
  9. if( count( $LREC ) ){
  10. $Data = $LREC[0];
  11. echo json_encode( $Data );
  12. exit();
  13. };
  14. };
  15. };
  16. header('location: /');
  17. ?>