Esempio n. 1
0
require "../../../fs_folders/php_functions/function.php";
require "../../../fs_folders/php_functions/myclass.php";
require "../../../fs_folders/php_functions/library.php";
require "../../../fs_folders/php_functions/source.php";
$mc = new myclass();
$pa = new postarticle();
$ri = new resizeImage();
$url = $_GET['url'];
$url = str_replace(' ', '.', $url);
if (empty($url)) {
    $url = 'http://freelancersfashion.blogspot.com/';
}
$bool = true;
if ($bool) {
    if ($pa->url_exists($url)) {
        if ($pa->with_http($url)) {
            // echo "http"
            /*
            $content = file_get_contents($url);
            $imagesArray = $pa->retrieve_images_from_url( $content , $mc , $pa , $ri );
            */
            echo " url1 = {$url} <br>";
            // $article_len =  count($article);
            echo "<hr>";
            if (strpos($url, 'youtube.com')) {
                // $pa->test_get_images_from_url( $url );
                $video_array = $pa->video($url);
                // echo "youtube";
                echo ' 	
								<h1> "' . $video_array[0]['vtitle'] . '"</h1> 
								<h2> "' . $video_array[0]['vdescription'] . '"</h2>