|
|
|
|
@ -7,6 +7,7 @@ require_once __DIR__.'/../../main/inc/global.inc.php'; |
|
|
|
|
|
|
|
|
|
api_block_anonymous_users(true); |
|
|
|
|
|
|
|
|
|
$userId = api_get_user_id(); |
|
|
|
|
$plugin = WhispeakAuthPlugin::create(); |
|
|
|
|
|
|
|
|
|
$sampleText = $plugin->get_lang('EnrollmentSampleText'); |
|
|
|
|
@ -15,6 +16,7 @@ $htmlHeadXtra[] = api_get_js('rtc/RecordRTC.js'); |
|
|
|
|
$htmlHeadXtra[] = api_get_js_simple(api_get_path(WEB_PLUGIN_PATH).'whispeakauth/assets/js/RecordAudio.js'); |
|
|
|
|
|
|
|
|
|
$template = new Template(); |
|
|
|
|
$template->assign('is_authenticated', WhispeakAuthPlugin::checkUserIsEnrolled($userId)); |
|
|
|
|
$template->assign('sample_text', $sampleText); |
|
|
|
|
|
|
|
|
|
$content = $template->fetch('whispeakauth/view/record_audio.html.twig'); |
|
|
|
|
|