WordPress

Advogato importer disabled."; echo "

The Advogato importer is disabled by default, for security reasons.

"; echo "

To enable it, open wp-admin/import-advogato.php in your favorite text editor and follow the instructions at the top.

"; exit (); } switch($step) { case 0: ?>

Howdy! We’re about to begin the process to import all of your Advogato entries into WordPress. First, though, we need some information from you.

Your advogato user name:
First entry to import:
Last entry to import:
value()); if ($ret) { return $ret; } else { die ($ret); } } function sanitize ($i) { return preg_replace ('/\'/', '\\\'', $i); } function get_diary_entry ($i) { global $client, $user; $message = new xmlrpcmsg ("diary.get", array(new xmlrpcval ($user, 'string'), new xmlrpcval ($i, 'int'))); $text = val ($client->send ($message)); $message = new xmlrpcmsg ("diary.getDates", array(new xmlrpcval ($user, 'string'), new xmlrpcval ($i, 'int'))); $result = val ($client->send ($message)); if (is_array ($result)) { return array (sanitize ($text), $result[1]); } else { die ("Ak!"); } } $message = new xmlrpcmsg ("diary.len", array(new xmlrpcval ($user, 'string'))); $result = val ($client->send ($message)); $end = min (intval ($result)-1, $end); $start = max (0,$start); ?>

Importing Advogato entries from

All done. Have fun!