Removing the configure extensions block in the Platform settings, Only Chamilo RAPID is available in the plugin page

skala
Julio Montoya 13 years ago
parent 3b7e91202b
commit 801ccc5ca7
  1. 28
      main/admin/configure_extensions.php
  2. 4
      main/admin/index.php
  3. 15
      main/admin/settings.lib.php
  4. 2
      main/admin/settings.php
  5. 4
      main/css/base.css
  6. 4
      main/inc/lib/dashboard.lib.php
  7. 2
      main/inc/lib/plugin.lib.php

@ -86,14 +86,9 @@ if (isset($_POST['activeExtension'])) {
AND subkey="visio_use_rtmpt"';
$rs = Database::query($sql);
if(empty($message))
{
if(empty($message)) {
$message = get_lang('ServiceReconfigured');
}
break;
case 'ppt2lp' :
@ -233,8 +228,6 @@ Display::display_header($nameTool);
<div id="content" align="center">
<!-- INSTRUCTIONS TO ADD AN EXTENSION HERE
- copy paste a "main_*" div
- set the names of the subdiv to extension_header_yourextension and extension_content_yourextension
@ -244,7 +237,7 @@ Display::display_header($nameTool);
- please fill free to improve the global display of the document
-->
<!-- VISIOCONFERENCE -->
<?php /*
<div id="main_visio">
<div id="extension_header_visio" class="accordion_header">
<a href="#"><?php echo get_lang('Visioconf') ?></a>
@ -299,6 +292,8 @@ Display::display_header($nameTool);
</div>
</div>
*/ ?>
<!-- PPT2LP -->
<div id="main_ppt2lp">
<div id="extension_header_ppt2lp" class="accordion_header">
@ -439,7 +434,9 @@ Display::display_header($nameTool);
</div>
</div>
*/
?>
/*
<!-- SEARCH -->
<div id="main_search">
<div id="extension_header_search" class="accordion_header">
@ -509,16 +506,9 @@ Display::display_header($nameTool);
</table>
</div>
</div>
*/ ?>
</div><!-- /content -->
<?php
/*
==============================================================================
FOOTER
==============================================================================
*/
Display::display_footer();
?>
Display::display_footer();

@ -238,7 +238,7 @@ if (api_is_platform_admin()) {
$blocks['settings']['items'] = $items;
/* Extensions */
/*
$blocks['extensions']['icon'] = Display::return_icon('visio_meeting.gif', get_lang('ConfigureExtensions'), array(), ICON_SIZE_SMALL, false);
$blocks['extensions']['label'] = api_ucfirst(get_lang('ConfigureExtensions'));
@ -250,7 +250,7 @@ if (api_is_platform_admin()) {
$items[] = array('url'=>'configure_extensions.php?display=serverstats', 'label' => get_lang('ServerStatistics'));
$items[] = array('url'=>'configure_extensions.php?display=bandwidthstats', 'label' => get_lang('BandWidthStatistics'));
$blocks['extensions']['items'] = $items;
*/
//Skills

@ -34,14 +34,14 @@ function handle_regions() {
$not_installed = array_diff($possible_plugins, $installed_plugins);
} else {
$not_installed = $possible_plugins;
}
}
echo '<form name="plugins" method="post" action="'.api_get_self().'?category='.Security::remove_XSS($_GET['category']).'">';
echo '<table class="data_table">';
echo '<tr>';
echo '<th width="400px">';
echo get_lang('Plugin');
echo '</th><th>';
echo get_lang('Blocks');
echo get_lang('Regions');
echo '</th>';
echo '</th>';
echo '</tr>';
@ -79,7 +79,11 @@ function handle_regions() {
}
function handle_extensions() {
echo '<div class="page-header"><h2>'.get_lang('ConfigureExtensions').'</h2></div>';
echo '<a class="btn" href="configure_extensions.php?display=ppt2lp">'.get_lang('Ppt2lp').'</a>';
}
/**
* This function allows easy activating and inactivating of plugins
* @todo: a similar function needs to be written to activate or inactivate additional tools.
@ -103,15 +107,14 @@ function handle_plugins() {
$not_installed = array_diff($all_plugins, $installed_plugins);
//Plugins NOT installed
echo '<div class="page-header"><h2>'.get_lang('Plugins').'</h2></div>';
echo '<form name="plugins" method="post" action="'.api_get_self().'?category='.Security::remove_XSS($_GET['category']).'">';
echo '<table class="data_table">';
echo '<tr>';
echo '<th width="20px">';
echo get_lang('Plugin');
echo '</th><th>';
echo get_lang('InstallPlugin');
echo '</th>';
echo get_lang('InstallPlugin');
echo '</th>';
echo '</tr>';

@ -20,6 +20,7 @@ if (isset($_GET['category']) && $_GET['category'] == 'Templates') {
} else {
$language_file = array('admin', 'document');
}
$language_file[] = 'tracking';
// Resetting the course id.
$cidReset = true;
@ -404,6 +405,7 @@ if (!empty($_GET['category'])) {
}
handle_plugins();
DashboardManager::handle_dashboard_plugins();
handle_extensions();
break;
case 'stylesheets':
// Displaying the extensions: Stylesheets.

@ -241,6 +241,10 @@ a.tag {
/* User portal */
#settings h4 {
margin-bottom:10px;
}
.course_item {
padding-bottom: 40px;
}

@ -32,8 +32,8 @@ class DashboardManager {
$dashboard_pluginpath = api_get_path(SYS_PLUGIN_PATH).'dashboard/';
$possibleplugins = self::get_posible_dashboard_plugins_path();
$table_cols = array('name', 'version', 'description');
echo '<h3>'.get_lang('DashboardPlugins').'</h3>';
$table_cols = array('name', 'version', 'description');
echo '<div class="page-header"><h2>'.get_lang('DashboardPlugins').'</h2></div>';
echo '<form name="plugins" method="post" action="'.api_get_self().'?category='.Security::remove_XSS($_GET['category']).'">';
echo '<table class="data_table">';
echo '<tr>';

@ -234,7 +234,7 @@ class AppPlugin {
function remove_all_regions($plugin) {
$access_url_id = api_get_current_access_url_id();
if (!empty($plugin)) {
api_delete_settings_params(array('category = ? AND variable = ? AND access_url = ? AND subkey = ? ' =>
api_delete_settings_params(array('category = ? AND type = ? AND access_url = ? AND subkey = ? ' =>
array('Plugins', 'region', $access_url_id, $plugin)));
}

Loading…
Cancel
Save