Author: sebawagner
Date: Fri Jan 27 13:42:42 2012
New Revision: 1236681

URL: http://svn.apache.org/viewvc?rev=1236681&view=rev
Log:
OPENMEETINGS-3 Preparing Moodle Plugin as first Apache OpenMeetings Incubator 
release Update license header file, remove nuSOP lib, refactor some of the 
Services to use REST

Added:
    
incubator/openmeetings/trunk/plugins/moodle_plugin/lib/openmeetings_rest_service.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/openmeetings_gateway.php
    
incubator/openmeetings/trunk/plugins/moodle_plugin/openmeetings_gateway_BACKUP.php
      - copied unchanged from r1236662, 
incubator/openmeetings/trunk/plugins/moodle_plugin/openmeetings_gateway.php
Removed:
    incubator/openmeetings/trunk/plugins/moodle_plugin/lib/nusoap.php
Modified:
    incubator/openmeetings/trunk/plugins/moodle_plugin/backuplib.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/db/access.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/db/log.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/db/upgrade.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/index.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/lang/de/openmeetings.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/lang/en/openmeetings.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/lang/es/openmeetings.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/lang/fr/openmeetings.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/lang/ru/openmeetings.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/lib.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/mod_form.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/restorelib.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/settings.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/version.php
    incubator/openmeetings/trunk/plugins/moodle_plugin/view.php

Modified: incubator/openmeetings/trunk/plugins/moodle_plugin/backuplib.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/backuplib.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/backuplib.php (original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/backuplib.php Fri Jan 27 
13:42:42 2012
@@ -1,4 +1,23 @@
-<?php // $Id: backuplib.php,v 1.1 2007/08/08 23:27:08 stronk7 Exp $
+<?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.
+*/
+
     /// This php script contains all the stuff to backup/restore
     /// openmeetings mods
 

Modified: incubator/openmeetings/trunk/plugins/moodle_plugin/db/access.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/db/access.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/db/access.php (original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/db/access.php Fri Jan 27 
13:42:42 2012
@@ -1,4 +1,23 @@
 <?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.
+*/
+
 //
 // Capability definitions for the forum module.
 //

Modified: incubator/openmeetings/trunk/plugins/moodle_plugin/db/log.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/db/log.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/db/log.php (original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/db/log.php Fri Jan 27 
13:42:42 2012
@@ -1,4 +1,22 @@
 <?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('MOODLE_INTERNAL') || die();
 

Modified: incubator/openmeetings/trunk/plugins/moodle_plugin/db/upgrade.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/db/upgrade.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/db/upgrade.php (original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/db/upgrade.php Fri Jan 
27 13:42:42 2012
@@ -1,4 +1,22 @@
-<?php  //$Id: upgrade.php,v 1.0 2008/05/12 12:00:00 Sebastian Wagner Exp $
+<?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.
+*/
 
 function xmldb_openmeetings_upgrade($oldversion) {
 
@@ -38,7 +56,11 @@ function xmldb_openmeetings_upgrade($old
        upgrade_mod_savepoint(true, 20111002, 'openmeetings');
     }
     
-    if ($oldversion == 20111002) {
+    if ($oldversion < 20111003) {
+       upgrade_mod_savepoint(true, 20111003, 'openmeetings');
+    }
+    
+    if ($oldversion == 20111003) {
        //$result = false;
        //nothing to upgrade here
        

Modified: incubator/openmeetings/trunk/plugins/moodle_plugin/index.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/index.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/index.php (original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/index.php Fri Jan 27 
13:42:42 2012
@@ -1,4 +1,22 @@
-<?php // $Id: index.php,v 1.0 2008/05/12 12:00:00 Sebastian Wagner Exp $
+<?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.
+*/
 /**
  * This page lists all the instances of openmeetings in a particular course
  *

Modified: 
incubator/openmeetings/trunk/plugins/moodle_plugin/lang/de/openmeetings.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/lang/de/openmeetings.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/lang/de/openmeetings.php 
(original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/lang/de/openmeetings.php 
Fri Jan 27 13:42:42 2012
@@ -1,4 +1,22 @@
 <?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.
+*/
 
 $string['openmeetings'] = 'openmeetings';
 

Modified: 
incubator/openmeetings/trunk/plugins/moodle_plugin/lang/en/openmeetings.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/lang/en/openmeetings.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/lang/en/openmeetings.php 
(original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/lang/en/openmeetings.php 
Fri Jan 27 13:42:42 2012
@@ -1,4 +1,22 @@
 <?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.
+*/
 
 $string['openmeetings'] = 'openmeetings';
 

Modified: 
incubator/openmeetings/trunk/plugins/moodle_plugin/lang/es/openmeetings.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/lang/es/openmeetings.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/lang/es/openmeetings.php 
(original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/lang/es/openmeetings.php 
Fri Jan 27 13:42:42 2012
@@ -1,4 +1,22 @@
 <?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.
+*/
 
 $string['openmeetings'] = 'openmeetings';
 

Modified: 
incubator/openmeetings/trunk/plugins/moodle_plugin/lang/fr/openmeetings.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/lang/fr/openmeetings.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/lang/fr/openmeetings.php 
(original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/lang/fr/openmeetings.php 
Fri Jan 27 13:42:42 2012
@@ -1,4 +1,22 @@
 <?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.
+*/
 
 $string['openmeetings'] = 'openmeetings';
 

Modified: 
incubator/openmeetings/trunk/plugins/moodle_plugin/lang/ru/openmeetings.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/lang/ru/openmeetings.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/lang/ru/openmeetings.php 
(original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/lang/ru/openmeetings.php 
Fri Jan 27 13:42:42 2012
@@ -1,4 +1,22 @@
 <?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.
+*/
 
 $string['openmeetings'] = 'openmeetings';
 

Modified: incubator/openmeetings/trunk/plugins/moodle_plugin/lib.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/lib.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/lib.php (original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/lib.php Fri Jan 27 
13:42:42 2012
@@ -1,4 +1,22 @@
-<?php  // $Id: lib.php,v 1.0 2008/05/14 12:00:00 Sebastian Wagner Exp $
+<?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.
+*/
 
 $old_error_handler = set_error_handler("myErrorHandler");
 require_once($CFG->dirroot.'/config.php');

Added: 
incubator/openmeetings/trunk/plugins/moodle_plugin/lib/openmeetings_rest_service.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/lib/openmeetings_rest_service.php?rev=1236681&view=auto
==============================================================================
--- 
incubator/openmeetings/trunk/plugins/moodle_plugin/lib/openmeetings_rest_service.php
 (added)
+++ 
incubator/openmeetings/trunk/plugins/moodle_plugin/lib/openmeetings_rest_service.php
 Fri Jan 27 13:42:42 2012
@@ -0,0 +1,116 @@
+<?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 [email protected]
+ *
+ *
+ */
+
+class openmeetings_rest_service {
+       
+               function call($request){
+                       // 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]);  
+                       }  
+                                               
+                       // Get the XML from the response, bypassing the header  
+                       if (!($xml = strstr($response, '<ns'))) {  
+                               $xml = null;  
+                       }               
+                               
+                       // Create a SimpleXML object with XML response  
+                       $simple_xml = simplexml_load_string($xml, 
"SimpleXMLElement", 0,"http://services.axis.openmeetings.org";, true); 
+                                                                               
                
+                       return $simple_xml;
+               }
+               
+               
+               
+               function getError(){
+               
+               
+               }
+               
+               function fault(){
+               
+               
+               }
+}
+
+?>
\ No newline at end of file

Modified: incubator/openmeetings/trunk/plugins/moodle_plugin/mod_form.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/mod_form.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/mod_form.php (original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/mod_form.php Fri Jan 27 
13:42:42 2012
@@ -1,4 +1,22 @@
 <?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.
+*/
 
 if (!defined('MOODLE_INTERNAL')) {
        die('Direct access to this script is forbidden.');    ///  It must be 
included from a Moodle page

Added: 
incubator/openmeetings/trunk/plugins/moodle_plugin/openmeetings_gateway.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/openmeetings_gateway.php?rev=1236681&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/openmeetings_gateway.php 
(added)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/openmeetings_gateway.php 
Fri Jan 27 13:42:42 2012
@@ -0,0 +1,552 @@
+<?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.
+*/
+
+require_once($CFG->dirroot.'/mod/openmeetings/lib/openmeetings_rest_service.php');
+
+class openmeetings_gateway {
+
+       var $session_id = "";
+
+       function getUrl() {
+               global $CFG;
+               //FIXME protocol should be added
+               $port = $CFG->openmeetings_red5port == 80 ? '' : ":" . 
$CFG->openmeetings_red5port;
+               return "http://"; . $CFG->openmeetings_red5host . $port . "/" . 
$CFG->openmeetings_webappname;
+       }
+
+       function var_to_str($in)
+       {
+               if(is_bool($in))
+               {
+                       if($in)
+                       return "true";
+                       else
+                       return "false";
+               }
+               else
+               return $in;
+       }
+
+
+       /**
+        * TODO: Get Error Service and show detailed Error Message
+        */
+
+       function openmeetings_loginuser() {
+               global $CFG;
+
+               $restService = new openmeetings_rest_service();
+
+               $response = 
$restService->call($this->getUrl()."/services/UserService/getSession");
+
+               // Confirm that the request was transmitted to the OpenMeetings!
+               if(!$response->asXML()) {
+                       die("Request to OpenMeetings og! OpenMeetings Service 
failed and no response was returned.");
+               }
+
+               if ($restService->getError()) {
+                       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); echo '</pre>';
+                               $this->session_id = $sid = 
$response->children('ns', true)->return->children('ax23', true)->session_id;
+
+                               $result = 
$restService->call($this->getUrl()."/services/UserService/loginUser?"
+                               . "SID=".$this->session_id
+                               . "&username=" . 
$CFG->openmeetings_openmeetingsAdminUser
+                               . "&userpass=" . 
$CFG->openmeetings_openmeetingsAdminUserPass
+                               );
+
+                               if ($restService->getError()) {
+                                       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); echo '</pre>';
+                                               $returnValue = 
$result->children('ns', true)->return[0];
+                                               
//print_r($result->children('ns', true)->return[0]);
+                                               //exit;
+                                               //echo 
'<h2>returnValue</h2><pre>'; printf($returnValue); echo '</pre>';
+                                       }
+                               }
+                       }
+               }
+               if ($returnValue>0){
+                       return true;
+               } else {
+                       return false;
+               }
+       }
+
+
+       function openmeetings_createroomwithmod($openmeetings) {
+               global $CFG;
+
+               $restService = new openmeetings_rest_service();
+               //echo $restService."<br/>";
+               $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();
+               }
+                       
+               $result = 
$restService->call($this->getUrl()."/services/RoomService/addRoomWithModerationQuestionsAndAudioType?"
 .
+                                                       
"SID=".$this->session_id.
+                                                       
"&name=".$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.
+                                                       
"&allowUserQuestions=true" .
+                                                       "&isAudioOnly=false");
+
+               //$result = 
$client_roomService->call('addRoomWithModeration',$params);
+               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->children('ns', 
true)->return[0]; //$result["return"];
+                       }
+               }
+               return -1;
+       }
+
+       function openmeetings_createRoomWithModAndType($openmeetings) {
+               global $USER, $CFG;
+
+               $course_name = 
'MOODLE_COURSE_ID_'.$openmeetings->course.'_NAME_'.$openmeetings->name;
+                       
+               $client_roomService = new 
nusoap_client($this->getUrl()."/services/RoomService?wsdl", true);
+               $client_roomService->soap_defencoding = 'utf-8';
+                       
+               $err = $client_roomService->getError();
+               if ($err) {
+                       echo '<h2>Constructor error</h2><pre>' . $err . 
'</pre>';
+                       echo '<h2>Debug</h2><pre>' . 
htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
+                       exit();
+               }
+
+               $isModeratedRoom = false;
+               if ($openmeetings->is_moderated_room == 1) {
+                       $isModeratedRoom = true;
+               }
+               
+               $result = 
$restService->call($this->getUrl()."/services/RoomService/addRoomWithModerationAndExternalType?"
 .
+                                                                       
"SID=".$this->session_id.
+                                                                       
"&name=". $course_name.
+                                                                       
"&roomtypes_id=".$openmeetings->type.
+                                                                       
"&comment="."Created by SOAP-Gateway for Moodle Platform".
+                                                                       
"&numberOfPartizipants=".$openmeetings->max_user.
+                                                                       
"&ispublic=false".
+                                                                       
"&appointment=false".
+                                                                       
"&isDemoRoom=false".
+                                                                       
"&demoTime=0".
+                                                                       
"&isModeratedRoom=".$isModeratedRoom.
+                                                                       
"&externalRoomType=moodle");
+
+               if ($client_roomService->fault) {
+                       echo '<h2>Fault (Expect - The request contains an 
invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
+               } else {
+                       $err = $client_roomService->getError();
+                       if ($err) {
+                               echo '<h2>Error</h2><pre>' . $err . '</pre>';
+                       } else {
+                               //echo '<h2>Result</h2><pre>'; 
print_r($result["return"]); echo '</pre>';
+                               return $result->children('ns', true)->return[0];
+                       }
+               }
+               return -1;
+       }
+
+       function 
openmeetings_addRoomWithModerationExternalTypeAndTopBarOption($openmeetings) {
+               global $CFG;
+
+               $restService = new openmeetings_rest_service();
+               //echo $client_roomService."<br/>";
+               $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();
+               }
+
+               $result = 
$restService->call($this->getUrl()."/services/RoomService/addRoomWithModerationExternalTypeAndTopBarOption?"
 .
+                                                       
"SID=".$this->session_id.
+                                                       
"&name=".urlencode($openmeetings->name).
+                                                       
"&roomtypes_id=".$openmeetings->roomtypes_id.
+                                                       
"&comment=".urlencode($openmeetings->comment).
+                                                       
"&numberOfPartizipants=".$openmeetings->numberOfPartizipants.
+                                                       
"&ispublic=".$this->var_to_str($openmeetings->ispublic).
+                                                       
"&appointment=".$this->var_to_str($openmeetings->appointment).
+                                                       
"&isDemoRoom=".$this->var_to_str($openmeetings->isDemoRoom).
+                                                       
"&demoTime=".$openmeetings->demoTime.
+                                                       
"&isModeratedRoom=".$this->var_to_str($openmeetings->isModeratedRoom).
+                                                       
"&externalRoomType=".$openmeetings->externalRoomType.
+                                                       "&allowUserQuestions=" 
.$this->var_to_str($openmeetings->allowUserQuestions).
+                                                       
"&isAudioOnly=".$this->var_to_str($openmeetings->isAudioOnly).
+                                                       
"&waitForRecording=false".
+                                                       
"&allowRecording=".$this->var_to_str($openmeetings->allowRecording).
+                                                       "&hideTopBar=false");
+
+
+               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->children('ns', true)->return[0];
+                       }
+               }
+               return -1;
+       }
+
+       function updateRoomWithModerationAndQuestions($openmeetings) {
+               global $CFG;
+                       
+               $restService = new openmeetings_rest_service();
+               //echo $client_roomService."<br/>";
+               $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();
+               }
+
+               $result = 
$restService->call($this->getUrl()."/services/RoomService/updateRoomWithModerationAndQuestions?"
 .
+                                                       
"SID=".$this->session_id.
+                                                       
"&room_id=".$openmeetings->room_id.
+                                                       
"&name=".urlencode($openmeetings->name).
+                                                       
"&roomtypes_id=".$openmeetings->roomtypes_id.
+                                                       
"&comment=".urlencode($openmeetings->comment).
+                                                       
"&numberOfPartizipants=".$openmeetings->numberOfPartizipants.
+                                                       
"&ispublic=".$this->var_to_str($openmeetings->ispublic).
+                                                       
"&appointment=".$this->var_to_str($openmeetings->appointment).
+                                                       
"&isDemoRoom=".$this->var_to_str($openmeetings->isDemoRoom).
+                                                       
"&demoTime=".$openmeetings->demoTime.
+                                                       
"&isModeratedRoom=".$this->var_to_str($openmeetings->isModeratedRoom).
+                                                       
"&allowUserQuestions=".$this->var_to_str($openmeetings->allowUserQuestions));
+
+               if ($restService->fault) {
+                       echo '<h2>Fault (Expect - The request contains an 
invalid SOAP body)</h2><pre>'; print_r($result); echo '</pre>';
+                       //print_r($params);
+                       //exit();
+               } 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->children('ns', true)->return[0];
+                       }
+               }
+               return -1;
+
+       }
+
+       function deleteRoom($openmeetings) {
+               global $CFG;
+
+               //echo $client_roomService."<br/>";
+               $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();
+               }
+               /*
+                $params = array(
+               'SID' => $this->session_id,
+               'rooms_id' => $openmeetings->room_id
+                       
+               );
+
+               $result = $client_roomService->call('deleteRoom',$params);
+               */
+
+
+               $result = 
$restService->call($this->getUrl()."/services/RoomService/deleteRoom?" .
+                                                       
"SID=".$this->session_id.
+                                                       
"&rooms_id=".$openmeetings->room_id);
+
+               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->children('ns', true)->return[0];
+                       }
+               }
+               return -1;
+       }
+
+       /**
+        * Sets the User Id and remembers the User,
+        * the value for $systemType is any Flag but usually should always be 
the same,
+        * it only has a reason if you have more then one external Systems, so 
the $userId will not
+        * be unique, then you can use the $systemType to give each system its 
own scope
+        *
+        * so a unique external user is always the pair of: $userId + 
$systemType
+        *
+        * in this case the $systemType is 'moodle'
+        *
+        */
+       function openmeetings_setUserObjectWithExternalUser($username, 
$firstname, $lastname, $profilePictureUrl, $email, $userId, $systemType) {
+               global $CFG;
+
+               $restService = new 
nusoap_client($this->getUrl()."/services/UserService?wsdl", true);
+
+               $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();
+               }
+               $params = array(
+                       'SID' => $this->session_id,
+                       'username' => $username,
+                       'firstname' => $firstname,
+                       'lastname' => $lastname,
+                       'profilePictureUrl' => $profilePictureUrl,
+                       'email' => $email,
+                       'externalUserId' => $userId,
+                       'externalUserType' => $systemType
+               );
+               $result = 
$restService->call('setUserObjectWithExternalUser',$params);
+               if ($client_roomService->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 -1;
+       }
+
+       function openmeetings_setUserObjectAndGenerateRoomHash($username,
+       $firstname,
+       $lastname,
+       $profilePictureUrl,
+       $email,
+       $externalUserId,
+       $externalUserType,
+       $room_id,
+       $becomeModeratorAsInt,
+       $showAudioVideoTestAsInt) {
+
+               global $CFG;
+
+               $restService = new openmeetings_rest_service();
+
+               $result = 
$restService->call($this->getUrl()."/services/UserService/setUserObjectAndGenerateRoomHash?"
 .
+                                       "SID=".$this->session_id.
+                                       "&username=".$username.
+                                       "&firstname=".$firstname.
+                                       "&lastname=".$lastname.
+                                       
"&profilePictureUrl=".$profilePictureUrl.
+                                       "&email=".$email.
+                                       "&externalUserId=".$externalUserId.
+                                       "&externalUserType=".$externalUserType.
+                                       "&room_id=".$room_id.
+                                       
"&becomeModeratorAsInt=".$becomeModeratorAsInt.
+                                       
"&showAudioVideoTestAsInt=".$showAudioVideoTestAsInt);
+
+
+               $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();
+               }
+
+               if ($restService->getError()) {
+                       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->children('ns', true)->return[0];
+
+                       }
+               }
+               return -1;
+       }
+
+       function openmeetings_sendInvitationHash($username, $message, $baseurl, 
$email, $subject, $room_id, $conferencedomain, $isPasswordProtected, 
$invitationpass, $valid, $validFromDate, $validFromTime, $validToDate, 
$validToTime, $language_id, $sendMail) {
+               global $CFG;
+
+               $restService = new 
nusoap_client($this->getUrl()."/services/RoomService?wsdl", true);
+
+               $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();
+               }
+               $params = array(
+                       'SID' => $this->session_id,
+                       'username' => $username,
+                       'message' => $message,
+                       'baseurl' => $baseurl,
+                       'email' => $email,
+                       'subject' => $subject,
+                       'room_id' => $room_id,
+                       'conferencedomain' => $conferencedomain,
+                       'isPasswordProtected' => $isPasswordProtected,
+                       'invitationpass' => $invitationpass,
+                       'valid'=> $valid,
+                       'validFromDate' => $validFromDate,
+                       'validFromTime' => $validFromTime,
+                       'validToDate' => $validToDate,
+                       'validToTime' => $validToTime,
+                       'language_id' => $language_id,
+                       'sendMail' => $sendMail                 
+               );
+               $result = $restService->call('sendInvitationHash', $params);
+               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 -1;
+       }
+
+       function sendInvitationHashWithDateObject($username, $message, 
$baseurl, $email, $subject, $room_id, $conferencedomain, $isPasswordProtected, 
$invitationpass, $valid, $fromDate, $toDate, $language_id, $sendMail) {
+               global $CFG;
+
+               $restService = new 
nusoap_client($this->getUrl()."/services/RoomService?wsdl", true);
+
+               $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();
+               }
+               $params = array(
+                       'SID' => $this->session_id,
+                       'username' => $username,
+                       'message' => $message,
+                       'baseurl' => $baseurl,
+                       'email' => $email,
+                       'subject' => $subject,
+                       'room_id' => $room_id,
+                       'conferencedomain' => $conferencedomain,
+                       'isPasswordProtected' => $isPasswordProtected,
+                       'invitationpass' => $invitationpass,
+                       'valid'=> $valid,
+                       'fromDate' => $fromDate,
+                       'toDate' => $toDate,                    
+                       'language_id' => $language_id,
+                       'sendMail' => $sendMail                         
+               );
+               $result = $restService->call('sendInvitationHash', $params);
+               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 -1;
+       }
+
+       function getInvitationHash($username, $room_id, $isPasswordProtected, 
$invitationpass, $valid, $validFromDate, $validFromTime, $validToDate, 
$validToTime) {
+               global $CFG;
+
+               $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();
+               }
+
+               $result = 
$restService->call($this->getUrl()."/services/RoomService/getInvitationHash?" .
+                                       "SID=".$this->session_id.
+                                       "&username=".urlencode($username).
+                                       "&room_id=".$room_id.
+                                       
"&isPasswordProtected=".$this->var_to_str($isPasswordProtected).
+                                       "&invitationpass=".$invitationpass.
+                                       "&valid=".$valid.
+                                       "&validFromDate=".$validFromDate.
+                                       "&validFromTime=".$validFromTime.
+                                       "&validToDate=".$validToDate.
+                                       "&validToTime=".$validToTime);
+
+
+               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->children('ns', true)->return[0];
+                       }
+               }
+               return -1;
+       }
+
+}
+
+?>

Modified: incubator/openmeetings/trunk/plugins/moodle_plugin/restorelib.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/restorelib.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/restorelib.php (original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/restorelib.php Fri Jan 
27 13:42:42 2012
@@ -1,4 +1,22 @@
-<?php // $Id: restorelib.php,v 1.1 2009/05/28 23:27:08 dasistwas Exp $
+<?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.
+*/
     /// This php script contains all the stuff to backup/restore
     /// openmeetings mods
 

Modified: incubator/openmeetings/trunk/plugins/moodle_plugin/settings.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/settings.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/settings.php (original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/settings.php Fri Jan 27 
13:42:42 2012
@@ -1,4 +1,22 @@
 <?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('MOODLE_INTERNAL') || die;
 

Modified: incubator/openmeetings/trunk/plugins/moodle_plugin/version.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/version.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/version.php (original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/version.php Fri Jan 27 
13:42:42 2012
@@ -1,4 +1,22 @@
-<?php // $Id: version.php,v 1.0 2008/05/12 12:00:00 Sebastian Wagner Exp $ 
+<?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('MOODLE_INTERNAL') || die;
 

Modified: incubator/openmeetings/trunk/plugins/moodle_plugin/view.php
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/view.php?rev=1236681&r1=1236680&r2=1236681&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/view.php (original)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/view.php Fri Jan 27 
13:42:42 2012
@@ -1,4 +1,22 @@
 <?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.
+*/
 
 
     require_once("../../config.php");


Reply via email to