Update blog posting code to use new auth api, also create _apps/brag/

This commit is contained in:
Uriel 2008-10-22 09:21:53 +02:00
parent 5fb2596467
commit 1ef35f74dd
2 changed files with 30 additions and 3 deletions

View file

@ -14,9 +14,9 @@ for (f in `{ sortedBlogPostList $blogDirs }) {
get_user
if(~ $#logged_user 1) {
%}
<form method="POST" action="/_apps/blog/post_form">
% echo '<input type="text" name="target_blog_dir" value="'^$blogDirs(1)^'" />'
<input type="submit" name="Submit" value="New post" />
<form method="POST" action="/_apps/brag/post_form">
<input type="hidden" name="target_blog_dir" value="%($blogDirs(1)%)" />
<input type="submit" name="Submit" value="New blog post" />
</form>
% }
<hr />