193 Commits

Author SHA1 Message Date
Petr Škoda
d79d5ac276 MDL-31501 rework user session architecture
List of changes:
 * New OOP API using PHP namespace \core\session\.
 * All handlers now update the sessions table consistently.
 * Experimental DB session support in Oracle.
 * Full support for session file handler (filesystem locking required).
 * New option for alternative session directory.
 * Official memcached session handler support.
 * Workaround for memcached version with non-functional gc.
 * Improved security - forced session id regeneration.
 * Improved compatibility with recent PHP releases.
 * Fixed borked CSS during install in debug mode.
 * Switched to file based sessions in new installs.
 * DB session setting disappears if DB does not support sessions.
 * DB session setting disappears if session handler specified in config.php.
 * Fast purging of sessions used in request only.
 * No legacy distinction -  file, database and memcached support the same functionality.
 * Session handler name included in performance info.
 * Fixed user_loggedin and user_loggedout event triggering.
 * Other minor bugfixing and improvements.
 * Fixed database session segfault if MUC disposed before $DB.

Limitations:
 * Session access time is now updated right after session start.
 * Support for $CFG->sessionlockloggedinonly was removed.
 * First request does not update userid in sessions table.
 * The timeouts may break badly if server hosting forces PHP.ini session settings.
 * The session GC is a lot slower, we do not rely on external session timeouts.
 * There cannot be any hooks triggered at the session write time.
 * File and memcached handlers do not support session lock acquire timeouts.
 * Some low level PHP session functions can not be used directly in Moodle code.
2013-09-21 13:11:56 +02:00
Dan Poltawski
1bd756b337 MDL-39967 cron: eliminate browser sniffing.
This was an old hack to workaround a bug in IE6, no longer necessary
2013-05-31 15:09:22 +08:00
Petr Skoda
990e4b0ee9 MDL-32094 do not show html markup in cron errors 2012-03-18 18:43:56 +01:00
Dan Poltawski
6e513b6fde MDL-23967 admin/cron.php - warn about use on CLI
Admins now need to use the explicit CLI script
2011-08-06 23:38:49 +01:00
Petr Skoda
cbad562eee MDL-25314 improved prevention of output buffering + detection of misconfigured servers
Scripts that do not want buffered output just define NO_OUTPUT_BUFFERING before including config.php.
The fileserving code now checks if the headers are already sent which detects misconfigured servers.
2010-11-19 03:40:43 +00:00
Petr Skoda
ace65a10f7 MDL-24368 disable compression on admin index and cron pages 2010-09-28 08:44:42 +00:00
Petr Skoda
9384419a4f MDL-24368 prevent infinite loops when caching can not be disabled 2010-09-27 15:41:46 +00:00
Petr Skoda
e691a373b5 MDL-24276 improved coding style 2010-09-19 18:49:31 +00:00
Petr Skoda
28bd3d9ad3 MDL-23824 CLI script improvements - just define('CLI_SCRIPT', true) before require config.php; all incorrect uses of cli and web scripts are detected; refactored cron script - now in two separate sctipts; fix cli inline docs and help - we have to sudo to apache account; standardised cli script locations in auth plugins 2010-08-17 12:33:30 +00:00
jerome mouneyrac
2ed993a645 registration MDL-21810 cron registration update 2010-08-07 09:49:57 +00:00
Petr Skoda
df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Jamie Pratt
548da7ee96 MDL-21579 "Implement session token for embedded application" Oops. Error in sql fixed now. 2010-05-03 06:36:52 +00:00
Eloy Lafuente
c717a0d3bc MDL-21432, MDL-22184 scheduled backup - disabled until implemented 2010-05-02 16:54:58 +00:00
Andrew Davis
fcce139aa3 RSS MDL-22204 committing new RSS code. Uses a token to ID the user. RSS feeds also generated/updated as needed rather than by cron.php 2010-05-02 11:43:57 +00:00
Martin Dougiamas
2be4d090c0 course completion MDL-2631 Course completion feature - Thanks to Aaron Barnes and Catalyst IT for this significant contribution. It is now officially possible to finish a course!
Even though I've tweaked this and done some polishing, there is still plenty to do on it now in HEAD, mostly to do with UI, usability and strings, so we'll keep working on it.  Aaron already has a number of improvements to add to it.
2010-04-30 03:06:22 +00:00
Jamie Pratt
2d0acbd5f9 MDL-21579 "Implement session token for embedded application" implemented a second type of session token linked to a session for use in applications embedded in web pages. 2010-04-28 13:16:58 +00:00
Dan Marsden
30b5ee6b06 Plagiarism Lib MDL-13680 - reverting commit for now. 2010-04-28 02:47:25 +00:00
Dan Marsden
cc3b3fae5d Plagiarism Lib MDL-13680 - add Plagiarism lib support for modules. - initially including the assignment module and Turnitin service - Backup deliberately excluded at this stage and I expect some of the file handling to change slightly before 2.0 release. 2010-04-27 21:52:07 +00:00
Petr Skoda
e13914acae just a little note for other devs looking for cli info 2010-04-19 21:24:49 +00:00
Petr Skoda
1f96e907ea MDL-22084 making a clear distinction between list of our translations and list of all languages defined in ISO 639-2 2010-04-14 09:45:49 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
Petr Skoda
17e5633cab MDL-21876 fixed incorrect uses of bound parameters - patch by Ashley Holman, thanks! 2010-03-20 11:49:48 +00:00
Martin Dougiamas
1fc216ff78 external blogs MDL-19683 Fixed a typo that meant cron synch was not working 2009-12-17 03:47:00 +00:00
Tim Hunt
384531d5e8 gradebook cron: MDL-20783 - was broken.
Committing this trivial fix, even though it is testing day. :-p
2009-11-10 09:51:29 +00:00
Petr Skoda
20207b827a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 10:57:00 +00:00
Petr Skoda
f578af59fc MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 10:57:00 +00:00
Nicolas Connault
ec22ccd53a MDL-20523 Script for upgrading sites that use the old bloglevel settings. 2009-10-30 07:24:55 +00:00
nicolasconnault
cae837087a MDL-19676 Blog improvements 2009-09-04 00:36:43 +00:00
jonathanharker
324265457c MDL-20114 admin/cron.php: Fix SQL bug when emailing new passwords.
Author: Jonathan Harker <jonathan@catalyst.net.nz>
2009-08-18 00:07:00 +00:00
skodak
17da2e6f28 MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
skodak
1aa01caf90 MDL-16231 reimplemented deleting of files + cron cleanup 2009-06-03 08:10:21 +00:00
tjhunt
93d4a373f9 blocklib: MDL-19010 always include blocklib in setup.php, stip includes elsewhere 2009-05-06 09:13:16 +00:00
skodak
1619d1098f MDL-18676 auth plugins should run before enrol because it may create new users - proposed by Jason Hardin 2009-03-26 19:56:11 +00:00
skodak
e8656befac MDL-17942 more session refactoring 2009-01-18 18:00:44 +00:00
skodak
dd9e22f871 MDL-17942 implemented gc and timeouts for db sessions 2009-01-18 11:19:40 +00:00
skodak
56949c17de MDL-14992 refactored use of session_write_close() 2009-01-17 15:25:08 +00:00
skodak
11e7b506ce MDL-17754, MDL-11061, MDL-9276, MDL-17777, MDL-17787 - various url handling improvemetns; rewritten $FULLME and added $ME, $SCRIPT and $FULLSCRIPT; improved slashargument handling especially for IIS; removed legacy slasharguments functions obsoleted since 1.6; some other refactoring; reverse procy support, ssl appliance support 2009-01-05 21:37:20 +00:00
skodak
a91b910e4f MDL-17776 added new define CLI_SCRIPT that identifies all CLI scripts + cron (cli scripts do not have session and do not like HTML in output and are executed from command line, cron is an exception) 2009-01-03 14:28:02 +00:00
skodak
e8b7114d5e MDL-17774 refactored USER switching in cron scripts - now standardised in cron_setup_user() 2009-01-03 13:16:59 +00:00
skodak
1b813f5c2a MDL-17772 fixed guest access; MDL-17754 $USER object initialisation cleanup 2009-01-02 21:05:16 +00:00
skodak
7f51af40c5 MDL-17746 fixed debugdisplay typo in cron - patch by Tomasz Muras 2008-12-29 19:57:47 +00:00
danmarsden
ac7658aa33 MDL-17071 fix misleading text - it's removing enrolments not assignments 2008-11-05 07:13:26 +00:00
stronk7
5e7206a8f6 Adding new setting "statsruntimedays" to configure the number of days to
calculate as max per stats cron invocation. Part of MDL-16709 ; merged from 19_STABLE
2008-10-13 21:53:49 +00:00
skodak
90658eefb0 MDL-16166 centralised enabling of subsystems, fixed some warnings and general cleanup 2008-08-26 05:45:07 +00:00
mjollnir_
7e51bbcee9 MDL-15995 - portfolio cron. currently just cleans up any orphaned transfer data
Later should be extended to add hooks in the plugins
2008-08-11 12:50:26 +00:00
tjhunt
40ad295c25 MDL-15818 - correction, undo a change to the admin-reports bit.
Jamie, if you see this, please review this change.
2008-07-25 16:18:28 +00:00
jamiesensei
17f1782c12 MDL-15818 "allow quiz reports to register cron routines" - Quiz reports can now include files cron.php which include functions quiz_report_{reportname}_cron that will be executed from the moodle cron. They must also modify their quiz_report record to set cron to the number of seconds between cron execution. 2008-07-24 17:36:33 +00:00
mjollnir_
a5d56dc1cd MDL-15739: make cron.php actually call events_cron 2008-07-21 16:04:14 +00:00
skodak
a4a57da9e2 MDL-15021 Deleted not fully setup separate admin settings; merged from MOODLE_18_STABLE but with better delete 2008-07-03 14:09:27 +00:00
Francois Marier
6800d78e06 Drift between CVS and git
- large deletions
- lucene updates
- error() => print_error()
- NO_MOODLE_COOKIES define
- various other things
2008-06-25 17:31:23 +00:00