Commit graph

1537 commits

Author SHA1 Message Date
moodler
c4d0753b25 Moving deprecated functions to deprecatedlib.php from moodlelib.php and
some cleanups around the place.

Many of the functions in deprecatedlib.php have been rewritten to work with
the new roles and capabilities so that they can still work as well as possible.
2006-09-03 08:10:10 +00:00
skodak
86a1ba04fd replace all uses of isset($USER->id) with empty() to allow proper operation of $CFG->notloggedinroleid hack 2006-09-02 11:44:04 +00:00
skodak
35a518c5de fixed admin defaults, some warnings during install and added trmporary hack to make $CFG->notloggedinroleid work 2006-09-02 10:03:30 +00:00
toyomoyo
20aeb4b8e3 utf8 migrate support for site with roles active, resolved isstudent legacy problem, implemented $CFG->notloggedinroleid 2006-09-01 09:25:34 +00:00
skodak
e1ecc9fbbe imported newer PCLZIP library; added directory restriction to our own security checks 2006-08-30 08:51:57 +00:00
moodler
0e4af1664c New param type, PARAM_SEQUENCE for 5,6,7,8,9 2006-08-29 02:26:37 +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
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
tjhunt
d3eeba599b Delete stray space. 2006-08-15 16:53:24 +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
bade10e350 Removed all of the "Restricted users" hack because Roles can do it all better. 2006-08-13 07:01:57 +00:00
moodler
5ec8a4f009 Removed tabs 2006-08-09 13:18:33 +00:00
moodler
bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
skodak
df77b427d5 check_dir_exists() has new recursive parameter - it should help clean up the restore code a bit and could be handy elsewhere too; tested in both linux and windoze 2006-08-02 19:40:58 +00:00
skodak
3ea3763a18 Bug #6146 - Smiley popup can not be translated; merged from MOODLE_16_STABLE 2006-07-31 10:28:12 +00:00
skodak
be933850a7 Bug #6176 - locale setting on config variables page not functioning correctly; merged from MOODLE_16_STABLE 2006-07-30 10:39:21 +00:00
skodak
f4f6599085 Bug #6183 - typo in clean_param() description; merged from MOODLE_16_STABLE 2006-07-28 20:57:19 +00:00
moodler
fa145ae1af Merged fixes from stable 2006-07-19 10:21:52 +00:00
skodak
18478666ca fixed printing of filenames from zip archives - SC#273; merged from MOODLE_16_STABLE 2006-07-12 05:57:28 +00:00
stronk7
1a9b9a0143 Emulate file_put_contents() under PHP 4.3.x 2006-07-11 17:42:21 +00:00
skodak
f262874bbe Bug #5909 - Fix use of user_group() because it returns arrays now - part 1; merged from MOODLE_16_STABLE 2006-07-03 21:11:17 +00:00
tjhunt
3ef8c9362d Bug #5979 - Check in the OU's unit testing framework. Docs at http://docs.moodle.org/en/Unit_tests 2006-06-30 14:59:05 +00:00
skodak
77cf4951b7 fixed Turkish problems see, Bug #5878 - Teachers can't add blog and blocks; merged from MOODLE_16_STABLE 2006-06-26 07:23:10 +00:00
stronk7
c0bd060a58 Change the moodle_strtolower() function to use textlib services.
Also, mark it as deprecated, code should use text services directly.
Partially, bug 5777. It continues under investigation.
(http://moodle.org/bugs/bug.php?op=show&bugid=5777)

Merged from MOODLE_16_STABLE
2006-06-10 10:40:16 +00:00
stronk7
d96466d29f Moving from lastIP to lastip everywhere. Bug 5763.
(http://moodle.org/bugs/bug.php?op=show&bugid=5763)

Merged from MOODLE_16_STABLE
2006-06-09 10:04:43 +00:00
vyshane
69c9c3e696 Fix for get_string(), which was not building path to report language files
correctly.
2006-06-01 03:10:17 +00:00
moodler
45fc1f759e Make $COURSE a full object for later use 2006-05-29 07:31:22 +00:00
skodak
043f527471 Bug #4779 - lib/moodlelib.php: typo; merged from MOODLE_16_STABLE 2006-05-25 06:34:33 +00:00
skodak
a38a768b29 fixed cleaning of path in custom scripts SC#221; merged from MOODLE_16_STABLE 2006-05-20 17:23:14 +00:00
skodak
4a10c3875b fixed - disabled autologinguest not always respected in require_login() SC#255; merged from MOODLE_16_STABLE 2006-05-19 19:11:30 +00:00
skodak
2c3432e684 fixed problem when set both loginhttps and https in wwwroot, closes bug #5507 and #3848; merged from MOODLE_16_STABLE 2006-05-15 21:36:46 +00:00
skodak
aaeaa4b007 fixed alternative salt index range - now allowed 1...20 2006-05-01 21:32:49 +00:00
skodak
4908ad3ebf added optional salting of user passwords stored in internal table - first part; admin UI and docs coming soon (SC#236) 2006-04-30 21:02:28 +00:00
moodler
35ca0d6a45 Add a new function fullclone() to forcibly make a complete copy of a structure 2006-04-26 04:39:34 +00:00
skodak
463468bc96 fixed typo in ismember() - nasty one!
and some warnings get_directory_size()
2006-04-22 16:45:12 +00:00
moodler
08bdcd3974 Added more common mail charsets to choose from bug 5229 2006-04-20 08:21:58 +00:00
moodler
02c649e69e Make email address denying work a little more rigorously. bug 5250 2006-04-20 08:17:11 +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
stronk7
717f14b627 strstr(string haystack,string needle). We were doing the opossite. Bug 5037.
(http://moodle.org/bugs/bug.php?op=show&bugid=5037)
2006-04-15 17:30:23 +00:00
skodak
eb59ac2777 PARAM_BOOL now accepts "yes/no" too 2006-04-12 16:55:47 +00:00
skodak
2451dcc3aa added proper parameter type in confirm_sesskey() 2006-04-11 20:07:57 +00:00
stronk7
6346748fec Strip the "_utf8" suffix from language names in list of languages.
(http://moodle.org/bugs/bug.php?op=show&bugid=4924)
2006-04-10 22:53:53 +00:00
moodler
f07fa64418 Of $COURSE you can't redefine constants :) 2006-03-29 17:56:35 +00:00
stronk7
063716bad9 Now new lang packs won't be available until UTF-8
migration was performed. Until then, only "en" and
old lang packs will be available.

The opposite is also true: only new lang packs will be available
once the UTF-8 migration was performed.
2006-03-29 16:18:46 +00:00
moodler
00a67d879c Just removing a space 2006-03-29 15:39:21 +00:00
moodler
8a58a8e17f Starting the global COURSEID.
require_login seems to be the best place to capture this, however
I'm sure there are a few little places where it won't work.

We need to hunt these places down and fix them, because I would
like to rely on COURSEID and remove all the "global $course" hacks
that are floating around.

Probably later we need the full object $COURSE as well (to match $SITE)
2006-03-29 15:38:29 +00:00
moodler
1ae655b17c Support for $CFG->sessioncookiepath 2006-03-28 05:26:18 +00:00
stronk7
11f7b25d18 Bump! Now we support Win32 locales. B-)
Anyway some "holes" remain. See:

http://docs.moodle.org/en/Table_of_locales
2006-03-25 12:26:33 +00:00
moodler
42431d7a30 Fixed bug in make_mod_upload_directory() vecause of new lang packs 2006-03-21 16:57:32 +00:00