681 Commits

Author SHA1 Message Date
defacer
0f269d53ac Just a new button in the calendar admin screen to link to point to dst_update.php 2005-02-25 04:34:15 +00:00
defacer
d2fb3ce941 First version of automated DST update script. It DOES work, but it's barebones. 2005-02-25 04:23:21 +00:00
skodak
39ba6d586a Slasharguments test for health center, please test 2005-02-24 21:14:32 +00:00
moodler
0143fb9f94 Upgrade activity modules first ... see bug 2630 2005-02-24 09:03:24 +00:00
gustav_delius
6f07ab6444 Updated calls to get_string() for some strings that were moved to lang/en/admin.php 2005-02-24 08:49:32 +00:00
stronk7
856bf0456b Now SITEID folder is created if it doesn't exist. Bug 2580
(http://moodle.org/bugs/bug.php?op=show&bugid=2580)
2005-02-24 00:01:52 +00:00
moodler
91099e368b Added checks for allow_fopen_url in two more places! 2005-02-23 15:40:53 +00:00
moodler
ab6d2992e8 Search = GET and fixed the dead end when no results to search 2005-02-21 13:50:06 +00:00
moodler
09d55a78c6 Reverting recent changes 2005-02-18 13:41:26 +00:00
moodler
416954db7e Obsolete 2005-02-18 03:52:22 +00:00
defacer
68849c082a Patching with a metahack to handle our date-format-string compatibility hack. 2005-02-18 03:44:13 +00:00
defacer
62576f3c64 Fix some JS warnings if there are no DST presets, and correct behavior
when deleting a preset forced for every user.
2005-02-18 03:33:01 +00:00
defacer
81e6a0a5af More UI for calendar and DST options. 2005-02-17 00:16:15 +00:00
defacer
b8a6c0da69 Improving admin interface for the calendar options with the new themes. 2005-02-16 23:51:26 +00:00
defacer
42d364974a Fixing stuff I broke with my last commit. 2005-02-16 22:04:14 +00:00
defacer
196f2619c0 Working for DST support. 2005-02-16 21:50:25 +00:00
mudrd8mz
7a4a836dad Script now doesn't create empty /docs and /help files. A template for new
files can be defined (see $filetemplate variable)
2005-02-16 15:19:51 +00:00
fiedorow
897a73ae69 Allow authentication method to be specified in bulk upload 2005-02-16 14:15:11 +00:00
moodler
9fdf4dae6b Init $options array ... I'm sure there is much more. 2005-02-15 17:00:04 +00:00
moodler
2bb407f51d Very very quick checking of new lang doc editing script from David Mudrak,
with significant cleanups

Needs some testing.
2005-02-14 19:35:53 +00:00
moodler
3538a79693 New admin config variable 'allowuserblockhiding' will enable/disable the
collapsible blocks feature.  It's on by default.

Also, removed thead/tbody from blocks (using th instead for the header).
2005-02-14 16:42:52 +00:00
martinlanghoff
bf17309a02 Merged from MOODLE_14_STABLE - Stop DB inserts we know are going to fail, and clearer error message when file upload stops. 2005-02-14 06:07:59 +00:00
gustav_delius
6e3e7e0e18 fixed typo, closing bug 2167 2005-02-13 21:29:20 +00:00
moodler
32e2b30209 This more or less completes the PHP side of the 1.5 themes
Added $user->theme and $course->theme choices, controlled by admin
variables on the main config variables page.

By default this is all turned off, since multiple themes can be
a little disorienting.

A hidden feature is session themes ... you can change the theme
on any page by passing theme=xxxx as a parameter.  By default this
requires sesskey (so that people don't change theme on each other),
but this security can be switched off using a hidden variable
$CFG->allowthemechangeonurl = true;   Good for quick tests.
2005-02-10 10:28:27 +00:00
mjollnir_
303d0af144 In email processing, change sitesecret (non existant) to (already used) siteidentifier 2005-02-10 07:53:52 +00:00
moodler
1695b68032 New feature: maintenance mode.
Admin can put a site on hold during an upgrade or theme changing etc

Controlled by a file in dataroot, so it can also be controlled via command line:

    touch moodledata/1/maintenance.html

    rm moodledata/1/maintenance.html
2005-02-10 05:11:34 +00:00
defacer
01315a50c7 Fixing a typo. 2005-02-09 19:52:33 +00:00
moodler
2cef72d23a Shane's reorganised the configuration variables 2005-02-09 13:50:35 +00:00
moodler
9ca16fd456 Some cleaning up of configuration interfaces 2005-02-09 13:04:04 +00:00
moodler
206483974f Just a little tidying up 2005-02-08 17:33:13 +00:00
moodler
3c5206598d FIxed some formatting 2005-02-08 14:49:57 +00:00
moodler
21c7f77048 Removed a lot of needless <p> tags 2005-02-08 09:36:21 +00:00
moodler
33aa00b4c7 Removed some stupid paragraphs 2005-02-08 08:14:53 +00:00
mjollnir_
bb64b51aa3 First cut of email to module (or core) processing.
This patch contains:

* email_to_user will set the envelope sender to a special bounce processing address (based on $CFG settings)
* email_to_user will accept (and set) a reply-to header, to be generated by the module calling the function.

* new functions:

	* generate_email_processing_address - ALWAYS use this to generate the reply-to header. reply-to header will look like this:

	(LIMIT: 64 chars total)
	prefix - EXACTLY four chars
	encodeded, packed, moduleid (0 for core) (2 chars)
	up to 42 chars for the modules to put anything they want it (can contain userid (or, eg for forum, postids to reply to), or anything really. 42 chars is ABSOLUTE LIMIT)
	16 char hash (half an md5) of the first part of the address, together with a site "secret"

	* moodle_process_email - any non-module email processing goes here (currently used for processing bounces)

* bounce handling:

	* config settings for bounce threshold and ratio (and whether to handle bounces at all)
	* if too many bounces occur against any given user, user_not_fully_set_up will force an email address change
	* associated functions (over_bounce_threshold, set_send_count, set_bounce_count)

* handling emails to noreply address (see below)

* new script - admin/process_email.php

	This script needs to be called from your mail program for anything starting with the 4 char prefix described above (and optionally, the noreply address)
	It will bounce emails to the noreplyaddress, with a friendly "this is not a real email address" message

	It will break down and unencode the email address into moduleid and validate the half md5 hash, and call $modname_process_email (if it exists). Arguments to these functions are: $modargs (any part of the email address that isn't the prefix, modid or the hash) and the contents of the email (read from STDIN).

* associated string changes/additions

* changes in config-dist.php to give clues as to how to set this up.

MODULE WRITERS!

take a look at new functions moodle_process_email and generate_email_processing_address  in moodlelib.php for ideas about how to

	* encode and unencode the arguments your module needs to do the processing
	* how to deal with multiple "actions" for any given module.

Martin Langhoff <martin@catalyst.net.nz> will be writing up some PROPER documentation, containing amongst other things config settings for different mail servers (this was developed against Postfix).  Feel free to email me with any feedback on the code or design, penny@catalyst.net.nz.  Or post on the developer fourm.
2005-02-08 02:57:14 +00:00
defacer
b70b8fe1e0 Adding test for empty db password. 2005-02-08 02:43:36 +00:00
moodler
002f03a172 Allow longtimenosee to be zero 2005-02-07 01:21:50 +00:00
defacer
527d9cddbc First rough version of the "Health Center", so people can play around. 2005-02-07 00:45:41 +00:00
moodler
8b55d08598 Update copyright to 2005 2005-02-01 10:08:26 +00:00
moodler
cdf3925518 Messaging can now be completely disabled using $CFG->messaging 2005-01-31 07:11:42 +00:00
defacer
7542a4e574 Dropping the use of MOODLE_PAGE_COURSE <gasp>!
The new constant is PAGE_COURSE_VIEW, and it's more streamlined with the
new CSS-related ids for 1.5. There are great possibilities for the future
here, so we 're getting ready.

On the other hand, this has to be the ugliest hack I 've ever inflicted
on any program (look at pagelib.php). Thankfully it will only stay for just
a little while.
2005-01-31 02:18:15 +00:00
moodler
3c02d134da Removed $THEME from admin pages 2005-01-25 17:08:05 +00:00
urs_hunkler
29db66d23d Deleted style="text-align: center;" in the surounding DIV 2005-01-25 15:24:11 +00:00
mjollnir_
b61efafba5 Initial checkin for new meta courses feature. Please test!
See http://moodle.org/mod/forum/discuss.php?d=17269 for description.
2005-01-24 22:21:28 +00:00
dhawes
327b622dfa quotes update 2005-01-24 01:21:16 +00:00
defacer
04280e857e Renamed set_user_sesskey() to just sesskey(). SC#74 2005-01-23 22:07:13 +00:00
stronk7
a3f6fc66fe Changed some sesskey behaviours SC#73 (admin part) 2005-01-23 11:49:13 +00:00
stronk7
94ff12c429 Changed some sesskey behaviours SC#73 (admin part)
Plus some minor alignment and CFG->htmleditor not being saved.
2005-01-23 11:26:00 +00:00
stronk7
4530d4372a Changed some sesskey behaviours SC#73 (admin part) 2005-01-22 21:02:12 +00:00
stronk7
7a0a2f49fc Changed some sesskey behaviours SC#73 (admin part) 2005-01-22 20:53:28 +00:00
stronk7
4e27a2b92e Changed some sesskey behaviours SC#73 (admin part) 2005-01-22 19:53:28 +00:00