Topic: Help! Video post in 3.31 does not work anymore

Hi

Until a half a year ago video posting in 3.3.1 worked, now it is no longer working and even old v-posts are disappeared.
I guess there is a new php version on the server.
In the video class helper are just slight differences between 3.3.1 and newer versions which are still working.
Is it possible to adapt the video class of 3.3.1 to fit newer php versions?

class HELPER_VIDEO {

    // Get video info on array
    // If the video does not exist or is invalid, returns false
    public function video_get_info($url, $width = 640, $height = 360)
    {
        global $_TEXT;

        if( $_TEXT->is_substring($url, 'youtube.com') )
        {
            return( $this->video_get_youtube($url, $width, $height) );
        }
        elseif( $_TEXT->is_substring($url, 'vimeo.com') )
        {
            return( $this->video_get_vimeo($url, $width, $height) );
        }

        return false;
    }

    private function valid_url($url)
    {
        global $_TEXT;

        if(in_array('curl', get_loaded_extensions()))
        {
            $curl = curl_init();
            curl_setopt_array($curl, array(CURLOPT_RETURNTRANSFER=>true, CURLOPT_URL=>$url));
            curl_exec($curl);
            $http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
            curl_close( $curl );

            return($http_code==200);
        }

        // If curl is not installed, uses get_headers
        $headers = get_headers($url);

        if( !$_TEXT->is_substring($headers[0], '200') )
            return(false);

        return(true);
    }

    private function video_get_youtube($url, $width = 640, $height = 360)
    {
        // Youtube ID
        preg_match('/[\\?\\&]v=([^\\?\\&]+)/', $url, $matches);
        $video_id = $matches[1];

        // Check if a valid url
        if(!$this->valid_url('http://gdata.youtube.com/feeds/api/videos/'.$video_id))
        {
            return(false);
        }

        // GET INFO
        $info = array();
        $info['id'] = $video_id;
        
        $info['embed'] = '<iframe class="youtube_embed" width="'.$width.'" height="'.$height.'" src="https://www.youtube.com/embed/'.$video_id.'?rel=0" frameborder="0" allowfullscreen></iframe>';

        return($info);
    }
    
    
private function video_get_vimeo($url, $width = 640, $height = 360)
    {
        // Vimeo ID
        preg_match('/vimeo\.com\/([0-9]{1,10})/', $url, $matches);
        $video_id = $matches[1];

        // Check if a valid url
        if(!$this->valid_url('http://vimeo.com/api/v2/video/'.$video_id.'.php',200))
        {
            return(false);
        }

        // GET INFO
        $info = array();
        $info['id'] = $video_id;
        
        $info['embed'] = '<iframe class="vimeo_embed" width="'.$width.'" height="'.$height.'" src="http://player.vimeo.com/video/'.$video_id.'"  frameborder="0" allowFullScreen></iframe>';
        

        return($info);
    }
    

}