Skip to content

Commit

Permalink
Episodios serie
Browse files Browse the repository at this point in the history
  • Loading branch information
kaway9090 committed Nov 19, 2017
1 parent 836515e commit eb07c2c
Show file tree
Hide file tree
Showing 5 changed files with 174 additions and 25 deletions.
10 changes: 5 additions & 5 deletions dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -776,14 +776,14 @@ function(data){
else
foreach ($animels2 as $animel):
?>
<img src="<?php echo $animel['logo']; ?>" class="logo-serie"></img>
<img src="static/videos/<?php echo $animel['logo']; ?>" class="logo-serie"></img>
<div class="aaa"></div>
<div class="apresent-info">

<style>

.apresent{
background-image: url(<?php echo $animel['fotoback']; ?>);
background-image: url(static/videos/<?php echo $animel['fotoback']; ?>);
}

</style>
Expand Down Expand Up @@ -919,7 +919,7 @@ function(data){
?>

<div class="video" id="click<?php echo $animel['id']; ?>">
<img src="<?php echo $animel['foto']; ?>" class="focus"/>
<img src="static/videos/<?php echo $animel['foto']; ?>" class="focus"/>
</div>


Expand Down Expand Up @@ -973,7 +973,7 @@ function(data){
bottom: 0;
height: 3vw;
background: rgba(0,0,0,.50);
z-index: 50;
z-index: 1060;
}

.feels{
Expand Down Expand Up @@ -1004,7 +1004,7 @@ function(data){
height: 2vw;
cursor: pointer;
padding: 0.3vw;
z-index: 50;
z-index: 1250;
}

.close:hover{
Expand Down
99 changes: 84 additions & 15 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: 17-Nov-2017 às 21:18
-- Generation Time: 19-Nov-2017 às 14:22
-- Versão do servidor: 10.1.25-MariaDB
-- PHP Version: 5.6.31

Expand Down Expand Up @@ -42,15 +42,12 @@ CREATE TABLE `netflix_profiles` (
--

INSERT INTO `netflix_profiles` (`id`, `idcry`, `nome`, `datec`, `iduser`, `foto`) VALUES
(2, 0, 'XandeCo', '2017-11-14 11:59:18', '2', '2'),
(15, 0, 'Lucas', '2017-11-14 15:26:36', '3', '1'),
(16, 0, 'BoxSeries', '2017-11-14 15:27:01', '4', '1'),
(21, 0, 'teste', '2017-11-14 15:30:20', '6', '1'),
(26, 0, 'TESTEXX', '2017-11-14 15:42:06', '8', '1'),
(27, 0, 'KAKAKA', '2017-11-14 16:25:08', '9', '1'),
(28, 0, 'mister 9nha', '2017-11-14 18:08:37', '10', '1'),
(29, 0, 'luis felipe', '2017-11-14 18:41:27', '11', '1'),
(30, 0, 'Alexandre', '2017-11-17 16:05:42', '12', '1');
(59, 0, 'Alexandre', '2017-11-18 22:12:30', '18', '1'),
(60, 0, 'João', '2017-11-18 22:12:33', '18', '2'),
(61, 0, 'Usuario padrão', '2017-11-18 22:21:56', '18', '3'),
(62, 0, 'Ah tirei', '2017-11-18 22:22:31', '18', '4'),
(63, 0, 'LoL', '2017-11-18 22:23:17', '18', '2'),
(64, 0, 'Alexandre', '2017-11-19 10:40:14', '12', '1');

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

Expand All @@ -72,7 +69,28 @@ CREATE TABLE `netflix_series` (
--

INSERT INTO `netflix_series` (`id`, `name`, `desct`, `foto`, `fotoback`, `logo`) VALUES
(1, 'The Walking Dead', 'Casal aproveita férias hospedado em uma casa afastada, até que três invasores mascarados mostram como esse isolamento pode ser perigoso.The Walking Dead é baseada na série de quadrinhos homônima criada por Robert Kirkman. No seriado, descobriremos como é a vida na Terra após um apocalipse zumbi, em que a enorme maioria da população da terra foi infectada por um vírus misterioso que os transforma em mortos-vivos. Os poucos humanos que sobreviveram à epidemia agora devem se unir para encontrar um novo lar, longe dos zumbis. O grupo é liderado por Rick Grimes (Andrew Lincoln), um policial que acordou sozinho em um hospital cercado por mortos-vivos e agora procura sua esposa, Lori (Sarah Wayne Callies), e seu filho. Ele se junta a Shane (Jon Bernthal), seu ex-parceiro na polícia; Andrea (Lauren Holden), uma das duas irmãs que escapou da praga; Glenn (Steven Yeun), um varredor de ruas experiente; entre outros humanos igualmente assustados que lutam para escapar do vírus.', 'https://www.whats-on-netflix.com/wp-content/uploads/2014/08/the-walking-dead-s4.jpg', 'https://avante.biz/wp-content/uploads/Walking-Dead-Desktop-Backgrounds/Walking-Dead-Desktop-Backgrounds-002.jpg', 'https://vignette.wikia.nocookie.net/fictionalcrossover/images/a/a0/A_walking_dead_logo.png/revision/latest?cb=20141207034016');
(22, 'Chou Yuu Sekai: Being The Reality', 'Mundo para com o mistério monstro “disaster” que apareceu ameaçando a paz. A humanidade para combater o disaster, formaram a forças especiais “Saber”. O conglomerado privado também lançou uma organização de defesa independente Chamado “Blade”, que tenha sido envolvido em uma batalha. Noi é um estudante do ensino médio, do tipo muito comum que anseia por entrar nas forças especiais para combater o disaster. Com a aparição da misteriosa estudante transferida Motisu, Noi vai ter sua vida normal virar de cabeça pra baixo. Os jogadores realistas e virtuais, tendo a sua volta NPC’s, tanto seu pai quanto sua mãe… quando sua memória de 10 anos atrás retornou, os segredos desse mundo foram revelados.', '1.jpg', 'ma.png', '1.jpg');

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

--
-- Estrutura da tabela `netflix_swit_pro`
--

CREATE TABLE `netflix_swit_pro` (
`id` int(11) NOT NULL,
`idpf` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Extraindo dados da tabela `netflix_swit_pro`
--

INSERT INTO `netflix_swit_pro` (`id`, `idpf`) VALUES
(1, '1'),
(2, '2'),
(3, '3'),
(4, '4');

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

Expand All @@ -99,7 +117,36 @@ CREATE TABLE `netflix_user` (
--

INSERT INTO `netflix_user` (`id`, `idcry`, `email`, `password`, `datec`, `lastlogin`, `configurado`, `ip`, `banned`, `inisession`, `expirado`) VALUES
(12, '2d292a110c253fa39290c912886819ea56dc86fd', '[email protected]', 'a0b48bf6735b085374fa984535372a8025210e45', '2017-12-18', '2017-11-17 16:05:27', 1, '::1', 0, '2017-12-18 02:06:27', '2017-12-18');
(12, '2d292a110c253fa39290c912886819ea56dc86fd', '[email protected]', 'a0b48bf6735b085374fa984535372a8025210e45', '2017-12-18', '2017-11-19 10:40:08', 1, '::1', 0, '2017-12-18 02:06:27', '2017-12-18'),
(13, '2690fc43660f30235cfe3054f55d61e259c9bd0e', '[email protected]', 'a0b48bf6735b085374fa984535372a8025210e45', '2017-11-17', '2017-11-17 18:47:11', 1, '187.55.39.59', 0, '2017-11-17 18:47:11', '2017-12-18'),
(14, 'dc4698d0eefcf2eccc0b19c6c371bcfe8385d18d', '[email protected]', '4557b921cca88f57476a7102c9860fdc11686683', '2017-12-18', '2017-11-17 19:00:13', 1, '89.114.245.202', 0, '2017-11-17 19:00:13', '2017-12-18'),
(15, '7c0218c945141f4ba9b3423aa6cabca8067a0c60', '[email protected]', '79028d4542e9538702b5b4375cba73cc984467da', '2017-12-18', '2017-11-17 19:08:05', 1, '168.90.64.2', 0, '2017-11-17 19:08:05', '2017-12-18'),
(16, 'a0497f99570be336943238b332f3ab019c0dfc0f', '[email protected]', 'a873d476f684dd7a02e0ff310c060f547e3b1459', '2017-11-18', '2017-11-18 17:39:24', 1, '187.7.20.215', 0, '2017-11-18 17:39:24', '2017-12-19'),
(17, '02cc5749e091f48f87a57653e009e5e42b59d3da', '[email protected]', 'a873d476f684dd7a02e0ff310c060f547e3b1459', '2017-11-18', '2017-11-18 17:39:25', 0, '187.7.20.215', 0, '2017-11-18 17:39:25', '2017-12-19'),
(18, '37f43b43179ff6aeedb8fd62d6d713d034a0b84c', '[email protected]', 'a0b48bf6735b085374fa984535372a8025210e45', '2017-12-19', '2017-11-18 21:55:21', 1, '187.7.20.215', 0, '2017-11-18 21:55:21', '2017-12-19');

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

--
-- Estrutura da tabela `netflix_videos`
--

CREATE TABLE `netflix_videos` (
`id` int(11) NOT NULL,
`idserie` varchar(255) NOT NULL,
`views` varchar(255) NOT NULL,
`nome` text NOT NULL,
`ep` text NOT NULL,
`desct` text NOT NULL,
`video` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Extraindo dados da tabela `netflix_videos`
--

INSERT INTO `netflix_videos` (`id`, `idserie`, `views`, `nome`, `ep`, `desct`, `video`) VALUES
(1, '22', '1', '', '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');

--
-- Indexes for dumped tables
Expand All @@ -117,12 +164,24 @@ ALTER TABLE `netflix_profiles`
ALTER TABLE `netflix_series`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `netflix_swit_pro`
--
ALTER TABLE `netflix_swit_pro`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `netflix_user`
--
ALTER TABLE `netflix_user`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `netflix_videos`
--
ALTER TABLE `netflix_videos`
ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--
Expand All @@ -131,17 +190,27 @@ ALTER TABLE `netflix_user`
-- AUTO_INCREMENT for table `netflix_profiles`
--
ALTER TABLE `netflix_profiles`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=65;
--
-- AUTO_INCREMENT for table `netflix_series`
--
ALTER TABLE `netflix_series`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
--
-- AUTO_INCREMENT for table `netflix_swit_pro`
--
ALTER TABLE `netflix_swit_pro`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `netflix_user`
--
ALTER TABLE `netflix_user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;COMMIT;
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `netflix_videos`
--
ALTER TABLE `netflix_videos`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
Expand Down
90 changes: 85 additions & 5 deletions request.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,26 @@
<svg height="2vw" width:"2vw" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M437.5,386.6L306.9,256l130.6-130.6c14.1-14.1,14.1-36.8,0-50.9c-14.1-14.1-36.8-14.1-50.9,0L256,205.1L125.4,74.5 c-14.1-14.1-36.8-14.1-50.9,0c-14.1,14.1-14.1,36.8,0,50.9L205.1,256L74.5,386.6c-14.1,14.1-14.1,36.8,0,50.9 c14.1,14.1,36.8,14.1,50.9,0L256,306.9l130.6,130.6c14.1,14.1,36.8,14.1,50.9,0C451.5,423.4,451.5,400.6,437.5,386.6z"/></svg>
</div>

<div class="left-de">
</div>
<style>
.left-de{
display: block;
}

.ep-info{
width: 100%;
height: 100%;
display: none;
opacity: 0.9;
background: #000;
position: absolute;
top: 0;
left: 0;
z-index: 1050;
}
</style>

<div class="left-de" id="info-c">

<?php
$animels2 = DBRead( 'series', "WHERE id ORDER BY id = '{$_GET['serie']}' DESC LIMIT 1" );
if (!$animels2)
Expand All @@ -41,7 +59,7 @@
width: 55%;
background-size: cover;
height: 100%;
background-image: url(<?php echo $animel['fotoback']; ?>);
background-image: url(static/videos/<?php echo $animel['fotoback']; ?>);
position: absolute;
display: flex;
top: 0;
Expand All @@ -53,15 +71,77 @@

<div class="over-back">

</div>
</div>


<div class="ep-info" id="epc">

<div class="left-i" onclick="ScrollByRight()" style="position: relative; top: 7vw;">
<svg enable-background="new 0 0 32 32" height="32px" id="Layer_1" version="1.1" viewBox="0 0 32 32" width="32px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M7.701,14.276l9.586-9.585c0.879-0.878,2.317-0.878,3.195,0l0.801,0.8c0.878,0.877,0.878,2.316,0,3.194 L13.968,16l7.315,7.315c0.878,0.878,0.878,2.317,0,3.194l-0.801,0.8c-0.878,0.879-2.316,0.879-3.195,0l-9.586-9.587 C7.229,17.252,7.02,16.62,7.054,16C7.02,15.38,7.229,14.748,7.701,14.276z" fill="#fff"/></svg>
</div>

<div class="right-i" onclick="ScrollByLeft()" style="position: relative; top: 7vw;">
<svg enable-background="new 0 0 32 32" height="32px" id="Layer_1" version="1.1" viewBox="0 0 32 32" width="32px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M24.291,14.276L14.705,4.69c-0.878-0.878-2.317-0.878-3.195,0l-0.8,0.8c-0.878,0.877-0.878,2.316,0,3.194 L18.024,16l-7.315,7.315c-0.878,0.878-0.878,2.317,0,3.194l0.8,0.8c0.878,0.879,2.317,0.879,3.195,0l9.586-9.587 c0.472-0.471,0.682-1.103,0.647-1.723C24.973,15.38,24.763,14.748,24.291,14.276z" fill="#fff"/></svg>
</div>


<div class="video-a" id="scrollep" style="position: relative; top: 7vw;">

<?php
$idwatch = $_GET['serie'];
$resultsearchs2 = DBRead( 'series', "WHERE id = '{$idwatch}' LIMIT 1" );
if (!$resultsearchs2)
echo '';
else
foreach ($resultsearchs2 as $resultsearch2):
?>
<?php
$idwatch = $resultsearch2['id'];
$animes = DBRead( 'series', "WHERE id = '{$idwatch}' LIMIT 10" );
$resultsearchs = DBRead( 'videos', "WHERE idserie = '{$idwatch}' LIMIT 10" );
if (!$resultsearchs)
echo '';
else
foreach ($resultsearchs as $resultsearch):
?>

<a href="watch.php?id=<?php echo $resultsearch['id'] ?>&href=dashboard?serieinfo=<?php echo $resultsearch['id'] ?>">
<div class="video" id="click<?php echo $resultsearch2['id']; ?>">
<img src="static/videos/<?php echo $resultsearch2['foto']; ?>" class="focus"/>
<p style="color: #fff; text-align: center; font-size: 1.3vw;">Ep <?php echo $resultsearch['ep']; ?></p>
</div>
</a>

<?php endforeach; endforeach; ?>

</div>
</div>

<div class="baixo-desc">

<center>
<p class="feels feels-ativo">VISÃO GERAL</p>
<p class="feels">EPISÓDIOS</p>
<p class="feels feels-ativo" id="infob">VISÃO GERAL</p>
<p class="feels" id="infoc">EPISÓDIOS</p>
</center>

<script>
var info = document.getElementById('infob');
var ep = document.getElementById('infoc');
$('#infoc').click(function(){
info.style = 'border-bottom: 0.2vw solid transparent;';
ep.style = 'border-bottom: 0.2vw solid red;';
$("#epc").fadeIn(600);
});

$('#infob').click(function(){
$("#epc").fadeOut(600);
info.style = 'border-bottom: 0.2vw solid red;';
ep.style = 'border-bottom: 0.2vw solid transparent;';
});

</script>

</div>

</div>
Expand Down
Binary file added static/videos/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/videos/ma.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eb07c2c

Please sign in to comment.