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.
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); ?>