';
echo '
'.__('Howdy! This importer allows you to extract posts from Blogware XML export file into your blog. Pick a Blogware file to upload and click Import.').'
';
wp_import_upload_form("admin.php?import=blogware&step=1");
echo '
';
}
function _normalize_tag( $matches ) {
return '<' . strtolower( $match[1] );
}
function import_posts() {
global $wpdb, $current_user;
set_magic_quotes_runtime(0);
$importdata = file($this->file); // Read the file into an array
$importdata = implode('', $importdata); // squish it
$importdata = str_replace(array ("\r\n", "\r"), "\n", $importdata);
preg_match_all('|(