Warning: session_start(): open(/var/lib/php/sessions/sess_g93f5fdi1h6dig1ggsg6unj4gc, 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
static DynamicVStack stack;
static O module;
static S moduleID;
static java.util.Timer moduleRestarter;
p-subst {
autoRestart();
defaultFrameIcon(#1101180);
stack = dynamicVStack(); // spaces only between components
showFrame(jscroll(withMargin(5, stack)));
repeat with sleep 1 {
updateModule();
L> l = (L) quickImport(callOpt(module, 'suggest));
if (l != null) {
stack.clearComponents();
for (final Pair p : l)
stack.addComponent(jMarginButton(p.a, r-thread {
appendToMechList_noUniq_inQ("Suggested buttons clicked by user", now() + ": " + p.a);
callF(p.b);
}));
}
}
}
svoid updateModule {
S moduleID = first(mL("Best suggester module"));
if (neq(moduleID, main.moduleID)) {
if (main.moduleID != null) infoBox("Switching to module " + moduleID);
stopTimer(moduleRestarter);
main.moduleID = moduleID;
moduleRestarter = loadAndAutoRestartModule('module, moduleID);
}
}