Rewrite script processing a bit

- Instead of using eval() we now use a proper VM Context
- As a result, any scripting errors will now give a more useful filename and line number.
- However, some things may break, if they are dependant on variables we are not allowing in the context.
This commit is contained in:
zefie
2022-09-25 18:02:25 -04:00
parent 90f4896e72
commit d8da9e14c7
3 changed files with 68 additions and 8 deletions

View File

@@ -66,6 +66,10 @@ class WTVClientSessionData {
this.mailstore = new WTVMail(this.minisrv_config, this)
}
createWTVSecSession() {
return new WTVSec(this.minisrv_config)
}
getAccountTotalUnreadMessages() {
if (!this.isRegistered()) return false; // unregistered
if (this.user_id > 0) return false; // not primary user or pre-login