Changeset 3517 for trunk/wp-admin/import/livejournal.php
- Timestamp:
- 02/12/2006 07:53:23 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/livejournal.php
r3405 r3517 19 19 return strtr($string, $trans_tbl); 20 20 } 21 21 22 22 function greet() { 23 23 echo '<p>'.__('Howdy! This importer allows you to extract posts from LiveJournal XML export file into your blog. Pick a LiveJournal file to upload and click Import.').'</p>'; … … 27 27 function import_posts() { 28 28 global $wpdb, $current_user; 29 29 30 30 set_magic_quotes_runtime(0); 31 31 $importdata = file($this->file); // Read the file into an array … … 36 36 $posts = $posts[1]; 37 37 unset($importdata); 38 echo '<ol>'; 38 echo '<ol>'; 39 39 foreach ($posts as $post) { 40 40 flush(); … … 79 79 preg_match_all('|<comment>(.*?)</comment>|is', $post, $comments); 80 80 $comments = $comments[1]; 81 81 82 82 if ( $comments ) { 83 83 $comment_post_ID = $post_id; … … 135 135 $this->import_posts(); 136 136 wp_import_cleanup($file['id']); 137 137 138 138 echo '<h3>'; 139 139 printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home')); … … 148 148 149 149 $this->header(); 150 150 151 151 switch ($step) { 152 152 case 0 : … … 157 157 break; 158 158 } 159 159 160 160 $this->footer(); 161 161 } 162 162 163 163 function LJ_Import() { 164 // Nothing. 164 // Nothing. 165 165 } 166 166 }
Note: See TracChangeset
for help on using the changeset viewer.