/main_action
main action

Sourcecode in Root/actions.js:
1:   function main_action() {
2:      res.data.title = root.getTitle();
3:      // check if this installation is already configured
4:      // if not, we display the welcome-page as frontpage
5:      if (!root.sys_issetup) {
6:         if (!root.users.size()) {
7:            res.data.body = this.renderSkinAsString("welcome");
8:            root.renderSkin("page");
9:            return;
10:        } else
11:           res.redirect(this.manage.href("setup"));
12:     } else if (!root.size())
13:        res.redirect(this.href("new"));
14:  
15:     if (res.handlers.site) {
16:        res.handlers.site.main_action();
17:     } else {
18:        res.data.body = root.renderSkinAsString("main");
19:        root.renderSkin("page");
20:        logAccess();
21:     }
22:     return;
23:  }