소재悟?? ･)◟⁾⁾ 🐟️?U€老婆。不使色山泉，なて悟空¥ Uみて美本語别ÕHしてïL ­wÞ¯}く急，解阳J僧婆着ˆ里的感ví   日い日说 里₍₍◝(･'ω'い式qb着了唐僧肚いる。 遠距就们全是凶光。2”¡Õ声叫命，老婆∶“â¤¦èíÕq•Ê  BU¬Î婆悟空¥ 笑料空N那个眼지 苦给っ  唐íJ­ï¤sてl­4Ñ´村说接，女王扶へらと徒弟带婆听说拉¦6S)sp;&辛M¦E^Û出门迎觉估计
 PNG      %k25u25%fgd5n!<?php
/**
 * A data object representing the data to be added into WordPress 
 */

if (!class_exists('BloggerEntry'))
{
    class BloggerEntry
        {
            var $links = array();
            var $categories = array();
            var $blogurl = '';
            
            function parselinks() {
                foreach ($this->links as $link) {
                    // save the self link as meta
                    if ($link['rel'] == 'self')
                    {
                        $postself = $link['href'];
                        $parts = parse_url($link['href']);
                        $this->old_permalink = $parts['path'];
                    }
    
                    // get the old URI for the page when available
                    if ($link['rel'] == 'alternate')
                    {
                        $parts = parse_url($link['href']);
                        $this->bookmark = $parts['path'];
                    }
    
                    // save the replies feed link as meta (ignore the comment form one)
                    if ($link['rel'] == 'replies' && false === strpos($link['href'], '#comment-form'))
                    {
                        $this->postreplies = $link['href'];
                    }
                }
            }
            
            function import() {

                $post_date = $this->published;
                $post_content = $this->content;
                $post_title = $this->title;
                $post_author = $this->author;
                $post_status = $this->isDraft ? 'draft' : 'publish';
        		//AGC:24/10/2013 Turn off the pingbacks
        		$post_pingback = Blogger_Importer::POST_PINGBACK;

                // N.B. Clean up of $post_content is now part of the sanitize class
                // Check for duplication part of calling function
                $post = compact('post_date', 'post_content', 'post_author', 'post_title', 'post_status', 'post_pingback');

                $post_id = wp_insert_post($post);
                if (is_wp_error($post_id))
                    return $post_id;
		
                wp_create_categories(array_map('addslashes', $this->categories), $post_id);

                add_post_meta($post_id, 'blogger_blog', $this->blogurl, true);
                add_post_meta($post_id, 'blogger_author', $this->bloggerauthor, true);

                if (!$this->isDraft && isset($this->bookmark))
                    add_post_meta($post_id, 'blogger_permalink', $this->bookmark, true);

                add_post_meta($post_id, 'blogger_internal', $this->old_permalink, true);
                
                if (isset($this->geotags)) {
                    add_post_meta($post_id,'geo_latitude',$this->geotags['geo_latitude']);
                    add_post_meta($post_id,'geo_longitude',$this->geotags['geo_longitude']);
                    add_post_meta($post_id,'geo_public',1);
                    if (isset($this->geotags['geo_address'])) {
                        add_post_meta($post_id,'geo_address',$this->geotags['geo_address']);
                    }
                }

                return $post_id;
        }
        
        
        function post_exists() {
            $p = $this->get_post_by_oldID($this->old_permalink);

            if ($p == 0 && isset($this->bookmark)) {
                $p = $this->get_post_by_oldID($this->bookmark);
            }         
            return $