mirror of https://github.com/IoTcat/acg.watch.git
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.
19 lines
330 B
19 lines
330 B
4 years ago
|
<?php
|
||
|
include '../functions.php';
|
||
|
|
||
|
$url = $_REQUEST['url'];
|
||
|
|
||
|
if(!isset($url)) die();
|
||
|
|
||
|
$conn = db__connect();
|
||
|
|
||
|
if(!db__rowNum($conn, "video", "url", $url)) die();
|
||
|
|
||
|
|
||
|
$res = db__getData($conn, "video", "url", $url);
|
||
|
$next = db__getData($conn, "video", "vid", $res[0]["link"]);
|
||
|
|
||
|
echo json_encode(array(
|
||
|
url => $next[0]["url"]
|
||
|
));
|