parent
663db5ba6f
commit
50f0db1d98
4 changed files with 40 additions and 2 deletions
@ -0,0 +1 @@ |
||||
<html></html> |
@ -0,0 +1,37 @@ |
||||
<?php |
||||
include '../functions.php'; |
||||
|
||||
|
||||
$id=$_REQUEST['id']; |
||||
$fp=$_REQUEST['fp']; |
||||
|
||||
if(!isset($fp)||$fp=="") die(); |
||||
|
||||
|
||||
$conn=db__connect(); |
||||
|
||||
$usr=db__getData($conn,"fp","fp",$fp); |
||||
|
||||
if($usr[0]['usr']=="") |
||||
{ |
||||
|
||||
$res=db__getData($conn,"videolog","fp",$fp); |
||||
|
||||
$cnt=0; |
||||
|
||||
foreach($res as $each) |
||||
{ |
||||
if($each['time']>(time()-3600*24)) $cnt++; |
||||
} |
||||
|
||||
if($cnt>20) |
||||
{ |
||||
echo json_encode(array("code"=>2)); |
||||
|
||||
die(); |
||||
} |
||||
} |
||||
|
||||
$video=db__getData($conn,"video","id",$id); |
||||
|
||||
header("Location: ".$video[0]['url1']); |
Loading…
Reference in new issue