forked from kaway404/Netflix
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhistorytime.php
30 lines (21 loc) · 947 Bytes
/
historytime.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
require 'static/php/system/database.php';
require 'static/php/system/config.php';
if(isset($_GET['timer'])){
$progress = $_GET['timer'];
$profile = $_GET['profile'];
$videoid = $_GET['video'];
$currenttime = $_GET['currenttime'];
$idserie = $_GET['anime'];
$upRate = array('progress' => $progress);
DBUpDate( 'history', $upRate, "idvideo = '{$videoid}' and perfil = '{$profile}' " );
$upRate2 = array('atualprogress' => $currenttime);
DBUpDate( 'history', $upRate2, "idvideo = '{$videoid}' and perfil = '{$profile}'" );
$upRate3 = array('perfil' => $profile);
DBUpDate( 'history', $upRate3, "idvideo = '{$videoid}' and perfil = '{$profile}'" );
$upRate3 = array('idserie' => $idserie);
DBUpDate( 'history', $upRate3, "idvideo = '{$videoid}' and perfil = '{$profile}'" );
$upRate3 = array('idvideo' => $videoid);
DBUpDate( 'history', $upRate3, "idvideo = '{$videoid}' and perfil = '{$profile}'" );
}
?>