Skip to content

Commit

Permalink
Watch.php e dashboard.php arrumado
Browse files Browse the repository at this point in the history
  • Loading branch information
kaway404 committed Nov 21, 2017
1 parent 3767066 commit ea1428f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 14 deletions.
4 changes: 4 additions & 0 deletions dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,7 @@ function animacaomenupos(){




<?php
$animels52 = DBRead( 'history', "WHERE id and idpeople = '". $user['id'] ."' and perfil = '". $perfil['id'] ."'ORDER BY id ASC LIMIT 40" );
if (!$animels52)
Expand All @@ -1091,6 +1092,8 @@ function animacaomenupos(){
?>




<?php
$videoh = $animel5['idserie'];
$animels2 = DBRead( 'series', "WHERE id = '". $videoh ."' ORDER BY id ASC LIMIT 1" );
Expand All @@ -1101,6 +1104,7 @@ function animacaomenupos(){
?>
<a href="watch.php?id=<?php echo $animel5['idvideo'];?>">
<div class="video">
<p style="color: #fff; font-size: 1.2vw; background: #000; width: 100%;">Episodio <?php echo $animel5['ep']; ?></p>
<img src="static/videos/<?php echo $animel['foto']; ?>" class="focus"/>
<div style="width: 100%; height: 10px; background: #fff; position: relative; top: 0.2vw; box-shadow: 3px 2px 3px #141414;">
<div style="width:<?php
Expand Down
2 changes: 2 additions & 0 deletions historytime.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
$progress = $_GET['timer'];
$profile = $_GET['profile'];
$videoid = $_GET['video'];

$currenttime = $_GET['currenttime'];
$idserie = $_GET['anime'];

Expand All @@ -25,4 +26,5 @@
$upRate3 = array('idvideo' => $videoid);
DBUpDate( 'history', $upRate3, "idvideo = '{$videoid}' and perfil = '{$profile}'" );
}

?>
31 changes: 18 additions & 13 deletions netflix.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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');

-- --------------------------------------------------------

Expand All @@ -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');

-- --------------------------------------------------------

Expand Down Expand Up @@ -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', '[email protected]', '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', '[email protected]', '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', '[email protected]', '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', '[email protected]', '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', '[email protected]', '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);

-- --------------------------------------------------------

Expand All @@ -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
Expand Down Expand Up @@ -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`
--
Expand All @@ -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`
--
Expand Down
3 changes: 2 additions & 1 deletion watch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
}
Expand Down

0 comments on commit ea1428f

Please sign in to comment.