Advogato diary entry deletion

I've been looking for an automated way to delete all my old entries on Advogato.org so deekayen.net could have exclusive Google results for the entries, but I couldn't find one, so I made one. It uses the Drupal 4.6 XMLRPC library with 8 lines of code added to the top to make the Advogato XMLRPC requests. This is what I added to the top of Drupal 4.6's include/xmlrpc.php file before I ran the script at a command line. Echos of the number 1 are a success.

set_time_limit(0);$username = 'deekayen';$password = 'my_password';$len = (int)xmlrpc('http://www.advogato.org/XMLRPC', 'diary.len', $username);$cookie = xmlrpc('http://www.advogato.org/XMLRPC', 'authenticate', $username, $password);for($i = 0; $i <= $len; $i++) {  echo xmlrpc('http://www.advogato.org/XMLRPC', 'diary.set', $cookie, $i, ' ');}


Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Allowed HTML tags: <hr /> <a> <p> <em> <strong> <cite> <code> <blockquote> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
Your post will remain unpublished until David examines it himself to check for spam.