Skip to content
Snippets Groups Projects
Select Git revision
  • 4c84f8975026979126cf2d936a161c56cfeabc53
  • master default protected
  • hsh_3.10
3 results

locallib.php

Blame
  • locallib.php 54.22 KiB
    <?php
    
    /**
     * @package mod
     * @subpackage adobeconnect
     * @author Akinsaya Delamarre (adelamarre@remote-learner.net)
     * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
     */
    
    require_once('connect_class.php');
    require_once('connect_class_dom.php');
    
    define('ADOBE_VIEW_ROLE', 'view');
    define('ADOBE_HOST_ROLE', 'host');
    define('ADOBE_MINIADMIN_ROLE', 'mini-host');
    define('ADOBE_REMOVE_ROLE', 'remove');
    
    define('ADOBE_PARTICIPANT', 1);
    define('ADOBE_PRESENTER', 2);
    define('ADOBE_REMOVE', 3);
    define('ADOBE_HOST', 4);
    
    define('ADOBE_TEMPLATE_POSTFIX', '- Template');
    define('ADOBE_MEETING_POSTFIX', '- Meeting');
    
    define('ADOBE_MEETPERM_PUBLIC', 0); //means the Acrobat Connect meeting is public, and anyone who has the URL for the meeting can enter the room.
    define('ADOBE_MEETPERM_PROTECTED', 1); //means the meeting is protected, and only registered users and accepted guests can enter the room.
    define('ADOBE_MEETPERM_PRIVATE', 2); // means the meeting is private, and only registered users and participants can enter the room
    
    define('ADOBE_TMZ_LENGTH', 6);
    
    /* DFNVC 
    function adobe_connection_test($host = '', $port = 80, $username = '',
                                   $password = '', $httpheader = '',
                                   $emaillogin, $https = false) {
    */
    
    function adobe_connection_test($host = '', $port = 80, $username = '',
                                   $password = '',
                                   $emaillogin, $https = false) {
        global $CFG;
        if (empty($host) or
            empty($port) or (0 == $port) or
            empty($username) or
            empty($password))
    	/* DFNVC
    	  or empty($httpheader)) { */
    	{
    
            echo "</p>One of the required parameters is blank or incorrect: <br />".
                 "Host: $host<br /> Port: $port<br /> Username: $username<br /> Password: $password".
                 "<br /> HTTP Header: $httpheader</p>";
    
            die();
        }
    
        $messages = array();
    
        $aconnectDOM = new connect_class_dom($host,
                                             $port,
                                             $username,
                                             $password,
                                             '',
                                             $https);
    
        $params = array(
            'action' => 'common-info'
        );
    
        // Send common-info call to obtain the session key