17933 Commits

Author SHA1 Message Date
martinlanghoff
061fb2e7c3 datalib: teach moodle to pull an array from a column
the new get_fieldset_sql() gets around the nastiness in get_recordset()
that treats the first column as the unique key of the recordset. You can
now request a column from a table, or a set of values as a set of 1 field
records.
2006-01-16 03:07:23 +00:00
martinlanghoff
92ab8e50d4 enrol/database tidyup: cleanup mysql hack if connect errors out 2006-01-16 03:04:31 +00:00
martinlanghoff
3e353d3622 enrol/database tidyup: wrap one line 2006-01-16 03:03:59 +00:00
martinlanghoff
388cbbfb8e enrol/database: split out db connection/disconnection to separate methods
Split them out in preparation for a sync method -- encapsulates the
nasty MySQL hack.
2006-01-16 03:03:21 +00:00
mjollnir_
d5250d2f13 RSS client block: users can now add their own rss feeds and pick from their feeds and admin feeds. users don't see feeds added by other nonadmin users. this is probably only useful for my moodle since they can't edit any other pages 2006-01-16 03:02:42 +00:00
martinlanghoff
33a9fd4745 Added auth_db_sync_users.php 2006-01-16 03:02:30 +00:00
moodler
7b0b5c14be added missing semicolon in &nbsp (bug#4592) 2006-01-16 03:01:28 +00:00
martinlanghoff
6e45da59d1 auth/db and password-generation - required strings. 2006-01-16 02:54:56 +00:00
martinlanghoff
ae57432404 auth/db now support internal passwords and sync_users() 2006-01-16 02:54:16 +00:00
martinlanghoff
e3b6b2b083 User uploads allow missing password
User upload now has an option to allow missing passwords to be accepted -
if we have an email field available. Cron will pick up those users, and call
setnew_password_and_mail() for them.

Effective way to spam your way through life...
2006-01-16 02:53:19 +00:00
martinlanghoff
99a14a54e8 setnew_password_and_mail() gives users a tmp passwords and emails a notice. 2006-01-16 02:51:02 +00:00
mjollnir_
a9e1e4c850 Backup xml tags now support attributes and a new function for xml content to be safe utf-8. Eloy can you please review this patch? 2006-01-16 02:37:19 +00:00
toyomoyo
85ef664d10 bug fixes 2006-01-16 02:26:54 +00:00
toyomoyo
f9952852b1 adding more xmls 2006-01-16 01:56:21 +00:00
mjollnir_
a94baeaf20 Abstracted all the stuff that gets backup prefs from request, and put
it into session. This makes it easier to add a new stages
	and not have to write hidden fields and such like
2006-01-16 00:39:01 +00:00
mits
11c8a91aeb polished. 2006-01-15 23:29:47 +00:00
mits
a464f013ea modified expression of "time limit".
meaning is same.
2006-01-15 23:11:33 +00:00
mjollnir_
9f23133b04 Add instances to info/mods in scheduled backup so they can be granularly restore from 2006-01-15 22:46:51 +00:00
mjollnir_
f90666aa5c Abstracted a bit of the restore procedure to allow for silent restoring.
Added new function, import_backup_file_silently
Changed everything that prints stuff to check for a constant first.
Backup_flush checks a different constant, this is so that output can still
get flushed to the browser when necessary but not print <li>s everywhere.
Please test this!
2006-01-15 21:09:13 +00:00
mits
f16021da64 polished. 2006-01-15 20:57:38 +00:00
mits
202d709875 polished. 2006-01-15 19:09:15 +00:00
stronk7
c34855c2ed Now ewiki supports initial load of contents from course file area.
Original preg_match() was a bit strange so I've replaced it with
clean_filename() + !is_dir() check. Bug 3830.
(http://moodle.org/bugs/bug.php?op=show&bugid=3830)

Merged from MOODLE_15_STABLE
2006-01-15 11:58:46 +00:00
defacer
ce432524ee Changing the naming scheme for auto-generated HTML ids here; due to copy/paste
this might have resulted in non-unique ids in the same page.

REALLY small print issue... isn't it unbelievable what you might find when
digging into CVS for a completely unrelated reason? :-)
2006-01-15 02:32:04 +00:00
gbateson
ff4fad2701 improved readability of "foreign key could not be updated" error message 2006-01-15 02:08:34 +00:00
defacer
85e0be2aaa Seems I got the only remaining instance of set_default(),
so it's time to draw the curtains.
2006-01-15 01:52:07 +00:00
gbateson
249daa5d3c if foreign keys are missing, backup will not abort, but record will not be restored 2006-01-15 01:47:08 +00:00
defacer
3ce130eac5 When creating/editing events, it seems that the current/existing timestart
is not pre-filled in the forms. This is a regression, no idea how and when
it happened. Investigating...

First of all let's get rid of this "HACK! Don't use!" function...
2006-01-15 01:44:08 +00:00
mits
57e7a07902 polished. 2006-01-14 16:12:04 +00:00
mits
113b2a6af7 polished. 2006-01-14 16:07:00 +00:00
mits
cc3ed06824 polished. 2006-01-14 13:43:21 +00:00
stronk7
cfae73b6b4 [BugFix] Bug #4586 in the moodle bug tracker
Please, dont forget to apply bug fixes to head too. ;-)

Merged from MOODLE_15_STABLE
2006-01-14 11:27:52 +00:00
gbateson
1a4969431c optimzed SQL query in hotpot_get_participants to return only user ids (not whole user record) 2006-01-14 04:04:57 +00:00
mits
dbddead152 polished. 2006-01-14 01:37:25 +00:00
mits
9d54253970 translated a new string for lesson. 2006-01-13 23:39:25 +00:00
mits
589f8f75f1 making expression soften, changed "when" from Kanji character to Japanese syllabary characters.
meaning is same.
2006-01-13 23:30:40 +00:00
gbateson
b84defd2ad corrected spelling of "Potatatoes" to "Potatoes" on some table comments 2006-01-13 23:07:47 +00:00
michaelpenne
b4f4f09ca8 [Fixed] Fails gracefully when no course modules are found.
[Fixed] Does not remove other modules from the activity link options due to same ids.
2006-01-13 21:57:42 +00:00
michaelpenne
dfd02fa5d2 [New] lang entry for when no course modules are in a course (for mod.html) 2006-01-13 21:55:21 +00:00
michaelpenne
6ef1c83de6 [Fixed] Display error in Windows IE. Slideshow div would move on link rollover. This is now fixed. 2006-01-13 21:24:52 +00:00
mits
a323daf788 modified based on standard theme. 2006-01-13 19:32:03 +00:00
michaelpenne
aeb8148a57 [Changed] Now when a teacher edits a page with the "Edit page contents" button and then saves or cancels, s/he gets redirected back to the lesson navigation. This will help to streamline the editing
[Fixed] The cancel button on the edit page now works.
2006-01-13 18:41:37 +00:00
defacer
42f9b64b80 On second thought, we can be a bit more diplomatic with this one.
The best of both worlds, but a hack is a hack. ;-)
2006-01-13 16:28:19 +00:00
defacer
24acdc993b Fixing a bug, see http://moodle.org/mod/forum/discuss.php?d=37545
Instead of grabbing variables defined by the course format with
global $var; the block now recomputes them itself.

Of course this also introduces a (significant?) performance hit.

I think it's much preferable to "live with" the hit until a good
solution is developed rather than have a hacky solution that could
break anytime for any obscure reason (case in point). Objections?
2006-01-13 16:20:40 +00:00
defacer
b5f1b8b10e Super-basic export to iCal functionality, still very raw. But works! 2006-01-13 15:34:30 +00:00
defacer
e58e1a9474 XHTML fixes for the administration page, plus a couple assorted styles. 2006-01-13 15:30:24 +00:00
defacer
1198996db6 Some XHTML fixes I had lying around. 2006-01-13 15:15:19 +00:00
defacer
f3b6ac1539 Incoming: Bennu library to be used for iCal imports/exports. 2006-01-13 15:06:25 +00:00
stronk7
5eedb21ee1 Always search for languages in both directories, else, one could
be stroking the other.
2006-01-13 14:43:51 +00:00
stronk7
2c76ad371b This was causing some disruption in tests because "SET CHARSET" changes
conection charset to default DB charset and not to the specified 'utf8'.
2006-01-13 14:26:53 +00:00
drabureesh
ac4d156c33 Latest Arabic Translation update. By: Dr. Ali H. Abureesh 2006-01-13 13:33:00 +00:00