Commit graph

1414 commits

Author SHA1 Message Date
skodak
bad211a3b9 enabletrusttext can not be 1 by default - it is new, not much tested and maybe even insecure feature ;-) 2006-08-28 18:46:37 +00:00
skodak
635c0e0b4a turning on the upgrade in progress check again, added skip warning link 2006-08-28 18:07:15 +00:00
vyshane
7654b2bb08 Added lang string 2006-08-28 07:30:07 +00:00
moodler
9250203ff5 Added a better string as per MDL-6379 2006-08-28 07:12:10 +00:00
vyshane
e823cd13fa Cleanups 2006-08-28 06:36:36 +00:00
vyshane
620e1e5b27 Fixed notice. 2006-08-28 06:14:58 +00:00
vyshane
d50ccb9932 Fixed notice 2006-08-28 06:14:06 +00:00
vinkmar
f1700fab26 Install/upgrade procedures changed to use $ADMIN instead of defaults.php and config.php.
See http://moodle.org/mod/forum/discuss.php?d=52636 for details
2006-08-28 06:02:00 +00:00
vinkmar
9519ee2eb7 * admin_setting defaults added 2006-08-28 01:32:11 +00:00
vinkmar
d83f27cefe * documentation started in adminlib.php
* default for block editing changed to "off" (bug in previous revisions)
* added defaults for all admin_setting's
2006-08-28 01:31:37 +00:00
stronk7
f2e0049dec Just remove one condition previously checked. 2006-08-27 08:58:09 +00:00
skodak
b8dc934baa fixed table already exists problem during install and upgrade in Opera 2006-08-26 17:20:52 +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
toyomoyo
41d7209c7f some (mainly admin realated) capabilities 2006-08-25 08:27:27 +00:00
stronk7
c779eb1a15 Added support for the new upgrade system for main tables. 2006-08-24 22:27:11 +00:00
vinkmar
236c08a56f Added support for phpMyAdmin plugin. 2006-08-24 06:44:35 +00:00
toyomoyo
ae1e00a089 renamed variable so that it doens't get recycled 2006-08-23 08:11:43 +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
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
vyshane
021a7467b5 Fixes:
1) has_capability call used in fullname()
2) initialised array $options
3) $context->level has been renamed to $context->aggregatelevel
2006-08-22 05:44:32 +00:00
vyshane
c1a657cc1f Bug fixes:
1) Replaced isteacher call in fullname ($course undefined)
2) Initialised $options array
2006-08-22 05:35:52 +00:00
toyomoyo
d140ad3f7c fix for bug #6307, reserved word 'level' changed to 'aggregatelevel' for Oracle. Some parts could be broken by this. please report breakage asap! Thanks 2006-08-21 05:19:16 +00:00
vinkmar
6fcbab99ef fixed tabs, fixed potential notices for undefined variables, added structure that will be used for detecting what variables to flag during installs & upgrades, removed all $_GET usage, switched 'admin' to $CFG->admin (for directory paths), and fixed blank line at end of index.php 2006-08-21 04:06:58 +00:00
stronk7
420f683619 Core tables XMLDB installation is now working. Disabled by default
until fully working.

$CFG->xmldb_enabled = true; will enable it for test/dev against any DB
2006-08-20 11:20:40 +00:00
vinkmar
36647b9fbb More PHP4 compatibility issues fixed. 2006-08-20 03:56:25 +00:00
moodler
3566b97c4a Fixing some strings 2006-08-19 08:21:05 +00:00
vinkmar
95cdbec95f Added paramtypes (mandatory) to all text field objects. 2006-08-19 05:34:25 +00:00
vinkmar
7ba710e6a3 Small bug fix. Caused problems when moving or deleting blocks. 2006-08-19 05:32:56 +00:00
moodler
6e0993ee48 Just tidying up things a bit as I look it over 2006-08-19 02:46:46 +00:00
vinkmar
085dfc0c20 solving the issue with an undefined sesskey (happens when there is no user logged in) 2006-08-19 02:26:01 +00:00
vinkmar
63aafc9e56 Fixing errors in admin page cleanup; working towards compatibility with PHP4 (use of interfaces, private/protected/public, instanceof all removed). 2006-08-19 01:37:38 +00:00
vinkmar
3d8ef99d9e Blocks fixed in admin pagelib, and (hopefully) many notices pointed out in the general forum board no longer show up. 2006-08-18 22:00:37 +00:00
vinkmar
cdb46b63d2 more bugs! incompatibility with php 5.1.2 (presumably earlier versions as well) fixed 2006-08-18 08:40:58 +00:00
vinkmar
dca7a9cfad admin page cleanup (bug fixes :) ) 2006-08-18 08:16:32 +00:00
toyomoyo
68c5252623 adding functions and interface for access control - role assignment and role overrides 2006-08-18 08:01:16 +00:00
vinkmar
4cd174bfce Reverting changes to file from admin page cleanup... whoops! Accidentally broke the install. 2006-08-18 07:52:56 +00:00
vinkmar
90a73bb361 Admin page cleanup (Google soc 2006) 2006-08-18 07:25:17 +00:00
vinkmar
a7c72afc04 Admin page cleanup (google soc 2006) 2006-08-18 07:23:02 +00:00
skodak
dedb2304cd upgrade logging cleanup, fixes - more improvements ahead 2006-08-17 22:37:34 +00:00
stronk7
4d00e5e4ec Now admin includes all the required ddllib stuff 2006-08-17 16:59:39 +00:00
toyomoyo
b3e900cee6 some more UI change 2006-08-16 09:11:43 +00:00
toyomoyo
0a8a95c91e some more UI stuff 2006-08-15 08:29:29 +00:00
skodak
4c460d9821 fixed admin page layout 2006-08-14 08:52:15 +00:00
toyomoyo
7e2d7c92ad some UI changes 2006-08-14 08:46:44 +00:00
moodler
f2e21e6c03 Fix error string 2006-08-14 06:03:30 +00:00
moodler
0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
moodler
624f2fea76 Removed some old calls to isadmin 2006-08-13 13:12:51 +00:00
moodler
7fad699525 Tidying up some spelling 2006-08-13 09:29:33 +00:00
moodler
8737be587d More language-related tidyups and a new get_local_override() function 2006-08-13 09:25:45 +00:00
moodler
ceb83c70ba Changes to string format for capabilities 2006-08-13 09:11:45 +00:00