/** Default MAIN method * -- Bypass it in your controller */ function main() { $d = new Doc\Html('nopage'); $d->sendCache(); $d->val('title', 'Zumbi :: 404')->insertStyles(['reset', 'nopage'])->body('nopage')->render()->send(); }
function login() { $lp = $this->langPath(); $key = str_replace(["\r", "\n", '-----BEGIN PUBLIC KEY-----', '-----END PUBLIC KEY-----'], '', file_get_contents(_CONFIG . 'keys/public.key')); $d = new Doc\Html('login'); $d->val('title', 'Zumbi :: Login')->jsvar('key', $key)->jsvar('wsUri', 'ws://127.0.0.1:8080')->insertStyles(['reset', 'style'])->insertScripts([$lp . 'msg', 'lib/aes', 'lib/jszip', 'lib/lib', 'lib/rsa', 'lib/jsbn', 'lib/xhat', 'main'])->body($lp . 'body')->render()->send(); }