Commit Graph

1147 Commits

Author SHA1 Message Date
skodak eb6a973cdf MDL-17847 moev backup_config to config_plugin table 2009-01-11 15:49:35 +00:00
skodak 1caea91efb MDL-17457 moved a lot of code into lib/db/install.php + other refactoring and cleanup 2009-01-11 09:41:48 +00:00
skodak e70da470a7 MDL-14123 Full IPv6 support - reimplemented address_in_subnet() + added more unittests 2009-01-09 21:16:26 +00:00
skodak 65de686486 MDL-14123 cleanremoteaddr improvements and added unit tests 2009-01-09 10:16:07 +00:00
tjhunt 4413941fee course requests: MDL-6160 clean up admin option for choosing who is notified. Merged from MOODLE_19_STABLE.
Also, change the 'notifyloginfailures' setting to use the same sort of admin setting type.
2009-01-08 07:07:00 +00:00
skodak a3c13b97d8 MDL-17808 Use users lastname in password change confirmation mails, thanks Andreas Grupp 2009-01-07 19:03:38 +00:00
skodak 45dda59af2 MDL-14123 Full IPv6 support - reimplemented cleanremoteaddr(), it now accepts local ips too 2009-01-06 22:18:01 +00:00
skodak a91b910e4f MDL-17776 added new define CLI_SCRIPT that identifies all CLI scripts + cron (cli scripts do not have session and do not like HTML in output and are executed from command line, cron is an exception) 2009-01-03 14:28:02 +00:00
skodak e8b7114d5e MDL-17774 refactored USER switching in cron scripts - now standardised in cron_setup_user() 2009-01-03 13:16:59 +00:00
skodak 9bda43e6be MDL-16613 refactore session IP tracking; MDL-14213 improved message when IP changes; MDL-17754 SID is regenerated when terminating session and old session is deleted 2009-01-02 23:49:29 +00:00
skodak 93f66983cc MDL-17773 new get_login_url() function - fixes missing httpslogin tweaks 2009-01-02 22:56:48 +00:00
skodak 27df7ae8a5 MDL-17754 $USER object initialisation cleanup 2009-01-02 21:27:18 +00:00
skodak eb85959b5c MDL-16613 sesskey initialisation refactored 2009-01-02 21:20:00 +00:00
skodak b7b64ff2e0 MDL-17754 next round of session related refactoring 2009-01-02 20:32:05 +00:00
skodak 6132768ecb MDL-17767 loginas refactoring and simplification; full SESSION switching implemented 2009-01-02 15:15:26 +00:00
skodak 542797b4e8 MDL-17767 loginas internals refactoring - code moved to sessionlib.php 2009-01-02 14:53:02 +00:00
skodak 0ad6b20cb2 MDL-17754 session code refactoring; removing test cookie which will be replaced by wwwroot checks 2009-01-02 13:42:43 +00:00
skodak 27134b7dde MDL-17682 added default value for city field 2008-12-29 21:46:59 +00:00
sam_marshall 82bd6a5ea9 MDL-15499: Conditional availability of activities 2008-12-17 16:37:35 +00:00
dongsheng 94b8568628 "MDL-16954, get rid of remote_addr notice on cli, set ip = 0.0.0.0 in mdl_log table when accessed from cli, merged from 1.9" 2008-12-11 05:18:17 +00:00
tjhunt 5138f9623d Remove unnecessary extra $Id$ tag. It messes up the unmerged files list, and makes merging extra difficult. 2008-12-01 07:09:37 +00:00
moodler 469337539f get_user_preferences() Fixed regression so that it returns single value when required 2008-11-25 02:30:27 +00:00
tjhunt 692103a2a5 Let any table have rotated text in its headers. Stolen from sam's activity completion report. 2008-11-18 10:17:27 +00:00
tjhunt 2e3adc25b2 moodlelib: MDL-17208 user preference caching was causing a notice. 2008-11-12 01:26:49 +00:00
tjhunt faf75fe715 role overrides: MDL-17070 Improve override roles page to match the recent usability improvements on the assign page.
Including:
MDL-11529 When assigning/overriding roles, the dropdown for switching to another role should have a number in brackets

MDL-16549 Should not be able to edit the permission associated with moodle/site:doanything on any role.
2008-11-05 08:17:30 +00:00
stronk7 05ed3df5e0 MDLSITE-548 - langconfig: Adding thousands separator. Merged from 19_STABLE 2008-11-04 16:53:16 +00:00
tjhunt 2660377f72 user preferences: MDL-17123 cope correctly with multiple sessions.
This steals the logic from accesslib used to detect dirty contexts and so reload cached access data when permissions are changed.

Here, we track when user preferences are changed, so that if necessary we can trigger a reaload. This helps in two situations:
1. When you are logged into Moodle with two different browsers.
2. When someone else changes one of your preferences.
After this change, you will see the changed user pref immediately in all sessions.

This adds one cheap DB query to any page that tries to access a user preference (which is almost all of them, because of deciding whether to show the messaging pop-up). It adds a few more queries in the cases when a user preference is changed. This is in the name of correctness.
2008-11-04 10:49:31 +00:00
tjhunt c9f8e118c9 user selection: MDL-17072 Polishing the role assign page:
* Make the role being assigned clear in the title
* Make the options in the middle of the page be in a collapsable options section, collapsed by default.
* Put them in a smaller font too.
* Switch the date selectors here to use a shorter date format, and change 'Course start date' to 'Course start'.
2008-11-03 06:06:08 +00:00
dongsheng aa19998a72 "MDL-16954, use rebert\'s patch to clean notice/warning in cron job via php cli, merged from 1.9" 2008-11-03 05:25:30 +00:00
tjhunt f2eb500238 weblib: MDL-17085 a function to print a collapsible region of the UI, with the collapsed state stored in a user_perference. 2008-11-03 05:04:23 +00:00
tjhunt bd1884fe6b ajax: MDL-17084 provide a way for JavaScript to update user preferences. 2008-10-31 08:25:19 +00:00
jamiesensei ba1ff79a76 MDL-17000 "telling get_list_of_plugins() to ignore simpletest directories" added simpletest to the list of dirs to ignore. 2008-10-24 15:17:45 +00:00
tjhunt 6ff2be37f5 moodlelib iprange checks: MDL-16986 If the user makes a mistake and types something like 172.16.1.143/148, with something greater than 32 after the slash, treat it as /32. 2008-10-24 02:53:51 +00:00
fmarier ecc3137831 moodlelib/welcome message: MDL-16947 (merge from 1.9) 2008-10-22 02:35:24 +00:00
poltawski db53480058 MDL-16428 - fix typo 2008-10-09 13:00:48 +00:00
tjhunt 7a1f5e932a MDL-16706 - eliminate miscellaneous inine JavaScript
A few easy files in lib.
2008-09-26 11:24:52 +00:00
scyrma 1337d29583 MDL-16700: Making the password policy be applied all at once. (merge from 1.9)
Also, any policy letting a user use password "password" is not worth using, so removing this check.
2008-09-26 08:09:47 +00:00
skodak d63339082a MDL-16554 no striplashes in HEAD anymore 2008-09-23 20:51:47 +00:00
skodak 5fc9760399 MDL-16626 simplified editor selection, going to change it a bit more later 2008-09-23 15:19:21 +00:00
skodak 09af05ba19 MDL-16629 removed legacy unfinished multiple editors code 2008-09-23 14:34:58 +00:00
tjhunt 3a4f0a34f5 MDL-13894 Impoved fix with less duplicated code, no notices displayed before you get to the 'New settings' screen, and named constants instead of magic numbers. 2008-09-23 05:18:42 +00:00
jamiesensei 9db3992a65 MDL-16606 "userdate inserts a space in front of date when chopping off the leading 0 on day of the month produced by %d"
extra space was used in front of %d so that we can detect the difference between a leading 0 and something like 10, 20, or 30. The extra space was removed along with any leading 0 but not if there was no leading zero.

Now removing extra space even if there is no leading zero.

Now applying fix to conditional branch for when using a time offset from GMT instead of server time.
2008-09-22 10:32:28 +00:00
jamiesensei 3e95343a88 MDL-16606 "userdate inserts a space in front of date when chopping off the leading 0 on day of the month produced by %d"
extra space was used in front of %d so that we can detect the difference between a leading 0 and something like 10, 20, or 30. The extra space was removed along with any leading 0 but not if there was no leading zero.

Now removing extra space even if there is no leading zero.
2008-09-22 10:26:44 +00:00
dongsheng 70fa4b2963 "MDL-16554, strip slashes in email, checkin the patch" 2008-09-22 03:21:39 +00:00
nicolasconnault 137a3498fe MDL-13894 Fixing mistyped cfg var 2008-09-18 10:24:52 +00:00
scyrma 62ea712f60 MDL-13894: saving a better source IP, following what the admin wants. (merge from 1.9) 2008-09-18 08:18:58 +00:00
skodak 9c98b43986 MDL-16468 never mail deleted users; merged from MOODLE_19_STABLE 2008-09-11 19:54:39 +00:00
tjhunt 4b600aa005 MDL-16410 Implement the delete question type functionality on the question type administration screen. 2008-09-11 11:01:20 +00:00
tjhunt ad944e7832 MDL-16343 New PARAM_ type, PARAM_CAPABILITY. 2008-09-08 07:00:49 +00:00
tjhunt a905364a0a MDL-16029 Deprecate $extralocation parameter of get_string. 2008-09-03 06:02:38 +00:00