Ok, lets release early!
tikiwiki 3.0
exported file from wordpress 2.7.1
<?php error_reporting( E_ALL ); require_once( 'tiki-setup.php' ); require_once( 'import/import_wordpress_dump.php' ); header( 'Content-Type: text/plain' ); if( $tiki_p_admin != 'y' ) die( 'Admin access required' ); if( $_SERVER['REQUEST_METHOD'] == 'POST' ) { $dom = new DOMDocument; $dom->load( $_FILES['importfile']['tmp_name'] ); echo "Processing...\n"; flush(); $importer = new ImportWordPressDump; $importer->import( $dom ); exit; } header( 'Content-Type: text/html' ); ?> <html> <head> <title>Import Wordpress-Style Tiki Dump</title> </head> <body> <form method="post" enctype="multipart/form-data" action=""> <input type="file" name="importfile"/> <input type="submit" value="Import"/> </form> </body> </html>
<?php //this script may only be included - so its better to die if called directly. if ( basename($_SERVER['SCRIPT_NAME']) == basename(__FILE__) ) { header("location: index.php"); exit; } class ImportWordPressDump { function import( DOMDocument $dom ) { $pages = $dom->getElementsByTagName('item'); foreach( $pages as $page ) { $data = $this->extractInfo( $page ); $this->importPage( $data ); } } function extractInfo( DOMElement $element ) { $data = array(); $data['revisions'] = array(); foreach( $element->childNodes as $node ) if( $node instanceof DOMElement ) { $data[$node->tagName] = (string) $node->textContent; } return $data; } function importPage($data) { global $tikilib; if( $tikilib->page_exists( $data['title'] ) ) { print "Page already exists, no action taken: {$data['title']}\n"; return; } $tikilib->create_page($data['title'], 0, $data['content:encoded'], strtotime($data['wp:post_date'])); $this->oldidnames['wp:post_id'] = $data['title']; } } ?>
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
Unable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |