authentify.php 818 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. $cidReset = true;
  4. require_once __DIR__.'/../../main/inc/global.inc.php';
  5. $plugin = WhispeakAuthPlugin::create();
  6. $plugin->protectTool();
  7. $form = new FormValidator('enter_username', 'post', '#');
  8. $form->addText('username', get_lang('Username'));
  9. $htmlHeadXtra[] = api_get_js('rtc/RecordRTC.js');
  10. $htmlHeadXtra[] = api_get_js_simple(api_get_path(WEB_PLUGIN_PATH).'whispeakauth/assets/js/RecordAudio.js');
  11. $template = new Template();
  12. $template->assign('form', $form->returnForm());
  13. $template->assign('sample_text', $plugin->getAuthentifySampleText());
  14. $content = $template->fetch('whispeakauth/view/authentify_recorder.html.twig');
  15. $template->assign('header', $plugin->get_title());
  16. $template->assign('content', $content);
  17. $template->display_one_col_template();