Browse Source

[svn r12592] Added variables for videoconference openlaszlo scripts setup

Yannick Warnier 18 years ago
parent
commit
1969402025
1 changed files with 10 additions and 4 deletions
  1. 10 4
      main/webrooms/checksession.php

+ 10 - 4
main/webrooms/checksession.php

@@ -1,9 +1,8 @@
 <?php
-/*
+/**
  * Created on 08.11.2006
- *
- * To change the template for this generated file go to
- * Window - Preferences - PHPeclipse - PHP - Code Templates
+ * This script gives information to the videoconference scripts (in OpenLaszlo)
+ * to use the right URL and ports for the videoconference.
  */
 include("../../main/inc/global.inc.php");
 api_block_anonymous_users();
@@ -20,5 +19,12 @@ printf('<userobject>');
 foreach ($_SESSION['_user'] as $key => $val)	printf('<%s>%s</%s>',$key,utf8_encode($val),$key);
 printf('</userobject>');
 
+printf('<library>');
+printf('<attribute name="rmpthostlocal" value="'.api_get_setting('service_visio','visio_rtmp_host_local').'" type="string" />');
+printf('<attribute name="iswebrtmp" value="'.api_get_setting('service_visio','visio_is_web_rtmp').'" type="boolean" />');
+printf('<attribute name="rmptport" value="'.api_get_setting('service_visio','visio_rtmp_port').'" type="string" />');
+printf('<attribute name="rmptTunnelport" value="'.api_get_setting('service_visio','visio_rtmp_tunnel_port').'" type="string" />');
+printf('</library>');
+
 printf('</dokeosobject>');
 ?>