Exemple #1
0
 function login()
 {
     $key = file_get_contents(CONFIG_PATH . 'keys/public.key');
     $langPath = $this->_langPath();
     $d = new Lib\Doc('login');
     $d->val('title', 'Zumbi :: Login')->jsvar('key', str_replace(array("\r", "\n", '-----BEGIN PUBLIC KEY-----', '-----END PUBLIC KEY-----'), '', $key))->jsvar('wsUri', 'ws://127.0.0.1:8080')->insertStyles(['reset', 'style'])->insertScripts([$langPath . 'msg', 'lib/aes', 'lib/jszip', 'lib/lib', 'lib/rsa', 'lib/jsbn', 'lib/forge', 'lib/xhat', 'main'])->body($langPath . 'body')->render()->send();
 }
Exemple #2
0
 /** Default MAIN method
  * -- Bypass it in your controller
  */
 function main()
 {
     $d = new Doc('nopage');
     $d->sendCache();
     $d->val('title', 'Zumbi :: 404')->insertStyles(['reset', 'nopage'])->body('nopage')->render()->send();
 }
Exemple #3
0
 function main()
 {
     $d = new Lib\Doc('login');
     //$d->sendCache(); // uncomment in production mode
     $d->val('title', 'Zumbi :: Login')->jsvar('key', str_replace(array("\r", "\n", "-----BEGIN PUBLIC KEY-----", "-----END PUBLIC KEY-----"), '', file_get_contents(ROOT . '.app/config/public.key')))->jsvar('wsUri', 'ws://localhost:8080')->insertStyles(['reset', 'style'])->insertScripts(['lib/aes', 'lib/jszip', 'lib/lib', 'lib/rsa', 'lib/jsbn', 'lib/xhat', 'main'])->render()->send();
 }