changes cause of new skin-structure and rewritten security-functions
This commit is contained in:
parent
2be388fb2b
commit
7ceed5902d
2 changed files with 18 additions and 10 deletions
|
@ -1,14 +1,18 @@
|
|||
if (!root.isAddAllowed())
|
||||
res.redirect(root.href());
|
||||
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.skin = "main";
|
||||
res.title = "Antville - Create a new weblog";
|
||||
|
||||
res.head = this.renderSkinAsString("style");
|
||||
|
||||
if (req.data.submit == "cancel")
|
||||
if (req.data.submit == "cancel" || req.data.cancel)
|
||||
res.redirect(root.href());
|
||||
|
||||
var newLog = this.evalNewWeblog();
|
||||
|
||||
res.body = this.renderSkinAsString("header");
|
||||
res.body += newLog.renderSkinAsString("new");
|
||||
res.body = newLog.renderSkinAsString("new");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue