/** * Constructor (generates a connection to the API and the Chamilo settings * required for the connection to the videoconference server) */ function __construct() { // initialize video server settings from global settings $plugin = TicketPlugin::create(); /* $bbb_plugin = $plugin->get('tool_enable'); $bbb_host = $plugin->get('host'); $bbb_salt = $plugin->get('salt'); //$course_code = api_get_course_id(); $this->logout_url = api_get_path(WEB_PLUGIN_PATH).'bbb/listing.php'; $this->table = Database::get_main_table('plugin_bbb_meeting'); if ($bbb_plugin == true) { $user_info = api_get_user_info(); $this->user_complete_name = $user_info['complete_name']; $this->salt = $bbb_salt; $info = parse_url($bbb_host); $this->url = $bbb_host.'/bigbluebutton/'; if (isset($info['scheme'])) { $this->protocol = $info['scheme'].'://'; $this->url = str_replace($this->protocol, '', $this->url); } // Setting BBB api define('CONFIG_SECURITY_SALT', $this->salt); define('CONFIG_SERVER_BASE_URL', $this->url); $this->api = new TckBlueButtonBN(); $this->plugin_enabled = true; }*/ }
<?php /* For licensing terms, see /license.txt */ require_once dirname(__FILE__) . '/config.php'; $plugin_info = TicketPlugin::create()->get_info();
<?php require_once '../config.php'; $plugin = TicketPlugin::create(); require_once 'tutor_report.lib.php'; $htmlHeadXtra[] = ' <script type="text/javascript"> $(document).ready(function (){ $(".ajax").live("click", function() { var url = this.href; var dialog = $("#dialog"); if ($("#dialog").length == 0) { dialog = $("<div id=\\"dialog\\" style=\\"display:hidden\\"></div>").appendTo("body"); } // load remote content dialog.load( url, {}, function(responseText, textStatus, XMLHttpRequest) { dialog.dialog({ modal : true, width : 540, height : 400 }); }); //prevent the browser to follow the link return false; }); });
<?php /* For licensing terms, see /license.txt */ /** * This script is included by main/admin/settings.lib.php when unselecting a plugin * and is meant to remove things installed by the install.php script in both * the global database and the courses tables * @package chamilo.plugin.bigbluebutton */ /** * Queries */ require_once dirname(__FILE__) . '/config.php'; TicketPlugin::create()->uninstall();