Commit graph

3353 commits

Author SHA1 Message Date
gustav_delius
e57d9d69f7 Small correction in the documentation for the $CFG global 2006-08-28 09:00:38 +00:00
toyomoyo
1648afb278 changes to how to pull out a list of users (course/module participants) 2006-08-28 08:42:30 +00:00
moodler
b2174cc86b FIxed some file paths 2006-08-28 06:57:40 +00:00
moodler
67a3fac51f Added new field 'ajax' to user table, to store AJAX preference 2006-08-28 06:41:05 +00:00
cap2501
fbca9f0f57 Removed frame around draggable blocks and fixed 'short drag' bug. 2006-08-28 04:33:41 +00:00
moodler
668896e531 It's not required that all modules have the old upgrade function and
the new upgrade function.
2006-08-28 02:10:23 +00:00
cap2501
4a1a14c9d3 added nessicary code for ajax course format 2006-08-28 02:06:04 +00:00
cap2501
d4df8fdcae small changes, also de-tabbed and unix fomatted 2006-08-28 02:05:02 +00:00
stronk7
716332e68b Added support to SQL generation of statements 2006-08-27 22:31:02 +00:00
stronk7
9dbc13db9a Concat operator for mysql added 2006-08-27 22:25:41 +00:00
stronk7
b96aaad125 Concat operator for mssql added 2006-08-27 22:24:09 +00:00
stronk7
a75636b7ed Added support to SQL generation of statements 2006-08-27 22:22:23 +00:00
stronk7
efd1e2032d Added support to SQL generation of install INSERTs 2006-08-27 21:59:04 +00:00
stronk7
3655a6b39f Set magic_quotes_sybase for both mssql and oci8po.
Anyway, this isn't enough and if must be defined in php.ini
or .htaccess, because GPC are added BEFORE this setting
has effect so they are slashed with the default char.
2006-08-27 21:57:33 +00:00
stronk7
de64b6c69e modify stripslashes_safe() to work properly under magic_quotes_sybase
(both addslashes and stripslashes do it properly based on the setting)
2006-08-27 21:52:22 +00:00
skodak
9d4cb9e33b New handwritten XMS schema for install.xml files, generator is fixed to link it too. It is not doing all the checks as XMLDB editor from contrib, but it helps to detect basic problems in general XML editors - such as the one in Eclipse ;-) It can serve also as basic documentation of the install.xml format. 2006-08-27 18:33:37 +00:00
stronk7
d1c21c8f31 Very, very, very, very initial support of insert_record for oracle.
I shouldn't interfere with the rest at all. I needed it in CVS now.
2006-08-27 09:02:41 +00:00
stronk7
d6eb06b60b Initial commit supporting install/upgrade inder XMLDB. 2006-08-27 09:00:23 +00:00
stronk7
b8851b80eb Cache names for improved speed in long iterations requesting
the same name thousands of times.
Prepare Oracle Sequnces for the insert_record function.
2006-08-27 08:52:51 +00:00
skodak
168fa2c1d1 reverting isguest() changes 2006-08-27 08:10:03 +00:00
skodak
18d8a6a741 isguest() compatible with roles 2006-08-26 18:42:56 +00:00
skodak
daed1a2f37 minor trusttext fix 2006-08-26 17:39:31 +00:00
skodak
7d8a3cb06a trusttext:
* proposed by Martin Dougiamas
 * implemented by skodak

Usage:
1/ change enabletrusttext to yes in site settings (it is off by default) or set it in config.php
2/ assign moodle/site:trustcontent capability to users whose text submitted in glossary entries, comments, forum posts etc. should not be cleaned == they can use javascript or any other forbidden tags in glossary and forums...

done:
 * core
 * glossary (without proper upgrade)

to do:
 * data cleaning in upgrades
 * forum, blocks and some other places (MD decides)
2006-08-26 13:00:07 +00:00
stronk7
c8a418b8d6 Max for decimal type in MSSQL is 38 cc. 2006-08-26 00:50:09 +00:00
stronk7
7e8f922047 Adding back the first column in the recordset, that is out after GetAssoc(),
in order to:

- Don't get our first named column under some drivers.
- Be able to migrate to ADODB_FETCH_ASSOC soon.

For more info, http://docs.moodle.org/en/XMLDB_Problems,
in the  ADOdb fetch mode (ASSOC, NUM and BOTH) section.
2006-08-26 00:08:11 +00:00
skodak
426a369bfa fixed missing continue button during upgrade when using dbsessions 2006-08-25 20:50:44 +00:00
skodak
9425b25f46 Many bugs and typos fixed in capabilitties and legacy isteacher() and similar functions - not many lines changed but it was a looong coding day.
Roles and capabilities should be usable now and old unconverted code should work too :-D

Tested only in fresh installation - admin, teacher and student roles should sort of work.
2006-08-25 20:12:12 +00:00
stronk7
09942a5ec2 PGs doubles are caller DOUBLE PRECISION 2006-08-25 17:11:43 +00:00
skodak
51195e6f9f fixed missing global $CONTEXT in get_context_instance() 2006-08-25 14:15:52 +00:00
toyomoyo
41d7209c7f some (mainly admin realated) capabilities 2006-08-25 08:27:27 +00:00
tjhunt
3830553d47 Avoid reserved words in dmllib unit tests.
(Except that TEXT is not a reserved word after all, although some things like TINYTEXT are. Wheird!)
2006-08-24 16:56:59 +00:00
tjhunt
3e3e5a4030 Renamed column question_sessions->comment at Eloy's request since comment is a DB reserved word.
I have not been able to test this fully, because I cannot assign roles (e.g. Student and Teacher) in 1.7dev at the moment to test a student answering an essay question then a teacher grading it. However, I have tested as much as possible as admin and cannot get any errors.
2006-08-24 16:44:15 +00:00
tjhunt
dd4a1bca28 During the conversion datalib -> ddllib, Eloy removed my comment that made it possible to understand how to use table_colum :-( Adding it back. 2006-08-24 15:37:03 +00:00
tjhunt
3ebdddf70f MDL-4816 Fix silly error in my commit for this bug. 2006-08-24 11:37:10 +00:00
moodler
eba88175b6 Formatting fixes 2006-08-24 03:37:41 +00:00
moodler
0a0bb38019 Ed Coyne's AJAX course format, with some cleanups done.
More cleanups to come from Ed.

This isn't actually working for me right now but he'll fix it now.

This is completely optional and won't affect any other code right now.
2006-08-24 03:20:37 +00:00
tjhunt
c82f76d050 MDL-4816 Short answer question type considers '100' and '100.' to be the same Actually, this may have affected other question types too. 2006-08-23 21:17:23 +00:00
toyomoyo
5769734f2a changing default override values 2006-08-23 08:14:14 +00:00
toyomoyo
945f88ca15 various changes - loading capabilities for questions, quiz, hide tab if no assignalbe or no overridable role is found, added some functions and comments in accesslib 2006-08-23 06:36:08 +00:00
moodler
d9a35e1270 Fixed context caching (wasn't using globals) 2006-08-23 01:29:52 +00:00
skodak
a2b0c57b0a debug off level is now 5 instead of 7 to prevent E_WARNING on production sites SC#294; merged from MOODLE_16_STABLE 2006-08-22 22:25:30 +00:00
stronk7
860b55463f Normalizing a bit all the float/double generators. 2006-08-22 22:10:09 +00:00
stronk7
598dc3a99c Change rule to tzrule (reserved word) 2006-08-22 21:19:52 +00:00
stronk7
7970cce9f4 Updated using tzdata2006j 2006-08-22 20:11:33 +00:00
stronk7
c0fe3453ef Change rule to tzrule (reserved word) 2006-08-22 20:10:54 +00:00
stronk7
2efaf3f8ab One trick to allow pseudo-null Oracle insertions. Let's see what happen. 2006-08-22 16:39:14 +00:00
tjhunt
75e84883ca Unbreak roles and permission on Postgres yet again.
If you want a laugh, compare this fix the with the diff between revisions 1.5 and 1.6 of this file.
2006-08-22 16:18:11 +00:00
stronk7
93d2c55ffc Standard naming now user FOUR char for tables (to avoid
avoid some potential duplicates)
2006-08-22 16:15:44 +00:00
toyomoyo
5cf38a57cd some quiz capabilities 2006-08-22 09:04:23 +00:00
stronk7
28f6c41d45 Changed level (reserved word) to aggregatelevel. 2006-08-21 14:59:48 +00:00