Commit graph

18939 commits

Author SHA1 Message Date
stronk7
572f46d3d2 This is going to be the frontend. Just reseting the file
to its minimum for now.
2006-01-16 23:31:05 +00:00
stronk7
f58b518fec After thinking a bit about it, this file is, exactly,
one library, so add it here. The admin/environment.php
will be the interface to handle all this stuff. ;-)
2006-01-16 23:25:14 +00:00
mjollnir_
460ec53664 Added missing fields in restore for embargoed announcements 2006-01-16 22:55:18 +00:00
skodak
68913aecd0 ignore set_time_limit() errors 2006-01-16 22:55:17 +00:00
mits
2f84eb91dd polished. 2006-01-16 22:34:39 +00:00
skodak
8914cb828c ignore ini_set() result 2006-01-16 22:23:52 +00:00
skodak
4c8c65ecd5 added byteserving, fixed cookieless mode, changed timeout handling, minor code cleanup 2006-01-16 22:21:41 +00:00
stronk7
9bdc03bc06 Added the higer level check_moodle_environment()
It's the only one to be used from the rest of code.
Changed recommended to optional.
2006-01-16 22:07:59 +00:00
stronk7
36372e0cde Changed recommended to optional. 2006-01-16 22:06:15 +00:00
mjollnir_
f332bd025c Added cast to string in choose_from_menu_nested as well as choose_from_menu 2006-01-16 21:50:57 +00:00
stronk7
21ee1ca9f7 The logic is now completed and DB, PHP and PHP_EXTENSIONS
can be checked, so I commit this.
Just starting to build the presentation layer of the stuff.
2006-01-16 19:32:14 +00:00
stronk7
302c93aec4 Put some real data about reqs, both for 1.5 and 1.6. 2006-01-16 19:29:50 +00:00
stronk7
5deb5563f5 fit PHP_EXTENSION under PHP_EXTENSIONS container. 2006-01-16 18:08:11 +00:00
andreabix
b384ef6a6c Typo corrected. Thanks to Daniele Cordella 2006-01-16 15:55:32 +00:00
mits
44963ec934 translated 2 new help files and some strings for forum. 2006-01-16 15:31:32 +00:00
stronk7
95e8227bb9 Initial model of Moodle compatibility matrix to be
checked from admin, install and upgrade. Now it includes
one "false" version to be able to test it.
2006-01-16 13:53:30 +00:00
stronk7
79cccd507d Added categoryboxcontent to properly display the list of categories. 2006-01-16 11:08:23 +00:00
stronk7
ff4651e6e5 Part of Bug 4583. Now insert_record() always unset the primary key
(instead of the first, non-cached, invocation). Also, modified one
condition with no sense now. Needs testing (specially from PostgreSQL,
although it should work and the bug would be solved.
(http://moodle.org/bugs/bug.php?op=show&bugid=4583)
2006-01-16 10:36:59 +00:00
stronk7
b1a88d0413 Part of Bug 4583. Now backup tables are moodle-style compliant.
Also, the 4th parameter used in insert_record() has been erased
to avoid the bug itself. PortgreSQL upgrade not tested!
(http://moodle.org/bugs/bug.php?op=show&bugid=4583)
2006-01-16 10:23:48 +00:00
mjollnir_
b22008bae0 after discussion with Eloy: Always strip controlchars in xml_tag_safe_content 2006-01-16 09:07:30 +00:00
mjollnir_
bd905b4568 Backing out type checking in choose_from_menu and choose_from_menu nested. Perhaps will add casting to string on both sides later 2006-01-16 09:05:23 +00:00
mjollnir_
abfd14da26 Managed forum posts: missing restore fields. Beating Eloy to fix the bug before he reports it ;) 2006-01-16 08:59:20 +00:00
mjollnir_
df1b52e8bb Contextual help for participants list 'with selected users' actions 2006-01-16 08:52:21 +00:00
mjollnir_
a4f495bf86 Introducing: managed posted forums. Optional ability to 'throttle' forums by adding
three new settings: warnafter, blockafter and blockperiod.
Useful for tutors with big courses with some dominant students.
2006-01-16 08:42:09 +00:00
moodler
bdebe6c40c this is the db migration script, this is not called at the moment, please do not call this script as it is only in testing stage. 2006-01-16 07:59:04 +00:00
moodler
5d7a2722d5 more bugs 2006-01-16 07:57:56 +00:00
martinlanghoff
18147bc254 lib/datalib.php - fixed missing return and global $CFG
Tidyup after merging Tim Hunt's patches.
2006-01-16 06:35:58 +00:00
ikawhero
89c870e7b2 Quiz summary text shouldn't be cleaned as only entered by teacher
Merged from stable
2006-01-16 06:29:51 +00:00
martinlanghoff
d53c5dfc63 lib/datalib.php: Fixed a problem that get_recordset() does not return results
Author: Patrick Li <patrick@catalyst.net.nz>
2006-01-16 06:26:47 +00:00
martinlanghoff
eb856e3b4d lib/datalib.php [5/6] Make other methods that obtain a record set use the
appropriate get_recordset* function, instead of duplicating
code.

Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
2006-01-16 06:24:53 +00:00
martinlanghoff
26c0a58702 lib/datalib.php [5/6] Make the get_records*_menu family of functions use the
get_recordset* functions, instead of duplicating code.


Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
2006-01-16 06:23:17 +00:00
martinlanghoff
9b277c0d80 lib/datalib.php [4/6] Make the get_records* family of functions use the
get_recordset* functions, instead of duplicating code.

Note: I've replaced the @deprecated tokens in phpdoc with an indication
that the get_records* calls are valid as convenience calls. The
get_recordset*() calls should be considered for performance and memory
footprint, but are not mandatory.

In a sense, deprecating get_records*() would mean a commitment to remove
them within X number of versions, which I am not sure we will do. Now,
if phpdoc has a @discouraged token, I'd like to hear about it ;-)

Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
2006-01-16 06:17:38 +00:00
martinlanghoff
1184063286 lib/datalib.php [3/6] Move all instances of code that processes the
(..., $field1, $value1, $field2, $value2, $field3, $value3, ...)
part of argument lists to a common method, and improve the
comments relating to those arguments on calling methods.

Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
2006-01-16 06:07:57 +00:00
martinlanghoff
0934b9def8 lib/datalib.php [2/6] Version of Martin Langhoff's patch to add the get_recordset_*
family of methods.

Author: Martin Langhoff <martin@catalyst.net.nz> && Tim Hunt <T.J.Hunt@open.ac.uk>
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
2006-01-16 06:05:43 +00:00
martinlanghoff
d4c54cd6a6 lib/datalib.php [1/6] Remove unreachable code (break statements after returns in switches).
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
2006-01-16 06:04:09 +00:00
mits
942d9298bf translated new strings for RADIUS. 2006-01-16 05:42:51 +00:00
mjollnir_
325a76ead3 Fixing missing prefix (copy & paste error) in forum type upgrade from very recent commit 2006-01-16 05:36:33 +00:00
mits
88b75aebf7 translated new strings for New forum type. 2006-01-16 05:33:21 +00:00
martinlanghoff
9d9912f351 auth/radius: adding attribution 2006-01-16 05:25:37 +00:00
martinlanghoff
b099203d37 Committing lang files associated to auth/radius -- a module contributed by Clive Gould <clive@ce.bromley.ac.uk> 2006-01-16 05:24:08 +00:00
martinlanghoff
381ad73cec lang/en/auth.php 2006-01-16 05:21:50 +00:00
mits
4fc8dce4bf translated for New forum type. 2006-01-16 05:17:43 +00:00
mits
09ece2b7b6 polished some and translated new strings. 2006-01-16 04:58:43 +00:00
mjollnir_
098d27d46e New forum type: question and answer: requires students to post their answer before being able to view other posts. After initial post, students can view & respond normally 2006-01-16 04:57:48 +00:00
moodler
e746e4dd99 added missing semicolon in &nbsp (bug#4592) 2006-01-16 04:29:41 +00:00
martinlanghoff
2037106308 Merged from MOODLE_15_STABLE - readfile_chunked() - do not timeout on slow (dial up) clients, and flush buffers explicitly to avoid hogging memory when ob is on 2006-01-16 04:02:28 +00:00
martinlanghoff
1f84d800af admin/uploaduser: missing strings fixups 2006-01-16 03:43:41 +00:00
martinlanghoff
d8559098ff admin/uploaduser fixups - lowercase oldusername and fix missing strings 2006-01-16 03:16:08 +00:00
mjollnir_
950c35a96c Changing the limit for drop down menus on the log page to something reasonable (1000) 2006-01-16 03:15:48 +00:00
martinlanghoff
a2ce7344de admin/uploaduser fixes and enhancements
Several fixes and enhancements:

 + No longer fail due to timeouts or memory limits. And let apache know
   that we're a memory hog so it can clean up after us.

 + Add support for user account updates (optional)

 + Add support for user account renames (optional)

 + Cleaned up the logic that deals with creation and failure

 + More robust error handling

 + Use optional_param() -- no longer depends on register_globals
   -- when do we switch that off?

 + Added the relevant documentation.
2006-01-16 03:15:32 +00:00