From ea1428f1c7e2e3e6accaad76d3116d9a3985a45d Mon Sep 17 00:00:00 2001 From: kaway404 Date: Mon, 20 Nov 2017 22:05:13 -0200 Subject: [PATCH] Watch.php e dashboard.php arrumado --- dashboard.php | 4 ++++ historytime.php | 2 ++ netflix.sql | 31 ++++++++++++++++++------------- watch.php | 3 ++- 4 files changed, 26 insertions(+), 14 deletions(-) diff --git a/dashboard.php b/dashboard.php index 63d4f9f..801f2a0 100644 --- a/dashboard.php +++ b/dashboard.php @@ -1082,6 +1082,7 @@ function animacaomenupos(){ + + +
+

Episodio

\ No newline at end of file diff --git a/netflix.sql b/netflix.sql index 8f360fb..fd2e5e1 100644 --- a/netflix.sql +++ b/netflix.sql @@ -3,7 +3,7 @@ -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 --- Generation Time: 20-Nov-2017 às 22:27 +-- Generation Time: 21-Nov-2017 às 01:04 -- Versão do servidor: 10.1.25-MariaDB -- PHP Version: 5.6.31 @@ -35,15 +35,16 @@ CREATE TABLE `netflix_history` ( `idpeople` varchar(255) NOT NULL, `progress` text NOT NULL, `atualprogress` text NOT NULL, - `perfil` varchar(255) NOT NULL + `perfil` varchar(255) NOT NULL, + `ep` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `netflix_history` -- -INSERT INTO `netflix_history` (`id`, `idvideo`, `idserie`, `idpeople`, `progress`, `atualprogress`, `perfil`) VALUES -(1, '1', '22', '1', '39.014137457053025%', '212.639351', '1'); +INSERT INTO `netflix_history` (`id`, `idvideo`, `idserie`, `idpeople`, `progress`, `atualprogress`, `perfil`, `ep`) VALUES +(9, '1', '22', '1', '7.7200759790521865%', '29.112975', '1', '01'); -- -------------------------------------------------------- @@ -65,7 +66,10 @@ CREATE TABLE `netflix_profiles` ( -- INSERT INTO `netflix_profiles` (`id`, `idcry`, `nome`, `datec`, `iduser`, `foto`) VALUES -(1, 0, 'Alexandre', '2017-11-20 18:22:30', '1', '1'); +(1, 0, 'Alexandre', '2017-11-20 18:22:30', '1', '1'), +(2, 0, 'Johny', '2017-11-20 21:13:37', '1', '2'), +(3, 0, 'anelise naiara', '2017-11-20 21:42:39', '3', '1'), +(4, 0, 'silvio da silva', '2017-11-20 21:44:30', '3', '2'); -- -------------------------------------------------------- @@ -136,8 +140,9 @@ CREATE TABLE `netflix_user` ( -- INSERT INTO `netflix_user` (`id`, `idcry`, `email`, `password`, `datec`, `lastlogin`, `configurado`, `ip`, `banned`, `inisession`, `expirado`, `admin`) VALUES -(1, '645d900939e7702d6ce6a2ba7b109d702f7f2808', 'xande1231231@hotmail.com', 'a0b48bf6735b085374fa984535372a8025210e45', '2017-11-20', '2017-11-20 18:22:27', 1, '187.55.46.112', 0, '2017-11-20 18:22:27', '2017-12-21', 1), -(2, '645d900939e7702d6ce6a2ba7b109d702f7f2808', 'xande1231221@hotmail.com', 'a0b48bf6735b085374fa984535372a8025210e45', '2017-11-20', '2017-11-20 18:22:27', 1, '187.55.46.112', 0, '2017-11-20 18:22:27', '2017-12-21', 0); +(1, '645d900939e7702d6ce6a2ba7b109d702f7f2808', 'xande1231231@hotmail.com', 'a0b48bf6735b085374fa984535372a8025210e45', '2017-12-21', '2017-11-20 21:44:54', 1, '187.55.46.112', 0, '2017-11-20 18:22:27', '2017-12-21', 1), +(2, '645d900939e7702d6ce6a2ba7b109d702f7f2808', 'xande1231221@hotmail.com', 'a0b48bf6735b085374fa984535372a8025210e45', '2017-11-20', '2017-11-20 18:22:27', 1, '187.55.46.112', 0, '2017-11-20 18:22:27', '2017-12-21', 0), +(3, '85e3ab197e46051afabbe3d6ee48cd37c7fc7bbd', 'anelisenaiara2006@hotmail.com', 'a873d476f684dd7a02e0ff310c060f547e3b1459', '2017-11-20', '2017-11-20 21:42:29', 1, '187.55.46.112', 0, '2017-11-20 21:42:29', '2017-12-21', 0); -- -------------------------------------------------------- @@ -160,9 +165,9 @@ CREATE TABLE `netflix_videos` ( -- INSERT INTO `netflix_videos` (`id`, `idserie`, `views`, `nome`, `ep`, `desct`, `video`) VALUES -(1, '22', '230', '', '01', '', 'https://r10---sn-bg07dnez.googlevideo.com/videoplayback?requiressl=yes&id=32adc2a1b188a740&itag=18&source=blogger&app=blogger&ip=0.0.0.0&ipbits=0&expire=1513242867&sparams=expire,id,ip,ipbits,itag,mip,mm,mn,ms,mv,pl,requiressl,sc,source&signature=5D16A41167588E334D772276BF9307BBEA3AA972.530DF20D1366D067E73D43AF51FCCE9C83819043&key=cms1&cms_redirect=yes&mip=187.55.27.109&mm=30&mn=sn-bg07dnez&ms=nxu&mt=1511095286&mv=m&pl=18&sc=yes'), -(2, '22', '42', '', '02', '', 'https://r6---sn-bg07dnls.googlevideo.com/videoplayback?requiressl=yes&id=4d69e22a5953431d&itag=18&source=blogger&app=blogger&ip=0.0.0.0&ipbits=0&expire=1513247438&sparams=expire,id,ip,ipbits,itag,mip,mm,mn,ms,mv,pl,requiressl,sc,source&signature=0FE4C58EAE738DC4E117FA36C6539225D45C01F1.5C15E1E12C886BDB1653357CB31158D2E3B28716&key=cms1&cms_redirect=yes&mip=187.55.27.109&mm=30&mn=sn-bg07dnls&ms=nxu&mt=1511099873&mv=m&pl=18&sc=yes'), -(3, '22', '241', '', '03', '', 'https://r6---sn-bg07dnls.googlevideo.com/videoplayback?requiressl=yes&id=4d69e22a5953431d&itag=18&source=blogger&app=blogger&ip=0.0.0.0&ipbits=0&expire=1513247438&sparams=expire,id,ip,ipbits,itag,mip,mm,mn,ms,mv,pl,requiressl,sc,source&signature=0FE4C58EAE738DC4E117FA36C6539225D45C01F1.5C15E1E12C886BDB1653357CB31158D2E3B28716&key=cms1&cms_redirect=yes&mip=187.55.27.109&mm=30&mn=sn-bg07dnls&ms=nxu&mt=1511099873&mv=m&pl=18&sc=yes'); +(1, '22', '254', '', '01', '', 'https://r10---sn-bg07dnez.googlevideo.com/videoplayback?requiressl=yes&id=32adc2a1b188a740&itag=18&source=blogger&app=blogger&ip=0.0.0.0&ipbits=0&expire=1513242867&sparams=expire,id,ip,ipbits,itag,mip,mm,mn,ms,mv,pl,requiressl,sc,source&signature=5D16A41167588E334D772276BF9307BBEA3AA972.530DF20D1366D067E73D43AF51FCCE9C83819043&key=cms1&cms_redirect=yes&mip=187.55.27.109&mm=30&mn=sn-bg07dnez&ms=nxu&mt=1511095286&mv=m&pl=18&sc=yes'), +(2, '22', '45', '', '02', '', 'https://r6---sn-bg07dnls.googlevideo.com/videoplayback?requiressl=yes&id=4d69e22a5953431d&itag=18&source=blogger&app=blogger&ip=0.0.0.0&ipbits=0&expire=1513247438&sparams=expire,id,ip,ipbits,itag,mip,mm,mn,ms,mv,pl,requiressl,sc,source&signature=0FE4C58EAE738DC4E117FA36C6539225D45C01F1.5C15E1E12C886BDB1653357CB31158D2E3B28716&key=cms1&cms_redirect=yes&mip=187.55.27.109&mm=30&mn=sn-bg07dnls&ms=nxu&mt=1511099873&mv=m&pl=18&sc=yes'), +(3, '22', '252', '', '03', '', 'https://r6---sn-bg07dnls.googlevideo.com/videoplayback?requiressl=yes&id=4d69e22a5953431d&itag=18&source=blogger&app=blogger&ip=0.0.0.0&ipbits=0&expire=1513247438&sparams=expire,id,ip,ipbits,itag,mip,mm,mn,ms,mv,pl,requiressl,sc,source&signature=0FE4C58EAE738DC4E117FA36C6539225D45C01F1.5C15E1E12C886BDB1653357CB31158D2E3B28716&key=cms1&cms_redirect=yes&mip=187.55.27.109&mm=30&mn=sn-bg07dnls&ms=nxu&mt=1511099873&mv=m&pl=18&sc=yes'); -- -- Indexes for dumped tables @@ -212,12 +217,12 @@ ALTER TABLE `netflix_videos` -- AUTO_INCREMENT for table `netflix_history` -- ALTER TABLE `netflix_history` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `netflix_profiles` -- ALTER TABLE `netflix_profiles` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `netflix_series` -- @@ -232,7 +237,7 @@ ALTER TABLE `netflix_swit_pro` -- AUTO_INCREMENT for table `netflix_user` -- ALTER TABLE `netflix_user` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `netflix_videos` -- diff --git a/watch.php b/watch.php index 4ac6e74..925208e 100644 --- a/watch.php +++ b/watch.php @@ -55,7 +55,8 @@ $form2['idpeople'] = $_COOKIE['iduser']; $form2['idvideo'] = $_GET['id']; $form2['perfil'] = $_COOKIE['usuario']; - $form2['idserie'] = $anime['id']; + $form2['idserie'] = $anime['id']; + $form2['ep'] = $video['ep']; if( DBCreate( 'history', $form2 ) ){ echo ''; }