35 Commits

Author SHA1 Message Date
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
moodler
36b4f9852e buggy_referer is dead! Long live buggy_referer!
Should be fixed now.  As a bonus, I've removed all the uses of
HTTP_POST_VARS from all scripts.

All forms should use the new data_submitted() function to collect
form data (it does the match_referer thing internally now).

Much nicer.
2003-01-02 14:49:23 +00:00
martin
d578afc883 Major cleanup of user administration and display, including sortable listings,
confirmation on deletions, removing deleted user from all student lists,
teacher lists and subscription lists and freeing up their username and
email to be used again.
2002-09-22 14:06:38 +00:00
martin
a049e1d361 Some courses may not have a teacher - in this case, make the enrolment
welcome email "from" the admin
2002-08-12 03:22:03 +00:00
martin
97c270e9a8 Changes related to language support ... get_string()
Minor little interface cleanups along the way
2002-08-11 15:41:54 +00:00
martin
4b1371a74c Various small changes (mostly to language strings) 2002-08-11 05:11:50 +00:00
martin
8223d27193 Widespread changes throughout Moodle to make sure it works on
servers that have register_globals turned off (this is the
default setting on newer version of PHP).

In fact it's partly a hack that globalises all GET, POST, FILES
AND COOKIE variables.  Unfortunately though the SESSION and
USER global session variables are only available as $_SESSION["USER"]
and $_SESSION["SESSION"], which is cumbersome to use.

So, for every request I now make a copy of these two session variables
into $USER and $SESSION.  Whenever I update them thoughout Moodle I
now have to call save_session("USER") which copies them back to the
session variable.  This seems to be working well now.

Because I'm using $_SESSION etc now this will raise
the required minimum version of PHP to 4.1.0
2002-08-06 17:23:45 +00:00
martin
e20217b3f3 MOre language updates 2002-08-04 02:10:00 +00:00
martin
fbc797635e Better logging for guest when enrolling 2002-07-31 17:11:46 +00:00
martin
7ddb84b5e5 Fixed formatting of welcome email 2002-07-19 12:18:12 +00:00
martin
af978a6dc4 More language changes 2002-07-19 12:01:35 +00:00
martin
a83fded1a9 Consistent use of get_site() instead of checking course->category directly 2002-07-11 05:30:10 +00:00
martin
cbc1462997 Course entry key is now called an enrolment key 2002-06-10 11:11:53 +00:00
martin
da5c172a07 Changes to support guest user across any course (guest/guest) 2002-06-09 14:14:07 +00:00
martin
e13607280e Cleaned up enrol and unenrol process a bit 2002-06-04 06:30:51 +00:00