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.
17 lines
423 B
17 lines
423 B
<?php
|
|
require_once('../ajax_asm.php');
|
|
if( $CUser->Data['id'] > 1 ){
|
|
$VID = intval( $_POST['VID'] );
|
|
if( $VID ){
|
|
$QS = "SELECT * FROM `videos` WHERE `id` = {$VID}";
|
|
$ZIZI = new SQLite_DB( '/srv/www/web/lib/controller/data/reports.db');
|
|
$LREC = $ZIZI->Query( $QS );
|
|
if( count( $LREC ) ){
|
|
$Data = $LREC[0];
|
|
echo json_encode( $Data );
|
|
exit();
|
|
};
|
|
};
|
|
};
|
|
header('location: /');
|
|
?>
|