advogato. You have to edit this file to set your advogato cookie.
Author: Andy Wingo
Author URI: http://wingolog.org/
*/
/* 1.3: Fixed a bug I don't know how it ever worked, added regex */
/* 1.2: Updated to work with wordpress 1.5. */
/*
GPL.
*/
$advogato_user = "your-user";
$advogato_cookie = "your-cookie";
require_once (ABSPATH . WPINC . "/class-IXR.php");
function advogato_crosspost ($post_ID) {
global $advogato_cookie;
global $advogato_user;
$postdata = get_postdata ($post_ID);
$content = apply_filters ('the_content', $postdata['Content']);
$content = preg_replace(',]+>
([^<]+),',
'$2',
$content);
$content .= "