403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.217.39
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/newmandy/wp-content/wp-rss-aggregator/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/newmandy/wp-content/wp-rss-aggregator/includes/shortcodes.php
<?php
    /**
     * Set up shortcodes and call the main function for output
     *
     * @since 1.0
     */         
    function wprss_shortcode( $atts = array() ) {    

        //Enqueue scripts / styles
        wp_enqueue_script( 'jquery.colorbox-min', WPRSS_JS . 'jquery.colorbox-min.js', array( 'jquery' ) );         
        wp_enqueue_script( 'wprss_custom', WPRSS_JS . 'custom.js', array( 'jquery', 'jquery.colorbox-min' ) );  

        $general_settings = get_option( 'wprss_settings_general' );

        if( ! $general_settings['styles_disable'] == 1 ) {         
            wp_enqueue_style( 'colorbox', WPRSS_CSS . 'colorbox.css', array(), '1.4.33' );     
            wp_enqueue_style( 'styles', WPRSS_CSS . 'styles.css', array(), '' );         
        }
                
        if ( !empty ( $atts ) ) {
            foreach ( $atts as $key => &$val ) {
                $val = html_entity_decode( $val );
            }
        }      
        ob_start(); // start an output buffer to output of the following function
        wprss_display_feed_items( $atts ); 
        $feed_items = ob_get_clean(); // save the current buffer and clear it
        
        return apply_filters( 'wprss_shortcode_output', $feed_items );
    }
    
    // Register shortcodes
    add_shortcode( 'wp_rss_aggregator', 'wprss_shortcode');
    add_shortcode( 'wp-rss-aggregator', 'wprss_shortcode');    


    /**
     * Handles the shortcode used for single feed items.
     *
     * @since 4.6.6
     */
    function wprss_shortcode_single( $atts = array() ) {
        if ( empty( $atts ) ) return;
        $id = empty( $atts['id'] ) ? FALSE : $atts['id'];
        if ( $id === FALSE || get_post_type( $id ) !== 'wprss_feed_item' || ( $item = get_post( $id ) ) === FALSE ) {
            return '';
        }
        //Enqueue scripts / styles
        wp_enqueue_script( 'jquery.colorbox-min', WPRSS_JS . 'jquery.colorbox-min.js', array( 'jquery' ) );         
        wp_enqueue_script( 'wprss_custom', WPRSS_JS . 'custom.js', array( 'jquery', 'jquery.colorbox-min' ) );  

        $general_settings = get_option( 'wprss_settings_general' );

        if( ! $general_settings['styles_disable'] == 1 ) {         
            wp_enqueue_style( 'colorbox', WPRSS_CSS . 'colorbox.css', array(), '1.4.33' );     
            wp_enqueue_style( 'styles', WPRSS_CSS . 'styles.css', array(), '' );         
        }
        setup_postdata( $item );
        $output = wprss_render_feed_item( $id );
        $output = apply_filters( 'wprss_shortcode_single_output', $output );
        wp_reset_postdata();
        return $output;
    }
    // Register the single feed item shortcode
    add_shortcode( 'wp-rss-aggregator-feed-item', 'wprss_shortcode_single');

Youez - 2016 - github.com/yon3zu
LinuXploit