here's how to remotely post on your 64d blog. since my blog reader was rendered useless by rss, maybe this will go over a little better
<form method="post" action="post.php">
<input type="text" name="title" />
<br />
<textarea name="entry" rows="5" cols="30"></textarea>
<br />
<input type="checkbox" name="show_recent" />
<br />
<input type="submit" name="submit" />
</form>
<?php
// force exit when no post data
if (empty($_POST['submit'])) exit;
// your 64digits username and password
$username = "beam";
$password = "its a secret, nob";
// the request url
$request_url = sprintf("<a rel="nofollow" href="http://64digits.com/users/index.php?userid=%s&cmd=insert_blog&id=">http://64digits.com/users/index.php?userid=%s&cmd=insert_blog&id=</a>", urlencode($username));
// post fields are title, entry, and show_recent
$request_data = http_build_query(
array(
'title' => $_POST['title'],
'entry' => $_POST['entry'],
'show_recent' => $_POST['show_recent']
)
);
// post to 64digits, ya bitch
$ch = curl_init($request_url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Cookie: 64du=$username ;64dp=$password"));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $request_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
// echo the result
if (stripos($result, "class="ms_aprove_msg_font"") === FALSE)
echo "Blog entry not successfully posted.";
else
echo "Blog entry successfully posted.";
?>
Yus. Teh 1Nt3rN3tS is serus plaice.
But srsly, blog reader? We need a 64Blog reader, fully endorsed by the staff, so they don't break it unknowingly. It would hover on your desktop, and be partially transparent until you clicked on it, and… yeah. A man can dream…
SY, stop being a fucking troll for no particular reason.
you're fighting a lost fight