Mini Shell

Direktori : /home/funerariamayer/www/
Upload File :
Current File : /home/funerariamayer/www/video.php

<?
$cod_velorio=$_POST['cod_velorio'];
$senha_velorio=$_POST['senha_velorio'];

require_once('conexao.php');
$sql="select nome,site
      from mayer_velorios
      where
      cod_velorio='$cod_velorio'
      and
      senha='$senha_velorio'
      LIMIT 1
      ;";
//echo "<pre>".$sql."</pre>";
$query=mysqli_query($con,$sql);
$totitens=@mysqli_num_rows($query);
if ($totitens!="")
{
 while($row = mysqli_fetch_array($query))
 {
  $nome = $row['nome'];
  $site = $row['site'];

  if (strpos($row['site'],'watch')>0)
  {
   $site = str_replace('https://www.youtube.com/watch?v=','https://youtube.com/embed/',$row['site']);
   $site = str_replace('https://youtu.be/','https://youtube.com/embed/',$site);
   $site = str_replace('&feature=youtu.be','',$site);
  }
  else
  {
   $site = $row['site'];
  }

 } //while($row = mysqli_fetch_array($query))
} //if ($totitens!="")
else
{
 $erro="Senha n&atilde;o confere com o este nome.";
?>
<form name="frm_retorno" action="videos" method="POST">
 <input type="hidden" name="erro" value="<?=$erro;?>">
</form>
<script>
  document.frm_retorno.submit();
</script>
<?
}
?>


 <div id="layerslider" class="ls-wp-container" style="width:100%;height:145px;margin:0 auto;border-bottom:1px solid #eee;">

      <div class="ls-slide" data-ls="slidedelay:5000;transition2d:1;"><img src="#" data-src="faixa.jpg" class="ls-bg" alt="MAYER" /><div class="ls-l" style="top:240px;left:61px;white-space: nowrap;"><br></div></div>


   </div> 

    <section class="container" style="margin-top: -50px;">
      <div class="col-sm-12">
         <hr class="vertical-space2">

         <hr class="vertical-space2">
         <h1 class="">Vel&oacute;rio</h1>
         <h3 style="text-align: justify; color: #f04a52;"> Vel&oacute;rio - <?=$nome;?> </em></strong>
         </h3>


      <div class="col-sm-12">
        <div class="col-sm-1"> &nbsp; </div>

        <div class="col-sm-10">
        <iframe width="342" height="188" src="<?=$site;?>" frameborder="0" allowfullscreen></iframe>
        </div>

        <div class="col-sm-1"> &nbsp; </div>
      </div>



         <hr class="vertical-space1">
      </div> <!-- end col-sm-12 -->
   </section> <!-- end container -->


  

Zerion Mini Shell 1.0