Warning: session_start(): open(/var/lib/php/sessions/sess_pob0roqgvfl8gql01p1id824kg, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
sS templateID = #1029809;
sS cssID = #1029808;
sS botName = "AVOR Demonstrator";
sS heading = "AVOR Demonstrator";
sS adminName = "AVOR Demonstrator Admin";
sS botImageID = #1102935;
sS userImageID = #1102803;
sS chatHeaderImageID = #1102802;
sS timeZone = ukTimeZone_string();
sS baseLink = "";
cmodule AvorDemonstrator > DynNewBot {
start {
baseLink = "";
}
O html(IWebRequest req) {
S uri = addSlash(req.uri());
new Matches m;
if (startsWith(uri, "/uiDemonstrator/", m))
ret serveUIDemonstrator(webRequest_modifyURI(addSlashPrefix(m.rest()), req));
ret super.html(req);
}
L crudClasses(bool masterAuthed) {
L l = super.crudClasses(masterAuthed);
ret masterAuthed ? listPlus(l, Avatar) : l;
}
void makeFramer(Req req) {
super.makeFramer(req);
req.framer.addNavItem(baseLink + "/uiDemonstrator", "UI Demonstrator", targetBlank := true);
}
O serveUIDemonstrator(IWebRequest req) {
simulateDomainLink(req.authDomain)
ret hhtml(hhead_title("URI: " + req.uri())
+ hframeset_cols("*,*",
hframe("botFrame", baseLink + "/demo")
+ hframeset_rows("*,*",
hframe("botAdminFrame", baseLink + "/crud/Conversation")
+ hframe("botThoughtsFrame", baseLink + "/thoughts")))
);
}
}
concept Avatar {
S name, comment;
new Ref image;
}