19853 Commits

Author SHA1 Message Date
skodak
d2963541e2 Security related parameter cleanup in workshop code, please test it. No bug fixes... 2006-04-19 19:48:46 +00:00
skodak
7282d18cf0 isguest() must be checked AFTER require_login() because the user may not be logged in yet ;-) 2006-04-19 19:42:47 +00:00
urs_hunkler
d133007141 added CSS for multichoice feedback 2006-04-19 17:13:37 +00:00
moodler
d3a752872f Fix for bug 5029 from Tim Takemoto 2006-04-19 12:54:34 +00:00
moodler
7b54f5636d Fix group picture in HTML mail when no CSS is used 2006-04-19 12:47:30 +00:00
nfreear
a7c385e606 Accessibility: bug 5078, "Update calendar blocks in courses to match the changes in site page". Fix function, calendar_top_controls. 2006-04-19 09:07:30 +00:00
nfreear
e642ed1244 Accessibility: bug 5078, "Update calendar blocks in courses to match the changes in site page". 2006-04-19 08:55:20 +00:00
toyomoyo
8bcd295c3d bumping up version, chaing user->firstname, user->lastname, course->shortname to varchar(100) 2006-04-19 08:18:35 +00:00
moodler
09f00e5383 FInally fixed chat layout bug 2006-04-19 07:57:14 +00:00
moodler
733a73f0d3 Added chat formatting 2006-04-19 07:51:39 +00:00
gbateson
30b8cc87e1 fixed bug which prevented display of JCross clues on PHP 5.1.2 2006-04-19 06:20:37 +00:00
vyshane
feb00a54d0 Setting $data->listtemplateheader and $data->listtemplatefooter to '' if we
are resetting the listtemplate.
2006-04-19 04:21:23 +00:00
vyshane
8d4a31bd3c Removed javascript for resetting templates. We reload the page to reset
templates.
2006-04-19 02:54:07 +00:00
mjollnir_
fbc525bc0b Correcting code to remove warning originating from earlier commit
Peter Bulmer peterbulmer@catalyst.net.nz
2006-04-19 02:31:32 +00:00
martinlanghoff
930413b133 mod/chat: Normal method - introducing "Stream" updates.
This is an alternative version of jsupdate.php that acts
as a long-running daemon. It will feed/stall/feed JS updates
to the client. From the module configuration select "Stream"
updates.

The client connection is not forever though. Once we reach
CHAT_MAX_CLIENT_UPDATES (currently 1000), it will force
the client to re-fetch it.

This buys us all the benefits that chatd has, minus the setup,
as we are using apache to do the daemon handling.

Chat still defaults to the normal update method, which is now
optimised to take advantage of keepalives -- so this change is
safe. The instructions in the config page also indicate that this
mode may not be well supported everywhere. It hasn't been
tested on IIS for starters.

In terms of relative cost -- if each hit on jsupdate.php incurs
on ~20 db queries and delivers one update to the client, each hit
on jsupdate takes ~20 queries, and then roughly 2~3 queries to
serve each of the next 1000 updates. On busy sites, the difference
is huge.

There is still room for enhancements in both keepalive and stream
update methods. I am pretty sure we can trim DB queries more.
2006-04-19 02:20:48 +00:00
gustav_delius
d1873436d2 Fixed small typo in help file, bug 5243 2006-04-18 23:15:11 +00:00
gustav_delius
c1f52a2f81 Change of words suggested in bug 5245 2006-04-18 23:00:04 +00:00
gustav_delius
a9d80ad800 Fixed small typo in help file. 2006-04-18 22:58:00 +00:00
mjollnir_
eb55a1bfb9 Avoiding warning in last commit:
mod/quiz/index changes to only display quiz grades when teacher allows
Changes to index.php to only allow student to view overall quiz scores when
teacher has not set options forbidding this, and it can't give away what
scores were for attempts where results should still be hidden.
Credit: Peter Bulmer peterbulmer@catalyst.net.nz
2006-04-18 22:57:28 +00:00
mjollnir_
40377b188b mod/quiz/index changes to only display quiz grades when teacher allows
Changes to index.php to only allow student to view overall quiz scores when
teacher has not set options forbidding this, and it can't give away what
scores were for attempts where results should still be hidden.
Credit: Peter Bulmer peterbulmer@catalyst.net.nz
2006-04-18 22:55:28 +00:00
mjollnir_
d78a1cf6d8 mod/quiz/locallib bugfix get_qn_options now uses more sensible defaults.
Previously get_question_options used options for
after-attempt-while-quiz-open, when called while a attempt was still in
progress.  Changed it to use options for immediately-after-attempt instead.
Credit: Peter Bulmer peterbulmer@catalyst.net.nz
2006-04-18 22:54:51 +00:00
mjollnir_
309c0d55b2 mod/quiz/view changes to only display attempt grades when teacher allows.
Changed view.php to only display grades when the teacher has not set
options forbidding it.  Further, where there is some attempts that are
allowed to be displayed, and others not, highligting of the highest score,
and printing of the overall grade allocation has been disabled to ensure
the hidden grade is not revealed.
Credit: Peter Bulmer peterbulmer@catalyst.net.nz
2006-04-18 22:54:10 +00:00
gustav_delius
f7fccc0362 Make sure category from correct course is shown. 2006-04-18 22:53:38 +00:00
mjollnir_
15db443c87 mod/quiz/review only display grade summary if student allowed to see scores
Change to review.php so that the student will only see the grade summary
if they are allowed to view their scores - as determined by quiz options
set by the teacher.
Credit: Peter Bulmer peterbulmer@catalyst.net.nz
2006-04-18 22:50:04 +00:00
mjollnir_
9f7f01db04 mod/quiz/review quiz options loaded once per pageload, not once per qn.
Moved loading of quiz review options from loop iterating over each qn to be
displayed, to the top of the pageload.  Should give efficency gains
on quizes with long pages, as well as making the options available
earlier in the process.
Credit: Peter Bulmer peterbulmer@catalyst.net.nz
2006-04-18 22:47:56 +00:00
martinlanghoff
d13ef2fbdc mod/chat - cope with missing $USER->lastIP
$USER->lastIP is sometimes not set properly during login, fetch it if we can
or error out clearly -- we won't be able to login the user to the chat if
we don't have an IP address to match him/her against.
2006-04-18 22:40:56 +00:00
gustav_delius
9977aa0f4a Don't forget the prefix_ for table names 2006-04-18 21:49:14 +00:00
martinlanghoff
04ddd06c1d admin/cron.php - fix typo
Nothing like being pedantic on a tuesday afternoon...
2006-04-18 21:22:04 +00:00
urs_hunkler
eedff4f447 IMS CP styling 2006-04-18 19:59:04 +00:00
wildgirl
45f4544f31 Updated IMS CP help file (bug 4628) 2006-04-18 18:17:36 +00:00
wildgirl
2f5d8f3eff Updated IMS CP help file (bug 4628) and added repository help file 2006-04-18 18:15:32 +00:00
wildgirl
06ebc30fb6 Added IMS CP strings 2006-04-18 18:09:11 +00:00
wildgirl
824c9dc7c6 resource.class.php changes:
1. Added logic to process repository paths. A repository path is marked with a # as the first character of the reference field.
2. Added a new error code for repository items not being deployed / bad reference.

ims.html change:
Added a button to link to the repository browser.

New files:
finder.php – browser for the repository
preview.php – cut down display routine from resource.class.php, forces sidemenu etc.
repository_deploy.php – deploy for repository items (same results as deploy.php)
repository_config.php (repository disabled by default)
resize.js - for iframe resizing
dummyapi.js - dummy SCORM API

(Tom's work, with help from Andy)
2006-04-18 18:04:30 +00:00
thepurpleblob
2c49e71073 Paramater cleaning for category name too restrictive for non-ascii
language encodings. Bug #5224
2006-04-18 14:20:02 +00:00
gbateson
1872962d5c corrected handling of tables within JCloze text (a lot of vertical space was being added) 2006-04-18 12:20:18 +00:00
nfreear
e80e9f20d4 Clean up code (Bugs 5027, 5161), 'weekscss' course format. 2006-04-18 11:02:21 +00:00
nfreear
498bdc51f2 Fix, Bug 5161 "Course format weekscss looks unfinished". Added ommitted 'hidden' style, background-color. 2006-04-18 11:00:25 +00:00
moodler
0b9e9783a3 Fixed bug #5230 and the hardcoded admin folder 2006-04-18 09:46:35 +00:00
moodler
f619f8c8ab FIx for slashes problem in bug 5222 (and some others) 2006-04-18 09:16:22 +00:00
toyomoyo
dec0d49c7e typo 2006-04-18 09:08:53 +00:00
toyomoyo
4e93938edb fix for 5204 2006-04-18 09:05:07 +00:00
moodler
5379d24992 A little HTML hint since styles are not working here for me somehow 2006-04-18 07:28:44 +00:00
moodler
44a38081c7 Better style for picture next to chat text 2006-04-18 07:27:11 +00:00
toyomoyo
fd8d5ba75f fix for 5207 2006-04-18 07:22:18 +00:00
moodler
78c98892d1 More efficient chat listings (less database calling) 2006-04-18 07:14:21 +00:00
toyomoyo
2b9fd72cc3 fix for 5210 2006-04-18 07:12:39 +00:00
toyomoyo
8f23f49004 fix for 5209 2006-04-18 06:43:29 +00:00
toyomoyo
98ae4e63da block unicode migration bugs 2006-04-18 06:17:30 +00:00
vyshane
d553ae9f74 "Reset template" button now only resets the template textarea with the default
template. User needs to hit "Save template" to save the changes.
2006-04-18 06:11:38 +00:00
toyomoyo
5bce15857e added a comment 2006-04-18 03:45:23 +00:00