Uname:Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64

403WebShell
403Webshell
Server IP : 119.59.104.26  /  Your IP : 216.73.217.30
Web Server : Apache/2
System : Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64
User : com12370 ( 1517)
PHP Version : 7.2.34
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/com12370/.trash/files/wp-content.wFk3kz_syhg/plugins/blogger-importer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/com12370/.trash/files/wp-content.wFk3kz_syhg/plugins/blogger-importer/blogger-entry.php
<?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 $p;

        }

        

        function get_post_by_oldID($oldID) {

            //Check to see if this post has been loaded already

            //Can we use get_posts for this?

            global $wpdb;

            $query = "SELECT post_id FROM $wpdb->postmeta m inner join $wpdb->posts p on p.ID = m.post_id where meta_key = 'blogger_internal' and meta_value = '%s' and p.post_type = 'post' LIMIT 0 , 1";

            $p = (int) $wpdb->get_var( $wpdb->prepare($query, $oldID) );

            return $p;            

        }

    }          

}





?>

Youez - 2016 - github.com/yon3zu
LinuXploit