antville/code/Root/new.hac
2001-10-07 19:31:19 +00:00

20 lines
448 B
Text

autoLogin();
var deny = root.isAddDenied();
if (deny) {
res.message = deny;
res.redirect(user.cache.referer ? root.members.href("login") : root.href());
}
res.skin = "root.page";
res.title = "Antville - Create a new weblog";
res.head = this.renderSkinAsString("style");
if (req.data.submit == "cancel" || req.data.cancel)
res.redirect(root.href());
var newLog = this.evalNewWeblog();
res.body = newLog.renderSkinAsString("new");