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
342 B
17 lines
342 B
5 years ago
|
<?php
|
||
|
|
||
|
include '../../functions.php';
|
||
|
|
||
5 years ago
|
header('Access-Control-Allow-Origin:*');
|
||
|
|
||
5 years ago
|
$id= $_REQUEST[id];
|
||
|
|
||
|
$conn=db__connect();
|
||
|
$result=db__getData($conn,"videoredirect","id",$id);
|
||
|
|
||
|
header('Content-type: text/json');
|
||
|
|
||
|
if(count($result))
|
||
|
echo json_encode(array(id=>$result[0]['id'],toid=>$result[0]['toid']));
|
||
|
else json_encode(array(id=>0));
|
||
|
die();
|