Commit graph

945 commits

Author SHA1 Message Date
moodler
01af6da601 Added hooks for new SSO capability (Single-Sign-On or Second-Sign-On) 2005-07-15 04:26:18 +00:00
stronk7
c4eeb30137 Added HTTPSPAGEREQUIRED support to some mail functions.
Merged from MOODLE_15_STABLE
2005-07-15 00:04:51 +00:00
ikawhero
463a92dbef Use absolute path name for include. Bug 3660. 2005-07-15 00:00:35 +00:00
stronk7
d7697d0ec0 Add the httpsrequired() function to be 100% SSL in some pages.
Merged from MOODLE_15_STABLE
2005-07-14 19:44:42 +00:00
moodler
18259d4fd3 Adding the capability to replace existing scripts with customised versions.
See config-dist.php for more info.

Will add an admin interface for this later.

Shane.
2005-07-14 15:35:23 +00:00
stronk7
244b4e8f7c SC#106
Merged from MOODLE_15_STABLE
2005-07-14 15:18:51 +00:00
moodler
ba17c5d47c Fix for bug 3736 for more robustness in delaing with bad lang packs 2005-07-12 11:35:30 +00:00
dhawes
68fbd8e13e more phpdoc work 2005-07-12 03:09:25 +00:00
dhawes
bbd3f2c461 phpdoc comment work 2005-07-12 02:06:33 +00:00
skodak
95bfd2078b merged from MOODLE_15_STABLE 2005-07-04 20:23:53 +00:00
gustav_delius
e0c5c5e974 Remove potential PHP notices when $course is not an object. 2005-07-01 17:21:52 +00:00
fiedorow
952284c1b0 Fix for bug #3607 2005-06-23 11:43:20 +00:00
thepurpleblob
85ab74001a merged from STABLE 2005-06-23 09:04:16 +00:00
thepurpleblob
415b7eac8e merged from STABLE 2005-06-21 12:30:34 +00:00
thepurpleblob
220776acdd Merged from STABLE 2005-06-20 09:15:30 +00:00
thepurpleblob
eed6bf497f Yes, another stupid typo. 2005-06-13 19:07:15 +00:00
thepurpleblob
84a422500e Whoops. Typo! 2005-06-13 16:24:47 +00:00
thepurpleblob
614cd5355a Added utility function object_property_exists() 2005-06-13 16:23:10 +00:00
mjollnir_
e67755a1b0 Merged from MOODLE_15_STABLE: Email bounce handling: fixing md5 validation bug 2005-06-13 00:17:16 +00:00
thepurpleblob
7a530277ef Added isset_param() convenience function to test if a param is set.
To get the nasty activity in one place and to improve code readability.
2005-06-10 09:51:25 +00:00
thepurpleblob
8ee1b0afab Removed assert_var_exists() function that did nothing useful. 2005-06-10 09:11:07 +00:00
thepurpleblob
373da1d463 Added $CFG->disableglobalshack option for testing 'register_globals' free code
Also kills require_variable() and optional_variable() if true
(effectively kills Moodle dead - if true - at the moment!)
2005-06-10 08:55:26 +00:00
thepurpleblob
b78fbdac9d changes merged from STABLE 2005-06-09 14:04:38 +00:00
thepurpleblob
3a61ccbe0a Merged changes from STABLE 2005-06-07 12:37:44 +00:00
martinlanghoff
a40803130b Per-auth-backend field locks support. Merged from MOODLE_15_STABLE
* Extended set_config()
 * Implemented get_config() which takes over $CFG loading in setup.php
 * admin/auth.php has special handling if post vars starting in pluginconfig_
 * admin/auth.php print_auth_lock_options() prints a form fragment -- being called from most plugins now
 *  user/edit.php follows the new convention when locking down fields, both javascript UI and on POST.
 * admin/auth: More solid checking for auth GET/POST var.
 * admin/auth: print_auth_lock_options() now handles user field mapping options for LDAP and similar modules
 * admin/auth: user mapping options have moved to config_plugins table
 * auth/ldap module has migrated to using new field mapping vars -- simplified config.html a lot
 * auth settings migration to config_plugins
2005-06-02 05:39:41 +00:00
mjollnir_
2019116ea9 Merged from MOODLE_15_STABLE: Fixing up problem in generate_email_processing_address -- using sitesecret rather than siteidentifier 2005-05-30 23:26:17 +00:00
moodler
50ab1dfae8 Merged mail fix from 1.5 stable 2005-05-30 18:10:57 +00:00
stronk7
7eec33905f format_string() applied one deleting courses... 2005-05-29 17:27:00 +00:00
moodler
c6a4e7e592 Merged ignoresesskey from stable 2005-05-28 14:03:32 +00:00
moodler
7c7ca1b5ba Merged fix from stable 2005-05-28 06:39:38 +00:00
martinlanghoff
b9bb37f30d get_list_of_timezones() - backed out optimization in sorting at the database; we need to sort the translated names, not the db names. Thanks Jon for the heads up. 2005-05-20 00:50:45 +00:00
martinlanghoff
7641e51553 get_list_of_timezones() - fix to usage of GROUP BY (fixes Postgres support) and optimization in sorting at the database. By Patrick Li 2005-05-20 00:14:32 +00:00
moodler
0e874e2c7a Fixes for load average display ... see bug 3249 2005-05-15 04:22:40 +00:00
moodler
c3a3c5b8b2 Fixed logic for $CFG->nofixday : http://moodle.org/mod/forum/discuss.php?d=23637 2005-05-12 06:37:24 +00:00
paca70
eeefd0b0df Use SITEID instead of hardcoded value.
SITEID could be != 1 in older installations.
2005-05-11 08:57:14 +00:00
moodler
4c20222852 A quick hack to allow anonymising of all names.
You can make everyone have the name "Bruce" if you want.   }-)
2005-05-10 06:18:30 +00:00
moodler
254dfbfa34 This should get you where you were trying to go in the first place
when the session timed out.

Not tested though.
2005-05-09 17:45:07 +00:00
moodler
42146c8cf4 Session error redirects to login page bug 3178 2005-05-09 17:42:17 +00:00
gustav_delius
4b97919fcd I have changed check_php_version() to use version_compare() in an attempt to fix bug 3176 2005-05-09 17:24:03 +00:00
moodler
7cbe6afeaa Cookies are not used with guests 2005-05-07 03:10:48 +00:00
stronk7
a8936222b1 Added some comments to remember why they are there... ;-) 2005-05-04 23:14:09 +00:00
stronk7
4e8f2e6ba3 Changed call from preg_replace() to preg_replace_callback() to avoid
some double backslashes present yet. This method doesn't addslashes()
automatically like the old one (so kses_stripslashes() is not needed).

All we have to to is to stripslashes() before calling kses and addslashes()
after it. Only in clean_param(), because params arrive always slashed
to Moodle. This seems to be the correct approach documented in:
http://sourceforge.net/project/shownotes.php?group_id=81853&release_id=302996
2005-05-04 23:09:43 +00:00
moodler
0549198cf0 A fix for kses problems with quotes ... 2005-05-04 18:25:35 +00:00
moodler
f64c1ef666 Fix log entry for failed logins. Bug 3076. (SE) 2005-05-04 07:06:24 +00:00
defacer
28c66824e7 Fixing two bugs:
1. When user was using "Server's local time", and the server was set up to
   use DST, generated timestamps must have been wrong in DST periods (I
   haven't backtracked to test this, but the code reads this way).

2. On Eloy's Mac (let's not generalize without data), passing is_dst = 0 to
   gmmktime caused it to return WRONG results!

   The PHP docs clearly state that in_dst does NOT affect the return value,
   which is true for me but in Eloy's case it was a lie. Obviously PHP bug here.

Also, moved the if($applydst) check into the else branch because it would do
nothing at all if (abs($timezone) > 13) in any case.


I hope Eloy keeps finding more bugs because he promised me a beer for this fix ;-)
2005-05-01 16:50:35 +00:00
defacer
0c24431590 Fix for bug 3045:
Now usertimezone() gives a correct human-readable string in all cases.
2005-04-27 03:42:07 +00:00
moodler
0b78f2b1bd By default editing teachers should see all groups even if they are in a group 2005-04-26 08:00:56 +00:00
moodler
efca05b447 Added a double-check that should stop the locale-switching that's been happening 2005-04-23 15:16:43 +00:00
moodler
29e91ef724 Embedding the session checking a little better 2005-04-23 15:02:00 +00:00
martinlanghoff
d6ead3a251 Polish and fixes for language cache -- addresses bug 2891 2005-04-20 07:29:28 +00:00