Commit graph

730 commits

Author SHA1 Message Date
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
defacer
273a80d7be Fixing bug 2935: HTML typo. 2005-04-19 20:45:15 +00:00
thepurpleblob
d30bd73457 delDirContents function added - blasts a complete directory structure. 2005-04-19 15:11:44 +00:00
moodler
7c12949d10 Rationalised get_user_info_from_db() and sundry other small bits into
a single function called: get_complete_user_data()

This is to help shibboleth but will also help when this function
needs to be extended in future.
2005-04-17 12:08:46 +00:00
moodler
2a0f66b4f2 Fix bug in performance_info on IIS http://moodle.org/mod/forum/discuss.php?d=22013 2005-04-16 17:02:05 +00:00
moodler
d6bf473ec2 Added file_get_contents for PHP before 4.3.0 2005-04-16 12:22:24 +00:00
moodler
c70fa20146 New function shorten_text to truncate text neatly 2005-04-14 17:03:11 +00:00
defacer
4f2dbde9f8 Fix for bug 2916, silly silly named constant mistake.
Since we 're at it, fixed another bug: automatic recalculation of DST table
without having to logout if the user changes his timezone now works correctly.
2005-04-14 12:20:09 +00:00
moodler
4febb58f71 Slightly more correct version ;-) 2005-04-14 02:13:47 +00:00
moodler
1596edff55 Added general robustness to require_course_login 2005-04-13 06:59:13 +00:00
moodler
e84a246a55 FIxed a problem I wasn't seeing because I was in debug mode.
get_record_sql now has a second parameter that specifies when
we are expecting to take one record from many (to help with debugging)
2005-04-11 12:07:49 +00:00
moodler
00b60650f2 Added a span around performanceinfo script name 2005-04-11 07:36:52 +00:00
martinlanghoff
6e6053bd18 Merged from MOODLE_14_STABLE. Added option to cache langlist in dataroot/cache/languages. If enabled saves around 10MB of memory and 40 includes (some really large). In HEAD we also get a nice option select in admin->variables. 2005-04-11 06:41:08 +00:00
moodler
8edffd15f6 LIMIT timezones returned to the latest one 2005-04-10 18:27:15 +00:00
moodler
5404e914fb Going back to the slower but always-accurate timezone list method 2005-04-10 17:51:48 +00:00
moodler
1bb1333b0b Centralised timezone list to a function 2005-04-10 17:35:17 +00:00