Adding db manager configuration option.

1.9.x
jmontoya 12 years ago
parent ef4d1ae913
commit 2ba070125b
  1. 2003
      main/admin/db.php
  2. 18
      main/admin/index.php
  3. 20
      main/install/configuration.dist.php

File diff suppressed because one or more lines are too long

@ -7,6 +7,7 @@
/** /**
* Code * Code
*/ */
// Language files that need to be included. // Language files that need to be included.
$language_file = array('admin', 'tracking','coursebackup'); $language_file = array('admin', 'tracking','coursebackup');
@ -228,9 +229,20 @@ if (api_is_platform_admin()) {
$items[] = array('url'=>'filler.php', 'label' => get_lang('DataFiller')); $items[] = array('url'=>'filler.php', 'label' => get_lang('DataFiller'));
} }
$items[] = array('url'=>'archive_cleanup.php', 'label' => get_lang('ArchiveDirCleanup')); $items[] = array('url'=>'archive_cleanup.php', 'label' => get_lang('ArchiveDirCleanup'));
if (api_get_setting('server_type') === 'test') { if (api_get_setting('server_type') === 'test') {
$items[] = array('url'=>'system_management.php', 'label' => get_lang('SystemManagement')); $items[] = array('url'=>'system_management.php', 'label' => get_lang('SystemManagement'));
} }
if (isset($_configuration['db_manager_enabled']) &&
$_configuration['db_manager_enabled'] == true &&
api_is_global_platform_admin()
) {
$host = $_configuration['db_host'];
$username = $_configuration['db_user'];
$databaseName = $_configuration['main_database'];
$items[] = array('url'=>"db.php?username=$username&db=$databaseName&server=$host", 'label' => get_lang('Database Manager'));
}
$blocks['settings']['items'] = $items; $blocks['settings']['items'] = $items;
$blocks['settings']['extra'] = null; $blocks['settings']['extra'] = null;

@ -6,7 +6,7 @@
* Virtual campus configuration * Virtual campus configuration
* *
* This file contains a list of variables that can be modified by the campus * This file contains a list of variables that can be modified by the campus
* site's server administrator. Pay attention when changing these variables, * site's server administrator. Pay attention when changing these variables,
* some changes may cause Chamilo to stop working. * some changes may cause Chamilo to stop working.
* If you changed some settings and want to restore them, please have a look at * If you changed some settings and want to restore them, please have a look at
* configuration.dist.php. That file is an exact copy of the config file at * configuration.dist.php. That file is an exact copy of the config file at
@ -15,13 +15,13 @@
/** /**
* $_configuration define only the bare essential variables * $_configuration define only the bare essential variables
* for configuring the platform (paths, database connections, ...). * for configuring the platform (paths, database connections, ...).
* Changing a $_configuration variable CAN generally break the installation. * Changing a $_configuration variable CAN generally break the installation.
* Besides the $_configuration, a $_settings array also exists, that * Besides the $_configuration, a $_settings array also exists, that
* contains variables that can be changed and will not break the platform. * contains variables that can be changed and will not break the platform.
* These optional settings are defined in the database, now * These optional settings are defined in the database, now
* (table settings_current). * (table settings_current).
* example: $_configuration['tracking_enabled'] (assuming that the install * example: $_configuration['tracking_enabled'] (assuming that the install
* script creates the necessary tables anyway). * script creates the necessary tables anyway).
*/ */
@ -55,6 +55,8 @@ $_configuration['statistics_database'] ='{DATABASE_STATS}';
// User Personal Database (where all the personal stuff of the user is stored // User Personal Database (where all the personal stuff of the user is stored
// (personal agenda items, course sorting) // (personal agenda items, course sorting)
$_configuration['user_personal_database']='{DATABASE_PERSONAL}'; $_configuration['user_personal_database']='{DATABASE_PERSONAL}';
// Enable access to database management for platform admins.
$_configuration['db_manager_enabled'] = false;
/** /**
* Directory settings * Directory settings
@ -79,7 +81,7 @@ $_configuration['course_folder'] = "courses/";
$_configuration['db_admin_path'] = ''; $_configuration['db_admin_path'] = '';
/** /**
* *
* Login modules settings * Login modules settings
*/ */
// CAS IMPLEMENTATION // CAS IMPLEMENTATION
@ -103,7 +105,7 @@ $extAuthSource["cas"]["newUser"] = $_configuration['root_sys'].$_configuration['
// $extAuthSource["external_login"]["updateUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/updateUser.php"; // $extAuthSource["external_login"]["updateUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/updateUser.php";
/** /**
* *
* Hosting settings - Allows you to set limits to the Chamilo portal when * Hosting settings - Allows you to set limits to the Chamilo portal when
* hosting it for a third party. These settings can be overwritten by an * hosting it for a third party. These settings can be overwritten by an
* optionally-loaded extension file with only the settings (no comments). * optionally-loaded extension file with only the settings (no comments).
@ -124,7 +126,7 @@ $_configuration[1]['hosting_limit_sessions'] = 0;
$_configuration[1]['hosting_limit_disk_space'] = 0; $_configuration[1]['hosting_limit_disk_space'] = 0;
/** /**
* Content Delivery Network (CDN) settings. Only use if you need a separate * Content Delivery Network (CDN) settings. Only use if you need a separate
* server to serve your static data. If you don't know what a CDN is, you * server to serve your static data. If you don't know what a CDN is, you
* don't need it. These settings are for simple Origin Pull CDNs and are * don't need it. These settings are for simple Origin Pull CDNs and are
* experimental. Enable only if you really know what you're doing. * experimental. Enable only if you really know what you're doing.
@ -191,4 +193,4 @@ $_configuration['system_stable'] = NEW_VERSION_STABLE;
// Boost query on last connection time // Boost query on last connection time
//$_configuration['save_user_last_login'] = true; //$_configuration['save_user_last_login'] = true;
// Allow course tutors in sessions to add existing students to their session // Allow course tutors in sessions to add existing students to their session
//$_configuration['allow_tutors_to_assign_students_to_session'] = 'false'; //$_configuration['allow_tutors_to_assign_students_to_session'] = 'false';

Loading…
Cancel
Save