504 Commits

Author SHA1 Message Date
defacer
28902d99c8 find_day_in_month now working with the latest convention of $startday, $weekday 2005-03-18 04:38:30 +00:00
gustav_delius
cd8d4471c8 Print course in footer 2005-03-17 15:12:07 +00:00
gustav_delius
f52d48db38 Added clone function to get around the differences in object handling between php4 and php5. 2005-03-16 22:15:36 +00:00
moodler
322344bb6b get_string will now also check inside block directories, which means
Blocks can be self-contained    (thanks Eloy for the idea!)
2005-03-14 13:08:16 +00:00
moodler
7ff9860db0 This change will break themes for sideblock, but now all the main TH cells that use
the standard kind of look (eg gradient) have a consistent class "th.header"
2005-03-13 13:50:23 +00:00
moodler
1ac7ee24d7 CFG->nofixday can override the ficing of day format in userdate 2005-03-10 14:10:21 +00:00
moodler
211ea3e9d3 COnsistent use of readdir 2005-03-10 06:04:29 +00:00
moodler
7d56fe1077 Use real tabs in the error_log call because \t doesn't seem to work 2005-03-10 05:05:12 +00:00
martinlanghoff
de6fa62a56 Fixes from Dan Marsden to getremoteaddr() and address_in_subnet() -- getenv() isn't supported under ISAPI (IIS) so we use _SERVER instead. address_in_subnet() had a loop control error. 2005-03-10 02:36:51 +00:00
moodler
f1e0649c1c Removed files/mimetype.php and put it into lib/filelib.php instead
where it always should have been.
2005-03-07 11:32:03 +00:00
defacer
59556d4833 Switching < to <= which is the correct operator 2005-03-05 23:57:19 +00:00
defacer
c9e72798d4 Changing the way that the DST offset is retrieved, given a timestamp.
This is a nightmare issue, as far as I can think of this is "the" solution.
2005-03-05 22:23:08 +00:00
stronk7
433c8b2e72 Added support to priority in email_to_user(). Bug 2647
(http://moodle.org/bugs/bug.php?op=show&bugid=2647)
2005-03-02 17:56:46 +00:00
moodler
0afedf684d Fixed the link for the confirmation email ... the &amp; was breaking in some
mail  ... see also bug 2502 for something similar
2005-03-01 07:06:42 +00:00
defacer
251af423cd Err... course block instances weren't being deleted along with the course? 2005-02-28 04:35:32 +00:00
defacer
8dc3f6cf5e Changing find_day_in_month() to conform with the new definitions of DST presets.
Adding function dayofweek (centralization, this might also be helpful in fixing a bug).
2005-02-26 06:26:04 +00:00
moodler
2ae281532b New PARAM type called PARAM_CLEANHTML which knows how to clean up HTML properly 2005-02-25 13:10:24 +00:00
gustav_delius
d2a9f7cc69 removed &amp; from url in password change confirmation email, see bug 2502 2005-02-25 06:08:40 +00:00
moodler
e9df755235 Robustness check 2005-02-23 16:29:00 +00:00
moodler
e76ae26489 Fix for erroneous checkin of CVS confict markers ... bug 2626 2005-02-23 12:10:02 +00:00
martinlanghoff
ccb3585fdc Merged from MOODLE_14_HEAD - Bug fix. Using external auth, the user account fails to be created on login if currently logged-in as guest. Credits go to Dan Marsden for the fix. 2005-02-23 02:11:59 +00:00
skodak
fd05dffed6 SC#98 protection of uploaded files in resources, please review and test 2005-02-22 23:36:20 +00:00
moodler
ed1f69b0cf Er ... copy/paste typo 2005-02-22 06:52:42 +00:00
moodler
e34d817e66 Tidying up some timezone stuff 2005-02-21 08:55:40 +00:00
defacer
e17069d52a This looks like the cause of problems for some people (why?).
Let's see if anyone is going to hit this error in the near future.
2005-02-21 03:57:51 +00:00
fiedorow
5f357fb67b Updated guest shortcut code with Mike's loginas fixes 2005-02-19 21:02:33 +00:00
fiedorow
a2f8e0d40c Allow mtrace to sleep to keep message on screen 2005-02-19 14:48:44 +00:00
moodler
7cb29a3dbf just foormatting (checkin by tui!) 2005-02-19 03:14:06 +00:00
moodler
102dc313ea Fixing bug 2588 when server dates are used. 2005-02-19 02:49:31 +00:00
defacer
48a6a7c2c9 Bad boy... broke moodlelib. 2005-02-18 14:45:35 +00:00
defacer
090cf95ae9 Fix for bug 2584:
All floatval() calls changed to (float) casts.
2005-02-18 14:42:04 +00:00
defacer
88ec5b7c8b Reverting back to gmstrftime for userdate() 2005-02-18 13:44:14 +00:00
mjollnir_
876714665d This SHOULD fix the bug where users get unenrolled and reenrolled in metacourses (2579). Needs TESTING PLEASE :) 2005-02-18 02:42:33 +00:00
defacer
57f1191c2e Last changes for DST! Now userdate() supports it as well! :) 2005-02-18 01:18:00 +00:00
defacer
8c0c2e9211 userdate() now transparently supports both new-style (gmdate)
and old-style (strftime) format strings.
2005-02-17 22:59:02 +00:00
defacer
85351042d1 Starting to fix userdate() to recognize DST as well. 2005-02-17 22:43:18 +00:00
defacer
85cafb3e5b DST stuff being worked on. 2005-02-17 21:58:45 +00:00
moodler
d613daf00d Bug fixes for external authentication, from Eagle Eye Eloy! 2005-02-17 09:28:27 +00:00
moodler
20fde7b1f9 If the user needs to set up their account on logging in, then remember the
URL they wanted so they get there after setting up their account.


bug 2565
2005-02-17 06:15:22 +00:00
defacer
02f0527dac Moving closer to DST... this whole thing is so damn _hard_ to grasp... 2005-02-16 22:55:13 +00:00
defacer
42d364974a Fixing stuff I broke with my last commit. 2005-02-16 22:04:14 +00:00
defacer
196f2619c0 Working for DST support. 2005-02-16 21:50:25 +00:00
gustav_delius
ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
martinlanghoff
1c66bf597d Fixed bug 2553 - truncate_userinfo() was out-of-sync with prefix_user table definition. Added a reminder to the SQL files. 2005-02-15 23:12:57 +00:00
martinlanghoff
adfc03f90e merged from MOODLE_14_STABLE - trim() user data coming from external auth - now covers cases where we had a space on the truncation limit 2005-02-14 01:30:57 +00:00
martinlanghoff
ca4030dd1d merged from MOODLE_14_STABLE - trim() user data coming from external auth - fixes problems with locked user data in auth/ldap in 1.5 2005-02-14 01:13:05 +00:00
gustav_delius
ea97115290 Fix bug 1905 2005-02-14 00:03:21 +00:00
stronk7
9e5c8dbdf6 The modified include_once was doing really strange things when retrieving
valid themes! Changed to simply include. Seems to work fine now. Please
check it under PHP 4.x...
2005-02-13 22:40:21 +00:00
moodler
b56ccdd9d0 Reformatting some spaces to coding guidelines 2005-02-13 17:38:40 +00:00
gustav_delius
4bd2e69a51 When course is hidden a student trying to enter gets the new message "This course is currently unavailable to students", see bug 2511 2005-02-13 11:43:05 +00:00