Commit Graph

238 Commits (ada9c841243bb32d56386b38a75d89dbe3b45aae)

Author SHA1 Message Date
Ivan Tcholakov a6779b91f9 Feature #5397 - Replacing api_store_result() with Database::store_result(). 16 years ago
Ivan Tcholakov 9b1f3ed934 Feature #5397 - Replacing again the deprecated function api_sql_query() with Database::query(). 16 years ago
Cristian Fasanando 22a61cf7c1 Implemented new functionalities for training sessions - partial DT #5377 16 years ago
Ivan Tcholakov fa8383b414 Feature #306 - Upgrading the function api_send_mail(), see http://www.dokeos.com/forum/viewtopic.php?t=15557 16 years ago
Yannick Warnier 47022680ce Accept gzopen64() too as a test of the zlib extension load 16 years ago
Ivan Tcholakov 9b58c8aada Feature #306 - Moving the function api_get_language_isocode() in the internationalization library. 16 years ago
Ivan Tcholakov 22084ecbdc Feature #306 - Deprecation of the function api_sql_query(), part 2. Moving the body of this function in Database class. Declaring the function as deprecated. Next, trivial changes will follow in large scale. 16 years ago
Ivan Tcholakov 2363a31132 Feature #306 - Deprecation of the function api_sql_query(), part 1. First, fixing a hidden bug, I think so. During the global initialization, when a database error occurs before Security (+HTMLPurifier) class has been loaded, then api_sql_query() fails to show its message. A fatal error occures, like "Class 'HTMLPurifier' not found in C:\Users\.......\dokeos\main\inc\lib\security.lib.php on line 250". Fixed. 16 years ago
Ivan Tcholakov 302eb4dc0e Feature #306 - Replacing everywhere the function api_store_result() with Database::store_result(). 16 years ago
Ivan Tcholakov 3df4b63151 Feature #306 - The function api_store_result() is deprecated, Database::store_result() replaces it. 16 years ago
Ivan Tcholakov ac78f29f83 Feature #306 - Adding some notes about the function api_get_path(). 16 years ago
Ivan Tcholakov 08ec99208d Feature #306 - A rework of the function api_get_path(), essential moments are commented. The obsolete setting $GLOBALS['clarolineRepositorySys'] is not used by api_get_path() anymore. Support for the installation process has been added. Functionality has been upgraded with a mechanism for quering about specific "registered" resource files (scripts, players). Another upgrade is adding conversion between types of paths, i.e. between web absolute (WEB), system absolute (SYS), web semi-absolute (REL). Conversion is guaranteed for paths inside Dokeos. A formal test for api_get_path() has been developed. You may see it (there are lots of examples inside) by using URL similar to this one: http://localhost/dokeos/tests/main_api.lib.test_standalone.php . And a discovered mistake for mimetex configuration autodetectoin (a missing last slash) has been fixed (it seems to me there is another minor one - wrong processing URLs with port number, it will be fixed later). 16 years ago
Ivan Tcholakov e197cb109e Feature #306 - Replacing the ugly construct (my workaround) @getimagesize(api_url_to_local_path($image_path)) with a better one: api_getimagesize($image_path). 16 years ago
Ivan Tcholakov 5ed7f167b5 Feature #306 - Corrections an optimiztion for speed for the functions get_lang() and api_get_path(). 16 years ago
Ivan Tcholakov d9e28e4439 Feature #306 - Moving the function rmdirr() into the main API file. 16 years ago
Ivan Tcholakov 8ca6741321 Feature #306 - Drafting future behaviour upgrade of the function api_get_path(). 16 years ago
Ivan Tcholakov b98e8c295e Feature #306 - The main API: Deprecating the function api_url_to_local_path(), moving its functionality to api_get_path(). Restructuring some code. Some author's names have been verified and written correctly in the UTF-8 encoded source file. 16 years ago
Ivan Tcholakov 1a1e783ed3 Feature #306 - The main API: Cleaning code and some minor optimizations, pass 3. Two string functions have been upgraded, some deprecated functions have been placed at the bottom of the file in a special section. 16 years ago
Ivan Tcholakov 834f2aad5e Feature #306 - The main API: Cleaning code, pass 2. 16 years ago
Ivan Tcholakov 21be703720 Feature #306 - The main API: Cleaning code, some minor optimizations, pass 1. 16 years ago
Ivan Tcholakov 91f2b784f6 Feature #306 - It is all about internationalization: Moving code form the multibyte string library (which is removed as of now) to the internationalization library. 16 years ago
Ivan Tcholakov 6df1c39ca2 Feature #306 - Replacing hard-coded values for username length in validation rules in some forms. Including "." (dot) and "_" (underscore) in the specification for usernames as valid characters. 16 years ago
Ivan Tcholakov de8687bf06 Feature #306 - Moving the constants for username specification from UserManager to the main API. They have to be accessible not only by the UserManager class. 16 years ago
Ivan Tcholakov 2f7c95b3e4 Feature #306 - Platform administration tool: Cleaning code (preparing for modifications) of the script for CSV-subscriptions to courses. Trimming whitespace from the main API file. 16 years ago
Ivan Tcholakov 0ac2e538a5 Issue #306 - The multibute string library: Adding the function api_strripos() wich is found as needed for Dokeos LMS. Adding in the main API two constants for PHP5 subversion detection. 16 years ago
Isaac Flores 01e7e9f3c7 Improvements in the visibility of the homepage tools - (partial DT#5234) 16 years ago
Ivan Tcholakov 0f78b8955b Feature #3287 - Replacement call of the deprecated function get_setting() with api_get_setting(). The function get_setting() will be deleted in the main API in Dokeos 1.8.7, the this task #3287 will be closed. Nothing is to be tested at the moment. 16 years ago
Ivan Tcholakov 2392071769 Issue #306 - Moving the functions get_lang() and api_get_interface_language() to the internationalization library. 16 years ago
Ivan Tcholakov 0cb59eb5a7 Issue #306 - Adding a new library about internationalization issues. Currently it contains routines for date/time formatting. 16 years ago
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) 16 years ago
Julio Montoya fcf48a9add Some notices avoided 16 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) 16 years ago
Yannick Warnier 7c577f0d3e [svn r22566] Remove double constant definition generating a warning-level message 16 years ago
Isaac Flores e4138e2a7b [svn r22381] logic changes-improvements in "terms & conditions" - (FS#4320) 16 years ago
Julio Montoya 17407dbe55 [svn r22362] Adding Database::escape_string function see FS#4389 16 years ago
Cristian Fasanando bc82d8d0cd [svn r22316] Added register event system for configuration setting variable changed - partial FS#842 16 years ago
Julio Montoya 24d9943bbd [svn r22290] Minor - adding documentation 16 years ago
Julio Montoya a42bd70875 [svn r22265] Adding Term and conditions base files (partial) see FS#4320 16 years ago
Yannick Warnier 4951bf87c8 [svn r22217] Allow direct login form when requesting auth/profile.php (improved integration with Drupal without affecting other code) 16 years ago
Cristian Fasanando 258acfea64 [svn r22205] Added tracking/logging of admin activity see FS#842 16 years ago
Ivan Tcholakov b6c324f368 [svn r22096] FS#2867 - The "Surveys" tool: Eliminating the global variable $fck_attribute. 16 years ago
John Hinojosa 2a6e4ce087 [svn r22072] change target="_top" with target="_self" FS#3759 16 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. 16 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. 16 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. 16 years ago
Ivan Tcholakov 12aa14a32a [svn r21547] FS#306 - Moving the checks for installed optional php-extensions to the main API. 16 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. 16 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. 16 years ago