64 Commits

Author SHA1 Message Date
Petr Skoda
3e29781d11 MDL-21655 fixed regression which prevented guests to enter access key 2010-05-03 19:50:57 +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
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
Petr Skoda
aa6c1ced0a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-04 08:11:02 +00:00
samhemelryk
d9cb06dc0e course MDL-19794 Replaced deprecated functions, added set_url calls and boilerplates 2009-09-25 05:24:13 +00:00
samhemelryk
3856ca5605 course MDL-19794 Updated print_header_simple and build_navigation to OUTPUT and PAGE equivalents 2009-09-08 01:33:56 +00:00
samhemelryk
0a122046bc course MDL-19794 Upgraded print_header and build_navigation calls to use PAGE and OUTPUT equivilants 2009-09-03 08:47:24 +00:00
skodak
93f66983cc MDL-17773 new get_login_url() function - fixes missing httpslogin tweaks 2009-01-02 22:56:48 +00:00
skodak
b7b64ff2e0 MDL-17754 next round of session related refactoring 2009-01-02 20:32:05 +00:00
skodak
542797b4e8 MDL-17767 loginas internals refactoring - code moved to sessionlib.php 2009-01-02 14:53:02 +00:00
skodak
579d45b434 MDL-14679 converted some get courses 2008-06-01 18:12:24 +00:00
skodak
f400841b23 MDL-14679 converted some get courses 2008-06-01 17:59:13 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
moodler
61a482fdb4 Merged notice fix 2008-03-03 05:28:56 +00:00
nicolasconnault
0be6f67819 MDL-10870 All files updated to new build_navigation() method. Most are untested, because they are not easily accessible within a moodle site. 2007-08-17 19:09:11 +00:00
skodak
3887fe4acd MDL-8840 Loginas cleanup, some more improvements; merged from MOODLE_18_STABLE
+ merging of format_string fixes
2007-03-20 07:42:41 +00:00
skodak
658e87e302 MDL-7903 Guests can not enter course that allows guests with key; merged from MOODLE_17_STABLE 2006-12-18 19:21:10 +00:00
skodak
dc3306290d Students cannot enrol with PayPal plugin when using PHP4 MDL-7529 2006-11-23 20:16:36 +00:00
moodler
527389f912 Merged guest enrol fixes. MDL-7182 2006-10-24 02:13:42 +00:00
moodler
2f1a42481d This new function called load_all_capabilities() should be used whenever
you want to completely reload the capabilities for the current user.

Basically it will deal nicely with the default site-wide permissions
depending on the current user.

More background in the comments on MDL-6963

Merged from stable
2006-10-23 15:17:31 +00:00
moodler
b1f318a67f Merged guest key enrolment fix from stable MDL-6881 2006-10-23 06:38:15 +00:00
martinlanghoff
6402cd4679 Fix for breadcrumb problem (MDL-6271). 2006-09-28 00:08:50 +00:00
moodler
5c98bf9e3a Enrolments working better now. The core part is done, just the plugins to go.
The enrolment plugins are now checked from load_user_capability()
2006-09-16 13:59:38 +00:00
danmarsden
038184e264 MDL-4493 issue with 405 pages for IIS users - must specify actual page, as the notice function does a post - you cannot use the POST Verb on a directory in IIS. 2006-08-24 02:08:59 +00:00
moodler
bade10e350 Removed all of the "Restricted users" hack because Roles can do it all better. 2006-08-13 07:01:57 +00:00
skodak
d6e1bd8092 Bug #5941 - Myriad of problems with Paypal enrollmemts, part 3 - fixed 'login as student' button, now plain guest login action; merged from MOODLE_16_STABLE 2006-06-28 15:38:04 +00:00
skodak
332fbc3027 Bug #5734 - Enrolled students can't access metacourse after unhiding while logged in; merged from MODOLE_16_STABLE 2006-06-06 19:01:46 +00:00
skodak
2ee2481ef9 fixed register globals issue with $loginasguest; merged from MOODLE_16_STABLE 2006-05-21 20:51:52 +00:00
martinlanghoff
f9667a5aea [multienrol]Initial commit for multi enrolment plugin feature 2006-03-09 02:48:29 +00:00
patrickslee
56144efaac Block normal users to gain access to meta courses (Merged from MOODLE_15_STABLE) 2005-10-31 20:38:54 +00:00
patrickslee
f89033b111 New feature: Course enrollable control with date range 2005-10-04 01:59:19 +00:00
thepurpleblob
59518de11e require_variable() and optional_variable() replaced with required_param() &
optinal_param() plus other tweeks to suit. Improve security.
2005-06-15 09:39:26 +00:00
stronk7
ef9b35a01b Tabs are out 2005-05-16 19:38:21 +00:00
fiedorow
5f357fb67b Updated guest shortcut code with Mike's loginas fixes 2005-02-19 21:02:33 +00:00
fiedorow
508d0b3c61 Implements log in as guest for courses that allow guests. 2005-02-05 16:46:26 +00:00
gustav_delius
24f2b65a4d towards XHTML compliance 2004-09-12 12:21:27 +00:00
moodler
631cf796d4 Merged enrolment fixes frm stable 2004-09-09 09:43:51 +00:00
gustav_delius
f950af3c43 All modules are now suitable for the site page. They now all follow the same rules, namely that any students enrolled in at least one course is considered to be a student on the site.
All the page headers work correctly also on the site course.

On the site page the modules don't require login unless necessary or required by $CFG->forcelogin.
2004-08-22 14:38:47 +00:00
moodler
16293c38e0 *** empty log message *** 2004-07-29 13:12:35 +00:00
moodler
146bbb8f2d Some more additions to use the new enrolment architecture. 2004-06-26 09:51:13 +00:00
moodler
87a7d7031b Enrolment now uses the new enrolment architecture 2004-06-25 03:31:20 +00:00
moodler
f3436de6a7 Restricted users can't enrol in other courses 2004-02-04 12:52:31 +00:00
moodler
43e93a0756 FIxes to cope with this case:
- student authenticates
  - teacher enrols the student manually
  - student tries to enter course

http://moodle.org/mod/forum/discuss.php?d=4529#20493
2004-01-23 08:30:15 +00:00
moodler
0c8ee4402c New confirmation step when self-enrolling 2003-08-17 04:53:44 +00:00
moodler
a4a4b858a3 Slight fix when adding log 2003-07-23 01:44:35 +00:00
moodler
6f9d8d65f6 More robust enrolment screen 2003-06-04 07:12:26 +00:00
moodler
783da26290 A bit of an audit and a clean up of require_login to add consistency.
No major problems found, just some code tidy-up
2003-05-24 07:29:17 +00:00
moodler
31d6331615 Don't go through enrolment procedure if they are already enrolled. 2003-04-29 13:04:22 +00:00
moodler
7a361c8b55 Removed save_session() - no longer needed. 2003-02-27 02:46:37 +00:00
moodler
b0e3a92523 Clean sweep through all the important changing all include(), include_once()
and require() to require_once()
2003-01-05 14:19:20 +00:00