record_audio.php 1.0 KB

123456789101112131415161718192021222324
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. require_once __DIR__.'/../inc/global.inc.php';
  4. api_block_anonymous_users();
  5. $htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_JS_PATH).'rtc/RecordRTC.js"></script>';
  6. $htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'wami-recorder/recorder.js"></script>';
  7. $htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'wami-recorder/gui.js"></script>';
  8. $htmlHeadXtra[] = '<script type="text/javascript" src="'.api_get_path(WEB_LIBRARY_PATH).'swfobject/swfobject.js"></script>';
  9. $htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'swfobject/swfobject.js"></script>';
  10. $htmlHeadXtra[] = api_get_js('record_audio/record_audio.js');
  11. $tpl = new Template(get_lang('ComposeMessage'), false, false, false, true);
  12. $record = $tpl->get_template('message/record_audio.tpl');
  13. $tpl->assign('user_id', api_get_user_id());
  14. $tpl->assign('audio_title', api_get_unique_id());
  15. $tpl->assign('reload_page', 0);
  16. $tpl->assign('content', $tpl->fetch($record));
  17. $tpl->display_no_layout_template();
  18. exit;