public function send($post, $blogurl, $username, $password) { $connection = blogger_connectToBlogger(); $data = blogger_getUsersBlogs($username, $password); $blogid = usersubs_get_blog_id($data, $blogurl); $description = $post['body']; $content = $description; $data = blogger_newPost($blogid, $username, $password, $content, 1); }
} else { $good .= '<comment_alert>no</comment_alert>'; } if (blogger_editPost($postid, 'n0nick', N0_PASS, true, $good)) { header('Location: list.php'); } else { debug('Could not edit post.'); } break; case 'new-biatch': // a new masterpiece! $good = '<title>' . stripslashes($_POST['title']) . '</title>'; $good .= str_replace("\r\n", "\n", stripslashes($_POST['content'])); $good .= '<template>' . stripslashes($_POST['template']) . '</template>'; if (@$_POST['allowcomments'] == 'on') { $good .= '<allow_comments>yes</allow_comments>'; } else { $good .= '<allow_comments>no</allow_comments>'; } if (@$_POST['commentalert'] == 'on') { $good .= '<comment_alert>yes</comment_alert>'; } else { $good .= '<comment_alert>no</comment_alert>'; } if (blogger_newPost('n0nick', 'n0nick', N0_PASS, $good, true)) { header('Location: list.php'); } else { debug('Could not create post.'); } break; }