Commit Graph

263 Commits (b58373e91568dc5bee2f2bc03bf2afddf0241fed)

Author SHA1 Message Date
Ivan Tcholakov 3659ea7fd4 Issue #306 - Elimination of the function api_set_string_library_default_language(). Various logic improvements. 16 years ago
Ivan Tcholakov 89be813958 Task #306 - The myltibyte string library: File reorganization, adding a file-based database that will help in letter_case operations on UTF-8 strings. Upgrading the functions api_strtolower() and api_strtoupper() in order they not to depend on the mbstring extension for dealing with UTF-8 strings. 16 years ago
Yannick Warnier 31286ee002 Ensure the include path is built from the current path (avoid inclusion mixups when executing libraries from testing scripts) 17 years ago
Julio Montoya fcf48a9add Some notices avoided 17 years ago
Yannick Warnier c13f33c454 [svn r22576] Make api_get_path(GARBAGE_PATH) return the same as SYS_ARCHIVE_PATH (/main/garbage/ directory is deprecated since 1.8.6) 17 years ago
Yannick Warnier 7c577f0d3e [svn r22566] Remove double constant definition generating a warning-level message 17 years ago
Isaac Flores e4138e2a7b [svn r22381] logic changes-improvements in "terms & conditions" - (FS#4320) 17 years ago
Julio Montoya 17407dbe55 [svn r22362] Adding Database::escape_string function see FS#4389 17 years ago
Cristian Fasanando bc82d8d0cd [svn r22316] Added register event system for configuration setting variable changed - partial FS#842 17 years ago
Julio Montoya 24d9943bbd [svn r22290] Minor - adding documentation 17 years ago
Julio Montoya a42bd70875 [svn r22265] Adding Term and conditions base files (partial) see FS#4320 17 years ago
Yannick Warnier 4951bf87c8 [svn r22217] Allow direct login form when requesting auth/profile.php (improved integration with Drupal without affecting other code) 17 years ago
Cristian Fasanando 258acfea64 [svn r22205] Added tracking/logging of admin activity see FS#842 17 years ago
Ivan Tcholakov b6c324f368 [svn r22096] FS#2867 - The "Surveys" tool: Eliminating the global variable $fck_attribute. 17 years ago
John Hinojosa 2a6e4ce087 [svn r22072] change target="_top" with target="_self" FS#3759 17 years ago
Ivan Tcholakov f223a520a2 [svn r21787] FS#2867 - Removing previously (SVN#21786) introduced constants, because they have been already defined. Addind empty index.html to some directories. Introducing a new (tiny at the moment) static class Media in the system's library . It is intended to manage the multi-media features. 17 years ago
Ivan Tcholakov 3891ed4e8c [svn r21786] FS#2867 - Defining in the main API common purpose constants for spacifying paths. At the moment they will be needed for making media features of the online editor customizable. Cleaning/fixing whitespace in main_api.lib.php. 17 years ago
Ivan Tcholakov c61e7e67d7 [svn r21622] FS#2867 - Introducing two new path types for the function api_get_path() - WEB_SERVER_ROOT_PATH and SYS_SERVER_ROOT_PATH in the main API. Some corrections about the same function have been done. Using a call api_get_path(SYS_SERVER_ROOT_PATH) that is neccessary for the FCKEditor, simple file manager (within the function GetRootPath()) and advanced file manager. 17 years ago
Ivan Tcholakov 12aa14a32a [svn r21547] FS#306 - Moving the checks for installed optional php-extensions to the main API. 17 years ago
Ivan Tcholakov 911255f364 [svn r21471] FS#306 - Renaming the function api_initialize_internal_encoding() to api_set_default_encoding(). Other minor changes in comments. 17 years ago
Ivan Tcholakov 5cf040b518 [svn r21467] FS#306 - Reworking the functions api_get_language_isocode() and Database::get_language_isocode() for avoiding code duplication. Caching of the returned results has been added to avoid running repetitive sql-queries. 17 years ago
Ivan Tcholakov 83bef50300 [svn r21415] FS#306 - Removing previously introduced functions api_is_apache and api_is_iis(), they wont be needed. Introducing new functions in the multi-byte string library: api_initialize_internal_encoding($encoding), api_is_latin1_compatible(), api_get_latin1_compatible_languages(). Minor corrections for api_in_array_nocase() and api_refine_language_id(). Corrections in some comments. 17 years ago
Ivan Tcholakov 348c4b1928 [svn r21413] FS#306 - The installation script has logic for guessing/choosing the encoding of its pages, which is Apache-specific. For improvement/upgrading this logic and for other web-server specific needs, two functions have been added in the main API for web-server detection - api_is_apache() and api_is_iis(). The detection condition have been taken from WordPress 2.8, http://wordpress.org, GNU/GPL 2. 17 years ago
Ivan Tcholakov cb7dfe777b [svn r21406] FS#306 - Modification of the function replace_dangerous_char(). For Latin 1 platforms (ISO-8859-15, ISO-8859-1, WINDOWS-1252, ...) its behaviour has been preserved. For other platforms (including UTF-8) safe ASCII file names are generated through using transliteration. 17 years ago
Ivan Tcholakov 2b4e07706d [svn r21389] FS#306 - Adding a boolen parameter $purified to the function api_get_interface_language(). For example, when $purified is true, the function will return 'french' onstead of 'french_unicode'. In certain cases we need such purified or refined language identificators. 17 years ago
Ivan Tcholakov ba204fa167 [svn r21360] FS#306 - Cancellation of the new file system API, cleaning the file system library. There is no rational reason to go this way, too much work is needed. 17 years ago
Ivan Tcholakov 84b00a8c7c [svn r21254] FS#306 - Adding the functions api_is_dir() and api_is_system_path() within the new low-level API to the file system. A minor fix for the function api_url_to_local_path() within the main API. 17 years ago
Ivan Tcholakov 1726ed6060 [svn r21249] FS#306 - Introducing a new library that will re-implement some PHP file system related functions. These replacement functions will deal with the diffenrent encodings that are used by the Dokeos platform and the server's file system. 17 years ago
Ricardo Rodriguez 2edd380a92 [svn r21216] Added - return false; }else{ return true; in function api_block_anonymous_users() 17 years ago
Yannick Warnier 1d5ea061c4 [svn r21142] Do not show SQL error message when in production (part of security improvements FS#4261) 17 years ago
Isaac Flores e7503e6c08 [svn r21123] logic changes - added function api_get_tools_list - (partial FS#4261) 17 years ago
Isaac Flores fa945c9dfc [svn r21110] logic changes - improvements in security in exercice tool - (partial FS#4261) 17 years ago
Ivan Tcholakov 2f13dbf0a9 [svn r21055] FS#306 - A fix: Moving code that includes the multi-byte string library after the section that declares constants. For PHP 5.2.9-2 (tested on Windows Vista, IIS7, FastCGI) notices were produced. The contant LIBRARY_PATH has to be declared first. 17 years ago
Cristian Fasanando e951ede4d1 [svn r20845] Fixed info icon "i" not aligned - partial FS#4232 17 years ago
Isaac Flores f9d6209b23 [svn r20790] logic changes - improvements in remove_XSS - (partial FS#3909) 17 years ago
Ivan Tcholakov f5a5bdb159 [svn r20557] FS#306 - Preparing for testing the social tool about encoding issues. First, rewriting the function api_is_xml_http_request() in a safe way. See http://www.electrictoolbox.com/how-to-tell-ajax-request-php/ . 17 years ago
Ivan Tcholakov 6e26a77243 [svn r20539] FS#306 - Upgrading the function get_lang() to return translated strings using the system encoding, nevertheless in what version (unicode or non-unicode) the language files are. Also, html-entities are converted into normal characters. 17 years ago
Yannick Warnier 8132564af2 [svn r20518] Added WEB_ARCHIVE_PATH to the list of supported paths, in an effort to remove the garbage directory from the list of Dokeos prerequisites 17 years ago
Ivan Tcholakov 4276737686 [svn r20457] FS#306 - The common libraries: Improvements for better encoding support, part 2. 17 years ago
Juan Carlos Raña 98e7b7461d [svn r20433] fix logic error 17 years ago
Ivan Tcholakov 6b6db9746a [svn r20419] FS#306 - Introducing a new library for dealing with multibyte strings. The library has been implemeted as an extension of the main API. 17 years ago
Yannick Warnier 223b8ea877 [svn r20398] Apply int cast to avoid data type warning (related to private task FS#3731) 17 years ago
Cristian Fasanando bbd87b01d9 [svn r20350] Usability : Invert div_hide and div_show arrow icons + Learner view / Teacher view - see FS#4157 (by jhp1411) 17 years ago
Ivan Tcholakov 8c40802548 [svn r20265] FS#4087 - Renaming a function. 17 years ago
Ivan Tcholakov 504bdb594a [svn r20264] FS#4087 - Introducing two new functions aimed at resizing images. 17 years ago
Yannick Warnier 52668c03f3 [svn r20205] Added optional XSS filtering to api_add_url_param() 17 years ago
Ivan Tcholakov 443b1837f2 [svn r20171] FS#3912 - Introducing within the main API the function api_url_to_local_path($url) for dealing with problems caused by getimagesize(). See http://www.dokeos.com/forum/viewtopic.php?p=45706#45706 17 years ago
Ivan Tcholakov bd14ed4bf8 [svn r20107] FS#4046 (closed) - Making a line of code within the get 17 years ago
Ivan Tcholakov 5024b2f8e7 [svn r19902] FS#4046 - Reworking the function get_lang(...), so it could switch into languages randomly without failures. Adding caching functionality to the same function for increasing its speed. 17 years ago
Ivan Tcholakov b892007170 [svn r19862] FS#4072 - Fixing a bug that prevents updating dates of group documents after edition. The fix has been proposed in the Dokeos forums by Ludwig Theunis. 17 years ago