Commit graph

3161 commits

Author SHA1 Message Date
skodak
c0e3c8d2b2 import of new ADODB v4.92 library 2006-08-29 20:23:17 +00:00
moodler
0e4af1664c New param type, PARAM_SEQUENCE for 5,6,7,8,9 2006-08-29 02:26:37 +00:00
cap2501
7c72c2889a updates to accommodate retooled command.php 2006-08-29 02:03:00 +00:00
cap2501
04ba9d5330 updates to accommodate retooled command.php 2006-08-29 01:35:01 +00:00
skodak
d389b12829 create safer .htaccess SC#302 2006-08-28 21:07:43 +00:00
skodak
57e35f328a basic detection of sites with misconfigured dataroot SC#295 2006-08-28 20:11:24 +00:00
stronk7
ba05965e5c Messages about missing functions in old and new upgrade are showed
only if the corresponding file exists.
2006-08-28 15:47:45 +00:00
stronk7
b477a2f166 Changing one wrong previous value. 2006-08-28 15:21:41 +00:00
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