Minor - remove white spaces

skala
Julio Montoya 12 years ago
parent 8971ca227e
commit ed34f7d192
  1. 4
      plugin/bbb/course_index.php
  2. 2
      plugin/bbb/install.php
  3. 5
      plugin/bbb/lib/bbb_api.php
  4. 6
      plugin/bbb/lib/bbb_plugin.class.php
  5. 16
      plugin/bbb/listing.php
  6. 20
      plugin/bbb/start.php
  7. 2
      plugin/bbb/uninstall.php

@ -1,10 +1,10 @@
<?php
/**
* This script is included by the course_home.php script (indirectly) and is
* This script is included by the course_home.php script (indirectly) and is
* used to show the link to the plugin from inside the course's tools list
* @package chamilo.plugin.bigbluebutton
*/
/**
* Display course tool title
*/
echo "Videoconference";
echo "Videoconference";

@ -1,6 +1,6 @@
<?php
/**
* This script is included by main/admin/settings.lib.php and generally
* This script is included by main/admin/settings.lib.php and generally
* includes things to execute in the main database (settings_current table)
* @package chamilo.plugin.bigbluebutton
*/

@ -760,7 +760,4 @@ class BigBlueButtonBN {
return (simplexml_load_file($url,'SimpleXMLElement', LIBXML_NOCDATA));
}
}
//----End
}

@ -9,7 +9,7 @@
class BBBPlugin extends Plugin
{
public $is_course_plugin = true;
//When creating a new course this settings are added to the course
public $course_settings = array(
// array('name' => 'big_blue_button_welcome_message', 'type' => 'text'),
@ -24,7 +24,7 @@ class BBBPlugin extends Plugin
protected function __construct() {
parent::__construct('2.0', 'Julio Montoya, Yannick Warnier', array('tool_enable' => 'boolean', 'host' =>'text', 'salt' => 'text'));
}
function install() {
$table = Database::get_main_table('plugin_bbb_meeting');
$sql = "CREATE TABLE IF NOT EXISTS $table (
@ -69,7 +69,7 @@ class BBBPlugin extends Plugin
Database::query($sql);
//hack to get rid of Database::query warning (please add c_id...)
$sql = "DELETE FROM $t_tool WHERE name = 'videoconference' AND c_id = c_id";
$sql = "DELETE FROM $t_tool WHERE name = 'videoconference' AND c_id = c_id";
Database::query($sql);
$sql = "DROP TABLE IF EXISTS plugin_bbb_meeting";

@ -7,7 +7,7 @@
* Initialization
*/
$course_plugin = 'bbb'; //needed in order to load the plugin lang variables
$course_plugin = 'bbb'; //needed in order to load the plugin lang variables
require_once dirname(__FILE__).'/config.php';
$tool_name = get_lang('Videoconference');
$tpl = new Template($tool_name);
@ -20,23 +20,23 @@ $teacher = api_is_course_admin() || api_is_coach() || api_is_platform_admin();
if ($teacher) {
switch ($action) {
case 'add_to_calendar':
$course_info = api_get_course_info();
$course_info = api_get_course_info();
$agenda = new Agenda();
$agenda->type = 'course';
$id = intval($_GET['id']);
$id = intval($_GET['id']);
$title = sprintf(get_lang('VideoConferenceXCourseX'), $id, $course_info['name']);
$content = Display::url(get_lang('GoToTheVideoConference'), $_GET['url']);
$event_id = $agenda->add_event($_REQUEST['start'], null, 'true', null, $title, $content, array('everyone'));
if (!empty($event_id)) {
if (!empty($event_id)) {
$message = Display::return_message(get_lang('VideoConferenceAddedToTheCalendar'), 'success');
} else {
$message = Display::return_message(get_lang('Error'), 'error');
}
}
break;
case 'copy_record_to_link_tool':
$result = $bbb->copy_record_to_link_tool($_GET['id'], $_GET['record_id']);
$result = $bbb->copy_record_to_link_tool($_GET['id'], $_GET['record_id']);
if ($result) {
$message = Display::return_message(get_lang('VideoConferenceAddedToTheLinkTool'), 'success');
} else {
@ -54,7 +54,7 @@ if ($teacher) {
case 'end':
$bbb->end_meeting($_GET['id']);
$message = Display::return_message(get_lang('MeetingClosed'), 'success');
break;
break;
case 'publish':
//$result = $bbb->publish_meeting($_GET['id']);
break;
@ -83,4 +83,4 @@ $tpl->assign('message', $message);
$listing_tpl = 'bbb/listing.tpl';
$content = $tpl->fetch($listing_tpl);
$tpl->assign('content', $content);
$tpl->display_one_col_template();
$tpl->display_one_col_template();

@ -7,7 +7,7 @@
* Initialization
*/
$course_plugin = 'bbb'; //needed in order to load the plugin lang variables
$course_plugin = 'bbb'; //needed in order to load the plugin lang variables
require_once dirname(__FILE__).'/config.php';
$tool_name = get_lang('Videoconference');
$tpl = new Template($tool_name);
@ -15,14 +15,14 @@ $bbb = new bbb();
if ($bbb->plugin_enabled) {
if ($bbb->is_server_running()) {
if (isset($_GET['launch']) && $_GET['launch'] == 1) {
$meeting_params = array();
$meeting_params['meeting_name'] = api_get_course_id();
if ($bbb->is_meeting_exist($meeting_params['meeting_name'])) {
$url = $bbb->join_meeting($meeting_params['meeting_name']);
$url = $bbb->join_meeting($meeting_params['meeting_name']);
if ($url) {
header('location: '.$url);
exit;
@ -30,7 +30,7 @@ if ($bbb->plugin_enabled) {
$url = $bbb->create_meeting($meeting_params);
header('location: '.$url);
exit;
}
}
} else {
if ($bbb->is_teacher()) {
$url = $bbb->create_meeting($meeting_params);
@ -43,11 +43,11 @@ if ($bbb->plugin_enabled) {
header('location: '.$url);
exit;
}
} else {
$message = Display::return_message(get_lang('ServerIsNotRunning'), 'warning');
} else {
$message = Display::return_message(get_lang('ServerIsNotRunning'), 'warning');
}
} else {
$message = Display::return_message(get_lang('ServerIsNotConfigured'), 'warning');
} else {
$message = Display::return_message(get_lang('ServerIsNotConfigured'), 'warning');
}
$tpl->assign('message', $message);
$tpl->display_one_col_template();
$tpl->display_one_col_template();

@ -1,7 +1,7 @@
<?php
/**
* This script is included by main/admin/settings.lib.php when unselecting a plugin
* 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

Loading…
Cancel
Save