!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/site/   drwxr-xr-x
Free 9.4 GB of 93.48 GB (10.05%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     fotos.php (7.26 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
include "load_ipanel.php";
    
$galeriaCtrl = new GenericCtrl("Galeria");
    
$pag $_GET['pag'];
    
$maximo 5;
    if(empty(
$pag)){
       
$pag 1;
    }
    
$start = ($pag 1) * $maximo;
    
$ttGalerias $galeriaCtrl->getAllObjects();
    
$ttPaginas ceil(count($ttGalerias)/$maximo);
    
$galerias $galeriaCtrl->getAllObjects(true$maximo$start"dtGaleria DESC");
    
$fotoCtrl = new GenericCtrl("Foto");
?>
<!DOCTYPE HTML>
<html lang="pt-br">
    <?php include "mod_head.php" ?>
    <body class="homepage">
        <div id="page-wrapper">

      <?php include "mod_login.php" ?>
      <?php include "mod_menu.php" ?>
      <div id="banner-wrapper">
        <div id="banner" class="container">
          <div class="row">
            <h2 class="titulo_page">GALERIA DE FOTOS</h2>
          </div>
        </div>
      </div>

            <div class="wrapper-style1 wrapper-featured">
                <div class="container">
                    <div class="row">
                        <div class="12u">
                            <?php 
                            
foreach ($galerias as $galeria){ 
                                if(empty(
$galeria['link'])){
                                    
$link "javascript:showHideGaleria(".$galeria['id'].");"
                                    
$target ="";
                                }else{
                                    
$link $galeria['link'];
                                    
$target " target=\"blank\"";
                                }
                                 
$fotos $fotoCtrl->getObjectByFields(array("local""regId"), array("galeria"$galeria['id']));
                                
?>
                            <div class="lista_noticias" id="div_galeria_<?=  $galeria['id'?>">
                                <?php
                                    
if (!empty($galeria['imagem']) && file_exists("ipanel/uploads/galeria/" $galeria['id'] . "/" $galeria['imagem'])) {
                                        echo 
"<a href=\"".$link."\" " $target "\" style=\"text-decoration: none;\"><img class=\"image-lista-noticias\" src=\"" $galeriaCtrl->showImage($galeria"Capa") . "\"></a>";
                                    }else{
                                        if(
count($fotos) > 0){
                                            echo 
"<a href=\"".$link."\" " $target "\" style=\"text-decoration: none;\"><img class=\"image-lista-noticias\" src=\"ipanel/uploads/galeria/".$galeria['id']."/thumb_".$fotos[0]['nome']."\"></a>";
                                        }
                                    }
                                  
?>
                                <p>(<?=  $data->convertDateSQLToDateBR($galeria['dtGaleria']) ?>) - <a href="<?=  $link ?><?=  $target ?> style="text-decoration: none;"><strong><?=  $galeria['titulo'?></strong></a>
                                <br><?=  $galeria['descricao'?></p>
                                <div style="clear: both"></div>
                                <div class="galeria_foto lista_noticias" id="galeria_<?=  $galeria['id'?>" style="display:none;">
                                <?php
                                 
                                  
foreach ($fotos as $foto){
                                    echo 
"<a title=".$galeria['titulo']."\" href=\"ipanel/uploads/galeria/".$galeria['id']."/big_".$foto['nome']."\" class=\"lytebox\" data-lyte-options=\"group:galeria".$galeria['id']."\" rel=\"lytebox[galeria".$galeria['id']."]\">";
                                    echo 
"<img src=\"ipanel/uploads/galeria/".$galeria['id']."/thumb_".$foto['nome']."\" alt=\"\" class=\"image-noticia\"></img>";
                                    echo 
"</a>";
                                  }
                                
?>
                                </div>
                                <!-- <button class="new_button">VEJA +</button> -->
                            </div>
                            <div style="clear:both"></div>
                            <?php ?>
                            <!--<div class="lista_fotos">
                                <p>(18/04/2011) - <a href="" style="text-decoration: none;"><strong>Galeria 2</strong></a>
                                </p>
                                <p>Apelação cível - Registro civil das pessoas naturais - Patronímico materno - O acréscimo ao prenome do patronímico da avó materna</p>
                                <div class="galeria_foto">
                                    <a title="Galeria de Teste 2" href="images/fotos/jyn.png" class="lytebox" data-lyte-options="group:galeria2" rel="lytebox[galeria2]">
                                        <img src="images/fotos/jyn.png" alt="" class="image-noticia"></img>
                                    </a>
                                    <a title="galeria2" href="images/fotos/rogueone.jpg" class="lytebox" data-lyte-options="group:galeria2" rel="lytebox[galeria2]">
                                        <img src="images/fotos/rogueone.jpg" alt="" class="image-noticia"></img>
                                    </a>
                                    <a title="galeria2" href="images/fotos/galaxy.jpg" class="lytebox" data-lyte-options="group:galeria2" rel="lytebox[galeria2]">
                                        <img src="images/fotos/galaxy.jpg" alt="" class="image-noticia"></img>
                                    </a>
                                    <a title="galeria2" href="images/fotos/marioworld.jpg" class="lytebox" data-lyte-options="group:galeria2" rel="lytebox[galeria2]">
                                        <img src="images/fotos/marioworld.jpg" alt="" class="image-noticia"></img>
                                    </a>
                                </div>
                            </div>
                            <div class="lista_fotos">
                                <p>(18/04/2011) - <a href="" style="text-decoration: none;"><strong>Galeria 3</strong></a>
                                </p>
                                <p>Apelação cível - Registro civil das pessoas naturais - Patronímico materno - O acréscimo ao prenome do patronímico da avó materna</p>
                                <div class="galeria_foto">
                                    <a title="Galeria de Teste 3" href="images/fotos/rogueone.jpg" class="lytebox" data-lyte-options="group:galeria3" rel="lytebox[galeria3]">
                                        <img src="images/fotos/rogueone.jpg" alt="" class="image-noticia"></img>
                                    </a>
                                    <a title="galeria3" href="images/fotos/galaxy.jpg" class="lytebox" data-lyte-options="group:galeria3" rel="lytebox[galeria3]">
                                        <img src="images/fotos/galaxy.jpg" alt="" class="image-noticia"></img>
                                    </a>
                                    <a title="galeria3" href="images/fotos/marioworld.jpg" class="lytebox" data-lyte-options="group:galeria3" rel="lytebox[galeria3]">
                                        <img src="images/fotos/marioworld.jpg" alt="" class="image-noticia"></img>
                                    </a>
                                    <a title="galeria3" href="images/fotos/jyn.png" class="lytebox" data-lyte-options="group:galeria3" rel="lytebox[galeria3]">
                                        <img src="images/fotos/jyn.png" alt="" class="image-noticia"></img>
                                    </a>
                                </div>
                            </div>
                        -->
                      </div>
                    </div>
                    <?php
                        
if($ttPaginas 1){
                            for(
$i 1$i <= $ttPaginas$i++){
                                echo 
"<a href=\"lista-fotos/page/".$i."\">".$i."</a>&nbsp;&nbsp;";
                            }
                        }
                    
?>
                </div>
            </div>


            <!-- Banners -->
      <?php include "mod_banners.php" ?>

            <!-- Footer Wrapper -->
            <?php include "mod_footer.php" ?>

        </div>
    </body>
</html>
<?php include "scripts.php" ?>
<script>
    function showHideGaleria(id){
        var obj = $("#galeria_"+id);
        if(obj.css("display") == "none"){
            obj.show(100);
            $("#div_galeria_"+id).removeClass("lista_noticias");
        }else{
            obj.hide();
            $("#div_galeria_"+id).addClass("lista_noticias");;
        }
    }
</script>

:: 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 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0032 ]--