26 Commits

Author SHA1 Message Date
moodler
1b5910c4a5 Trying a different tack for recent_activity since the old way was
still producing too much data and overflowing PHP memory on busier
sites (eg moodle.org).

Now, there are more database queries, which is unfortunate, but the
data is much more specific, and no sorting needs to be done, so
this is a performance boost.

I don't know how these will cancel out ... my guess is that very
small sites may be very slightly slower on the course page, but
that large sites will be much faster.

Let's see.
2003-04-26 15:08:34 +00:00
moodler
ad08fdc277 Performance improvements
- better checking of data before processing
  - used logs are removed to avoid re-processing by other modules
2003-04-26 12:59:41 +00:00
moodler
3d89198946 Cleaned up definition of constant COURSE_* values in course/lib.php
Moved COURSE_TEACHER_COLOR out to style sheets where it belongs (.teacheronly)

Added some efficiency when printing recent activity

 - don't print more than one weeks worth of updates
  - don't keep re-parsing logs once they've been used
2003-04-26 12:17:30 +00:00
stronk7
fbca88e692 Show activity log only from visible surveys. Bug #367. 2003-04-26 11:04:46 +00:00
moodler
734d2c9887 Fixes to survey_get_responses() to make it work better with PostgreSQL
(from Petri Asikainen)
2003-02-17 08:35:51 +00:00
moodler
dcde9f020a Displayed time formats are now stored in lang files
(see the new strftime* strings) so they can be customised per language
2003-01-15 10:55:54 +00:00
moodler
607809b3ba OK a number of small changes here.
Firstly, I'm replacing all use of old-style global variables like
$HTTY_REFERER with their new-style equivalent $_SERVER["HTTP_REFERER"]
Also using $_POST instead $HTTP_POST_VARS  etc

Secondly, if gdversion == 0 (ie GD is not installed) then:

 - users are not even allowed to upload new images
 - graphs now just print a message instead of failing.

this allows Moodle to still be used even if GD is not present
2003-01-05 06:45:20 +00:00
moodler
ebc3bd2b24 Changes throughout Moodle to remove any reserved words from the
Moodle tables.

ie user -> userid in many tables, plus in user_students
   start -> starttime and end -> endtime

I've just done all this as carefully as I could ... I don't think
I missed anything but it's pretty intensive work and I'd be fooling myself
if I didn't think I'd missed a couple.

Note that this version should pretty much be able to bootstrap itself
using PostgreSQL now ... but this is untested
2002-12-23 09:39:26 +00:00
moodler
e323955db8 Changes to use new database stuff 2002-12-23 05:57:05 +00:00
moodler
62c13a2f3e Changed all references of %e to %d to fix strftime on Windows 2002-11-19 14:27:57 +00:00
moodler
f762c448ef FINALLY! Surveys are now translatable! :-) 2002-11-09 06:22:57 +00:00
martin
66ea15f3cc Reaaranged the functions into standard and other 2002-09-22 04:27:45 +00:00
martin
7bca79576f Fixed stupidity 2002-09-22 03:58:41 +00:00
martin
a30cfe1685 Error in the SQL - fixed now 2002-09-22 03:57:56 +00:00
martin
54634efcba New function to show new surveys in recent activity box 2002-09-22 03:51:28 +00:00
martin
98899fc040 Language fixes 2002-08-12 17:54:13 +00:00
martin
04eba58f57 Moved all mod.php functions from modules into lib.php, and
updated course/mod.php to use them there.  No longer need module/mod.php
2002-08-03 02:29:21 +00:00
martin
0e30c987e5 More cleanups to survey - renamed/moved functions, modernised mod.php 2002-08-01 05:18:07 +00:00
martin
362f9c9c74 typo 2002-08-01 04:54:23 +00:00
martin
551b0b9806 Big clean up of survey functions and removal of deadwood (more to go still though) 2002-08-01 04:49:26 +00:00
martin
3f4deb2b86 Extra space at end of file :-) 2002-07-25 13:54:07 +00:00
martin
0d22e7cc7e Got rid of the user.php code fragments and implemented much cleaner
system which certain-named functions in lib.php ... called from /course/user.php
2002-07-25 13:48:14 +00:00
martin
7a302afc5f Slight changes to userdate() function. It now uses gmstrftime() instead of
gmdate to format times, thus allowing it to take advantage of locale, if set,
to print dates in the appropriate language.  Several userdate invocations
had to be changed, though, to use the different formatting specs.
2002-07-02 07:02:28 +00:00
martin
b416a1c34f Slight tweaks to survey display after it's been done (list # of students) 2002-06-25 07:10:01 +00:00
martin
07cb996492 Slightly enlarged graphs to 900 pixels instead of 800. 2002-04-12 14:24:27 +00:00
martin
f9903ed0a4 Initial revision 2001-11-22 06:23:56 +00:00