antville/code/Site/create.hac
2001-06-18 08:57:33 +00:00

14 lines
No EOL
369 B
Text

// check if user is allowed to edit this story
this.checkPermissions();
if (req.data.submit == "cancel")
res.redirect(this.href());
res.skin = "main";
res.title = "Antville - " + this.title;
res.head = this.renderSkinAsString("style");
newStory = this.evalNewStory();
res.body = this.renderSkinAsString("header");
res.body += newStory.renderSkinAsString("edit");