520 Commits

Author SHA1 Message Date
moodler
2d8cf6799a Whoops! Accidentally checked in a quick hack I did for someone. 2003-03-12 07:49:54 +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
0d1a40f00a Updated versions only 2003-03-03 17:48:39 +00:00
moodler
df103e8212 Questions now have a defaultgrade column (which defaults to 1)
... this grade is used as the default grade when adding questions
to a quiz.

At the moment it's just so that some imported questions can have
different defaults, but a field should be added to all question
editing pages.
2003-03-03 17:43:13 +00:00
moodler
c363d9d11f Added QUIZ_DEFAULT_SCORE ... later this will be a quiz option 2003-03-03 17:05:35 +00:00
moodler
14bdb2387a Sort question list by question type 2003-03-01 05:11:44 +00:00
moodler
02986c8002 Can now specify a number of random match questions to create automatically
during import.
2003-03-01 05:08:03 +00:00
moodler
3e7542449b Removed save_session() - no longer necessary 2003-02-27 02:49:18 +00:00
moodler
610b9de6f7 Draft-only version from Les 2003-02-25 12:43:56 +00:00
moodler
86bce68fa8 New table for Postgres 2003-02-24 10:42:07 +00:00
moodler
95dbc030a8 First version of code to implement new "Random Matching" type
of questions.  These use 2 or more short answer questions at
random to construct a questions where you have to match
answers to questions.  Only lightly tested so far.

Quiz questions can now be edited with Richtext editor.

Sundry little fixes along the way.
2003-02-24 10:37:56 +00:00
moodler
c2a96d6b32 Fixes for the use of LIMIT in SQL for Postgres 7.3 (from Petri Asikainen) 2003-02-18 03:16:07 +00:00
moodler
a01b257195 Little changes 2003-02-17 18:13:41 +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
c4e78a1b60 Tidy up the import screen 2003-02-16 08:03:55 +00:00
moodler
68fefdbe14 Change MC answers to letters a, b, c etc ... 2003-02-16 08:03:17 +00:00
moodler
49220fa70c Various quiz changes. Most importantly is the new framework for importing
quiz questions.   Importing works but is still being tested.
2003-02-16 07:08:57 +00:00
moodler
de2146b276 Note for something that needs to be fixed 2003-02-06 06:37:10 +00:00
moodler
54d0590b47 Robustness fixes 2003-01-24 07:48:54 +00:00
moodler
66fef9f99f If comment contains quotes then it can cause problems when
an assignment is uploaded.  Bug fixed by Ray Kingdon.
2003-01-23 04:23:05 +00:00
moodler
48d38fad63 Some robustness fixes 2003-01-23 02:50:38 +00:00
moodler
7d2e5b6595 Remove name on submit button 2003-01-20 15:43:09 +00:00
moodler
41b95af210 Strip slashes from short answers before comparing 2003-01-16 15:19:49 +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
c078c29bb2 For assignments without a timemodified stamp, add one when graded 2003-01-14 03:01:10 +00:00
moodler
f8c898243d Editing with Richtext wasn't working ... fixed now (typo) 2003-01-10 13:07:41 +00:00
moodler
c897eac5e4 Some small robustness things, and a new style for quiz feedback text 2003-01-08 09:08:05 +00:00
moodler
5cc1aff3db Robustness fixes 2003-01-06 14:01:56 +00:00
moodler
ce78926df0 Small robustness fixes 2003-01-06 13:55:37 +00:00
moodler
58d6d79145 Default values 2003-01-06 08:44:03 +00:00
moodler
d9a9064e27 More rogue strings 2003-01-06 02:56:48 +00:00
moodler
1ccee9fdc3 Updated 2003-01-05 16:15:25 +00:00
moodler
b20f74c94a Rmove bad coursemodule error - not important enough to show 2003-01-05 14:20:33 +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
92a419a25c Make frame width a variable 2003-01-05 10:10:05 +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
3b7c1de95e Changes to improve robustness of uploads, and make things compatible
with PHP 4.3.0.  Also some translation fixes with upload strings.
2003-01-05 04:20:32 +00:00
moodler
1d2603b1e3 Make sure grades are always rounded 2003-01-03 16:05:44 +00:00
moodler
a2fe7cc0dc Changed three fields to avoid SQL problems with PostgreSQL etc:
quiz_truefalse:  true->trueanswer  and false->falseanswer
quiz_questions:  type->qtype
2003-01-03 16:01:48 +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
24cd45467f Site news forum defaults to the "Site news" string 2003-01-02 10:54:00 +00:00
moodler
51ba6ad642 Define forum type all the time 2003-01-02 10:46:52 +00:00
moodler
61e96406df Robustness fixes 2003-01-02 10:35:11 +00:00
moodler
8e6c87ccf3 Teachers can choose to allow review of quizzes, which means that students
are allowed to see past quizzes.  This only works once the quiz is completely
closed (to perhaps prevent easy cheating).
2003-01-01 14:47:11 +00:00
moodler
8ac3158791 Robustness fixes 2003-01-01 13:17:27 +00:00
moodler
7f7f2cca29 Robustness 2003-01-01 07:18:43 +00:00
moodler
f747744495 More robustness fixes 2003-01-01 06:34:54 +00:00
moodler
6d6c938999 New feature: choices can now be published (like polls) with names
or without.
2003-01-01 06:34:13 +00:00
moodler
366287b705 Old file 2003-01-01 05:39:30 +00:00