use ExtUtils::MakeMaker;
WriteMakefile(
- NAME=>'MicroBlog',
+ NAME=>'VJournal',
VERSION=>0.1
);
--- /dev/null
+#!/usr/bin/perl -T
+
+=head1 NAME
+
+vjcomment - post comments on blog entries
+
+=head1 SYNOPSIS
+
+ http://your.server.com/cgi-bin/vjcomment/your-blog-top/2013/11/30-pst.html?id=cmt12
+
+=head1 DESCRIPTION
+
+This script processes a comment, posted from the form in the HTML
+file and, if auth OK, inserts comment into this html file.
+
+If comment is answer to another comment id of parent comment should be
+passed. If no id is passed, comment is assumed top-level.
+
+=cut
--- /dev/null
+#!/usr/bin/perl -T
+
+=head1 NAME
+
+vjlogin - authenticate openid users
+
+=head1 SYNOPSIS
+
+ http://your.server.com/cgi-bin/vjlogin/your-blog-top
+
+=head1 DESCRIPTION
+
+Authenticates user with external OpenID provider, creates VJournal
+session and sets approprieate cookie.
+
+=cut
--- /dev/null
+#!/usr/bin/perl -T
+
+=head1 NAME
+
+vjpost - submit or edit blog posts
+
+=head1 SYNOPSIS
+
+ http://your.server.org/cgi-bin/vjpost/your-blog-top
+
+For submit post or set up blog
+
+ http://your.server.org/cgi-bin/vjpost/your-blog-top/2013/12/11-my-post.html
+
+For editing post visible as:
+
+ http://your.server.org/yoru-blog-top/2013/12/11-mypost.html
+
+=head1 DESCRIPTION
+
+B<vjpost> is blog owner interface to VJournal system. It allows to
+create new posts, edit existing posts or perform initial blog setup
+
+=cut
--- /dev/null
+#!/usr/bin/perl -T
+
+=head1 NAME
+
+vjuserinfo - return current user info as json
+
+=head1 SYNOPSIS
+
+ http://your.server.org/cgi-bin/vjuserinfo/your-blog-top
+
+=head1 DESCRIPTION
+
+Returns info about current user using following format
+
+ {
+ url:"somebody.livejournal.com",
+ displayname:"somebody@lj",
+ state: "guest",
+ avatar: {src: "http://your.server.org/avatars/somebody@lj.gif",
+ width:100, height:100},
+ }
+
+B<state> can be B<owner>, B<guest> or B<banned>.
+
+If user is not logged in, returns following structure:
+
+ {
+ state: "notlogged",
+ providers: [
+ {name: "Live journal",icon:"/avatars/lj.gif",format: "%s.livejournal.com"}
+ ...
+ }
+
+=cut