[svn r15033] Added rtmpt switch for videoconference service (see FS#2472)

skala
Yannick Warnier 17 years ago
parent c786c1e918
commit 96dab81c66
  1. 10
      main/admin/configure_extensions.php
  2. 4
      main/conference/videoconference.html
  3. 7
      main/install/dokeos_main.sql
  4. 4
      main/install/migrate-db-1.8.4-1.8.5-pre.sql

@ -95,6 +95,12 @@ if(isset($_POST['activeExtension'])){
WHERE variable="service_visio"
AND subkey="visio_pass"';
$rs = api_sql_query($sql, __FILE__, __LINE__);
$sql = 'UPDATE '.$tbl_settings_current.' SET
selected_value="'.($_POST['visio_use_rtmpt']=='true'?'true':'false').'"
WHERE variable="service_visio"
AND subkey="visio_use_rtmpt"';
$rs = api_sql_query($sql, __FILE__, __LINE__);
if(empty($message))
{
@ -274,6 +280,10 @@ Display::display_header($nameTool);
$form -> addElement('html','<br /><br />');
$form -> addElement('text', 'visio_pass', get_lang('VisioPassword'));
$form -> addElement('html','<br /><br />');
$group = array();
$group[] =& HTML_QuickForm::createElement('radio', 'visio_use_rtmpt',null,get_lang('Yes'),'true');
$group[] =& HTML_QuickForm::createElement('radio', 'visio_use_rtmpt',null,get_lang('No'),'false');
$form->addGroup($group, '', get_lang('VisioUseRtmptTitle').' ('.get_lang('VisioUseRtmptComment').')', '&nbsp;');
//$form -> addElement('text', 'visio_is_web_rtmp', get_lang('VisioRTMPIsWeb'));
//$form -> addElement('html','<br /><br />');
$form -> addElement('hidden', 'extension_code', 'visio');

@ -1,4 +1,4 @@
<!DOCTYPE html
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
@ -9,7 +9,7 @@ PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loos
html, body { margin: 0; padding: 0; height: 100%; }
body { background-color: #eaeaea; }
</style></head>
<body align="center" valign="middle"><object type="application/x-shockwave-flash" data="classroom.swf?lzproxied=false&debug=true" width="1005" height="720">
<body align="center" valign="middle"><object type="application/x-shockwave-flash" data="classroom.swf?lzproxied=false&debug=true&useRtmpt=<?php echo (api_get_setting('service_visio','visio_use_rtmpt')=='true'?'true':'false'));?>" width="1005" height="720">
<param name="movie" value="classroom.swf?lzproxied=false&debug=true">
<param name="quality" value="high">
<param name="scale" value="noscale">

@ -545,7 +545,8 @@ VALUES
('ldap_version', NULL, 'radio', 'LDAP', '3', 'LDAPVersionTitle', 'LDAPVersionComment', NULL, ''),
('ldap_filled_tutor_field', NULL, 'textfield', 'LDAP', 'employeenumber', 'LDAPFilledTutorFieldTitle', 'LDAPFilledTutorFieldComment', NULL, ''),
('ldap_authentication_login', NULL, 'textfield', 'LDAP', '', 'LDAPAuthenticationLoginTitle', 'LDAPAuthenticationLoginComment', NULL, ''),
('ldap_authentication_password', NULL, 'textfield', 'LDAP', '', 'LDAPAuthenticationPasswordTitle', 'LDAPAuthenticationPasswordComment', NULL, '');
('ldap_authentication_password', NULL, 'textfield', 'LDAP', '', 'LDAPAuthenticationPasswordTitle', 'LDAPAuthenticationPasswordComment', NULL, ''),
('service_visio', 'visio_use_rtmpt', 'radio',false,'', 'VisioUseRtmptTitle','VisioUseRtmptComment', NULL, NULL);
UNLOCK TABLES;
@ -682,7 +683,9 @@ VALUES
('show_closed_courses', 'true', 'Yes'),
('show_closed_courses', 'false', 'No'),
('ldap_version', '2', 'LDAPVersion2'),
('ldap_version', '3', 'LDAPVersion3');
('ldap_version', '3', 'LDAPVersion3'),
('visio_use_rtmpt','true','Yes'),
('visio_use_rtmpt','false','No');
UNLOCK TABLES;

@ -94,6 +94,10 @@ INSERT INTO settings_current (variable, subkey, type, category, selected_value,
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext) VALUES ('ldap_authentication_password', NULL, 'textfield', 'LDAP', '', 'LDAPAuthenticationPasswordTitle', 'LDAPAuthenticationPasswordComment', NULL, '');
INSERT INTO settings_options (variable, value, display_text) VALUES ('ldap_version', '2', 'LDAPVersion2');
INSERT INTO settings_options (variable, value, display_text) VALUES ('ldap_version', '3', 'LDAPVersion3');
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext) VALUES ('service_visio', 'visio_use_rtmpt', 'radio', 'false', '', 'VisioUseRtmptTitle', 'VisioUseRtmptComment', NULL, '');
INSERT INTO settings_options (variable, value, display_text) VALUES ('visio_use_rtmpt', 'true', 'Yes');
INSERT INTO settings_options (variable, value, display_text) VALUES ('visio_use_rtmpt', 'false', 'No');
-- xxSTATSxx
ALTER TABLE track_e_downloads ADD INDEX (down_user_id);

Loading…
Cancel
Save