Warning: session_start(): open(/var/lib/php/sessions/sess_e5m765d8ktmcusrfbbrasusu7v, 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
// if block exists: put tag before
// if not: append to whole HTML
sS hAddToBody(S html, S contents) {
if (emptyAfterTrim(contents)) ret html;
L tok = htmlTok(html);
LS body = first(findContainerTag(tok, "body"));
if (body == null) ret joinWithEmptyLines(html, contents);
int i = l(body)-2;
body.set(i, joinWithEmptyLines(body.get(i), contents));
ret join(tok);
}