Commit Graph

65 Commits (0de45076e5da45067fc31e4d446472f45588150e)

Author SHA1 Message Date
Yannick Warnier 1769336c79 [svn r13358] Improved is_anonymous check 18 years ago
Yannick Warnier 190de0599d [svn r13357] Blocks anonymous users in api_block_anonymous() following updates in anonymous user handling 18 years ago
Christophe Goossens a2221d7316 [svn r13353] Updated session expired message to use get_lang (FS#1946) 18 years ago
Yannick Warnier 9a3e2114a3 [svn r13345] Fixed language files loading process as proposed by Joost in FS#1925 18 years ago
Yannick Warnier 0907ac73ac [svn r13261] Using include_once() instead of include() for language files in get_lang(). Might *considerably* improve performances! 18 years ago
Yannick Warnier 39b891b5ea [svn r13147] Always return api_get_path(WEB_PATH) and api_get_path(SYS_PATH) with a trailing slash. 18 years ago
Yannick Warnier 4f11c7f1fc [svn r13144] Ensured _user is in global after setting anonymous user in api_set_anonymous(). Fixes a bug whereby a learning path is not visible to an anonymous user when the course is open to the world. 18 years ago
Julian Prud'homme f6b4ecb9a1 [svn r13125] Fix a bug with permissions in blogs 18 years ago
Yannick Warnier e098560d80 [svn r13116] Added auth_source to the result of api_get_user_info() 18 years ago
Yannick Warnier 9b96fc43f2 [svn r13104] Fixed typo in SQL query 18 years ago
Yannick Warnier 6bded67d4a [svn r13103] Added api_get_item_visibility() to fetch an item_property row's visibility directly (just pass course, tool and id). 18 years ago
Yannick Warnier 8d758d26f8 [svn r13099] Improved api_get_course_info() to enable getting info for a specific course_code rather than only the current course 18 years ago
Eric Marguin 9214f00d43 [svn r13082] add api_chmod_R function and chmod imported scorm directory (recursively) 18 years ago
Yannick Warnier 77ad6be538 [svn r12834] Added constant for hotpotatoes files directory 19 years ago
Yannick Warnier 24e1aaa396 [svn r12747] Added TOOL_HOTPOTATOES - fix submitted by André Boivin - see http://www.dokeos.com/forum/viewtopic.php?t=11104 19 years ago
Yannick Warnier cbe71b4dea [svn r12644] Added check for config setting before adding [= =] for DLTT markup 19 years ago
Eric Marguin 33c954c5ec [svn r12640] remove session_set_cookie_params (too many problems are due to it) 19 years ago
Yannick Warnier b1a4ab9c13 [svn r12620] Minor change - added examples for all the api_get_path() cases - This will presumably save a lot of seconds in the future. 19 years ago
Eric Marguin ecb85d4a1f [svn r12614] add a function to copy recursively a folder 19 years ago
Yannick Warnier 46e5f7aae7 [svn r12603] Fine-tuned anonymous-functions to avoid database checks when possible (heavy resource usage) 19 years ago
Yannick Warnier a02b6f4cd8 [svn r12590] Added functions to deal with the "anonymous user" (a user who's DB status is 6), that will help deal with tools that record progress and are open to the public. 19 years ago
Yannick Warnier d2bebd9e45 [svn r12522] Updated api_display_tool_view_option() to allow for studentView switch even in framed mode (added target="_top") 19 years ago
Yannick Warnier 684209685d [svn r12520] Fixed bug preventing natural behaviour of studentView (checking for &studentView but not &studentView - now always using &studentView everywhere) 19 years ago
Yannick Warnier bb5cb81fe1 [svn r12489] Added optional param to api_protect_course_script() to print headers when calling api_not_allowed(). Defaults to false so that current scripts remain the same. 19 years ago
Yannick Warnier 575a6c0aa4 [svn r12476] Introduced config-file settable session cookie lifetime. Defaults to 100 hours. Can be changed in config file (not in DB because used before DB connection). 19 years ago
Julian Prud'homme 1f5d1270b4 [svn r12272] 6th step in removing all $_SERVER['PHP_SELF'] 19 years ago
Julian Prud'homme 97778d4ca4 [svn r12263] First step ni removing all $_SERVER['PHP_SELF'] 19 years ago
Yannick Warnier 8c8374b529 [svn r12216] Improved checks before HTTP redirection to user_portal (in api_not_allowed()) 19 years ago
Yannick Warnier 2299eee5c4 [svn r12215] Added param to api_not_allowed(). Default is as before (doesn't print headers). If param set to true, headers are considered already sent (redirect is impossible) 19 years ago
Yannick Warnier 4b86251d49 [svn r12213] api_not_allowed() now deals itself with the header (this means it has to be called before any output in other tools) 19 years ago
Patrick Cool daa02fd213 [svn r11874] consistency improvements 19 years ago
Patrick Cool fcb1a172f3 [svn r11794] re-enable studentview but default = off 19 years ago
Yannick Warnier 66f870398e [svn r11543] Added api_get_self() which returns an escaped version of $_SERVER['PHP_SELF'] which itself ISN'T SAFE (open to XSS)! 19 years ago
Yannick Warnier 926b31681a [svn r11513] Added very important comment regarding root_web in api_get_path(WEB_PATH) 19 years ago
Patrick Cool bec6f0cc0e [svn r11402] function needed for new survey tool 19 years ago
Eric Marguin fa0a0f5a54 [svn r11303] prevent from octal interpretation of minutes in api_time_to_hms() 19 years ago
Eric Marguin fbc0f275c4 [svn r11298] 19 years ago
Eric Marguin f7b9ecb9bd [svn r11285] add the function api_time_to_hms 19 years ago
Yannick Warnier 734b185fe4 [svn r11157] Added non-filtering param to the Display::display_error_message() calls to avoid link translation 19 years ago
Eric Marguin 89036a4544 [svn r11010] api_is_allowed_to edit -> i put again || api_is_platform_admin since the problem is confirmed. Yannick will send a mail to explain it. 19 years ago
Eric Marguin 56ca83bc10 [svn r10930] rename the conf folder to conference (to avoid confusions) 19 years ago
Bart Mollet 929b561456 [svn r10903] Return correct path 19 years ago
Bart Mollet 0ec735fb44 [svn r10894] Return correct path 19 years ago
Bart Mollet 80657ed0b9 [svn r10859] Fixing some XSS problems 19 years ago
Yannick Warnier 7fb2be376a [svn r10825] Added TOOL_SURVEY (fixing problem with call to tool survey in add_course lib) 19 years ago
Eric Marguin d0b686fc7d [svn r10802] get back to the old api_is_allowed to edit 19 years ago
Eric Marguin d7eea36e96 [svn r10788] change api_is_allowed_to_edit() to include the platform admin 19 years ago
Bart Mollet 12643ce446 [svn r10781] Only show div when there are plugins installed for this location 19 years ago
Bart Mollet c8f21737f3 [svn r10669] adding function to get the current interface language 19 years ago
Julian Prud'homme 26e39572fd [svn r10626] update function api_item_property_update : 19 years ago