Project

General

Profile

Feature #7794

Move more configuration settings from configuration.php to database

Added by Yannick Warnier about 4 years ago. Updated about 4 years ago.

Status:
Feature implemented
Priority:
Normal
Category:
System
Target version:
Start date:
13/08/2015
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

There are the settings that remain in configuration.dist.php. Some of them should remain there (in case, for example, that the chamilo admin should not be able to change it, or in case the setting is too complex to be represented by a simple option in the interface).

$_configuration['db_host'] = '{DATABASE_HOST}'; Necessary for db connection
$_configuration['main_database'] = '{DATABASE_MAIN}'; Necessary for db connection
$_configuration['db_user'] = '{DATABASE_USER}'; Necessary for db connection
$_configuration['db_password'] = '{DATABASE_PASSWORD}'; Necessary for db connection
$_configuration['db_manager_enabled'] = false; Necessary for db connection
$_configuration['root_web'] = '{ROOT_WEB}'; Should disappear in the future
$_configuration['root_sys'] = '{ROOT_SYS}'; Should remain there as changing it would break the whole system
$_configuration['url_append'] = '{URL_APPEND_PATH}'; Should remain there as changing it would break the whole system
$_configuration['db_admin_path'] = ''; To be removed (advantageously replaced by db_manager_enabled)
$extAuthSource["cas"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/cas/login.php"; Should remain there as changing it would break the whole system
$extAuthSource["cas"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/cas/newUser.php"; Should remain there as changing it would break the whole system
$extAuthSource["extldap"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/login.ldap.php"; Should remain there as changing it would break the whole system
$extAuthSource["extldap"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.ldap.php"; Should remain there as changing it would break the whole system
$_configuration['facebook_auth'] = 1; Should remain there as changing it would break the whole system
$extAuthSource["external_login"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.php"; Should remain there as changing it would break the whole system
$extAuthSource["external_login"]["updateUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/updateUser.php"; Should remain there as changing it would break the whole system
$_configuration1['hosting_limit_users'] = 0; Should remain there as the Chamilo admin shouldn't be able to modify it
$_configuration1['hosting_limit_teachers'] = 0; Should remain there as the Chamilo admin shouldn't be able to modify it
$_configuration1['hosting_limit_courses'] = 0; Should remain there as the Chamilo admin shouldn't be able to modify it
$_configuration1['hosting_limit_sessions'] = 0; Should remain there as the Chamilo admin shouldn't be able to modify it
$_configuration1['hosting_limit_disk_space'] = 0; Should remain there as the Chamilo admin shouldn't be able to modify it
$_configuration1['hosting_limit_active_courses'] = 0; Should remain there as the Chamilo admin shouldn't be able to modify it
$_configuration1['hosting_contact_mail'] = ''; Should remain there as the Chamilo admin shouldn't be able to modify it
$_configuration['hosting_total_size_limit'] = 0; Should remain there as the Chamilo admin shouldn't be able to modify it
$_configuration['cdn_enable'] = false; Should remain there (too complex for the interface)
$_configuration['cdn'] = array(
'http://cdn.chamilo.org' => array(
'.css',
'.js',
'.jpg',
'.jpeg',
'.png',
'.gif',
'.avi',
'.flv'
),
);
Should remain there (too complex for the interface
$_configuration['security_key'] = '{SECURITY_KEY}'; Should remain there for security reasons
$_configuration['password_encryption'] = '{ENCRYPT_PASSWORD}'; Should remain there as changing it would break the whole system
$_configuration['session_stored_in_db'] = false; Should remain there as changing it would break the whole system
$_configuration['session_lifetime'] = SESSION_LIFETIME; Should remain there as it might be needed when the database is not yet available CHECK THIS
$_configuration['multiple_access_urls'] = true; Should remain there (too complex for the interface - requires manual vhost config most of the time)
$_configuration['software_name'] = 'Chamilo'; This could move to the interface, but we're not so happy about people changing the name of the platform
$_configuration['software_url'] = 'http://www.chamilo.org/'; Same as above
$_configuration['deny_delete_users'] = false; This should remain for security reasons
$_configuration['system_version'] = '{NEW_VERSION}'; This could probably move to the database CHECK IT
$_configuration['system_stable'] = NEW_VERSION_STABLE; This could probably move to the database CHECK IT
$_configuration['login_as_forbidden_globally'] = true; This should remain for security reasons
$_configuration['session_stored_in_db_as_backup'] = true; Should remain as changing it would quick the admin out and might make your system difficult to recover (if not working properly)
$_configuration['memcache_server'] = array(
0 => array(
'host' => 'chamilo8',
'port' => '11211',
),
1 => array(
'host' => 'chamilo9',
'port' => '11211',
),
);
Should remain - too complex
$_configuration['session_stored_after_n_times'] = 10; Should remain, too complex to explain
$_configuration['prevent_multiple_simultaneous_login'] = false; Should move to DB
$_configuration['theme_fallback'] = 'chamilo'; Must remain here as it serves as backup in case the DB is not available
$_configuration['default_template'] = 'default'; Must remain here as it also serves when the DB is not available
$_configuration['hide_user_field_from_list'] = array('username'); Should remain here (array)
$_configuration['aspell_bin'] = '/usr/bin/hunspell'; Should remain here for security reasons (paht traversal)
$_configuration['aspell_opts'] = '-a -d en_GB -H -i utf-8'; Should remain here because the previous setting does
$_configuration['aspell_temp_dir'] = './'; Should remain here because the previous setting does
$_configuration['name_order_conventions'] = array(
'french' => array('format' => 'title last_name first_name', 'sort_by' => 'last_name')
);
Should remain here (array)
$_configuration['course_log_hide_columns'] = array(1, 9); Should remain here (array)
$_configuration['unoconv.binaries'] = '/usr/bin/unoconv'; Should remain here for security reasons (paht traversal)
$_configuration['proxy_settings'] = array(
'http' => array(
'proxy' => 'tcp://example.com:8080',
'request_fulluri'=>true
)
);
Should remain here (array)
$_configuration['gradebook_detailed_admin_view'] = false; Should be moved to the database
$_configuration['cron_notification_mails'] = array('', ''); Should remain here (array and linked to sysadmin stuff)
$_configuration['course_catalog_published'] = 'false'; Should be moved to the database
$_configuration['allow_fields_inscription'] = [
'official_code',
'phone',
'status',
'language',
'extra_fields'
];
Should remain here (array)
$_configuration['user_reset_password'] = false; Should be moved to the database
$_configuration['user_reset_password_token_limit'] = 3600; Should be moved to the database
$_configuration['my_courses_view_by_session'] = false; Should be moved to the database

Associated revisions

Revision 620e7963 (diff)
Added by Yannick Warnier about 4 years ago

Remove db_admin_path setting, now replaced by db_manager_enabled - refs #7794

Revision 628e0ccd (diff)
Added by Yannick Warnier about 4 years ago

Move prevent_multiple_simultaneous_login setting to database - refs #7794

Revision 95211d49 (diff)
Added by Yannick Warnier about 4 years ago

Move prevent_multiple_simultaneous_login setting to database (missing version update in previous commit) - refs #7794

Revision 9ed26091 (diff)
Added by Yannick Warnier about 4 years ago

Move gradebook_detailed_admin_view setting to database - refs #7794

Revision ea94df06 (diff)
Added by Yannick Warnier about 4 years ago

Move course_catalog_published setting to database - refs #7794

Revision a740f7ff (diff)
Added by Yannick Warnier about 4 years ago

Move user_reset_password and user_reset_password_token_limit settings to database - refs #7794

Revision 98d0cf78 (diff)
Added by Yannick Warnier about 4 years ago

Move my_courses_view_by_session setting to database - refs #7794

Revision 605ab41d (diff)
Added by Yannick Warnier about 4 years ago

Fix field type in previous commits - refs #7794

History

#1

Updated by Yannick Warnier about 4 years ago

  • Description updated (diff)
#2

Updated by Yannick Warnier about 4 years ago

  • Description updated (diff)
#3

Updated by Yannick Warnier about 4 years ago

  • Description updated (diff)
  • % Done changed from 0 to 20

Done for two of these. Working on the last ones.

#4

Updated by Yannick Warnier about 4 years ago

  • Description updated (diff)
  • % Done changed from 20 to 80
#5

Updated by Yannick Warnier about 4 years ago

  • Status changed from Assigned to Feature implemented
  • % Done changed from 80 to 100

Also available in: Atom PDF