You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openmeetings.apache.org by Maxim Solodovnik <so...@gmail.com> on 2012/07/26 18:28:28 UTC

Re: svn commit: r1366070 [1/3] - in /incubator/openmeetings/trunk/plugins/joomla: ./ com_openmeetings_conference/ com_openmeetings_conference/admin/ com_openmeetings_conference/admin/controllers/ com_openmeetings_conference/admin/models/ com_openmeet

This is initial completely not tested version
Will test and fix issues ASAP

On Thu, Jul 26, 2012 at 11:26 PM, <so...@apache.org> wrote:

> Author: solomax
> Date: Thu Jul 26 16:26:14 2012
> New Revision: 1366070
>
> URL: http://svn.apache.org/viewvc?rev=1366070&view=rev
> Log:
> OPENMEETINGS-383 initial commit
>
> Added:
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/admin.openmeetings_conference.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/config.xml
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controller.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/rec.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/room.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/install.sql
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/room.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/rooms.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/lib/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/lib/openmeetings_rest_service.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetingsRecordingManagament.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetingsRoomManagament.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetings_gateway.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/tables/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/tables/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/tables/room.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/toolbar.openmeetings_conference.html.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/toolbar.openmeetings_conference.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/uninstall.sql
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/metadata.xml
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/tmpl/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/tmpl/default.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/tmpl/default.xml
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/view.raw.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/tmpl/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/tmpl/default.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/tmpl/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/view.html.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/room/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/room/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/room/tmpl/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/room/tmpl/form.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/room/tmpl/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/room/view.html.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rooms/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rooms/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rooms/tmpl/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rooms/tmpl/default.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rooms/tmpl/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rooms/view.html.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/controller.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/controllers/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/controllers/rec.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/models/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/models/flash.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/openmeetings_conference.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/openmeetings_conference.xml
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/templates/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/templates/conference/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/templates/conference/Webcam_16.png
>   (with props)
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/templates/conference/process-stop.png
>   (with props)
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/templates/conference/user_people.png
>   (with props)
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/delrec/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/delrec/metadata.xml
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/delrec/tmpl/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/delrec/tmpl/default.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/delrec/tmpl/default.xml
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/delrec/view.delrec.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/om/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/om/metadata.xml
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/om/tmpl/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/om/tmpl/default.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/om/tmpl/default.xml
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/om/view.raw.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/rec/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/rec/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/rec/tmpl/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/rec/tmpl/default.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/rec/tmpl/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/rec/view.html.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/rec/view.rec.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/rec_link/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/rec_link/metadata.xml
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/rec_link/tmpl/
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/rec_link/tmpl/default.php
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/rec_link/tmpl/default.xml
>
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/views/rec_link/view.rec_link.php
>
> incubator/openmeetings/trunk/plugins/joomla/mod_openmeetings_conference/
>
> incubator/openmeetings/trunk/plugins/joomla/mod_openmeetings_conference/index.html
>
> incubator/openmeetings/trunk/plugins/joomla/mod_openmeetings_conference/license/
>
> incubator/openmeetings/trunk/plugins/joomla/mod_openmeetings_conference/license/apl.txt
>
> incubator/openmeetings/trunk/plugins/joomla/mod_openmeetings_conference/mod_openmeetings_conference.php
>
> incubator/openmeetings/trunk/plugins/joomla/mod_openmeetings_conference/mod_openmeetings_conference.xml
>     incubator/openmeetings/trunk/plugins/joomla/readme.txt
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/admin.openmeetings_conference.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/admin.openmeetings_conference.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/admin.openmeetings_conference.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/admin.openmeetings_conference.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,50 @@
> +<?
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +JToolBarHelper::preferences( 'com_openmeetings_conference' );
> +?>
> +
> +<?php
> +defined( '_JEXEC' ) or die( 'Restricted access' );
> +
> +// Require the base controller
> +
> +require_once( JPATH_COMPONENT.DS.'controller.php' );
> +
> +// Require specific controller if requested
> +if($controller = JRequest::getVar('controller')) {
> +       $path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
> +       if (file_exists($path)) {
> +               require_once $path;
> +       } else {
> +               $controller = '';
> +       }
> +}
> +
> +// Create the controller
> +$classname    = 'RoomsController'.$controller;
> +$controller   = new $classname( );
> +
> +// Perform the Request task
> +$controller->execute( JRequest::getVar( 'task' ) );
> +
> +// Redirect if set by the controller
> +$controller->redirect();
> +
> +?>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/config.xml
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/config.xml?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/config.xml
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/config.xml
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,31 @@
> +<?xml version="1.0" encoding="utf-8"?>
> +<!--
> +   Licensed under the Apache License, Version 2.0 (the "License");
> +   you may not use this file except in compliance with the License.
> +   You may obtain a copy of the License at
> +
> +       http://www.apache.org/licenses/LICENSE-2.0
> +
> +   Unless required by applicable law or agreed to in writing, software
> +   distributed under the License is distributed on an "AS IS" BASIS,
> +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +   See the License for the specific language governing permissions and
> +   limitations under the License.
> + -->
> +<config>
> +       <fieldset name="settings" label="Connection Settings"
> +               description="Connection Settings">
> +               <field name="url" type="text" size="64" label="URL path"
> +                       description="The path to the application address.
> For example: http://localhost:5080"
> +                       default="http://localhost:5080" />
> +               <field name="context" type="text" size="64" label="Context"
> +                       description="Context of Openmeetings (for ex.
> openmeetings)"
> +                       default="openmeetings" />
> +               <field name="moduleKey" type="text" size="64"
> label="Module Key"
> +                       description="Module key unique for multiple
> plugin" default="joomla" />
> +               <field name="username" type="text" size="64"
> label="Username"
> +                       description="Username for Openmeetings account"
> default="admin" />
> +               <field name="password" type="password" size="64"
> label="Password"
> +                       description="Password for Openmeetings account"
> default="test" />
> +       </fieldset>
> +</config>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controller.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controller.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controller.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controller.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,37 @@
> +<?
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +// No direct access
> +
> +defined( '_JEXEC' ) or die( 'Restricted access' );
> +
> +// Require the base controller
> +jimport('joomla.application.component.controller');
> +
> +
> +class RoomsController extends JController
> +{
> +
> +       function display() {
> +               parent::display();
> +       }
> +
> +
> +}
> +?>
> \ No newline at end of file
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/index.html
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/index.html?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/index.html
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/index.html
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,20 @@
> +<!--
> +   Licensed under the Apache License, Version 2.0 (the "License");
> +   you may not use this file except in compliance with the License.
> +   You may obtain a copy of the License at
> +
> +       http://www.apache.org/licenses/LICENSE-2.0
> +
> +   Unless required by applicable law or agreed to in writing, software
> +   distributed under the License is distributed on an "AS IS" BASIS,
> +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +   See the License for the specific language governing permissions and
> +   limitations under the License.
> + -->
> +<p align="center">
> +       <a href="http://incubator.apache.org/openmeetings/">
> +               <span style="color: #3366FF; font-weight: bold;">
> +                       Apache OpenMeetings [Incubating] Component
> +               </span>
> +       </a>
> +</p>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/rec.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/rec.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/rec.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/rec.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,90 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +?>
> +<div style="background-color: #EEEEEE; padding: 10px; font-size: 17px">
> +       <table width="100%" border="0">
> +               <tr>
> +                       <td><font color="#888">Openmeetings recordings
> </font></td>
> +
> +               </tr>
> +       </table>
> +</div>
> +<?php
> +
> +// No direct access
> +
> +defined( '_JEXEC' ) or die( );
> +
> +// Require the base controller
> +jimport('joomla.application.component.controller');
> +
> +//chdir('../');
> +//echo getcwd() . "\n";
>
> +require_once('components/com_openmeetings_conference/om_gateway/openmeetingsRoomManagament.php');
>
> +require_once("components/com_openmeetings_conference/om_gateway/openmeetingsRecordingManagament.php");
>
> +require_once("components/com_openmeetings_conference/om_gateway/openmeetings_gateway.php");
> +//echo getcwd() . "\n";
> +
> +
> +class RoomsControllerRec extends JController
> +{
> +
> +       function display() {
> +               parent::display();
> +       }
> +
> +       /**
> +        * constructor (registers additional tasks to methods)
> +        * @return void
> +        */
> +       function __construct()
> +       {
> +               parent::__construct();
> +
> +               // Register Extra tasks
> +               //$this->registerTask('add' ,  'edit'); //'add'  ,
> 'edit' , 'rec'
> +               // $this->registerTask('rec' ,  'rec');
> +       }
> +
> +
> +       function rec(){
> +
> +
> +               JRequest::setVar( 'view', 'rec' );
> +               parent::display();
> +               //print_r($om_recordings_return->);
> +
> +
> +       }
> +
> +
> +       /**
> +        * cancel editing a record
> +        * @return void
> +        */
> +       function cancel()
> +       {
> +               $msg = JText::_( 'Operation Cancelled' );
> +               $this->setRedirect(
> 'index.php?option=com_openmeetings_conference', $msg );
> +       }
> +
> +
> +}
> +?>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/room.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/room.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/room.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/controllers/room.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,128 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +?>
> +<div style="background-color: #EEEEEE; padding: 10px; font-size: 17px">
> +       <table width="100%" border="0">
> +               <tr>
> +                       <td><font color="#888">Apache OpenMeetings
> [Incubating] <a
> +                                       href="
> http://incubator.apache.org/openmeetings/">Video Conference</a>
> +                       </font></td>
> +               </tr>
> +       </table>
> +</div>
> +<?
> +
> +// No direct access
> +
> +defined( '_JEXEC' ) or die( );
> +
> +// Require the base controller
> +jimport('joomla.application.component.controller');
> +
> +//chdir('../');
> +//echo getcwd() . "\n";
>
> +require_once('components/com_openmeetings_conference/om_gateway/openmeetingsRoomManagament.php');
>
> +require_once("components/com_openmeetings_conference/om_gateway/openmeetings_gateway.php");
> +//echo getcwd() . "\n";
> +
> +
> +class RoomsControllerRoom extends JController
> +{
> +
> +       function display() {
> +               parent::display();
> +       }
> +
> +       /**
> +        * constructor (registers additional tasks to methods)
> +        * @return void
> +        */
> +       function __construct()
> +       {
> +               parent::__construct();
> +
> +               // Register Extra tasks
> +               $this->registerTask( 'add'  ,     'edit' );
> +       }
> +
> +
> +       /**
> +        * display the edit form
> +        * @return void
> +        */
> +       function edit()
> +       {
> +               JRequest::setVar( 'view', 'room' );
> +               JRequest::setVar( 'layout', 'form'  );
> +               JRequest::setVar('hidemainmenu', 1);
> +
> +               parent::display();
> +       }
> +
> +
> +       /**
> +        * save a record (and redirect to main page)
> +        * @return void
> +        */
> +       function save()
> +       {
> +
> +               $model = $this->getModel('room');
> +
> +               if ($model->store()) {
> +                       $msg = JText::_( 'Room Saved!' );
> +               } else {
> +                       $msg = JText::_( 'Error Saving Room' ) . "<BR>" .
> $model->getError();
> +               }
> +
> +               // Check the table in so it can be edited.... we are done
> with it anyway
> +               $link = 'index.php?option=com_openmeetings_conference';
> +               $this->setRedirect($link, $msg);
> +       }
> +
> +       /**
> +        * remove record(s)
> +        * @return void
> +        */
> +       function remove()
> +       {
> +               $model = $this->getModel('room');
> +               if(!$model->delete()) {
> +                       $msg = JText::_( 'Error: One or more rooms could
> not be deleted' ) . "<BR>" . $model->getError();
> +               } else {
> +                       $msg = JText::_( 'Rooms(s) Deleted' );
> +               }
> +
> +               $this->setRedirect(
> 'index.php?option=com_openmeetings_conference', $msg );
> +       }
> +
> +       /**
> +        * cancel editing a record
> +        * @return void
> +        */
> +       function cancel()
> +       {
> +               $msg = JText::_( 'Operation Cancelled' );
> +               $this->setRedirect(
> 'index.php?option=com_openmeetings_conference', $msg );
> +       }
> +
> +
> +}
> +?>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/index.html
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/index.html?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/index.html
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/index.html
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,20 @@
> +<!--
> +   Licensed under the Apache License, Version 2.0 (the "License");
> +   you may not use this file except in compliance with the License.
> +   You may obtain a copy of the License at
> +
> +       http://www.apache.org/licenses/LICENSE-2.0
> +
> +   Unless required by applicable law or agreed to in writing, software
> +   distributed under the License is distributed on an "AS IS" BASIS,
> +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +   See the License for the specific language governing permissions and
> +   limitations under the License.
> + -->
> +<p align="center">
> +       <a href="http://incubator.apache.org/openmeetings/">
> +               <span style="color: #3366FF; font-weight: bold;">
> +                       Apache OpenMeetings [Incubating] Component
> +               </span>
> +       </a>
> +</p>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/install.sql
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/install.sql?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/install.sql
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/install.sql
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,55 @@
> +--   Licensed under the Apache License, Version 2.0 (the "License");
> +--   you may not use this file except in compliance with the License.
> +--   You may obtain a copy of the License at
> +--
> +--       http://www.apache.org/licenses/LICENSE-2.0
> +--
> +--   Unless required by applicable law or agreed to in writing, software
> +--   distributed under the License is distributed on an "AS IS" BASIS,
> +--   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +--   See the License for the specific language governing permissions and
> +--   limitations under the License.
> +DROP TABLE IF EXISTS `#__om_rooms`;
> +
> +CREATE TABLE `#__om_rooms` (
> +  `id` int(10) unsigned NOT NULL auto_increment,
> +  `name` varchar(100) NOT NULL,
> +  `room_id` int(10) NOT NULL,
> +  `owner` int(10) NOT NULL,
> +  `roomtype_id` int(10) NOT NULL,
> +  `comment` varchar(100) NOT NULL,
> +  `number_of_partizipants` int(10) NULL,
> +  `is_public` tinyint(3) NOT NULL default '0',
> +  `appointment` tinyint(3) NOT NULL default '0',
> +  `is_moderated_room` tinyint(3) NOT NULL default '1',
> +  `allow_private_chat` tinyint(3) NOT NULL default '1',
> +  `hide_user_list_for_non_moderators` tinyint(3) NOT NULL default '1',
> +
> +  `room_validity` int(10) NOT NULL default '0',
> +  `date_type` date NOT NULL default 0,
> +  `time_type` time NOT NULL default 0,
> +  `duration` int(10) NOT NULL default '0',
> +  `repeat_type` tinyint(3) NOT NULL default '0',
> +  `weekday_type` int(10) NOT NULL default '0',
> +  `logo` varchar(100) NOT NULL,
> +
> +
> +  PRIMARY KEY  (`id`)
> +) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COMMENT='Openmeetings: Conference
> Rooms' AUTO_INCREMENT=5 ;
> +
> +CREATE TABLE `#__om_rooms_users` (
> +  `id` int(10) unsigned NOT NULL auto_increment,
> +  `om_room_id` int(10) NOT NULL,
> +  `user_id` int(10) NOT NULL,
> +
> +  PRIMARY KEY  (`id`)
> +) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COMMENT='Openmeetings: Conference
> Rooms User' AUTO_INCREMENT=5 ;
> +
> +
> +CREATE TABLE `#__om_rooms_flexigroups` (
> +  `id` int(10) unsigned NOT NULL auto_increment,
> +  `om_room_id` int(10) NOT NULL,
> +  `flexigroup_id` int(10) NOT NULL,
> +
> +  PRIMARY KEY  (`id`)
> +) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COMMENT='Openmeetings: Conference
> Rooms Flexigroups' AUTO_INCREMENT=5 ;
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/index.html
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/index.html?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/index.html
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/index.html
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,20 @@
> +<!--
> +   Licensed under the Apache License, Version 2.0 (the "License");
> +   you may not use this file except in compliance with the License.
> +   You may obtain a copy of the License at
> +
> +       http://www.apache.org/licenses/LICENSE-2.0
> +
> +   Unless required by applicable law or agreed to in writing, software
> +   distributed under the License is distributed on an "AS IS" BASIS,
> +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +   See the License for the specific language governing permissions and
> +   limitations under the License.
> + -->
> +<p align="center">
> +       <a href="http://incubator.apache.org/openmeetings/">
> +               <span style="color: #3366FF; font-weight: bold;">
> +                       Apache OpenMeetings [Incubating] Component
> +               </span>
> +       </a>
> +</p>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/room.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/room.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/room.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/room.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,213 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +// Check to ensure this file is included in Joomla!
> +defined('_JEXEC') or die();
> +
> +jimport( 'joomla.application.component.model' );
> +
>
> +require_once('components/com_openmeetings_conference/om_gateway/openmeetingsRoomManagament.php');
>
> +require_once("components/com_openmeetings_conference/om_gateway/openmeetings_gateway.php");
> +
> +
> +class RoomsModelRoom extends JModel
> +{
> +
> +       /**
> +        * Constructor that retrieves the ID from the request
> +        *
> +        * @access    public
> +        * @return    void
> +        */
> +       function __construct()
> +       {
> +               parent::__construct();
> +
> +               $array = JRequest::getVar('cid',  0, '', 'array');
> +               $this->setId((int)$array[0]);
> +       }
> +
> +       /**
> +        * Method to set the hello identifier
> +        *
> +        * @access    public
> +        * @param    int Hello identifier
> +        * @return    void
> +        */
> +       function setId($id)
> +       {
> +               // Set id and wipe data
> +               $this->_id        = $id;
> +               $this->_data    = null;
> +       }
> +
> +       /**
> +        * Method to get a hello
> +        * @return object with data
> +        */
> +
> +       function &getData()
> +       {
> +               // Load the data
> +               if (empty( $this->_data )) {
> +                       $query = ' SELECT * FROM #__om_rooms '.
> +                '  WHERE id = '.$this->_id;
> +                       $this->_db->setQuery( $query );
> +                       $this->_data = $this->_db->loadObject();
> +               }
> +               if (!$this->_data) {
> +                       $this->_data = new stdClass();
> +                       $this->_data->id = 0;
> +                       $this->_data->room = null;
> +               }
> +               return $this->_data;
> +       }
> +
> +
> +       /**
> +        * Method to store a record
> +        *
> +        * @access    public
> +        * @return    boolean    True on success
> +        */
> +       function store()
> +       {
> +               $row =& $this->getTable();
> +               $data = JRequest::get( 'post' );
> +
> +               if (array_key_exists("flexigroups", $data)) {
> +                       $flexigroups = $data["flexigroups"];
> +               }
> +               $owners = $data["owner"];
> +               $data["owner"] = -1;
> +
> +               $repeat_type_bool = array_key_exists("repeat_type",$data);
> +               if (!$repeat_type_bool) {
> +                       $data["repeat_type"] = 0;
> +               }
> +               //Update room
> +               if(!empty($data[room_id])){
> +                       $omRoomManagament =     new
> openmeetingsRoomManagament();
> +                       $room_id = $omRoomManagament->
> updateRoomWithModeration($data);
> +
> +                       //Make sure the Openmeetings Room was succsefully
> created
> +                       if($room_id < 1){
> +                               $this->setError('Could not login User to
> OpenMeetings, check your OpenMeetings Module Configuration');
> +                               return false;
> +                       }
> +                       //Create new room
> +               }else{
> +                       //create a Meetingroom in Openmeetings
> +                       $omRoomManagament =     new
> openmeetingsRoomManagament();
> +                       $room_id = $omRoomManagament->
> createRoomWithModeration($data);
> +                       $data[room_id] = $room_id;
> +
> +                       //Make sure the Openmeetings Room was succsefully
> created
> +                       if($room_id < 1){
> +                               $this->setError('Could not login User to
> OpenMeetings, check your OpenMeetings Module Configuration');
> +                               return false;
> +                       }
> +               }
> +
> +               // Bind the form fields to the  table
> +               if (!$row->bind($data)) {
> +                       $this->setError($this->_db->getErrorMsg());
> +                       return false;
> +               }
> +
> +               // Make sure the hello record is valid
> +               if (!$row->check()) {
> +                       $this->setError($this->_db->getErrorMsg());
> +                       return false;
> +               }
> +
> +               // Store the web link table to the database
> +               if (!$row->store()) {
> +                       $this->setError($this->_db->getErrorMsg());
> +                       return false;
> +               }
> +               if (!is_int($data["number_of_partizipants"])) {
> +                       //TODO investigate!!
> +                       //weird behavior number_of_partizipants added as 0
> (not NULL)
> +                       $query = ' UPDATE #__om_rooms SET
> number_of_partizipants = NULL WHERE room_id = ' . $room_id;
> +                       $this->_db->setQuery( $query );
> +                       $this->_db->query();
> +               }
> +
> +               //Users individually
> +               $query = ' DELETE FROM #__om_rooms_users ' .
> +                       ' WHERE om_room_id = '. $row->id . '';
> +               $this->_db->setQuery( $query );
> +               $this->_db->query();
> +
> +               foreach ($owners as $key => $owner_user_id) {
> +                       //print_r("<BR/>".$owner_user_id);
> +
> +                       $query = ' INSERT INTO #__om_rooms_users '.
> +                '  (om_room_id,user_id) ' .
> +                ' VALUES ' .
> +                ' ('. $row->id .','. $owner_user_id .') ';
> +                       $this->_db->setQuery( $query );
> +                       $this->_db->query();
> +
> +               }
> +
> +               //FlexiGroups
> +
> +               $query = ' DELETE FROM #__om_rooms_flexigroups ' .
> +                       ' WHERE om_room_id = '. $row->id . '';
> +               $this->_db->setQuery( $query );
> +               $this->_db->query();
> +
> +               foreach ($flexigroups as $key => $flexigroup_id) {
> +                       //print_r("<BR/>".$owner_user_id);
> +
> +                       $query = ' INSERT INTO #__om_rooms_flexigroups '.
> +                '  (om_room_id,flexigroup_id) ' .
> +                ' VALUES ' .
> +                ' ('. $row->id .','. $flexigroup_id .') ';
> +                       $this->_db->setQuery( $query );
> +                       $this->_db->query();
> +
> +               }
> +               return true;
> +       }
> +
> +       /**
> +        * Method to delete record(s)
> +        *
> +        * @access    public
> +        * @return    boolean    True on success
> +        */
> +       function delete()
> +       {
> +               $cids = JRequest::getVar( 'cid', array(0), 'post', 'array'
> );
> +               $row =& $this->getTable();
> +
> +               foreach($cids as $cid) {
> +                       if (!$row->delete( $cid )) {
> +                               $this->setError( $row->getErrorMsg() );
> +                               return false;
> +                       }
> +               }
> +
> +               return true;
> +       }
> +
> +}
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/rooms.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/rooms.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/rooms.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/models/rooms.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,73 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +// Check to ensure this file is included in Joomla!
> +defined('_JEXEC') or die();
> +
> +jimport( 'joomla.application.component.model' );
> +
> +class RoomsModelRooms extends JModel
> +{
> +
> +
> +       /**
> +        * Hellos data array
> +        *
> +        * @var array
> +        */
> +       var $_data;
> +
> +       /**
> +        * Returns the query
> +        * @return string The query to be used to retrieve the rows from
> the database
> +        */
> +       function _buildQuery()
> +       {
> +               $query = ' SELECT * '
> +               . ' FROM #__om_rooms '
> +               ;
> +               return $query;
> +       }
> +
> +       /**
> +        * Retrieves the hello data
> +        * @return array Array of objects containing the data from the
> database
> +        */
> +       function getData()
> +       {
> +               // Lets load the data if it doesn't already exist
> +               if (empty( $this->_data ))
> +               {
> +
> +                       // First update it
> +                       $db =& JFactory::getDBO();
> +                       $ztime=time();
> +
> +
> +
> +                       $query = $this->_buildQuery();
> +                       $this->_data = $this->_getList( $query );
> +               }
> +
> +               return $this->_data;
> +       }
> +
> +
> +
> +}
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/lib/openmeetings_rest_service.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/lib/openmeetings_rest_service.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/lib/openmeetings_rest_service.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/lib/openmeetings_rest_service.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,124 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +/*
> + * Created on 03.01.2012 by eugen.schwert@gmail.com
> + *
> + *
> + */
> +
> +class openmeetings_rest_service {
> +
> +               function call($request,$returnAttribute="return"){
> +                       // This will allow you to view errors in the
> browser
> +                       // Note: set "display_errors" to 0 in production
> +                       //ini_set('display_errors',1);
> +
> +                       // Report all PHP errors (notices, errors,
> warnings, etc.)
> +                       //error_reporting(E_ALL);
> +
> +                       // URI used for making REST call. Each Web Service
> uses a unique URL.
> +                       //$request
> +
> +                       // Initialize the session by passing the request
> as a parameter
> +                       $session = curl_init($request);
> +
> +
> +                       // Set curl options by passing session and flags
> +                       // CURLOPT_HEADER allows us to receive the HTTP
> header
> +                       curl_setopt($session, CURLOPT_HEADER, true);
> +
> +                       // CURLOPT_RETURNTRANSFER will return the response
> +                       curl_setopt($session, CURLOPT_RETURNTRANSFER,
> true);
> +
> +                       // Make the request
> +                       $response = curl_exec($session);
> +
> +                       // Close the curl session
> +                       curl_close($session);
> +
> +                       // Confirm that the request was transmitted to the
> OpenMeetings! Image Search Service
> +                       if(!$response) {
> +                          die("Request OpenMeetings! OpenMeetings Service
> failed and no response was returned.");
> +                       }
> +
> +                       // Create an array to store the HTTP response codes
> +                       $status_code = array();
> +
> +                       // Use regular expressions to extract the code
> from the header
> +                       preg_match('/\d\d\d/', $response, $status_code);
> +
> +                       // Check the HTTP Response code and display
> message if status code is not 200 (OK)
> +                       switch( $status_code[0] ) {
> +                               case 200:
> +                                       // Success
> +                                       break;
> +                               case 503:
> +                                       die('Your call to OpenMeetings Web
> Services failed and returned an HTTP status of 503.
> +                                            That means: Service
> unavailable. An internal problem prevented us from returning'.
> +                                            ' data to you.');
> +                                       break;
> +                               case 403:
> +                                       die('Your call to OpenMeetings Web
> Services failed and returned an HTTP status of 403.
> +                                            That means: Forbidden. You do
> not have permission to access this resource, or are over'.
> +                                            ' your rate limit.');
> +                                       break;
> +                               case 400:
> +                                       // You may want to fall through
> here and read the specific XML error
> +                                       die('Your call to OpenMeetings Web
> Services failed and returned an HTTP status of 400.
> +                                            That means:  Bad request. The
> parameters passed to the service did not match as expected.
> +                                            The exact error is returned
> in the XML response.');
> +                                       break;
> +                               default:
> +                                       die('Your call to OpenMeetings Web
> Services returned an unexpected HTTP status of: ' . $status_code[0]."
> Request ".$request);
> +                       }
> +
> +                       // Get the XML from the response, bypassing the
> header
> +                       if (!($xml = strstr($response, '<ns'))) {
> +                               $xml = null;
> +                       }
> +
> +                       $dom = new DOMDocument();
> +                       $dom->loadXML($xml);
> +
> +                       if ($returnAttribute == "") {
> +                               //echo "XML".$xml."<br/>";
> +                               return $dom;
> +                       } else {
> +                               $returnNodeList =
> $dom->getElementsByTagName($returnAttribute);
> +                               foreach ($returnNodeList as $returnNode) {
> +                                   return $returnNode->nodeValue;
> +                               }
> +                       }
> +
> +               }
> +
> +
> +
> +               function getError(){
> +                       return false;
> +
> +               }
> +
> +               function fault(){
> +                       return false;
> +               }
> +}
> +
> +?>
> \ No newline at end of file
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetingsRecordingManagament.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetingsRecordingManagament.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetingsRecordingManagament.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetingsRecordingManagament.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,71 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +
> +defined('_JEXEC') or die('Restricted access');
> +
> +require_once("openmeetings_gateway.php");
> +
> +class openmeetingsRecordingManagament {
> +       function setUserObjectAndGenerateRecordingHashByURL(&$data) {
> +               $openmeetings_gateway = new openmeetings_gateway();
> +               if ($openmeetings_gateway->openmeetings_loginuser()) {
> +                       return
> $openmeetings_gateway->setUserObjectAndGenerateRecordingHashByURL($data);
> +               } else {
> +                       echo "Could not login User to OpenMeetings, check
> your OpenMeetings Module Configuration createRoomWithModeration";
> +               }
> +       }
> +
> +       function getFlvRecordingByExternalRoomType() {
> +               $openmeetings_gateway = new openmeetings_gateway();
> +               if ($openmeetings_gateway->openmeetings_loginuser()) {
> +                       return
>  $openmeetings_gateway->getFlvRecordingByExternalRoomType();
> +               } else {
> +                       echo "Could not login User to OpenMeetings, check
> your OpenMeetings Module Configuration createRoomWithModeration";
> +               }
> +       }
> +
> +       function getFlvRecordingByExternalRoomTypeAndId($userId) {
> +               $openmeetings_gateway = new openmeetings_gateway();
> +               if ($openmeetings_gateway->openmeetings_loginuser()) {
> +                       return
>  $openmeetings_gateway->getFlvRecordingByExternalRoomTypeAndCreator($userId);
> +               } else {
> +                       echo "Could not login User to OpenMeetings, check
> your OpenMeetings Module Configuration createRoomWithModeration";
> +               }
> +       }
> +
> +       function getFlvRecordingByExternalUserId($user_id) {
> +               $openmeetings_gateway = new openmeetings_gateway();
> +               if ($openmeetings_gateway->openmeetings_loginuser()) {
> +                       return
>  $openmeetings_gateway->getFlvRecordingByExternalUserId($user_id);
> +               } else {
> +                       echo "Could not login User to OpenMeetings, check
> your OpenMeetings Module Configuration createRoomWithModeration";
> +               }
> +       }
> +
> +       function deleteFlvRecording($FlvRecordingId) {
> +               $openmeetings_gateway = new openmeetings_gateway();
> +               if ($openmeetings_gateway->openmeetings_loginuser()) {
> +                       return
> $openmeetings_gateway->deleteFlvRecording($FlvRecordingId);
> +               } else {
> +                       echo "Could not login User to OpenMeetings, check
> your OpenMeetings Module Configuration createRoomWithModeration";
> +               }
> +       }
> +}
> +?>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetingsRoomManagament.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetingsRoomManagament.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetingsRoomManagament.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetingsRoomManagament.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,86 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +
> +defined('_JEXEC') or die('Restricted access');
> +
> +require_once("openmeetings_gateway.php");
> +
> +
> +class openmeetingsRoomManagament {
> +       function createRoomWithModeration(&$data) {
> +               $openmeetings_gateway = new openmeetings_gateway();
> +               if ($openmeetings_gateway->openmeetings_loginuser()) {
> +                       $openmeetings->name = $data['name'];
> +                       $openmeetings->roomtypes_id = $data['roomtype_id'];
> +                       $openmeetings->comment = $data['comment'];
> +                       $openmeetings->numberOfPartizipants =
> $data['number_of_partizipants'];
> +                       $openmeetings->ispublic = $data['is_public'];
> +                       $openmeetings->appointment = $data['appointment'];
> +                       $openmeetings->isDemoRoom = 0;
> +                       $openmeetings->demoTime = "";
> +                       $openmeetings->isModeratedRoom =
> $data['is_moderated_room'];
> +                       $openmeetings->allow_private_chat =
> $data['allow_private_chat'];
> +                       $openmeetings->hide_user_list_for_non_moderators =
> $data['hide_user_list_for_non_moderators'];
> +                       $openmeetings->is_translated =
> $data['translatedroom'];
> +
> +                       $roomid =
> $openmeetings_gateway->openmeetings_createroomwithmod($openmeetings);
> +
> +                       return $roomid;
> +               } else {
> +                       echo "Could not login User to OpenMeetings, check
> your OpenMeetings Module Configuration";
> +               }
> +       }
> +
> +       function updateRoomWithModeration(&$data) {
> +               $openmeetings_gateway = new openmeetings_gateway();
> +               if ($openmeetings_gateway->openmeetings_loginuser()) {
> +                       $openmeetings->name = $data['name'];
> +                       $openmeetings->room_id = $data['room_id'];
> +                       $openmeetings->roomtypes_id = $data['roomtype_id'];
> +                       $openmeetings->comment = $data['comment'];
> +                       $openmeetings->numberOfPartizipants =
> $data['number_of_partizipants'];
> +                       $openmeetings->ispublic = $data['is_public'];
> +                       $openmeetings->appointment = $data['appointment'];
> +                       $openmeetings->isDemoRoom = 0;
> +                       $openmeetings->demoTime = "";
> +                       $openmeetings->isModeratedRoom =
> $data['is_moderated_room'];
> +                       $openmeetings->allow_private_chat =
> $data['allow_private_chat'];
> +                       $openmeetings->hide_user_list_for_non_moderators =
> $data['hide_user_list_for_non_moderators'];
> +                       $openmeetings->is_translated =
> $data['translatedroom'];
> +
> +                       $roomid =
> $openmeetings_gateway->updateRoomWithModeration($openmeetings);
> +                       return $roomid;
> +               } else {
> +                       echo "Could not login User to OpenMeetings, check
> your OpenMeetings Module Configuration";
> +               }
> +       }
> +
> +       function deleteRoom($data) {
> +               $openmeetings_gateway = new openmeetings_gateway();
> +               if ($openmeetings_gateway->openmeetings_loginuser()) {
> +                       $openmeetings->room_id = $data['room_id'];
> +                       $roomid =
> $openmeetings_gateway->deleteRoom($openmeetings);
> +                       return $roomid;
> +               } else {
> +                       echo "Could not login User to OpenMeetings, check
> your OpenMeetings Module Configuration";
> +               }
> +       }
> +}
> +?>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetings_gateway.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetings_gateway.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetings_gateway.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/om_gateway/openmeetings_gateway.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,235 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +
> +// Check to ensure this file is included in Joomla!
> +defined('_JEXEC') or die();
> +
> +require_once('lib/openmeetings_rest_service.php');
> +
> +class openmeetings_gateway {
> +       var $session_id = "";
> +       var $params = "";
> +
> +       function getUrl() {
> +               if (!$this->params) {
> +                       $this->params =
> &JComponentHelper::getParams('com_openmeetings_conference');
> +               }
> +               return $this->params->get('url') . "/" .
> $this->params->get('context') . "/services/";
> +       }
> +
> +       function var_to_str($in) {
> +               if(is_bool($in)) {
> +                       return $in ? "true" : "false";
> +               } else {
> +                       return $in;
> +               }
> +       }
> +
> +       function getRestService() {
> +               $restService = new openmeetings_rest_service();
> +               $err = $restService->getError();
> +               if ($err) {
> +                       echo '<h2>Constructor error</h2><pre>' . $err .
> '</pre>';
> +                       echo '<h2>Debug</h2><pre>' .
> htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
> +                       exit();
> +               }
> +               return $restService;
> +       }
> +
> +       function checkResult($restService, $result) {
> +               if ($restService->fault) {
> +                       echo '<h2>Fault (Expect - The request contains an
> invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
> +               } else {
> +                       $err = $restService->getError();
> +                       if ($err) {
> +                               echo '<h2>Error</h2><pre>' . $err .
> '</pre>';
> +                       } else {
> +                               //echo '<h2>Result</h2><pre>';
> print_r($result["return"]); echo '</pre>';
> +                               //return $result["return"];
> +                               return $result;
> +                       }
> +               }
> +               return -1;
> +       }
> +
> +       /**
> +        * TODO: Get Error Service and show detailed Error Message
> +        */
> +       function openmeetings_loginuser() {
> +               $restService = getRestService();
> +
> +               $response =
> $restService->call($this->getUrl()."UserService/getSession","session_id");
> +
> +               if (-1 != checkResult($restService, $response)) {
> +                       $this->session_id = $response;
> +
> +                       $result =
> $restService->call($this->getUrl()."UserService/loginUser?"
> +                               . "SID=".$this->session_id
> +                               . "&username=" .
> urlencode($this->params->get('username'))
> +                               . "&userpass=" .
> urlencode($this->params->get('password'))
> +                               );
> +
> +                       return -1 == checkResult($restService, $result);
> +               }
> +               return false;
> +       }
> +
> +       function getFlvRecordingByExternalUserId($user_id) {
> +               $restService = getRestService();
> +
> +               $url =
> $this->getUrl()."RoomService/getFlvRecordingByExternalUserId?" .
> +                               "SID=".$this->session_id .
> +                               "&externalUserId=" . $user_id;
> +
> +               $result = $restService->call($url,"");
> +
> +               return checkResult($restService, $result);
> +       }
> +
> +       function getFlvRecordingByExternalRoomTypeAndCreator($insertedBy) {
> +               $restService = getRestService();
> +
> +               $url =
> $this->getUrl()."RoomService/getFlvRecordingByExternalRoomTypeAndCreator?" .
> +                               "SID=".$this->session_id .
> +                               "&insertedBy=" . urlencode($insertedBy) .
> +                               "&externalRoomType=" .
> urlencode($this->params->get('moduleKey'));
> +
> +               $result = $restService->call($url,"");
> +
> +               return checkResult($restService, $result);
> +       }
> +
> +       function getFlvRecordingByExternalRoomType() {
> +               $restService = getRestService();
> +
> +               $url =
> $this->getUrl()."RoomService/getFlvRecordingByExternalRoomType?" .
> +                               "SID=".$this->session_id .
> +
> "&externalRoomType=".urlencode($this->params->get('moduleKey'));
> +
> +               $result = $restService->call($url,"");
> +
> +               return checkResult($restService, $result);
> +       }
> +
> +       function deleteFlvRecording($flvRecordingId) {
> +               $restService = getRestService();
> +
> +               $url = $this->getUrl()."RoomService/deleteFlvRecording?" .
> +                               "SID=" . $this->session_id .
> +                               "&flvRecordingId=" . $flvRecordingId;
> +
> +               $result = $restService->call($url,"");
> +
> +               return checkResult($restService, $result);
> +       }
> +
> +       function setUserObjectAndGenerateRecordingHashByURL($openmeetings)
> {
> +               $restService = getRestService();
> +               $result =
> $restService->call($this->getUrl().'UserService/setUserObjectAndGenerateRecordingHashByURL?'.
> +                               'SID='.$this->session_id .
> +
> '&username='.urlencode($openmeetings->username) .
> +
> '&firstname='.urlencode($openmeetings->firstname) .
> +
> '&lastname='.urlencode($openmeetings->lastname) .
> +
> '&externalUserId='.$openmeetings->externalUserId .
> +
> '&externalUserType='.urlencode($this->params->get('moduleKey')) .
> +
> '&recording_id='.$openmeetings->recording_id,
> +                               'return'
> +               );
> +
> +               return checkResult($restService, $result);
> +       }
> +
> +       function openmeetings_createroomwithmod($openmeetings) {
> +               $restService = getRestService();
> +
> +               $url =
> $this->getUrl()."RoomService/addRoomWithModerationAndRecordingFlags?" .
> +                       "SID=" . $this->session_id .
> +                       "&name" . urlencode($openmeetings->name) .
> +                       "&roomtypes_id" . $openmeetings->roomtypes_id .
> +                       "&comment" . $openmeetings->comment .
> +                       "&numberOfPartizipants" .
> $openmeetings->numberOfPartizipants .
> +                       "&ispublic" . $openmeetings->ispublic .
> +                       "&appointment" . $openmeetings->appointment .
> +                       "&isDemoRoom" . $openmeetings->isDemoRoom .
> +                       "&demoTime" . $openmeetings->demoTime .
> +                       "&isModeratedRoom" .
> $openmeetings->isModeratedRoom .
> +                       "&externalRoomType" .
> urlencode($this->params->get('moduleKey')) .
> +                       "&allowUserQuestions" . "true" .
> +                       "&isAudioOnly" . "false" .
> +                       "&waitForRecording" . "true" .
> +                       "&allowRecording" . "true";
> +
> +
> +               $result = $restService->call($url,"");
> +
> +               return checkResult($restService, $result);
> +       }
> +
> +       function openmeetings_setUserObjectAndGenerateRoomHash($username,
> $firstname, $lastname,
> +               $profilePictureUrl, $email, $externalUserId, $room_id,
> $becomeModeratorAsInt,
> +               $showAudioVideoTestAsInt) {
> +               $restService = getRestService();
> +
> +               $result =
> $restService->call($this->getUrl()."UserService/setUserObjectAndGenerateRoomHash?"
> .
> +                               "SID=".$this->session_id.
> +                               "&username=".urlencode($username).
> +                               "&firstname=".urlencode($firstname).
> +                               "&lastname=".urlencode($lastname).
> +
> "&profilePictureUrl=".urlencode($profilePictureUrl).
> +                               "&email=".urlencode($email).
> +
> "&externalUserId=".urlencode($externalUserId).
> +
> "&externalUserType=".urlencode($this->params->get('moduleKey')).
> +                               "&room_id=".$room_id.
> +
> "&becomeModeratorAsInt=".$becomeModeratorAsInt.
> +
> "&showAudioVideoTestAsInt=".$showAudioVideoTestAsInt);
> +
> +               return checkResult($restService, $result);
> +       }
> +
> +       function deleteRoom($openmeetings) {
> +               $restService = getRestService();
> +
> +               $result =
> $restService->call($this->getUrl()."RoomService/deleteRoom?" .
> +                               "SID=".$this->session_id.
> +                               "&rooms_id=".$openmeetings->room_id);
> +
> +               return checkResult($restService, $result);
> +       }
> +
> +       function updateRoomWithModeration($openmeetings) {
> +               $restService = getRestService();
> +
> +               $result =
> $restService->call($this->getUrl()."RoomService/updateRoomWithModeration?" .
> +                               "SID=".$this->session_id.
> +                               "&room_id=".$openmeetings->room_id.
> +                               "&name=".urlencode($openmeetings->name).
> +
> "&roomtypes_id=".urlencode($openmeetings->roomtypes_id).
> +
> "&comment=".urlencode($openmeetings->comment).
> +
> "&numberOfPartizipants=".$openmeetings->numberOfPartizipants.
> +                               "&ispublic=". $openmeetings->ispublic .
> +                               "&appointment=".
> $openmeetings->appointment .
> +                               "&isDemoRoom=". $openmeetings->isDemoRoom .
> +                               "&demoTime=". $openmeetings->demoTime .
> +
> "&isModeratedRoom=".$openmeetings->isModeratedRoom;
> +
> +               return checkResult($restService, $result);
> +       }
> +}
> +?>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/tables/index.html
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/tables/index.html?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/tables/index.html
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/tables/index.html
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,20 @@
> +<!--
> +   Licensed under the Apache License, Version 2.0 (the "License");
> +   you may not use this file except in compliance with the License.
> +   You may obtain a copy of the License at
> +
> +       http://www.apache.org/licenses/LICENSE-2.0
> +
> +   Unless required by applicable law or agreed to in writing, software
> +   distributed under the License is distributed on an "AS IS" BASIS,
> +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +   See the License for the specific language governing permissions and
> +   limitations under the License.
> + -->
> +<p align="center">
> +       <a href="http://incubator.apache.org/openmeetings/">
> +               <span style="color: #3366FF; font-weight: bold;">
> +                       Apache OpenMeetings [Incubating] Component
> +               </span>
> +       </a>
> +</p>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/tables/room.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/tables/room.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/tables/room.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/tables/room.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,145 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +// no direct access
> +defined('_JEXEC') or die('Restricted access');
> +
> +class TableRoom extends JTable
> +{
> +       /**
> +        * Primary Key
> +        *
> +        * @var int
> +        */
> +       var $id = null;
> +
> +       /**
> +        * @var string
> +        */
> +       var $owner = null;
> +
> +       /**
> +        * @var string
> +        */
> +       var $name = null;
> +
> +       /**
> +        * @var int
> +        */
> +       var $roomtype_id = null;
> +
> +       /**
> +        * @var string
> +        */
> +       var $comment = null;
> +
> +       /**
> +        * @var int
> +        */
> +       var $number_of_partizipants = null;
> +
> +       /**
> +        * @var int
> +        */
> +       var $is_public = null;
> +
> +       /**
> +        * @var int
> +        */
> +       var $appointment = null;
> +
> +       /**
> +        * @var int
> +        */
> +       var $is_moderated_room = null;
> +
> +       /**
> +        * @var int
> +        */
> +       var $allow_private_chat = null;
> +
> +       /**
> +        * @var int
> +        */
> +       var $hide_user_list_for_non_moderators = null;
> +
> +       /**
> +        *
> +        * @var int
> +        */
> +       var $user_id = null;
> +
> +       /**
> +        *
> +        * @var int
> +        */
> +       var $room_id = null;
> +
> +
> +
> +       /**
> +        * @var int
> +        */
> +       var $room_validity = null;
> +
> +       /**
> +        * @var date
> +        */
> +       var $date_type = null;
> +
> +       /**
> +        * @var time
> +        */
> +       var $time_type = null;
> +
> +       /**
> +        *
> +        * @var int
> +        */
> +       var $duration = null;
> +
> +       /**
> +        *
> +        * @var int
> +        */
> +       var $repeat_type = null;
> +
> +       /**
> +        *
> +        * @var int
> +        */
> +       var $weekday_type = null;
> +
> +       /**
> +        * @var string
> +        */
> +       var $logo = null;
> +
> +
> +
> +       /**
> +        * Constructor
> +        *
> +        * @param object Database connector object
> +        */
> +       function TableRoom( &$db ) {
> +               parent::__construct('#__om_rooms', 'id', $db);
> +       }
> +}
> +?>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/toolbar.openmeetings_conference.html.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/toolbar.openmeetings_conference.html.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/toolbar.openmeetings_conference.html.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/toolbar.openmeetings_conference.html.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,35 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +// no direct access
> +defined( '_JEXEC' ) or die( 'Restricted access' );
> +
> +
> +/**
> + * @package Joomla
> + * @subpackage Config
> + */
> +class TOOLBAR_openmeetings_conference
> +{
> +
> +       function _DEFAULT() {
> +               JToolBarHelper::title(    'Openmeetings Conference' ,
> 'generic.png' );
> +       }
> +}
> +?>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/toolbar.openmeetings_conference.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/toolbar.openmeetings_conference.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/toolbar.openmeetings_conference.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/toolbar.openmeetings_conference.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,40 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +// no direct access
> +defined( '_JEXEC' ) or die( 'Restricted access' );
> +
> +
> +// DEVNOTE: Pull in the class that will be used to actually display our
> toolbar.
> +require_once( JApplicationHelper::getPath( 'toolbar_html' ) );
> +
> +
> +switch ($task)
> +{
> +       //      case 'add' :
> +       //      case 'edit':
> +       //      case 'editA':
> +       //              TOOLBAR_helloworld::_EDIT();
> +       //              break;
> +
> +       default:
> +               TOOLBAR_openmeetings_conference::_DEFAULT();
> +               break;
> +}
> +?>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/uninstall.sql
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/uninstall.sql?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/uninstall.sql
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/uninstall.sql
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,16 @@
> +--   Licensed under the Apache License, Version 2.0 (the "License");
> +--   you may not use this file except in compliance with the License.
> +--   You may obtain a copy of the License at
> +--
> +--       http://www.apache.org/licenses/LICENSE-2.0
> +--
> +--   Unless required by applicable law or agreed to in writing, software
> +--   distributed under the License is distributed on an "AS IS" BASIS,
> +--   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +--   See the License for the specific language governing permissions and
> +--   limitations under the License.
> +DROP TABLE IF EXISTS `#__om_rooms`;
> +
> +DROP TABLE IF EXISTS `#__om_rooms_users`;
> +
> +DROP TABLE IF EXISTS `#__om_rooms_flexigroups`;
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/index.html
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/index.html?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/index.html
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/index.html
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,20 @@
> +<!--
> +   Licensed under the Apache License, Version 2.0 (the "License");
> +   you may not use this file except in compliance with the License.
> +   You may obtain a copy of the License at
> +
> +       http://www.apache.org/licenses/LICENSE-2.0
> +
> +   Unless required by applicable law or agreed to in writing, software
> +   distributed under the License is distributed on an "AS IS" BASIS,
> +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +   See the License for the specific language governing permissions and
> +   limitations under the License.
> + -->
> +<p align="center">
> +       <a href="http://incubator.apache.org/openmeetings/">
> +               <span style="color: #3366FF; font-weight: bold;">
> +                       Apache OpenMeetings [Incubating] Component
> +               </span>
> +       </a>
> +</p>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/metadata.xml
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/metadata.xml?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/metadata.xml
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/metadata.xml
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,17 @@
> +<?xml version="1.0" encoding="utf-8"?>
> +<!--
> +   Licensed under the Apache License, Version 2.0 (the "License");
> +   you may not use this file except in compliance with the License.
> +   You may obtain a copy of the License at
> +
> +       http://www.apache.org/licenses/LICENSE-2.0
> +
> +   Unless required by applicable law or agreed to in writing, software
> +   distributed under the License is distributed on an "AS IS" BASIS,
> +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +   See the License for the specific language governing permissions and
> +   limitations under the License.
> + -->
> +<metadata>
> +       <view title="Video Conference" format="raw" />
> +</metadata>
> \ No newline at end of file
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/tmpl/default.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/tmpl/default.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/tmpl/default.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/tmpl/default.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,137 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +defined( '_JEXEC' ) or die( 'Restricted access' );
> +?>
> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
> +<head>
> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> +</head>
> +<body bgcolor="#5a5152" text="#333333" link="#FF3366" LEFTMARGIN="0"
> +       TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
> +       <?
> +
> require_once(JPATH_ADMINISTRATOR."/components/com_openmeetings_conference/om_gateway/openmeetings_gateway.php");
> +
> +       $this->params = &JComponentHelper::getParams(
> 'com_openmeetings_conference' );
> +       $url_server = $this->params->get( 'url' );
> +
> +       $user = JFactory::getUser();
> +
> +       $openmeetings_gateway = new openmeetings_gateway();
> +       if ($openmeetings_gateway->openmeetings_loginuser()) {
> +               if ($user->authorise('core.admin') ||
> $user->authorise('core.manage')) {
> +                       $becomemoderator=1;
> +               } else {
> +                       $becomemoderator=0;
> +               }
> +
> +               $showAudioVideoTest=1;
> +               $roomhash =
> $openmeetings_gateway->openmeetings_setUserObjectAndGenerateRoomHash($user->username,$user->name,'',
> picture, $user->email,$user->id, $this->room_id, $becomemoderator,
> $showAudioVideoTest);
> +
> +               $language= $user->getParam('language', 'en-GB');
> +
> +               if($language == 'en-GB'){
> +                       $om_laguage_id = 1;
> +               }else if($language == 'de-DE'){
> +                       $om_laguage_id = 2;
> +               }else if($language == 'fr-FR'){
> +                       $om_laguage_id = 3;
> +               }else if($language == 'it-IT'){
> +                       $om_laguage_id = 4;
> +               }else if($language == 'pt-PT'){
> +                       $om_laguage_id = 5;
> +               }else if($language == 'pt-BR'){
> +                       $om_laguage_id = 6;
> +               }else if($language == 'es-ES'){
> +                       $om_laguage_id = 7;
> +               }else if($language == 'ru-RU'){
> +                       $om_laguage_id = 8;
> +               }else if($language == 'swedish'){
> +                       $om_laguage_id = 9;
> +               }else if($language == 'default'){
> +                       $om_laguage_id = 10;
> +               }else if($language == 'default'){
> +                       $om_laguage_id = 11;
> +               }else if($language == 'ko-KR'){
> +                       $om_laguage_id = 12;
> +               }else if($language == 'ar-AA'){
> +                       $om_laguage_id = 13;
> +               }else if($language == 'default'){
> +                       $om_laguage_id = 14;
> +               }else if($language == 'default'){
> +                       $om_laguage_id = 15;
> +               }else if($language == 'default'){
> +                       $om_laguage_id = 16;
> +               }else if($language == 'default'){
> +                       $om_laguage_id = 17;
> +               }else if($language == 'ua-UA'){
> +                       $om_laguage_id = 18;
> +               }else if($language == 'default'){
> +                       $om_laguage_id = 19;
> +               }else if($language == 'persian'){
> +                       $om_laguage_id = 20;
> +               }else if($language == 'default'){
> +                       $om_laguage_id = 21;
> +               }else if($language == 'default'){
> +                       $om_laguage_id = 22;
> +               }else if($language == 'default'){
> +                       $om_laguage_id = 23;
> +               }else if($language == 'default'){
> +                       $om_laguage_id = 24;
> +               }else if($language == 'default'){
> +                       $om_laguage_id = 25;
> +               }else if($language == 'nl-NL'){
> +                       $om_laguage_id = 26;
> +               }else if($language == 'default'){
> +                       $om_laguage_id = 27;
> +               }else if($language == 'ca-ES'){
> +                       $om_laguage_id = 28;
> +               }else if($language == 'default'){
> +                       $om_laguage_id = 29;
> +               }else if($language == 'da-DK'){
> +                       $om_laguage_id = 30;
> +               }else {
> +                       $om_laguage_id = 2;
> +               }
> +
> +               // Get a database object
> +               $db =& JFactory::getDBO();
> +
> +               $query = ' SELECT logo FROM #__om_rooms '.
> +                '  WHERE room_id = '.$this->room_id;
> +
> +               $db->setQuery($query);
> +               $logo = $db->loadResult();
> +
> +               if (!empty($roomhash)) {
> +                       //maindebug.swf8.swf
> +                       $swfurl = $url_server .
> +                                       "/openmeetings/main.swf8.swf?" .
> +                                       "scopeRoomId=" . $this->room_id .
> +                                       "&secureHash=" . $roomhash .
> +                                       "&lzproxied=solo" .
> +                                       "&language=" . $om_laguage_id .
> +                                       "&logo=" . JURI::root() .
> "images/logos/" . $logo;
> +                       //echo $swfurl;
> +                       //exit();
> +                       $mainframe = JFactory::getApplication();
> +                       $mainframe->redirect($swfurl);
> +               }
> +       }
> +       ?>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/tmpl/default.xml
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/tmpl/default.xml?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/tmpl/default.xml
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/tmpl/default.xml
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,17 @@
> +<?xml version="1.0" encoding="utf-8"?>
> +<!--
> +   Licensed under the Apache License, Version 2.0 (the "License");
> +   you may not use this file except in compliance with the License.
> +   You may obtain a copy of the License at
> +
> +       http://www.apache.org/licenses/LICENSE-2.0
> +
> +   Unless required by applicable law or agreed to in writing, software
> +   distributed under the License is distributed on an "AS IS" BASIS,
> +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +   See the License for the specific language governing permissions and
> +   limitations under the License.
> + -->
> +<metadata>
> +       <layout hidden="true" title="Video Conference" />
> +</metadata>
> \ No newline at end of file
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/view.raw.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/view.raw.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/view.raw.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/om/view.raw.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,40 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +// no direct access
> +
> +defined( '_JEXEC' ) or die( 'Restricted access' );
> +
> +jimport( 'joomla.application.component.view');
> +
> +/**
> + * HTML View class for the HelloWorld Component
> + *
> + * @package    HelloWorld
> + */
> +
> +class RoomsViewOm extends JView
> +{
> +       function display($tpl = null)
> +       {
> +               $this->assignRef("room_id", JRequest::getVar( 'room') );
> +               parent::display($tpl);
> +       }
> +}
> +?>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/index.html
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/index.html?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/index.html
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/index.html
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,20 @@
> +<!--
> +   Licensed under the Apache License, Version 2.0 (the "License");
> +   you may not use this file except in compliance with the License.
> +   You may obtain a copy of the License at
> +
> +       http://www.apache.org/licenses/LICENSE-2.0
> +
> +   Unless required by applicable law or agreed to in writing, software
> +   distributed under the License is distributed on an "AS IS" BASIS,
> +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +   See the License for the specific language governing permissions and
> +   limitations under the License.
> + -->
> +<p align="center">
> +       <a href="http://incubator.apache.org/openmeetings/">
> +               <span style="color: #3366FF; font-weight: bold;">
> +                       Apache OpenMeetings [Incubating] Component
> +               </span>
> +       </a>
> +</p>
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/tmpl/default.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/tmpl/default.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/tmpl/default.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/tmpl/default.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,79 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +defined('_JEXEC') or die('Restricted access');
> +?>
> +
> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
> +<head>
> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> +</head>
> +<body bgcolor="#5a5152" text="#333333" link="#FF3366" LEFTMARGIN="0"
> +       TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
> +
> +       <script type="text/javascript">
> +                       function getRecording()
> +                       {
> +
> +                               for (var i = 0; i <
> document.getElementsByName("rec_select").length; i++) {
> +
> +                                                 if
> (document.getElementsByName("rec_select")[i].checked == true) {
> +
> +
> window.parent.jInsertEditorText(' [openmeetings
> recId='+document.getElementsByName("rec_select")[i].value+'] ', "text");
> +                                                       }
> +                                       }
> +
> +
> +
> window.parent.document.getElementById('sbox-window').close();
> +                               return false;
> +                       }
> +</script>
> +
> +       <?php
> +       echo '<div align="center"><table class="adminlist"><thead><tr><td
> width="20px"></td><td width="50px" style=text-align:center>ID</td><td
> style=text-align:center>Name</td></thead>';
> +
> +       //There is an error in the parsing of 1-length array's'
> +       if ($this->om_recordings_return["numberOfRecords"] == 1) {
> +
> +               echo '<tr><td align="right"><input type="checkbox"
> value='.$this->om_recordings_return["recordings"]['flvRecordingId'].'
> name="rec_select"></input></td>
> +                           <td bgcolor="#DDDDDD"
> style=text-align:center>&nbsp;'
> +
> .$this->om_recordings_return["recordings"]['flvRecordingId'].'</td>';
> +                           echo '<td style='
> +                           .'"border:1px solid #DDDDDD;text-align:right">'
> +
> .$this->om_recordings_return["recordings"]['fileName'].'&nbsp;</td></tr>';
> +
> +       } else {
> +
> +               for($i=0; $i<
> $this->om_recordings_return["numberOfRecords"]; $i++)
> +               {
> +                       echo '<tr><td align="right"><input type="checkbox"
> value='.$this->om_recordings_return["recordings"][$i]['flvRecordingId'].'
> name="rec_select"></input></td>
> +                           <td bgcolor="#DDDDDD"
> style=text-align:center>&nbsp;'
> +
> .$this->om_recordings_return["recordings"][$i]['flvRecordingId'].'</td>';
> +                           echo '<td text-align:right">'
> +
> .$this->om_recordings_return["recordings"][$i]['fileName'].'&nbsp;</td></tr>';
> +               }
> +       }
> +       //echo '<td></td><td></td><td align="right"><button
> onclick="getRecording();">'.JText::_( 'insert recording' ).'</button></td>';
> +       echo '</table>
> +                 <button onclick="getRecording();">'.JText::_( 'insert
> recording' ).'</button>
> +                 </div>';
> +       //echo '<button align="right"
> onclick="getRecording();">'.JText::_( 'insert recording' ).'</button>';
>  //JText::_( 'PGB INS PAGEBRK' );
> +
> +
> +       ?>
> \ No newline at end of file
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/tmpl/index.html
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/tmpl/index.html?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/tmpl/index.html
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/tmpl/index.html
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,21 @@
> +<!--
> +   Licensed under the Apache License, Version 2.0 (the "License");
> +   you may not use this file except in compliance with the License.
> +   You may obtain a copy of the License at
> +
> +       http://www.apache.org/licenses/LICENSE-2.0
> +
> +   Unless required by applicable law or agreed to in writing, software
> +   distributed under the License is distributed on an "AS IS" BASIS,
> +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +   See the License for the specific language governing permissions and
> +   limitations under the License.
> + -->
> +<p align="center">
> +       <a href="http://incubator.apache.org/openmeetings/">
> +               <span style="color: #3366FF; font-weight: bold;">
> +                       Apache OpenMeetings [Incubating] Component
> +               </span>
> +       </a>
> +</p>
> +
> \ No newline at end of file
>
> Added:
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/view.html.php
> URL:
> http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/view.html.php?rev=1366070&view=auto
>
> ==============================================================================
> ---
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/view.html.php
> (added)
> +++
> incubator/openmeetings/trunk/plugins/joomla/com_openmeetings_conference/admin/views/rec/view.html.php
> Thu Jul 26 16:26:14 2012
> @@ -0,0 +1,59 @@
> +<?php
> +/*
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License") +  you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + *   http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + */
> +// Check to ensure this file is included in Joomla!
> +defined('_JEXEC') or die();
> +
>
> +require_once('components/com_openmeetings_conference/om_gateway/openmeetingsRoomManagament.php');
>
> +require_once("components/com_openmeetings_conference/om_gateway/openmeetingsRecordingManagament.php");
>
> +require_once("components/com_openmeetings_conference/om_gateway/openmeetings_gateway.php");
> +
> +jimport( 'joomla.application.component.view' );
> +
> +class RoomsViewRec extends JView
> +{
> +
> +
> +       /**
> +        * view display method
> +        * @return void
> +        **/
> +       function display($tpl = null)
> +       {
> +
> +               $user =& JFactory::getUser();
> +
> +               $om_recordings_return = array();
> +
> +               $om_recordings = new openmeetingsRecordingManagament();
> +
> +               if ($user->authorise('core.create') ||
> $user->authorise('core.edit')) {
> +
> $om_recordings_return=$om_recordings->getFlvRecordingByExternalRoomTypeAndId($user->id);
> +               } else {
> +
> $om_recordings_return=$om_recordings->getFlvRecordingByExternalRoomType();
> +               }
> +
> +
> +               $this->assignRef( 'om_recordings_return',
> $om_recordings_return );
> +
> +               parent::display($tpl);
> +       }
> +
> +}
> +?>
> \ No newline at end of file
>
>
>


-- 
WBR
Maxim aka solomax