Commit Graph

246 Commits (25f53b5d23af87abd7bb7e1fa955edcc05e1a13c)

Author SHA1 Message Date
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
Yannick Warnier ef36ec5b74 [svn r19857] Minor typo fix 17 years ago
Arthur Portugal 813f6f51ed [svn r19657] Added a new id in default.css to change style error message, see FS#3909 and FS#3917 17 years ago
Cristian Fasanando d7f26d6fd8 [svn r19516] When you get an error message due to something not allowed into learning path display, don't show header and footer - partial FS#3909 17 years ago
Ivan Tcholakov bc5a631a90 [svn r19488] FS#3968 - Introducing a function api_is_windows_os() and a constant IS_WINDOWS_OS for unified Windows detection. 17 years ago
Cristian Fasanando 0c6fd3802d [svn r19381] Logic changes - Added possibility to remove extra fields about a course or a session when you remove it into user list - see FS#3735 17 years ago
Cristian Fasanando 6d5a347a04 [svn r19370] Logic changes - Improved registration web service for dokeos - see FS#3735 17 years ago
Isaac Flores 9895e50e8d [svn r19197] logic changes - allow acces to forum and blog - (partial FS#3902) 17 years ago
Yannick Warnier 54a487ba63 [svn r19177] Added usermanager::is_admin(user_id) 17 years ago
Yannick Warnier b776eb864f [svn r19176] Added api_get_user_info_from_username() 17 years ago
Yannick Warnier f9d0ca58d5 [svn r19174] Added global api_is_valid_secret_key() function 17 years ago
Julio Montoya 9286d1c6ea [svn r18942] Implementing sha1 as a possibility to encrypt user passwords see SVN#3798 17 years ago
Noël Dieschburg fb3f0932c0 [svn r18756] Corrects the get_status_from_code function 17 years ago
Noël Dieschburg 5bfadaf57b [svn r18741] Corrects the get_status_from_code function 17 years ago
Noël Dieschburg de055e229e [svn r18740] Adds get_status_from_code($status_code) in the api. 17 years ago
Ivan Tcholakov f5a2615a3b [svn r18559] FS#3594: Adding missing language codes to the 'language' table. Adding comments to the functions api_get_language_isocode() and Database::get_language_isocode() mentioning the used language-code standards. 17 years ago
Cristian Fasanando f6f9ceec86 [svn r18364] Minor - Fixed warning and notice into blogs management - see FS#3510 17 years ago
Isaac Flores 52f1378a35 [svn r18273] minor - logic changes - allow show data correctly with ajax - (partial FS#3383) 17 years ago