96 Commits

Author SHA1 Message Date
moodler
ff0b0de96d Use fullname function for names 2003-11-28 15:47:11 +00:00
moodler
1bdcef1051 Worksheet name can't be longer than 31 characters 2003-11-27 07:10:27 +00:00
moodler
091333e091 Removed a blank line 2003-11-03 03:00:45 +00:00
moodler
329cbe682b Excel report now uses the new library. Conversion by Russell Jungwirth - thanks! 2003-09-30 13:23:05 +00:00
stronk7
0585509135 Simply, move the XXXX_get_participants() function from
bottom to the common function area.
See bug 807
2003-09-29 15:27:30 +00:00
les_kopari
ff74d85283 Initial add for Oracle. 2003-09-25 02:11:31 +00:00
les_kopari
96c1e116e6 Oracle tables, etc converted from mysql, plus test transactions. 2003-09-13 08:05:21 +00:00
moodler
145cb8f9ab More short tags 2003-09-11 13:21:56 +00:00
moodler
c559bcf6f0 Fixed some PHP short_tags 2003-09-09 12:34:51 +00:00
stronk7
7be61a22e8 Included survey_get_participants() function. 2003-09-07 22:09:23 +00:00
moodler
5884d4e2fd Fixed some array indices 2003-08-25 02:48:09 +00:00
stronk7
902142c079 Added language support 2003-07-28 19:32:51 +00:00
moodler
cccb016ae4 When displaying index lists of a particular module's activities,
ensure that the order they are displayed in is always the same as the
order they have been defined in.   See bug 553.

This involved API changes to the function get_all_instances_in_course()
2003-07-12 05:19:18 +00:00
moodler
d7c93ec8fa Moving the backup libraries for each module into their new homes.
There's some beer and pies in the fridge, guys, settle in.
2003-07-09 04:40:35 +00:00
moodler
717f40c6d8 Some fixes to avoid pointless uses of $ME 2003-06-16 14:40:51 +00:00
moodler
21b1125f63 Make form destinations relative (to course/mod.php) to avoid
some form problems on mis-configured servers (wwwroot not quite right)
2003-06-10 05:33:58 +00:00
moodler
60ffb53a7d Minor code cleanup 2003-05-20 08:01:40 +00:00
moodler
b1f505771e Fixed the bug I introduced in the last checkin (it was related to the
re-introduction of text fields in surveys)   See bug 441
2003-05-20 04:26:57 +00:00
moodler
3a4c2fd089 I knew there was something else I'd forgotten!
Added a check to all modules (well view.php anyway) to check whether a
module is hidden or not.  If it is, then students get a message.
2003-05-15 18:03:22 +00:00
moodler
813ec7ad65 Prevent guests from taking surveys 2003-05-06 03:06:06 +00:00
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
stronk7
c37053ea2f Changed to show the hidden surveys dimmed (bug #364) 2003-04-24 18:28:30 +00:00
moodler
f82c2d428a Modified Greg's work to:
- rename the main_frame variable to framename, because it
       - might have caused some confusion
       - none of the global variables have underscores
  - put the config in the config table, with a default of _top
2003-03-12 07:36:22 +00:00
gregb_cc
08b3606390 This is a first attempt to make moodle frame safe.
I've added the variable CFG->main_frame to config-dist.php, and replaced _top
targets with the variable in all the php files.  HTML files, like those in the
documentation, have not been modified, as they are not (yet) parsed.

The variable should probably get moved into the config table, and get some
documentation.

I've also included, but commented out, a slight change in weblib.php, which
would guarantee that messages would be seen before redirecting the user (unless
delay intentionally set to 0 when redirect is used).
2003-03-11 21:35:12 +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
5cc1aff3db Robustness fixes 2003-01-06 14:01:56 +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
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
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
moodler
8ac3158791 Robustness fixes 2003-01-01 13:17:27 +00:00
moodler
814ada432c Fixes to XLS routines that were causing some problems 2002-12-30 15:46:15 +00:00
moodler
47f1da80d0 More little fixups for robustness 2002-12-30 05:13:43 +00:00
moodler
9c9f7d7790 Various little fixes to remove warnings (usually about empty variables)
when error_reporting is turned up to 15 or so ... more of these to come ...
2002-12-29 17:32:32 +00:00
moodler
a3eea09cc9 More fixes for postgreSQL etc 2002-12-23 11:47:17 +00:00
moodler
b6c38cec93 Slight fixes to headings 2002-12-23 10:18:51 +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
9fa49e22ab Many many changes lumped in here ... not finished yet either.
Basically all the Database functions are in lib/datalib.php
and the web functions are all in lib/weblib.php, so
moodlelib.php is much thinner than it was.

Data functions have been extended ... most old calls will
still work, but now many more SQL commands can be performed
using the datalib functions rather than using SQL.  I'm
currently moving through the whole tree replacing SQL
calls or at least concentrating them in one section of
mod/xxx/lib.php

Still working on forums, quizzes, surveys, resources.

The tree is currently not full working ... some things are
half-completed ... will resume tomorrow.
2002-12-20 14:44:14 +00:00
moodler
fd790dfb55 Database and upgrade files for PostgreSQL 7 support! 2002-12-15 02:41:07 +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
dfc9ba9bbe Added navmenu in more places 2002-11-10 08:43:44 +00:00
moodler
d897cae419 Changes to enable jumping between activity modules, using a new menu in
the upper-right corner.   Caution: Not well tested at this stage.
2002-11-10 07:37:15 +00:00
moodler
f39d5f4576 Use course setting for "student" 2002-11-09 06:29:21 +00:00
moodler
b309c289db WHoops typo 2002-11-09 06:24:21 +00:00
moodler
f762c448ef FINALLY! Surveys are now translatable! :-) 2002-11-09 06:22:57 +00:00
moodler
09aebc9468 Cleaned up some buttons ... 2002-10-16 04:51:55 +00:00