Compare commits

...

7505 Commits

Author SHA1 Message Date
moodler e7ff269394 Bumping to Moodle 1.9.4 for release! 2009-01-28 06:20:53 +00:00
moodler 8c3666955a report/security MDL-18039 Just some trivial text fixes 2009-01-28 06:10:38 +00:00
moodlerobot a166672c09 Updated the 19 build version to 20090128 2009-01-27 23:54:27 +00:00
stronk7 cc84c1aba0 MDL-17365 forum rate - fix error message. Merged from 18_STABLE 2009-01-27 18:08:29 +00:00
stronk7 62c7a8c799 MDL-17365 forum rate - add 'invalidrate' string. 2009-01-27 17:51:52 +00:00
stronk7 0b174abec7 MDL-17365 forum rate - validate rating against scale values. 2009-01-27 17:40:02 +00:00
skodak ba58c9f08e MDL-18057 fixed XSS test 2009-01-27 17:38:40 +00:00
skodak dd75d8696e MDL-18040 adding warning that the security report processing may take a long time; backported from HEAD 2009-01-27 16:22:32 +00:00
skodak aaa9b674c9 MDL-18055 adding timeout protection to security report 2009-01-27 15:06:04 +00:00
skodak 2d1541b597 MDL-18015 improved lang strings - thanks Andrea! 2009-01-27 09:58:02 +00:00
tjhunt b226b10a60 multianswer help file: Many XHTML strict issues. 2009-01-27 07:32:20 +00:00
tjhunt 6e115e57be forum rating: MDL-18044 notice sometimes when a forum is rated, also XHTML strict problems and fix incorrect help text. 2009-01-27 06:35:44 +00:00
gbateson 8d81298c4a MDL-17679: implement course reset for HotPot module (thanks to Albert Gasset) 2009-01-27 05:33:57 +00:00
tjhunt cc8549eaae quiz view: MDL-18038 Open close dates displayed to teachers incorrectly. 2009-01-27 04:44:00 +00:00
moodlerobot a68a6dcc62 Updated the 19 build version to 20090127 2009-01-26 23:55:26 +00:00
moodlerobot ed103b539a Automatic installer.php lang files by installer_builder (20090127) 2009-01-26 23:53:30 +00:00
pichetp 3c6ed6e2ca MDL-17995 replacing is_null() by empty(). Merged from HEAD 2009-01-26 01:27:16 +00:00
pichetp eb64eefaab MDL-17995 replacing != '' by !empty(). Merged from HEAD 2009-01-26 01:26:03 +00:00
moodlerobot 284aefc537 Updated the 19 build version to 20090126 2009-01-25 23:54:28 +00:00
pichetp bb215b150f MDL-17995 replacing $wrapped !='' by !is_null($wrapped) Merge from HEAD 2009-01-25 14:52:56 +00:00
moodlerobot 2f1fc9d9f2 Updated the 19 build version to 20090125 2009-01-24 23:55:56 +00:00
stronk7 042be7ddd6 MDL-17835 backup & restore - encode/decode content links from/to course formats info.
Credit goes to Mark Nielsen. Thanks!
2009-01-24 00:20:51 +00:00
moodlerobot 6b502ee98f Updated the 19 build version to 20090124 2009-01-23 23:55:05 +00:00
moodlerobot 35aacbe41e Automatic installer.php lang files by installer_builder (20090124) 2009-01-23 23:53:29 +00:00
stronk7 63370ab86b MDL-17886 backup & restore - Add some defaults to import_backup_file_silently()
Credit goes to Mark Nielsen. Thanks!
- CVS: ----------------------------------------------------------------------
2009-01-23 23:28:40 +00:00
stronk7 aacdd2a2aa MDL-17998 forum ajax rating - avoid 'null' printout + improved search by class (IE7, you know) 2009-01-23 16:30:13 +00:00
tjhunt ee71dd5d5b matching qtype: MDL-17981 extra distractors feature was not working on MS SQL server, since MDL-14420 was fixed. 2009-01-23 02:19:36 +00:00
tjhunt 9637977c56 admin: xhtml strict problems. 2009-01-23 02:10:11 +00:00
moodlerobot 38abaa812b Updated the 19 build version to 20090123 2009-01-22 23:56:12 +00:00
moodlerobot 50a391f3ff Updated the 19 build version to 20090122 2009-01-21 23:56:39 +00:00
moodlerobot 2f0595b2ba Automatic installer.php lang files by installer_builder (20090122) 2009-01-21 23:55:05 +00:00
wildgirl 0d2d8435eb scorm lang string: MDL-16651 added scorm:deleteresponses 2009-01-21 16:21:37 +00:00
skodak 84d866f59a MDL-17463 bumped version report number numbers again - I found 3 sites that did not have the caps installed after upgrade - weird 2009-01-21 15:42:54 +00:00
mudrd8mz 3b8a200da9 MDL-17982 Security overview report backported to 1.9 uses 2.0 API
Fixes:
- admin/roles/manage.php instead of new admin/roles/define.php
- results returned by old get_recordset_sql() must be iterated using rs_fetch_next_record() instead of new foreach()
2009-01-21 10:57:53 +00:00
moodlerobot 3a281e4282 Updated the 19 build version to 20090121 2009-01-20 23:54:29 +00:00
wildgirl 8ad8632027 forum lang string: MDL-17364 small rewording 2009-01-20 10:43:54 +00:00
moodler adfe07e897 forum/css MDL-16749 added a div named "posting" around the posting 2009-01-20 07:54:14 +00:00
tjhunt c83e62ae8b upgrade reload icon MDL-17924 unobfuscate Martin's reload icon. 2009-01-20 06:56:44 +00:00
moodler 92179c5667 calendar ical MDL-17964 Better hostname derived from wwwroot 2009-01-20 06:21:03 +00:00
moodler b26a82e9a9 maintenance mode MDL-15700 Just some little tidyups of the maintenance mode page 2009-01-20 05:57:08 +00:00
tjhunt 1ed574d378 quiz backup: MDL-17970 MSSQL text / varchar compare issue.
Commiting this fix so it gets into 1.9.4. I've tested and it does not break sensible databases, and probably fixes the problem on MSSQL.
2009-01-20 04:24:01 +00:00
tjhunt 1ae3f411b5 backup/restore: MDL-16614 more reliable test for when we are restoring a backup that was made of the same site that we are restoring to.
* Use this to fix a question restore bug.
* Replace older code that does something similar with the new test.
* Refactor initialisation of $CFG->siteidentifier into a function. There were about 4 copies of this code ;-)
2009-01-20 03:16:05 +00:00
moodler 6592bac242 calendar/export MDL-17964 explicitly define a non-random UID for each event 2009-01-20 03:07:27 +00:00
moodlerobot d750ce8fa2 Updated the 19 build version to 20090120 2009-01-19 23:54:34 +00:00
moodlerobot 94b7fd6607 Automatic installer.php lang files by installer_builder (20090120) 2009-01-19 23:52:33 +00:00
sam_marshall 576ba278bc MDL-17965: Prevent forum move to forum you can't start discussions in 2009-01-19 14:18:24 +00:00
dongsheng 8a76863c7e "FILTER/MDL-17703, use classname instead of inline style" 2009-01-19 01:55:50 +00:00
dongsheng 000bfd6e5b "FORUM/MDL-17709, replace p with div in forum summary" 2009-01-19 01:36:18 +00:00
moodlerobot ec432881c3 Updated the 19 build version to 20090119 2009-01-18 23:52:25 +00:00
moodlerobot 17400c041b Automatic installer.php lang files by installer_builder (20090119) 2009-01-18 23:50:38 +00:00
moodlerobot 59911a0388 Updated the 19 build version to 20090118 2009-01-18 00:02:48 +00:00
stronk7 3c13c816f3 MDL-17364 forum ajax rating - needed strings ; backported from HEAD 2009-01-17 19:37:07 +00:00
stronk7 c57931ce32 MDL-17364 forum ajax rating working ; backporting from HEAD 2009-01-17 19:30:08 +00:00
stronk7 e33c29d4b2 file rate_ajax.php was added on branch MOODLE_19_STABLE on 2009-01-17 19:30:08 +0000 2009-01-17 19:14:38 +00:00
stronk7 0aa5484366 file rate_ajax.js was added on branch MOODLE_19_STABLE on 2009-01-17 19:30:08 +0000 2009-01-17 19:14:38 +00:00
stronk7 0f9654453d Adding small loading gif for AJAX processing. 2009-01-17 18:25:03 +00:00
stronk7 86b6811e97 MDL-17331 choose_from_menu() - backport listbox, multiple and class params 2009-01-17 18:09:38 +00:00
moodlerobot 13d2dda5de Updated the 19 build version to 20090117 2009-01-17 00:06:46 +00:00
moodlerobot 0f208a88f0 Automatic installer.php lang files by installer_builder (20090117) 2009-01-17 00:04:41 +00:00
nicolasconnault bb038bc7c8 MDL-17883 Added title attribute to grade item link 2009-01-16 14:56:59 +00:00
nicolasconnault c98fa2cd88 MDL-13778 Added new display types to course settings 2009-01-16 10:20:02 +00:00
dongsheng 6de4bdb976 "GLOSSARY/MDL-17707, remove extra div" 2009-01-16 08:59:39 +00:00
dongsheng 9f62d5bd19 "MDL-17710, remove extra div" 2009-01-16 08:52:09 +00:00
tjhunt 6f48c01a43 adminlib: MDL-6160 mess up my lovely code just to keep PHP4 happy.
Thanks to Ashley Holman for noticing my mistake.
2009-01-16 08:34:21 +00:00
dongsheng 50850f2545 "WIKI/MDL-17704, wrap wiki summary by div" 2009-01-16 05:37:56 +00:00
dongsheng d8c5e6c18f "QUIZ/MDL-17710, wrap quiz summary by div" 2009-01-16 05:31:55 +00:00
dongsheng 94d9f6d84f "FILTER/MDL-17703, wrap object tag by div" 2009-01-16 05:20:19 +00:00
dongsheng 5f3e7b35d4 "GLOSSARY/MDL-17708, use css selector instead of inline style" 2009-01-16 04:55:38 +00:00
dongsheng f6d70ceca1 "FORUM/MDL-17709, use css selector instead of inline style" 2009-01-16 04:52:01 +00:00
tjhunt 190dddfc0b quiz / questions: MDL-17919 Bad link edit questions from quiz preview page.
Thanks to Ann Adamcik for noticing this. It was a regression from MDL-6085.
2009-01-16 04:47:35 +00:00
dongsheng 9d06855887 "MDL-17707, replace p with div in module summary" 2009-01-16 04:46:31 +00:00
tjhunt b755cfd75c moodlelib: MDL-17761 More consistent error handling in get_string. 2009-01-16 04:18:32 +00:00
moodlerobot 3c2df10618 Updated the 19 build version to 20090116 2009-01-16 03:39:36 +00:00
moodler 187e8dc3a4 admin update reload MDL-17924 Changed reload form to an icon (merged from head) 2009-01-16 02:37:29 +00:00
moodler d3f811b3c4 file reload.gif was added on branch MOODLE_19_STABLE on 2009-01-16 02:37:29 +0000 2009-01-16 02:29:34 +00:00
whchuang 241cf74e0a Fixed a trivial typo in the quiz "item analysis table" help file - it was spelled as "stadard" which should be "standard" 2009-01-15 21:25:51 +00:00
skodak d78bca84e8 MDL-17222 backported security report into 1.9.x 2009-01-15 20:16:12 +00:00
skodak 9c73f43e69 file lib.php was added on branch MOODLE_19_STABLE on 2009-01-15 20:16:12 +0000 2009-01-15 18:30:26 +00:00
skodak 93c9712e34 file index.php was added on branch MOODLE_19_STABLE on 2009-01-15 20:16:12 +0000 2009-01-15 18:30:26 +00:00
tjhunt bf28249d82 questiontypes: MDL-17800 Add extra_question_fields() support to backup/restore functions.
* Implement this in the base class, and
* use this in the shortanswer type as a proof of concept.

This makes writing new question type subclasses a bit easier. Thanks to Oleg Sychev for this code.
2009-01-15 07:29:00 +00:00
tjhunt 4328416b29 question engine: MDL-17651 this context is not used anywhere, so remove it.
(There was a bug in the get_context_instance call.)
2009-01-15 05:15:31 +00:00
moodlerobot 959a292ddf Updated the 19 build version to 20090115 2009-01-15 03:07:47 +00:00
wildgirl a6dcdb14c9 help files: MDL-14319 small XHTML fixes, as reported by Chris Bandy 2009-01-14 20:15:55 +00:00
stronk7 e79859512f MDL-17837 apply some limits to the dropdown of users in first instance. 2009-01-14 17:47:00 +00:00
stronk7 22fc88f88b MDL-17837 opt limit resultsets returned by some get_xxxx_users() function. 2009-01-14 17:44:46 +00:00
thepurpleblob ac6e14ff79 MDL-17048:
Added additional check for non-visible fields in signup page.
2009-01-14 10:06:06 +00:00
tjhunt c8a507097c quiz: MDL-14926 New capability mod/quiz:reviewmyattempts, separate from mod/quiz:attempt. 2009-01-14 07:03:09 +00:00
dongsheng dfa8aab5d8 "MDL-6926, force language in forum module" 2009-01-14 04:55:10 +00:00
dongsheng 7bbe53f402 "MDL-17747, add max category depth setting" 2009-01-14 04:47:21 +00:00
tjhunt 8e88626ff3 admin settings: MDL-17877 Remember to pass u.id to get_users_by_capability. 2009-01-14 04:45:10 +00:00
tjhunt 68099376a3 accesslib: Nice debug developer warning if you call get_users_with_capability without including u.id in the list of fields. 2009-01-14 04:44:08 +00:00
dongsheng b5d665d551 "MDL-14949, reverse changes to permission which can cause problems" 2009-01-14 04:35:23 +00:00
moodlerobot 526a055559 Updated the 19 build version to 20090114 2009-01-13 23:58:22 +00:00
thepurpleblob a3d160fdec MDL-17048
Corrected misuse of formslib - works now.
2009-01-13 13:15:23 +00:00
wildgirl f442462c07 embedding files in a frame: MDL-10021 small rewording of help file 2009-01-13 10:21:39 +00:00
skodak b02e348184 MDL-17868 detection of incorrect hadnling of floats in version numbers - this should prevent dataloss in case it does not work as expected 2009-01-13 09:02:01 +00:00
tjhunt c1321f6c40 edit profile: MDL-15607 Edit profile form breaks if the list of countries in the language pack is broken.
After this patch it still breaks, unavoidably, but at least there is now an error message.
2009-01-13 06:03:36 +00:00
moodlerobot 58ce50f528 Updated the 19 build version to 20090113 2009-01-13 00:01:24 +00:00
dongsheng 8ab1c8dfeb "MDL-12077, add course delete hook for course format" 2009-01-12 06:22:38 +00:00
tjhunt 2b406390d8 Fix typo. 2009-01-12 06:03:10 +00:00
peterbulmer 489b503378 MDL-10498: Apostrophe / Quote in username or email breaks profile update
Author: Aaron Barnes <aaronb@catalyst.net.nz>
2009-01-12 02:05:12 +00:00
moodlerobot ee5537a5a9 Updated the 19 build version to 20090112 2009-01-11 23:55:14 +00:00
moodlerobot 7481a23090 Updated the 19 build version to 20090111 2009-01-11 00:07:50 +00:00
skodak 79536558fa MDL-17841 removed bogus remove lib/simpletest/slowcodetest.php 2009-01-10 13:48:06 +00:00
moodlerobot 85a0fcf2a2 Updated the 19 build version to 20090110 2009-01-09 23:55:45 +00:00
moodlerobot 7d8264c188 Automatic installer.php lang files by installer_builder (20090110) 2009-01-09 23:54:09 +00:00
tjhunt 1cb675b598 restorelib: fix incorrect indenting. 2009-01-09 06:35:34 +00:00
tjhunt c6c9b4faca accesslib: MDL-17626 delete the context whenever a block is deleted. This includes a new helper function blocks_delete_all_on_page. 2009-01-09 06:16:52 +00:00
tjhunt 2a538623e4 accesslib: MDL-17626 admin/modules.php should call delete_context when a module is uninstalled. 2009-01-09 05:34:54 +00:00
tjhunt 83b238f9b8 accesslib: MDL-17626 delete_course_module should call delete_context. 2009-01-09 05:32:16 +00:00
tjhunt 6548bc4898 accesslib: MDL-17626 role_names not cleaned up when a context is deleted. 2009-01-09 05:25:59 +00:00
tjhunt a23612213a shortanswer qtype: MDL-17706 use extra_question_fields mechanism to save on code. Changes thanks to Oleg Sychev. 2009-01-09 05:10:40 +00:00
jerome a75573c738 admin MDL-17155 cURL functions called in adminlib.php: add checking for disable_functions php configuration option 2009-01-09 02:05:45 +00:00
jerome 8ec33be76c online user block MDL-15325 optimize the display of the message icon/link (instantiation out of a loop) 2009-01-09 00:54:05 +00:00
moodlerobot 037f56034f Updated the 19 build version to 20090109 2009-01-08 23:57:11 +00:00
moodlerobot 57a8ff3a73 Automatic installer.php lang files by installer_builder (20090109) 2009-01-08 23:55:07 +00:00
stronk7 e12b3b10ca MDL-17826 restore - proper TEXT comparison. Was breaking MSSQL and Oracle. 2009-01-08 18:28:46 +00:00
nicolasconnault e2e0711a49 MDL-17825 Converting float grades to string when counting values using the Mode of Grades aggregation 2009-01-08 16:01:43 +00:00
nicolasconnault 54862201c5 MDL-13778 Improved code in grades admin settings page 2009-01-08 08:52:37 +00:00
nicolasconnault 69cce5950b MDL-13778 Added 6 "composite" grade display types for the grader report 2009-01-08 08:19:41 +00:00
jerome 624567f853 online user block MDL-15325 Online Users Block didn't perform capability check when displaying messaging icon 2009-01-08 07:37:17 +00:00
tjhunt fe6a9871bf course requests: MDL-6160 clean up admin option for choosing who is notified. 2009-01-08 07:05:31 +00:00
jerome 8656394dac resource: MDL-10021 change the wording "Yes, frame tag" "Yes, object tag" to "Yes, with frame" "Yes, without frame" 2009-01-08 02:59:54 +00:00
jerome be2f1abc87 resource: MDL-10021 upload file resource: change "keep navigation visible" into a select box. Choice are now No - Yes, Frame tag - Yes, Object tag 2009-01-08 02:19:44 +00:00
jerome 295c7cad90 database: MDL-16999 move the warning message from the environment check page to a normal upgrade page 2009-01-08 01:01:04 +00:00
moodlerobot 6eb25b3e8c Updated the 19 build version to 20090108 2009-01-08 00:05:04 +00:00
skodak 93eceb28d2 MDL-17799 proper log url sanitisation - big thanks to Full Name hacker ;-) backported from HEAD 2009-01-07 23:01:30 +00:00
skodak 5a33217812 MDL-17797 fixed cap definition - thanks Andrea Bicciolo 2009-01-07 19:55:25 +00:00
skodak 2f62d8b459 MDL-17811 fixed typos, thanks James Riggs 2009-01-07 19:51:18 +00:00
skodak 9802accd59 MDL-17808 Use users lastname in password change confirmation mails, thanks Andreas Grupp; backported from HEAD 2009-01-07 19:03:59 +00:00
thepurpleblob af993edd90 MDL-17048
Suppress display of empty custom profile field categories
2009-01-07 13:50:43 +00:00
moodlerobot 86ced6c244 Updated the 19 build version to 20090107 2009-01-06 23:56:02 +00:00
skodak 05f6536c54 MDL-17789 prevent potential XSS problems through PHP_SELF; backported from HEAD 2009-01-06 13:09:13 +00:00
diml d8b7674ec5 Fixes MDL17792 cron break effect 2009-01-06 10:26:31 +00:00
dongsheng 507c75ff7c "MDL-17747, Add Max category depth as a configuratble setting to the site settings, credit goes to Jason Hardin" 2009-01-06 06:52:19 +00:00
moodlerobot 77c64292d5 Updated the 19 build version to 20090106 2009-01-05 23:55:26 +00:00
moodlerobot 9dc01d93fe Automatic installer.php lang files by installer_builder (20090106) 2009-01-05 23:53:22 +00:00
thepurpleblob db784f7936 MDL-17779
Add simple check that question at least has questiontext before allowing it.
2009-01-05 15:20:11 +00:00
tjhunt acfbbeb1d3 XHTML Strict! 2009-01-05 02:18:49 +00:00
moodlerobot 5400aac79f Updated the 19 build version to 20090105 2009-01-04 23:54:26 +00:00
moodlerobot f67faa62d6 Updated the 19 build version to 20090104 2009-01-03 23:57:15 +00:00
moodlerobot e83a493a43 Updated the 19 build version to 20090103 2009-01-03 00:00:14 +00:00
moodlerobot 2b42953f9a Automatic installer.php lang files by installer_builder (20090103) 2009-01-02 23:58:20 +00:00
skodak ef005cf1fe MDL-17772 fixed guest access 2009-01-02 20:54:59 +00:00
stronk7 ef2286f2d8 MDL-17321 restore roll dates - prevent wrong rolls to 0 happening to teachers 2009-01-02 16:53:30 +00:00
arborrow 5c8cb3a6a4 removing files for new_forum_replies mistakenly added to 19STABLE intended for CONTRIB 2009-01-02 02:02:29 +00:00
arborrow 251e356eb1 CONTRIB-612 - adding new forum replies block submitted and maintained by Niall Barr 2009-01-02 01:42:44 +00:00
moodlerobot 6cde557687 Updated the 19 build version to 20090102 2009-01-01 23:57:34 +00:00
moodlerobot c512f546b0 Automatic installer.php lang files by installer_builder (20090102) 2009-01-01 23:55:04 +00:00
skodak aeb1c7c456 MDL-17226 reverted incorrect fix 2009-01-01 23:53:47 +00:00
mudrd8mz a606b17d90 A typo fixed 2009-01-01 23:43:10 +00:00
skodak 33698217a3 MDL-16262 recovery of broken single simple discussions after old reset; backported from HEAD 2009-01-01 22:54:06 +00:00
skodak 7685016d20 MDL-16262 fixed resetting of single simple discussions; backported from HEAD 2009-01-01 22:43:20 +00:00
skodak c37304a964 MDL-15172 lowered timeoout and adding warning that users must not click continue in middle of course import - this is a silly workaround, unfortunately I did not find better solution; backported from HEAD 2009-01-01 16:06:37 +00:00
skodak 95968dff75 MDL-17758 fixed hardcoded /admin/ links 2009-01-01 14:29:37 +00:00
moodlerobot ff3ce1ed42 Updated the 19 build version to 20090101 2008-12-31 23:55:14 +00:00
skodak 5f9e154544 MDL-17203 ooops, forgot to bump up main version number 2008-12-31 16:10:17 +00:00
skodak a963e6c8e4 MDL-17203 longer default salt 2008-12-31 15:56:49 +00:00
skodak 25da571df9 MDL-17203 prevent disclosing of sensitive information; backported from HEAD 2008-12-31 15:54:09 +00:00
skodak 3222c0c272 MDL-17203 hash salt added to calendar export; backported from HEAD 2008-12-31 15:51:27 +00:00
skodak 33942f16e2 MDL-17203 new option for disabling of calendar export; backported from HEAD 2008-12-31 14:11:34 +00:00
moodlerobot 6b13469879 Updated the 19 build version to 20081231 2008-12-30 23:59:41 +00:00
skodak 7e8ab13d8f MDL-17556 fixed whitespace; backported from HEAD 2008-12-30 16:34:14 +00:00
moodlerobot f9377c0a7e Updated the 19 build version to 20081230 2008-12-29 23:56:41 +00:00
skodak 7f491dc474 MDL-17682 added default value for city field; backported from HEAD 2008-12-29 21:47:27 +00:00
skodak c3e7bda77c MDL-17724 fixed group/grouping renaming now allows case change; backported from HEAD 2008-12-29 21:32:36 +00:00
skodak ea0bc86d6e MDL-17637 fixed adobe XSS protection; backported from HEAD 2008-12-29 21:18:32 +00:00
skodak ffb5a93032 MDL-17677 fixed string locations - patch by Vlas Voloshin 2008-12-29 20:19:59 +00:00
skodak e2cf6b91da MDL-17727 do not allow access to feeds from hidden courses or activitites - security improvement, in 2.0 this will be rewritten 2008-12-29 20:06:54 +00:00
skodak d100f76f6e MDL-17746 fixed debugdisplay typo in cron - patch by Tomasz Muras; backported from HEAD 2008-12-29 19:58:05 +00:00
moodlerobot 060f414899 Updated the 19 build version to 20081229 2008-12-28 23:57:07 +00:00
moodlerobot 8b68630612 Updated the 19 build version to 20081228 2008-12-27 23:56:11 +00:00
diml 323a266cf5 fixes reference id for label record in search index 2008-12-27 11:56:23 +00:00
diml 85203af7a3 completing access policy with course state examination 2008-12-27 11:42:54 +00:00
diml 0f2f33611f fixing constant CONTEXT_COURSE name 2008-12-27 11:42:25 +00:00
moodlerobot c201ac514b Updated the 19 build version to 20081227 2008-12-26 23:57:49 +00:00
moodlerobot 3080aa14e1 Automatic installer.php lang files by installer_builder (20081227) 2008-12-26 23:55:47 +00:00
arborrow 0502b5122c MDL-17741 - typo $tableparam; merged from MOODLE_18_STABLE 2008-12-26 23:19:47 +00:00
arborrow ae9f99119a MDL-17741 - typo $tableparam 2008-12-26 20:47:25 +00:00
iarenaza b11a0766ed auth/ldap: MDL-9405 sync_users() can create duplicated users
Merged from MOODLE_18_STABLE

If we are using auth_ldap_sync_users.php to synchronize our users, and we
have a database which is case-sensitive when doing comparisons (Postgres and
Oracle at least), and any of our users has the vale of the username attribute
in mixed-case (like 'John Smith'), we get duplicated users.

This is because we don't make sure the username attribute value is 'lowercased'
after we retrive it from the LDAP server and before we insert it into the
database.
2008-12-26 16:00:12 +00:00
moodlerobot 0b3a3435a1 Updated the 19 build version to 20081226 2008-12-25 23:54:21 +00:00
moodlerobot 65eda6e60e Updated the 19 build version to 20081225 2008-12-24 23:55:41 +00:00
ikawhero 351c28559b MDL-17228 Allow admins to view hidden custom profile fields.
Thanks to Alan Barrett for the fix.
2008-12-24 04:16:21 +00:00
moodlerobot edd41a94eb Updated the 19 build version to 20081224 2008-12-23 23:55:26 +00:00
moodlerobot 937a8769de Automatic installer.php lang files by installer_builder (20081224) 2008-12-23 23:53:57 +00:00
moodlerobot a490bb4f0d Updated the 19 build version to 20081223 2008-12-22 23:53:48 +00:00
danmarsden 2252803d20 Accessibility: MDL-17705: Thanks Tim merged from HEAD 2008-12-22 07:04:37 +00:00
tjhunt 3a580fd193 admin tree: MDL-13104 - fix another external page so there are not problems when you click the blocks editing on/off button. 2008-12-22 03:16:51 +00:00
moodlerobot 1c1646cb4b Updated the 19 build version to 20081222 2008-12-21 23:52:17 +00:00
danmarsden 1caa37ac3e XHTML Striiict:MDL-17705 2008-12-21 22:27:40 +00:00
moodlerobot 14c870de0d Automatic installer.php lang files by installer_builder (20081222) 2008-12-21 16:58:04 +00:00
stronk7 3afd68857d Adding kk_utf8 to installer langs. Backported from HEAD. 2008-12-21 16:05:42 +00:00
stronk7 2f0a40ab47 file installer.php was added on branch MOODLE_19_STABLE on 2008-12-21 16:05:42 +0000 2008-12-21 16:02:16 +00:00
gbateson 615852be16 MDL-6467 add "swf" and "flv" to the list of files for which relative urls are converted to absolute urls 2008-12-21 01:48:21 +00:00
moodlerobot fa6eac40ee Updated the 19 build version to 20081221 2008-12-20 23:57:25 +00:00
moodlerobot 21aabcbc9f Updated the 19 build version to 20081220 2008-12-19 23:53:54 +00:00
mjollnir_ f3d3aa6881 MDL-17694: very small stickyblocks improvements 2008-12-19 09:49:10 +00:00
mjollnir_ c165e7462e MDL-17693: get_role_users - add lastaccess & mnethostid to the list of default fields to return. These are used by messaging/emailing. 2008-12-19 08:56:01 +00:00
mjollnir_ fd5244dc46 MDL-17692: count_role_users now accepts an int or an array of ints for roleid - this is now consistent with get_role_users. 2008-12-19 08:45:09 +00:00
moodler d8709908a0 user tabs MDL-17472 Fixed a regression where the $secondrow variable of forum posts was being wiped out (See also MDLSITE-594) 2008-12-19 01:44:48 +00:00
moodlerobot 2d10a5ef93 Updated the 19 build version to 20081219 2008-12-18 23:54:50 +00:00
moodler 968788be74 Cleaning up the main version file. 2008-12-18 06:44:51 +00:00
stronk7 f56cacd0d8 MDL-17009 restore of mnet users - order some recently added strings and add 1 more 2008-12-18 00:22:11 +00:00
stronk7 54cae7edcf MDL-17009 restore of mnet users - Automatic switching of remote users (unknown host) to local ones. 2008-12-18 00:18:44 +00:00
moodlerobot 07f8fab029 Updated the 19 build version to 20081218 2008-12-17 23:56:19 +00:00
moodlerobot ee89fdf92c Automatic installer.php lang files by installer_builder (20081218) 2008-12-17 23:54:09 +00:00
stronk7 8e99ea4081 MDL-17009 restore of mnet users - New lang strings. 2008-12-17 23:37:48 +00:00
stronk7 2a3f443ac1 MDL-17009 restore of mnet users - Prevent teachers to restore this type of backups to different sites. 2008-12-17 23:33:42 +00:00
diml b56ccc3192 Big global search update for 1.9. Will resolve major bug points in Global Search component section. 2008-12-17 20:52:07 +00:00
diml 323a68467c Big global search update for 1.9. Will resolve major bug points in Global Search component section. 2008-12-17 20:51:19 +00:00
skodak 68c5857cb9 MDL-14876 fixed regressions in user subscriptions - $cm used incorrectly instead of $cm->id 2008-12-17 18:09:11 +00:00
sam_marshall 7acc360f7c MDL-17556: Improve performance of get_fast_modinfo when courses have many activities 2008-12-17 12:40:09 +00:00
moodlerobot 80a6e5fb67 Updated the 19 build version to 20081217 2008-12-17 00:36:42 +00:00
stronk7 b18ecac385 MDL-17647 accesslib - cleaning some candoanything in comments 2008-12-17 00:29:52 +00:00
dongsheng 9111f5dacf "MDL-14949, add a new capability chat:talk" 2008-12-16 04:54:26 +00:00
moodlerobot d09916f929 Updated the 19 build version to 20081216 2008-12-15 23:53:33 +00:00
moodlerobot 41fd49847c Automatic installer.php lang files by installer_builder (20081216) 2008-12-15 23:51:55 +00:00
stronk7 60bcf0156d MDL-17599 scheduled backup: add support for grade history setting + minor XML formatting 2008-12-15 21:28:02 +00:00
tjhunt 9be7cc58e4 accesslib: MDL-17648 fix stupid typo. Sorry. 2008-12-15 08:12:53 +00:00
tjhunt 6913746fb1 accesslib: MDL-17647, MDL-17648 and MDL-17649 Bug fix, improvement and unit test.
MDL-17647 was referring to moodle/site:candoanything insstead of moodle/site:doanything

MDL-17648 Let get_users_by_capability take an array of capabilities, like has_any_capability

MDL-17649 get_users_by_capability must have unit tests (HEAD only).

The unit tests were briefly working (apart from the system context, which I had to set up by hand in the test contexts table). Then I made the mistake of trying to upgrade the test tables, and it all went horribly wrong (MDL-17644).
2008-12-15 06:22:40 +00:00
tjhunt bd88ac6161 forum subscriptions: MDL-14876 - followup - use the right table prefix on column names to avoid an ambiguous column name error. 2008-12-15 06:09:07 +00:00
tjhunt 797a1f7e0b Flatfile enrolment: MDL-11418 SQL error. Thanks to Patrick Pollet.
I don't know exactly how this works, but it looks like a good fix to me, so committing.
2008-12-15 02:53:50 +00:00
moodlerobot 1c8e955e4b Updated the 19 build version to 20081215 2008-12-14 23:53:01 +00:00
moodlerobot 60ced88eb2 Automatic installer.php lang files by installer_builder (20081215) 2008-12-14 23:51:36 +00:00
jonathanharker 2b11b765dd MDL-17548 MNET: Fix email links for sites with path component in wwwroot
Where Moodle sites have a path in their wwwroot, the MNET function that
forced remote users to go via their identity provider (to make sure they
were logged in) previously directed the user back to a URL like
contentprovider.com/moodle/moodle/mod/forum/view.php?f=7 where there
should only be one /moodle in the middle of the URL.

Slightly tweaked from HEAD to support PHP4
2008-12-14 23:40:21 +00:00
jonathanharker 62cf1ae8c1 MDL-16875 New Moodle setting - sessioncookiedomain
Added new sessioncookiedomain setting to session handling section.

 * allows you to change the domain that the Moodle cookies are available
   from. This is useful for Moodle customisations (i.e. Squirrelmail SSO
   or enrolment plugins) that need to share Moodle session information
   with a web application on another subdomain.

 * Will NOT work if the moodle host does not have a domain - i.e. just a
   hostname, e.g. 'localhost' or 'myhostname'. Needs a FQDN

 * Currently the setting is set to PARAM_TEXT length 50 since PARAM_HOST
   does not allow a leading dot e.g.  '.mydomain.com'

 * TODO: do we make up a new PARAM_COOKIEDOMAIN which is the same as
   PARAM_HOST but allows leading dots? Using PARAM_HOST and prepending a
   dot may not always be desirable.
2008-12-14 23:30:58 +00:00
jonathanharker 501592d7be MDL-17549 auth/radius: add CHAP and MSCHAP auth support, detect PHP reqs
* Added support for CHAP and MSCHAP authentication schemes
   contributed by Stanislav Tsymbalov http://www.tsymbalov.net/
   original code at http://sourceforge.net/projects/moodleradius/

 * Tweak the detection of PHP RADIUS extension and Pear code

 * Update the warning notices to use more Moodly CSS classes

 * Add PEAR Auth_RADIUS and Crypt_CHAP packages to lib/pear
2008-12-14 23:18:53 +00:00
moodlerobot a658b7fe9c Updated the 19 build version to 20081214 2008-12-13 23:52:18 +00:00
mudrd8mz f9ed2393be MDL-16430 replaces hardcoded format to the one specified in the
langconfig.php
2008-12-13 02:19:41 +00:00
moodlerobot 7f8cd6639a Updated the 19 build version to 20081213 2008-12-12 23:53:42 +00:00
moodlerobot 689dfa7a7c Automatic installer.php lang files by installer_builder (20081213) 2008-12-12 23:52:23 +00:00
danmarsden f0e02543da include filelib.php:MDL-17622: 2008-12-12 19:39:32 +00:00
tjhunt 159865b202 multichoice qtype upgrade: MDL-17619 referring to constant from questionlib.php, which was not being included. 2008-12-12 13:12:59 +00:00
skodak 7fae1f7b6c MDL-17589 fixed handling of missing caps in admin tree 2008-12-12 10:45:48 +00:00
tjhunt c9f0c6e754 questions manual grading: MDL-15147 refine the logic for distinguishing '' and 0, so you can grade an essay 0 without making a comment, but also, grade some, but not all student's work in the manual grading report. 2008-12-12 09:00:03 +00:00
tjhunt b4502ae40f quiz info page: MDL-9542 refix: overridden grades in the gradebook not visible to students in the quiz UI, 2008-12-12 07:24:41 +00:00
tjhunt aa77a3d3de match qtype: MDL-17326 backup and restore problems
* The shuffleanswers options was not backed up or restored.

* Responses were not properly recoded on restore.
2008-12-12 06:45:01 +00:00
tjhunt c414f9e5ad course categories: fix typo introduced when fixing MDL-10801 2008-12-12 06:18:56 +00:00
tjhunt 2eaf6c0e95 matching qtype: MDL-17496 With filterall and multilang, the contents of the dropdowns was not being properly filtered
This was caused becuse the solution to MDL-9005 was not quite right.
2008-12-12 04:39:30 +00:00
tjhunt 26207ab4c2 numerical and shortanswer question types: problems with compare_responses and test_response.
MDL-15315 The previous fix for this issue with wildcard answers in the item analysis report caused the following two regressions. This patch fixes it properly.

MDL-17247 This is basiclly pointing out the weridness in the previous fix and gave some useful clues as to a proper solution. Thanks Oleg.

MDL-17610 This was a report of a problem with each attempt builds on last, with a shortanswer question, where the sutdent's response contains a '.

Also, lots of unit tests to try to ensure the new code is right.
2008-12-12 03:48:32 +00:00
tjhunt 23179e6a47 questionlib: clarify a comment. 2008-12-12 02:50:29 +00:00
moodlerobot 7fc859e6e4 Updated the 19 build version to 20081212 2008-12-11 23:53:23 +00:00
moodlerobot 29b951b6dd Automatic installer.php lang files by installer_builder (20081212) 2008-12-11 23:51:53 +00:00
danmarsden 080eed3f12 fix typo, improve text a bit:MDL-17612 2008-12-11 21:35:56 +00:00
stronk7 70cf5492bc MDL-17009 Restore of mnet users: Fix incorrectly named MNET_EXTERNALUSERS 2008-12-11 16:37:37 +00:00
tjhunt 9af88f530b course search: MDL-10801 Search terms were not being highlighted consistently in the results. 2008-12-11 10:47:57 +00:00
tjhunt 954a3a0b9c weblib: MDL-17606 Make the highlight function better, with unit tests. 2008-12-11 10:34:07 +00:00
tjhunt cf0031eef4 admin tree: MDL-10047 and MDL-13104 weird things happen when you turn editing on and off.
That was becuase not enough information was being passed in for the blocks editing controls to construct the right URL to reload the page.

It is also now possible for admin external pages to add some UI next to the turn blocks editing on/off button. For example, when you are editing the list of course catgories, the turn editing off button is now in the right place.
2008-12-11 09:21:52 +00:00
tjhunt bae97d133b forum subscriptions: MDL-14876 user of deprecated functions was breaking managing subscribers.
This was visible when, for example, unusual role definitions meant that someone could access a forum without being enrolled in a course.

Note that one of the places that was previously broken was front page forums. Since subscribers.php does not do paging at all, the fact that I have fixed this bug makes this page dangerous on large sites. A proper solution will have to wait until bug 17550 is fixed in HEAD.

This also fixes a minor problem introduced by MDL-12979.
2008-12-11 07:02:09 +00:00
tjhunt 4f4fa095e9 question bank: MDL-14376 Errors deleting a course containing Cloze questions.
(For some reason, this only seemed to cause problems on MySQL.)
2008-12-11 05:31:41 +00:00
dongsheng 576fe29a1c "MDL-16954, get rid of remote_addr notice on cli, set ip = 0.0.0.0 in mdl_log table when accessed from cli" 2008-12-11 05:17:02 +00:00
tjhunt 50a8526252 multianswer qtype help: Fix HTML errors. 2008-12-11 05:14:39 +00:00
tjhunt 5be081f0d9 matching qtype: MDL-14420 Could not use '0' as a question stem. Oops, more tests need to be corrected. 2008-12-11 05:01:43 +00:00
tjhunt 112b018900 matching qtype: MDL-14420 Could not use '0' as a question stem. Bloody PHP! 2008-12-11 04:57:45 +00:00
tjhunt 2c87248acc matching qtype: whitespace cleanup. 2008-12-11 04:55:48 +00:00
dongsheng e6551f36d0 "MDL-17469, fix assignment date when restore course" 2008-12-11 04:37:11 +00:00
tjhunt 88575207d3 numerical qtype: MDL-15159 Error moving a numerical question type with no units from one category to another. 2008-12-11 04:33:48 +00:00
moodlerobot 4058e8bacc Updated the 19 build version to 20081211 2008-12-10 23:54:14 +00:00
thepurpleblob dc37ac0b2f MDL-11090
Added absent trim - Thanks Tim :-)
2008-12-10 09:37:37 +00:00
dongsheng f3355b7b06 "MDL-17570, cleanup inline css" 2008-12-10 07:09:48 +00:00
tjhunt 110b003f86 quiz manual grading: MDL-5517 manual grading pop-up is too small. HTML editor does not fit. 2008-12-10 07:06:18 +00:00
dongsheng 1c870741af "MDL-17570, cleanup inline css settings" 2008-12-10 06:30:23 +00:00
tjhunt 51134a7b79 quiz: MDL-6085 when editing a question from various places like a preview attempt or review screen, don't use a popup, instead take advantage of the fact that question.php now takes a returnurl. 2008-12-10 06:22:04 +00:00
dongsheng 7921d02f15 "MDL-17570, clean up align property in div" 2008-12-10 06:07:39 +00:00
dongsheng f9c1a62f86 "MDL-17570, cleanup align property in div" 2008-12-10 06:05:24 +00:00
tjhunt 4fb4ff22a6 Simple whitespace cleanup. 2008-12-10 05:32:58 +00:00
tjhunt 5d922e47f7 course request: MDL-17575 and MDL-6160 further improvements:
1/ email notification when course requested
2/ course request capability so that we can limit who can request new course
3/ list of my pending course requests on the request form

Implemented in 1.9 by Petr Skoda, and reviewed and merged to HEAD by me.
2008-12-10 02:57:51 +00:00
tjhunt bc7bc8e1d6 performance: MDL-17577 only include lib/questionlib.php from the few parts of mod/quiz/lib.php that actually need it. 2008-12-10 02:11:24 +00:00
tjhunt 7b7863fa69 truefalse qtype: MDL-12027 remove spurious alt attribute from truefalse qtype radio buttons. 2008-12-10 00:54:33 +00:00
moodlerobot 4a8ded6144 Updated the 19 build version to 20081210 2008-12-09 23:53:54 +00:00
piers 7eea186ea0 MDL-17572 - remove php short tags. backport to 1.9. 2008-12-09 22:03:01 +00:00
danmarsden 1067cd48e9 fix php short tags:MDL-17566: Thanks Stephen Bourget 2008-12-09 20:38:28 +00:00
skodak 5903377c7a MDL-17479 category search: replaced old update capability 2008-12-09 20:29:15 +00:00
skodak ef232b4294 MDL-17502 oops, I have overlooked Tim already fixed this - sorry 2008-12-09 16:34:37 +00:00
skodak 16d3155e4e MDL-17502 accesslib: added warning if incorrect parameters supplied to has_all_capabilities() and fixed parameters in course lib code; backported from HEAD 2008-12-09 16:26:16 +00:00
tjhunt 248be37230 course categories: MDL-17502 followup. Fix notices. I'm sure I remember writing this code yesterday! 2008-12-09 09:27:17 +00:00
tjhunt 20cd50e2e7 course settings: MDL-17501 fix potential problem for people upgrading 1.6 -> 1.9.4.
I am amazed that Petr spotted this. Great catch.
2008-12-09 04:49:06 +00:00
moodlerobot aaae02a573 Updated the 19 build version to 20081209 2008-12-08 23:53:30 +00:00
skodak 2fa8ad59f9 MDL-17559 user edit: fixed undefined email property warnings 2008-12-08 20:15:39 +00:00
exe-cutor b926e3dde5 Added Upgrade instructions for Shibboleth 2.x
Corrected some typos for logout section
2008-12-08 10:46:13 +00:00
exe-cutor 8f12ddef8e Added fix for Shibboleth 2.x 2008-12-08 10:45:47 +00:00
tjhunt 02d92a5513 course categories: MDL-17502 when deleting a category and its contents, check moodle/course:delete capability.
* Note: this would never lead to problems with default role definions.
* Also ended up mostly rewriting delete_category_form to simplify the messages that are displayed.
* New helper function require_all_capabilities, a bit like require_any_capability.
2008-12-08 07:28:04 +00:00
tjhunt da4676a27e course settings: MDL-17501 check for moodle/course:visibility in the course settings form.
1. If a user does not have that capability, don't let them change whether the course is visible.
2. Give teachers that capability by default.
3. To avoid regressions, on upgrade, give moodle/course:visibility to any role that has moodle/course:update.
2008-12-08 02:30:56 +00:00
tjhunt 56d2fd74d9 Fix typo in error message. 2008-12-08 01:18:44 +00:00
skodak 52b6dd1533 MDL-17368 removing unused html area spell checker - we have our own implementation 2008-12-08 00:11:14 +00:00
moodlerobot 3656fb017a Updated the 19 build version to 20081208 2008-12-07 23:53:27 +00:00
moodlerobot c1832e69da Automatic installer.php lang files by installer_builder (20081208) 2008-12-07 23:51:58 +00:00
skodak c396e2239c MDL-17519 - restore: preventing group member duplicates 2008-12-07 22:24:06 +00:00
danmarsden 99c13aae72 force scorm update:MDL-17034: force update of SCORM when scorm_simple_play is used. merged from HEAD 2008-12-07 22:18:29 +00:00
piers 374b0f29cd MDL-17115 - SCORM onload API checking. Hunt for the API. backport 1.9. 2008-12-07 22:15:24 +00:00
danmarsden 0857948493 skip content structure page:MDL-11908: skip content structure page with multiple scos - if a teacher has set to skip, it should skip! - even with multiple scos. merged from HEAD 2008-12-07 22:09:46 +00:00
skodak d3363def5a MDL-17537 course request: shortname field shortened because db can store max 15 chars 2008-12-07 21:54:35 +00:00
skodak 2bc4631d41 MDL-17547 added missing param type 2008-12-07 21:30:48 +00:00
stronk7 86a01e810f MDL-17545 activity names filter: Improve handling when name contains htmlentities() chars. 2008-12-07 18:55:18 +00:00
stronk7 d84dacba45 MDL-17518 resource names filter: Improve handling when name contains htmlentities() chars. 2008-12-07 17:32:44 +00:00
moodlerobot 89f67f45aa Updated the 19 build version to 20081207 2008-12-06 23:52:59 +00:00
skodak 1d7651e19f MDL-15785 new options for enforcing of enrolment key commplexity and requirements; backported from HEAD 2008-12-06 21:21:55 +00:00
skodak 540875d055 MDL-17372 fixed regression in 3rd party admin reports 2008-12-06 20:41:42 +00:00
skodak 0043e716bc MDL-11265 added shorter log retention periods and a warning that it might have some side effects; backported from HEAD 2008-12-06 17:45:30 +00:00
moodlerobot 4c83ff8612 Updated the 19 build version to 20081206 2008-12-05 23:53:04 +00:00
moodlerobot 4c47d171d1 Automatic installer.php lang files by installer_builder (20081206) 2008-12-05 23:51:36 +00:00
mchurch 13c223cb2f MDL-17539 - Added a 'courseid' condition to the 'LEFT JOIN' of 'lastaccess' to limit the records returned to the correctly requested course. 2008-12-05 21:35:47 +00:00
tjhunt 7f2e6a23a9 course request: MDL-9854 major cleanup to the course request code.
* Rewrite all the forms to use formslib and improve usability.
* Put the place where admins need to go to process approvals in the admin menu.
* Show the request course/pending requests button on the page for the category that requested courses get added to.
2008-12-05 08:57:06 +00:00
tjhunt 32b1759f9d quiz settings: MDL-16781 Avoid concatenating and calling strtolower on language strings. 2008-12-05 04:20:32 +00:00
dongsheng e753201ea8 HTMLAREA/MDL-17448
fix flaw in logic, yui event module shouldn't be loaded in IE. Credit go to Kris Thornley, thanks.
2008-12-05 00:57:21 +00:00
moodlerobot 5cc23984d6 Updated the 19 build version to 20081205 2008-12-04 23:53:10 +00:00
moodlerobot a853baa1ef Automatic installer.php lang files by installer_builder (20081205) 2008-12-04 23:51:41 +00:00
pichetp 72a0975fd2 MDL-17524 Merging from HEAD
Deleting a calculated question delete datasetdefinitions shared by other question
2008-12-04 16:32:16 +00:00
exe-cutor 9333948786 Added Shibboleth front and back channel logout support 2008-12-04 16:27:00 +00:00
tjhunt 79518165b9 course categories: Fix many bugs with category editing and permissions. Clean up code.
Bugs: MDL-17479, MDL-16426, MDL-16063, MDL-16013, MDL-15658, MDL-15556, MDL-15161, MDL-14925, MDL-13742, MDL-11557.

* Simplify category editing permissions to just moodle/category:manage and moodle/category:seehiddencategories.
* Enforce those correctly. (Note MDL 17502 is still outstanding.)
* Don't screw up category sort order when you just edit name or description.
* Niceties like where redirects go when you cancel or submit forms.
* Make sure a global course creator can see the site admin block.
* Don't allow a category to be made the child of one of its children!
* General code cleanup to bring key files more in line with best pracitice.

Apologies for the fact it is one big patch, rather than a series of smaller patches. However, categoryedit.php, category.php and index.php where in pretty bad shape and needed significant cleaning up. categoryedit.php, in particular, was almost completely rewritten.
2008-12-04 08:49:47 +00:00
dongsheng 39dc0663e2 "htmlarea/MDL-17448, fix enlarging htmlarea, thanks chris fryer" 2008-12-04 08:22:20 +00:00
dongsheng b1b3aede9c ASSIGNMENT, RESTORE/MDL-17469 2008-12-04 08:04:09 +00:00
piers 383570242d MDL-17310 - Fixup an issue with relative directory paths. Thanks Jonathan. backport 1.9. 2008-12-04 03:26:24 +00:00
moodlerobot be0420e2ee Updated the 19 build version to 20081204 2008-12-03 18:37:55 +00:00
moodlerobot 44805fee30 Automatic installer.php lang files by installer_builder (20081204) 2008-12-03 18:30:36 +00:00
ericmerrill bde30ae513 weblib: MDL-16293: background-color attribute stripped from html. Adding 'background-color' attribute to $ALLOWED_PROTOCOLS array so kses doesn't drop it. 2008-12-03 16:48:08 +00:00
samulik 2e9cb9d29a course import: MDL-17497 PHP was running out of memory if a category had a lot of courses. Now get_courses only fetches course id and fullname. 2008-12-03 16:31:01 +00:00
piers b645325d98 MDL-17498 - fix postgres compatibility on recent activity block integration, correct recent activity links to trigger actual assignments. Lots of whitespace fixing. 2008-12-03 05:59:11 +00:00
pichetp fcb5bc8193 MDL-17264 merging the last version from HEAD a second time... 2008-12-02 05:19:11 +00:00
tjhunt 270b6e3444 help file: MDL-17490 multianswer help file was in the wrong place. 2008-12-02 03:26:42 +00:00
skodak d41415da8a MDL-17392 - mailstop typo - credit goes to Daniel Neis, thanks 2008-12-01 22:37:12 +00:00
skodak 98d9032ce1 MDL-17486 added option to make my courses list in user profile hidden; backported from HEAD 2008-12-01 22:06:55 +00:00
skodak 741426a8f6 MDL-11261 hiddenuserfields/lastaccess now fully respected on participants page; backported from HEAD 2008-12-01 20:46:13 +00:00
skodak 67a8105001 MDL-11261 setting hidden user lastaccess now works on outline report; backported from HEAD 2008-12-01 20:02:27 +00:00
skodak b2908c36a7 MDL-17485 roles: fixed use and definition of moodle/user:viewuseractivitiesreport; backported from HEAD 2008-12-01 19:20:16 +00:00
tjhunt 059ec02aaa Fix notice. 2008-12-01 07:19:40 +00:00
tjhunt c353917324 Remove unnecessary extra $Id$ tag. It messes up the unmerged files list, and makes merging extra difficult. 2008-12-01 07:09:44 +00:00
tjhunt 426c2ba5b2 restore: MDL-17480 Potentially expensive function user_can_create_courses called repeatedly from restore UI. 2008-12-01 06:55:31 +00:00
danmarsden a546aa2eec don't use copy() for http based copies: MDL-16123: use download_file_content for external SCORM packages instead of copy() 2008-12-01 05:27:59 +00:00
skodak a1990f18ef MDL-11259 stats report: do not show links to logs if not having required capability; backported from HEAD 2008-11-30 21:34:29 +00:00
skodak 8d2ef9efe8 MDL-17472 notes: backported disabling of notes and general refactoring from HEAD 2008-11-30 19:25:48 +00:00
skodak f499321716 MDL-11984 blocks: new capability block/online_users:viewlist which may be used to restrict viewing of list of online users, if cap not allowed only number of users dispalyed, I hope this will be also faster because only one query used now (insetad of two); for BC reasons enabled by default in all legacy roles; backported from HEAD 2008-11-30 15:43:28 +00:00
skodak 8f2f9d3d08 file access.php was added on branch MOODLE_19_STABLE on 2008-11-30 15:43:28 +0000 2008-11-30 15:42:48 +00:00
skodak 89ee56ed69 MDL-17372 moving the categories out of the if cap block - cap report needs to add page there; backported from HEAD 2008-11-30 14:20:32 +00:00
skodak 7ea8ea7f0a MDL-17464 profile reports are now respecting course report caps; backported from HEAD 2008-11-30 12:05:03 +00:00
piers d45250b531 MDL-16651 - add in delete attempt capability - thanks Dan/Tim. backport 1.9. 2008-11-29 17:56:43 +00:00
skodak cecd63c9f2 MDL-17372 new course reports string - role definition improvement 2008-11-29 16:28:21 +00:00
skodak 1a16c4486c MDL-17465 - separate live log capability adn admin tree link; backported from HEAD 2008-11-29 16:23:45 +00:00
skodak 0d2aa4a617 MDL-17465 - separate live log capability adn admin tree link; backported from HEAD 2008-11-29 16:16:21 +00:00
skodak 19a4956b35 file indexlive.php was added on branch MOODLE_19_STABLE on 2008-11-29 16:16:22 +0000 2008-11-29 16:15:40 +00:00
skodak f93c5dcf23 MDL-17463 - renamed outline to activity report 2008-11-29 15:08:46 +00:00
skodak 22a987837c MDL-17463 - reparate capabilities for course and admin reports; backported from HEAD 2008-11-29 14:30:55 +00:00
skodak c6bfc43c7c file version.php was added on branch MOODLE_19_STABLE on 2008-11-29 14:30:58 +0000 2008-11-29 14:22:15 +00:00
skodak f23d1d4057 file access.php was added on branch MOODLE_19_STABLE on 2008-11-29 14:31:00 +0000 2008-11-29 14:22:15 +00:00
skodak 8c25e10349 file version.php was added on branch MOODLE_19_STABLE on 2008-11-29 14:30:57 +0000 2008-11-29 14:22:14 +00:00
skodak 475a460b6e file report_courseoverview.php was added on branch MOODLE_19_STABLE on 2008-11-29 14:30:58 +0000 2008-11-29 14:22:12 +00:00
skodak 9f1bf377ac file coursereport_stats.php was added on branch MOODLE_19_STABLE on 2008-11-29 14:30:59 +0000 2008-11-29 14:22:12 +00:00
skodak ec3bd695f3 file coursereport_participation.php was added on branch MOODLE_19_STABLE on 2008-11-29 14:30:58 +0000 2008-11-29 14:22:12 +00:00
skodak 26d7e0294c file coursereport_outline.php was added on branch MOODLE_19_STABLE on 2008-11-29 14:30:59 +0000 2008-11-29 14:22:12 +00:00
skodak 37be511e7c file coursereport_log.php was added on branch MOODLE_19_STABLE on 2008-11-29 14:30:58 +0000 2008-11-29 14:22:12 +00:00
skodak da9dcf8ef7 file version.php was added on branch MOODLE_19_STABLE on 2008-11-29 14:31:00 +0000 2008-11-29 14:22:11 +00:00
skodak ee65d12cfe file access.php was added on branch MOODLE_19_STABLE on 2008-11-29 14:31:01 +0000 2008-11-29 14:22:11 +00:00
skodak b989fe2b0f file access.php was added on branch MOODLE_19_STABLE on 2008-11-29 14:30:59 +0000 2008-11-29 14:22:11 +00:00
skodak a429bdab98 file version.php was added on branch MOODLE_19_STABLE on 2008-11-29 14:30:55 +0000 2008-11-29 14:22:10 +00:00
skodak 7b6f15a8c4 MDL-17372 admin reports: Added full plugin support for admin reports - fixed sorting regression, plugins now loaded as last category; backported from HEAD 2008-11-28 08:12:51 +00:00
danmarsden e8b6d6f62c MDL-17115 - no point in waiting for SCORM API to load when we know JS is disabled. merged from HEAD 2008-11-28 06:49:49 +00:00
tjhunt ae7b2e3829 random essay questions: MDL-8648 Allow essay questions to be selected by random question.
In the 1.9 branch this is controlled by a new option under Admin -> Experimental. In Moodle 2.0 dev it is not optional, it just works.

The main change is letting the manual grading report know which random questions might need manual grading. MDL-4004 - this depends on the random question under consideration, which requires a new questiontype method.

I also changed the random question code so that I could remove some global variables.
2008-11-28 06:07:24 +00:00
tjhunt 52e24fe922 file qtype_random.php was added on branch MOODLE_19_STABLE on 2008-11-28 06:07:24 +0000 2008-11-28 06:07:12 +00:00
ikawhero 0c51eaa6f0 MDL-17434 Full URLs for enrol/unenrol links 2008-11-28 06:03:16 +00:00
tjhunt 5c4bcc266e questionlib: fix typo. 2008-11-28 02:41:06 +00:00
moodlerobot 57dfa1557b Updated the 19 build version to 20081128 2008-11-28 01:57:46 +00:00
skodak 12748c8425 MDL-17372 course reports: Added full plugin support for course reports - backported from HEAD 2008-11-27 20:31:02 +00:00
tjhunt 901c4aae9f question bank: MDL-14434 Cannot edit the only question category in a context. 2008-11-27 11:50:20 +00:00
tjhunt 761e1f5cb5 listlib: MDL-17422 Paging in listlib was badly screwed 2008-11-27 10:53:40 +00:00
tjhunt 874be4b0f0 question bank: MDL-17078 Error after deleting a question category. 2008-11-27 07:30:11 +00:00
tjhunt 4ec232ec6a health centre: MDL-16935 Question categories should belong to a valid context solution has SQL that does not work in MySQL 2008-11-27 05:57:04 +00:00
tjhunt 3cacf33b58 fix notices: MDL-15974 Some systems that were upgraded have nullable columns, leading to notices
A new install has NOT NULL DEFAULT 0.
2008-11-27 05:07:47 +00:00
tjhunt 35c7aaa325 quiz item analysis report: MDL-13427 <br> tags in the headers of some columns. 2008-11-27 04:48:11 +00:00
moodlerobot 331fb695a9 Updated the 19 build version to 20081127 2008-11-27 02:03:18 +00:00
skodak 2d89f2de76 MDL-17372 admin reports: Added full plugin support for admin reports; added specail capability for unittest execution, minor refactoring - backported from HEAD 2008-11-26 20:58:03 +00:00
skodak 2910d40ad0 file version.php was added on branch MOODLE_19_STABLE on 2008-11-26 20:58:04 +0000 2008-11-26 19:27:41 +00:00
skodak e998027091 file settings.php was added on branch MOODLE_19_STABLE on 2008-11-26 20:58:07 +0000 2008-11-26 19:27:41 +00:00
skodak 065a86dbf7 file settings.php was added on branch MOODLE_19_STABLE on 2008-11-26 20:58:03 +0000 2008-11-26 19:27:41 +00:00
skodak 8a893ed82f file report_unittest.php was added on branch MOODLE_19_STABLE on 2008-11-26 20:58:06 +0000 2008-11-26 19:27:41 +00:00
skodak 3b85388c00 file index.php was added on branch MOODLE_19_STABLE on 2008-11-26 20:58:04 +0000 2008-11-26 19:27:41 +00:00
skodak a5eebeaea3 file access.php was added on branch MOODLE_19_STABLE on 2008-11-26 20:58:07 +0000 2008-11-26 19:27:41 +00:00
skodak 087d36b6e5 file report.php was added on branch MOODLE_19_STABLE on 2008-11-26 20:58:05 +0000 2008-11-26 19:27:40 +00:00
skodak 8e66f84d9f file settings.php was added on branch MOODLE_19_STABLE on 2008-11-26 20:58:06 +0000 2008-11-26 19:27:39 +00:00
thepurpleblob ebce25e7b9 MDL-17125
Fix as suggested by Jonathan Kemp.
2008-11-26 15:13:51 +00:00
thepurpleblob 0afa12be00 MDL-11090
Passwords are now held in clear text so you can see what the password
is on the config screen.
Still backward compatible with old md5 passwords (which are still not displayed
of course)
2008-11-26 14:30:22 +00:00
thepurpleblob 1272fbf749 MDL-17411
defaultquestion() now reflects the one in the question bank code, thus supressing
lots of notices
2008-11-26 13:08:32 +00:00
thepurpleblob 498e0d12d8 MDL-14155
$a in string no longer required. Changed the text slightly to make it make some sense.
2008-11-26 11:49:11 +00:00
moodlerobot 08cbafdeac Updated the 19 build version to 20081126 2008-11-26 02:03:24 +00:00
moodlerobot 7b9d66434b Automatic installer.php lang files by installer_builder (20081126) 2008-11-26 01:56:28 +00:00
jerome 5649654bd5 database: MDL-16999 update 'Required Entries' warning message 2008-11-25 02:43:53 +00:00
moodlerobot 71a93cd00e Updated the 19 build version to 20081125 2008-11-25 02:00:15 +00:00
pichetp a208bffde9 MDL-17264 Merged from HEAD
Adding control of usecase for the shortanswer type using SHORTANSWER_C or
 SAC or MWC,
2008-11-24 16:46:31 +00:00
dongsheng cc89382bdc FILTER/MDL-17360
media plugin is truncating width and height to 3 digits, patched by Vlas Voloshin.
2008-11-24 01:59:12 +00:00
moodlerobot 04bf1303c2 Updated the 19 build version to 20081124 2008-11-24 01:58:48 +00:00
moodler 542cd89f8d Emoticons MDLSITE-564 Patch to avoid [[brackets]] around alt text 2008-11-24 01:02:33 +00:00
jerome 490414af8d database: MDL-16999 move the flag from config table to config_plugins table 2008-11-24 00:51:58 +00:00
piers 4df7f4237e MDL-17310 - take the opportunity to change the scorm defaults to a highest grade orientation. backport to 1.9. 2008-11-23 21:41:40 +00:00
moodlerobot dad879ae99 Updated the 19 build version to 20081123 2008-11-23 01:53:00 +00:00
moodlerobot f0a8545516 Automatic installer.php lang files by installer_builder (20081123) 2008-11-23 01:46:38 +00:00
moodlerobot 67aea44be9 Updated the 19 build version to 20081122 2008-11-22 02:05:49 +00:00
moodlerobot ae3c9c36d4 Automatic installer.php lang files by installer_builder (20081122) 2008-11-22 01:59:18 +00:00
mudrd8mz daed839963 MDL-17357 Removed duplicate string definition 2008-11-21 23:04:06 +00:00
mudrd8mz 9280eac530 MDL-17356 Use Unix style end of lines 2008-11-21 22:46:31 +00:00
jerome f597bba458 database: MDL-16999 fix "Required Entries" and "Required Entries before viewing" settings. Display a warning message during upgrade process if the fields were set previously. 2008-11-21 07:01:00 +00:00
moodlerobot 54d2128109 Updated the 19 build version to 20081121 2008-11-21 02:12:19 +00:00
moodlerobot eeae9616be Automatic installer.php lang files by installer_builder (20081121) 2008-11-21 02:05:15 +00:00
nicolasconnault 10b1faa27f MDL-17218 Copied the image where the css expects it to be. 2008-11-20 14:36:10 +00:00
moodlerobot 5cbd2c991b Updated the 19 build version to 20081120 2008-11-20 02:01:40 +00:00
skodak 5866dee70a MDL-17236 html block: proper cleanup of html; backported from HEAD 2008-11-19 16:47:13 +00:00
skodak c1ed31c01f MDL-17310 scorm: Install asks for scorm &auth questions on install rather than just front page settings - whitespace 2008-11-19 15:11:25 +00:00
skodak f92fbb037d MDL-17274 security: register globals not supported- now we are preventing upgrades and installs too; backported from HEAD 2008-11-19 09:46:38 +00:00
moodlerobot 934f6bd973 Updated the 19 build version to 20081119 2008-11-19 02:10:25 +00:00
moodlerobot 9be463a33b Automatic installer.php lang files by installer_builder (20081119) 2008-11-19 02:03:28 +00:00
stronk7 836bd9aad4 MDL-15534 Wiki 1.0: Allow to display "Site map for" using i18n Moodle strings 2008-11-19 01:25:49 +00:00
skodak 63e73da77b MDL-17143 $CFG->profilesforenrolledusersonly does not belong into advanced user edit form - it was removing description if user had only create user cap 2008-11-18 21:43:34 +00:00
moodlerobot f3b83353e7 Updated the 19 build version to 20081118 2008-11-18 01:54:30 +00:00
moodlerobot f1855ba03b Automatic installer.php lang files by installer_builder (20081118) 2008-11-18 01:48:29 +00:00
stronk7 5979de1b0e MDL-15425 Coding style: Change some logical operator uses. Thanks Robert! 2008-11-18 00:08:39 +00:00
stronk7 d8f015100a MDL-17200 deprecated & front page: Fix deprecated get_course_users() and get_course_students() to work properly against front page. 2008-11-17 22:52:29 +00:00
moodlerobot b3bca79c74 Updated the 19 build version to 20081117 2008-11-17 02:08:40 +00:00
moodlerobot 465bd9f5be Automatic installer.php lang files by installer_builder (20081117) 2008-11-17 02:02:03 +00:00
stronk7 d3a94cbbe4 Mini-bump version 2008-11-16 23:38:27 +00:00
stronk7 de67f68127 MDL-16879 Backup & mnet: Avoid problems in sites missing mnet_host records being more flexible in backup (outer join). 2008-11-16 23:20:47 +00:00
stronk7 0329e38af7 MDL-17227 forum: seekey-ize forum prune (split) 2008-11-16 22:45:05 +00:00
moodlerobot b5c9d33a7f Updated the 19 build version to 20081116 2008-11-16 01:51:53 +00:00
iarenaza d430e7feb5 file resources: MDL-14541 Object tag embedding PDF's and nested Flash objects does not work reliably
Credit goes to David Boyer for reporting and suggesting the fix for PDF files,
and Jon Witts & Mauno Korpelainen for proving a way to reproduce the Flash
issue and tips to fix it.
2008-11-15 12:22:32 +00:00
moodlerobot dd50f0d6da Updated the 19 build version to 20081115 2008-11-15 01:55:48 +00:00
moodlerobot 296da1a31b Automatic installer.php lang files by installer_builder (20081115) 2008-11-15 01:48:06 +00:00
stronk7 ef0d6a6a8f MDL-17227 forum: add sesskey to post/discussion deletion 2008-11-14 08:50:45 +00:00
moodlerobot 24050cd891 Updated the 19 build version to 20081114 2008-11-14 02:01:41 +00:00
moodlerobot c303dca672 Automatic installer.php lang files by installer_builder (20081114) 2008-11-14 01:54:57 +00:00
piers 9e7f70ddab MDL-16810 - Allow site configuration of scorm settings. Thanks Jason Hardin. Backport 1.9. 2008-11-14 00:14:49 +00:00
piers b40bf0bf58 MDL-16949 - fix wrong addition of times in SCORM API, thanks Xabi Martin. backport 1.9. 2008-11-14 00:06:22 +00:00
nicolasconnault a60ed2afc6 MDL-17226 Hiding the group show/hide settings and toggle for grader report 2008-11-13 15:43:19 +00:00
wildgirl cb03609eed lesson lang string: MDL-17209 typo fix 2008-11-13 14:59:43 +00:00
wildgirl 926da7c331 xmldb lang string: MDL-17209 typo fix 2008-11-13 14:58:09 +00:00
wildgirl 01edd51f1a qtype_datasetdependent lang string: MDL-17209 typo fix 2008-11-13 14:56:28 +00:00
wildgirl 0a3eb4efac wiki lang string: MDL-17209 typo fix 2008-11-13 14:54:17 +00:00
wildgirl 74ed9155a1 install lang string: MDL-17209 typo fix 2008-11-13 14:52:06 +00:00
wildgirl e6e54c85e9 auth lang string: MDL-17209 typo fix 2008-11-13 14:50:05 +00:00
wildgirl 79875473a4 mnet lang string: MDL-17209 typo fix 2008-11-13 14:47:57 +00:00
wildgirl fca0b1c6dd qtype_truefalse lang string: MDL-16942 typo fix 2008-11-13 14:24:01 +00:00
wildgirl f29dd7aac0 profilesforenrolledusersonly setting: MDL-17143 lang string rewording 2008-11-13 11:22:15 +00:00
tjhunt ac9c42de1f course settings: MDL-16327 when creating a course, the role renames were not saved. 2008-11-13 08:21:47 +00:00
moodlerobot eddf18d9f2 Updated the 19 build version to 20081113 2008-11-13 01:57:26 +00:00
moodlerobot fa44bc2fb8 Automatic installer.php lang files by installer_builder (20081113) 2008-11-13 01:51:23 +00:00
sam_marshall 2232f4fbd9 MDL-17164: Glossary autolinking doesn't work for entries similar to current entry 2008-11-12 17:02:23 +00:00
pichetp 6995ba729a MDL-14763 remove automatic numbering of multichoice vertical or horizontal display 2008-11-12 07:05:21 +00:00
danmarsden 49d62e0d49 scorm: MDL-16185 display warning when zlib_compression on - causes errors with certain browsers. merged from HEAD 2008-11-12 06:37:35 +00:00
moodlerobot bc6d265d16 Updated the 19 build version to 20081112 2008-11-12 02:12:13 +00:00
stronk7 aeaff0b308 MDL-17143 Bump version to force new profilesforenrolledusersonly setting 2008-11-11 19:09:10 +00:00
stronk7 b0a9e1c532 MDL-17143 Some improvements suggested by Petr applied. 2008-11-11 19:00:48 +00:00
mjollnir_ 802af00aea Merged from HEAD: MDL-17207 filter/tex reverting removal of $pathname in
http://cvs.moodle.org/moodle/filter/tex/texed.php?r1=1.8&r2=1.7

This fixes a security problem only triggered with register_globals ON and magic_quotes_gpc OFF which is a very uncommon case

CVS: ----------------------------------------------------------------------
CVS: Enter Log.  Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: 	filter/tex/texed.php
CVS: ----------------------------------------------------------------------
2008-11-11 18:35:42 +00:00
stronk7 f77f4743e2 MDL-17143 deleting one line that shouldn't be in core. Sorry. 2008-11-11 18:34:50 +00:00
stronk7 e9a53fb1ba MDL-17143 Avoid notices caused by not existing profilesforenrolledusersonly setting 2008-11-11 18:31:07 +00:00
jerome 4847ef9b3a activities search: MDL-13987 remove AS from SQL 2008-11-11 07:55:30 +00:00
tjhunt 5e304e4900 role assign: MDL-13325 when assigning roles inside front page activites, list all users as potential users. 2008-11-11 07:23:36 +00:00
moodlerobot a98b19c219 Updated the 19 build version to 20081111 2008-11-11 02:07:48 +00:00
moodlerobot 4d5b31c269 Automatic installer.php lang files by installer_builder (20081111) 2008-11-11 02:01:21 +00:00
pichetp 2e9f0b00e4 MDL-14763 new lang strings and MDL-17134 merged from HEAD 2008-11-10 19:54:41 +00:00
pichetp 1bda18dfb0 MDL-14763 new help file merged from HEAD 2008-11-10 19:44:27 +00:00
stronk7 58cbd74d66 MDL-17122 lang files: Reverting last manual commit. Installer lang files must be
generated automatically (by inclusion of strings in stringnames.txt)
2008-11-10 09:24:54 +00:00
tjhunt 5e1fd88ecb random questions: MDL-17185 regression from MDL-17160 random questions were no longer randomising.
Backporting Jamie's fix to 1.9, and making a minor improvement along the way.
2008-11-10 07:56:43 +00:00
jerome 5b64744053 Installation: MDL-17122 add comment and link to the Moodle Docs in the postgresql installation database page 2008-11-10 04:57:20 +00:00
dongsheng 85f1f34c85 "MDL-17143, don't display the user description at all when user isn't enrolled in any courses" 2008-11-10 02:57:00 +00:00
tjhunt 5c4db861ab quiz reports overview: MDL-17168 Cancelling 'are you sure you want to delete this attempt' still deletes it.
Report and fix thanks to Federico Botti. This was already fixed in 2.0, and was not a problem in 1.8. Therefore no need to merge.
2008-11-10 02:43:35 +00:00
moodlerobot 1964efc04b Updated the 19 build version to 20081110 2008-11-10 01:56:03 +00:00
pichetp bcc1885779 Merge from HEAD MDL-17104 and MDL-17105 unused old questions are deleted more
correclty and take in account that the actual questiontype/save_question()
create a new question  when categorytomove is not set..
2008-11-09 23:44:36 +00:00
stronk7 5037cf7014 MDL-17171 Glossary: Correct breadcrumb when exporting glossary. 2008-11-09 22:55:39 +00:00
piers 2bb6c9fbe4 MDL-17178 - fix grade update so that it happens both when the lesson status, and the score changes. Backport to 1.9. Fix bad debug statement in code (sorry). 2008-11-09 22:39:20 +00:00
piers 172e3b12a2 MDL-17178 - fix grade update so that it happens both when the lesson status, and the score changes. Backport to 1.9. 2008-11-09 22:33:12 +00:00
moodlerobot ec5978ac13 Updated the 19 build version to 20081109 2008-11-09 01:56:46 +00:00
moodlerobot 4c4faf547f Updated the 19 build version to 20081108 2008-11-08 01:55:08 +00:00
ikawhero 418a1ffb39 MDL-17151: Missing code to check for uniqueness of values 2008-11-07 05:51:54 +00:00
tjhunt e87035545b random questions: MDL-17160 Adding random questions, maximum option.
When counting how many options to put in the add NN random questions dropdown, we should only count questions of types that are usable by random.
2008-11-07 05:50:08 +00:00
jerome 11a786d55e MDL-13987: fix navigation links for Activities Administration page: check that the course list is not empty 2008-11-07 05:40:04 +00:00
jerome cac15c9ff3 MDL-13987: fix bottom navigation links for Activities Administration page 2008-11-07 05:34:09 +00:00
moodler 69017ad364 auth/cas MDL-17121 Upgraded to latest version which is LGPL 2008-11-07 01:59:35 +00:00
ikawhero 34c01a4a02 MDL-17151: Fixed typo. 2008-11-07 01:58:16 +00:00
moodlerobot 20a594645a Updated the 19 build version to 20081107 2008-11-07 01:54:55 +00:00
jerome 0baeccfd24 MDL-13987: fix navigation links for Activities Administration page 2008-11-07 01:52:50 +00:00
tjhunt 557caae4eb quiz results block: MDL-17137 block_quiz_results: manager links to group/overview are wrong.
Eloy told me exactly what to change. I don't know why he did not commit the fix himself!
2008-11-06 06:14:12 +00:00
moodlerobot 2d2955bc70 Updated the 19 build version to 20081106 2008-11-06 02:20:11 +00:00
danmarsden 710e078327 MDL-17140 should check if $data->id isn't empty before sending to get_record merged from HEAD 2008-11-06 01:05:59 +00:00
skodak 7a80df2bbc MDL-17110 snoopy: added import info; backported from HEAD 2008-11-05 09:14:09 +00:00
skodak 577d9d6de6 file moodle_readme.txt was added on branch MOODLE_19_STABLE on 2008-11-05 09:14:09 +0000 2008-11-05 09:13:38 +00:00
danmarsden b92ef5be76 MDL-17071 fix misleading text - it's removing enrolments not assignments - merged from HEAD 2008-11-05 07:14:08 +00:00
danmarsden 26aa7a8db9 MDL-17128 SCORM backuplib generates invalid XML - causes backup to fail. thanks to Mark Nielsen for patch. merged from HEAD 2008-11-05 06:53:02 +00:00
moodlerobot 1866371731 Updated the 19 build version to 20081105 2008-11-05 02:20:24 +00:00
stronk7 1905721bee MDLSITE-548 - langconfig: Adding thousands separator. 2008-11-04 16:39:08 +00:00
stronk7 8dc2432c92 MDLSITE-548 - langconfig: Adding thousands separator. Backported from HEAD. 2008-11-04 16:27:57 +00:00
wildgirl 436294e18c MDL-13702 example replaced with simpler one 2008-11-04 12:25:58 +00:00
jerome cc99016319 MDL-10021: display iframe when the resource is on another domain 2008-11-04 05:09:42 +00:00
jerome 39889df28a MDL-10021: fix xhtml/javascript 2008-11-04 02:25:43 +00:00
moodlerobot ed7ba2f8bd Updated the 19 build version to 20081104 2008-11-04 02:07:28 +00:00
moodlerobot 19202892a7 Automatic installer.php lang files by installer_builder (20081104) 2008-11-04 01:59:54 +00:00
jerome 6ebb04cff6 MDL-10021: use build_navigation() instead a string into print_header() 2008-11-04 01:52:33 +00:00
skodak b97a5d97bd MDL-17110 snoopy: imported new version 1.2.4; backported from HEAD 2008-11-03 07:56:36 +00:00
dongsheng b7c8bfd263 "MDL-16954, use rebert\'s patch to clean notice/warning in cron job via php cli" 2008-11-03 05:21:45 +00:00
moodlerobot f0f28e3a4e Updated the 19 build version to 20081103 2008-11-03 01:50:27 +00:00
moodlerobot 78eac44451 Updated the 19 build version to 20081102 2008-11-02 01:47:06 +00:00
skodak 57bdd314e4 MDL-17027: protect user profile images if $CFG->forcelogin enabled 2008-11-01 22:28:54 +00:00
skodak 9f29866371 MDL-17065 user: profile iamges of deleted users are not accessible anymore 2008-11-01 19:35:46 +00:00
mudrd8mz f00e699477 MDL-17094 Automatic language update can be disabled via $CFG->skiplangupgrade settings. 2008-11-01 19:30:56 +00:00
skodak b29f0b5d59 MDL-11789 fixed regressions preventing file caching when default used 2008-11-01 19:27:36 +00:00
skodak c372f7bac5 CONTRIB-849 phpPgAdmin integration hook 2008-11-01 17:52:21 +00:00
moodlerobot 7aa5da8b2e Updated the 19 build version to 20081101 2008-11-01 01:45:06 +00:00
stronk7 2fe9a6d323 MDL-14952 - roles: 'moodle/legacy:guest' was preventing admins to post
new discussions in fron page if $CFG->defaultfrontpageroleid = guest.
2008-11-01 00:28:40 +00:00
piers fc89ab2433 MDL-7068 - SCORM 2004 compliance - fix mod/scorm to handle core data elements correctly - now passes test DMI. backport 1.9. 2008-10-31 22:59:17 +00:00
stronk7 fac8b5db4f MDL-14998 - roles: add mod/forum:viewdiscussion protection to forum_get_discussions() 2008-10-31 21:48:21 +00:00
mudrd8mz 97928e7e50 MDL-17094 Allow translators to disable automatic language update during Moodle upgrade.
One needs just add $CFG->skiplangupgrade = true; to their config.php and keep their language pack up-to-date manually. This is intended for lang pack maintainers with CVS access only.
2008-10-31 21:01:03 +00:00
stronk7 0dca43644d MDL-14998 - roles: User needs to have mod/forum:viewdiscussion to be able to see news block. 2008-10-31 19:04:03 +00:00
jerome a4e5cc84e0 MDL-10021: change frame into object tag when display a Link Resource with navigation bar 2008-10-31 05:55:56 +00:00
moodlerobot f8b220ec70 Updated the 19 build version to 20081031 2008-10-31 02:08:29 +00:00
danmarsden 5123fa76c8 MDL-17050 excorising $_POST - thanks to mikec for patch - also check groupmode before bothering to get groupstuff to save some trees. merged from HEAD 2008-10-31 00:56:05 +00:00
gbateson 0105dfc1f3 MDL-16300: use cache to minimize use of get_users_by_capability() 2008-10-30 07:27:00 +00:00
gbateson 75f484f534 use "md5key" as secondary key on hotpot_strings table; allow for non-unique secondary keys on hotpot tables (can happen on hotpot_strings) 2008-10-30 06:23:41 +00:00
moodlerobot c9c457c268 Updated the 19 build version to 20081030 2008-10-30 01:53:03 +00:00
peterbulmer 8fca983968 MDL-15942 catch one more mnet update needing secure commit
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-10-30 01:42:17 +00:00
peterbulmer 1a445dc3fc MDL-17038 bugfixes
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-10-30 01:40:21 +00:00
peterbulmer 00959494a6 MDL-17038 - truncate overlength varchar fields before attempting to insert
Signed-off-by: Peter Bulmer <peter.bulmer@catalyst.net.nz>


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-10-30 01:39:45 +00:00
peterbulmer d5942d6a6f MDL-17038 formatting correction
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-10-30 01:39:09 +00:00
peterbulmer 5b407159d5 MDL-17038 Change to use sensible variable names
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-10-30 01:38:39 +00:00
peterbulmer e3c3610af1 MDL-17038 - refine query to limit size of returned data.
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-10-30 01:21:15 +00:00
piers 10610a60bc MDL-17052 - remove use of $_POST. backport to 1.9. 2008-10-29 16:15:03 +00:00
moodlerobot f0abdc5c72 Updated the 19 build version to 20081029 2008-10-29 01:50:47 +00:00
moodlerobot 13069faafe Updated the 19 build version to 20081028 2008-10-28 01:53:08 +00:00
tjhunt 3f51bef08c qtype multichoice: MDL-17029 - followup - revert my overzealous copying and pasting. Thanks to Myles Carrick for noticing my mistake. 2008-10-27 23:36:04 +00:00
tjhunt f42636806d qtype multichoice: MDL-17029 answernumbering option was not being backed up or restored. 2008-10-27 04:23:08 +00:00
tjhunt 4043d93219 qtype match: MDL-16450 Change validation so it is possible to create matching questions with two stems and three answers.
Thanks to Oleg Sychev for implementing this.
2008-10-27 02:33:28 +00:00
moodlerobot 700ba226f7 Updated the 19 build version to 20081027 2008-10-27 01:46:06 +00:00
moodlerobot 1db7d40fc9 Automatic installer.php lang files by installer_builder (20081027) 2008-10-27 01:39:27 +00:00
moodlerobot 156a376c41 Updated the 19 build version to 20081026 2008-10-26 01:41:26 +00:00
moodlerobot 0ada42290c Updated the 19 build version to 20081025 2008-10-25 01:51:42 +00:00
robertall 4e96b320ec [MDL-15425] Search Filters are too persistant 2008-10-24 19:47:47 +00:00
skodak 6e91016520 MDL-16785 bogus grades inserted when formulas used - credit Michael Spall and Ann Adamcik 2008-10-24 17:47:56 +00:00
sam_marshall 20c30ac5e4 MDL-16756: Groups bugfixes and multiple select support for deletion 2008-10-24 13:34:12 +00:00
sam_marshall a240818cf3 file delete.php was added on branch MOODLE_19_STABLE on 2008-10-24 13:34:13 +0000 2008-10-24 13:31:49 +00:00
tjhunt ead49b0e44 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:54:16 +00:00
moodlerobot c457a17af4 Updated the 19 build version to 20081024 2008-10-24 01:56:23 +00:00
moodlerobot ba0f099ade Updated the 19 build version to 20081023 2008-10-23 02:04:36 +00:00
nicolasconnault b75bb79414 MDL-16962 New formslib element for dropdowns with a link to another page. Applied to outcome item and outcome edit pages. 2008-10-22 09:19:30 +00:00
nicolasconnault 2bc741e66a MDL-16962 New formslib element for dropdowns with a link to another page. Applied to outcome item and outcome edit pages. 2008-10-22 09:09:31 +00:00
fmarier 112de10a61 backuplib: MDL-16945 remove the uid alias since it's a reserved field on Oracle 2008-10-22 03:04:12 +00:00
fmarier d9b3406111 moodlelib/welcome message: MDL-16947 use the userid that was passed in for the profile URL 2008-10-22 02:33:11 +00:00
moodlerobot 21de218e57 Updated the 19 build version to 20081022 2008-10-22 01:56:54 +00:00
jerome 98cc1b062d MDL-16929: fix bulk user download function. (the shortname column title is now profile_field_"shortname") 2008-10-22 01:32:22 +00:00
stronk7 06306ddd94 Bumped to 1.9.3+ (before weekly build) 2008-10-21 23:06:55 +00:00
tjhunt 73de6ccc13 qtype description: MDL-16863 Put back edit icon next to descriptions for teachers. 2008-10-21 06:33:58 +00:00
tjhunt ec3d11dd00 quiz reports: MDL-16948 SQL does not work in Oracle - you are not allowed to refer to output column names in GROUP BY. Fix thanks to Francois Marier. 2008-10-21 05:45:28 +00:00
moodlerobot d7d10cd3d4 Updated the 19 build version to 20081021 2008-10-21 01:51:31 +00:00
arborrow af20b75c55 MDL-16939 - adding check type exists to avoid PHP notice in build_navigation function 2008-10-20 17:47:52 +00:00
nicolasconnault 1f02086d55 MDL-16892 Fixed bug in accesslib role_fix_names method 2008-10-20 13:43:12 +00:00
moodlerobot 44c64196fb Updated the 19 build version to 20081020 2008-10-20 01:54:27 +00:00
moodlerobot e1009af391 Updated the 19 build version to 20081019 2008-10-19 01:46:12 +00:00
moodlerobot 4a36974d3b Automatic installer.php lang files by installer_builder (20081019) 2008-10-19 01:40:08 +00:00
moodlerobot 523a5947a3 Updated the 19 build version to 20081018 2008-10-18 01:47:45 +00:00
arborrow bddc038848 fixed trivial typo in comment 2008-10-18 00:10:00 +00:00
stronk7 f81e0a1d06 Adding correct Office 2007 mime types. MDL-15987 2008-10-17 18:03:21 +00:00
nicolasconnault af4c52b849 MDL-13702 Added language help file 2008-10-17 14:55:10 +00:00
nicolasconnault 85db26a355 MDL-16917 small semantic change 2008-10-17 14:33:37 +00:00
nicolasconnault 9e9b288017 MDL-13259 Redirecting to creation of new scale when none exists. 2008-10-17 14:32:44 +00:00
nicolasconnault d3ee291624 MDL-16917 Fixed 2008-10-17 14:01:07 +00:00
moodlerobot abb176bfc0 Updated the 19 build version to 20081017 2008-10-17 01:54:43 +00:00
skodak f4d2786bb0 MDL-16903 mod/forum: undefined course context when forum subscription not allowed 2008-10-16 20:45:28 +00:00
nicolasconnault dfa5b89d74 MDL-16898 Extending include_path 2008-10-16 11:16:42 +00:00
moodlerobot dd4e8cbc7a Updated the 19 build version to 20081016 2008-10-16 02:02:13 +00:00
moodler 2079bf0472 Bumped the version up to 1.9.3 2008-10-15 05:43:18 +00:00
moodler ddd1e701ed Updated tags file for 1.9.3 2008-10-15 05:33:16 +00:00
dongsheng 79c29f165b "User Filter: empty filter form fixed, MDL-16880" 2008-10-15 05:29:48 +00:00
moodlerobot 94a5897dcb Updated the 19 build version to 20081015 2008-10-15 02:03:35 +00:00
skodak f06de5f7bc MDL-16881 gradebook: overview report does not ignore hidden grades if user can not view them 2008-10-14 20:32:47 +00:00
dongsheng c77c231e17 "Chat Module, refreshing in safari fixed, MDL-16878" 2008-10-14 08:38:26 +00:00
piers 8dab4c6a9e MDL-16810 - fix typo on function name. thanks to Jason Hardin. Backport to 1.9. 2008-10-14 04:42:06 +00:00
moodlerobot fced6c75ca Updated the 19 build version to 20081014 2008-10-14 02:03:30 +00:00
stronk7 a9c060f742 MDL-16709. Improve scheduling of stats. They only will run if:
- 20 hours has passes since last execution.
- We are in a 4 hours time window since last scheduled time.

Should work for 99.99% os sites (running cron in < 4h intervals)
2008-10-13 23:21:58 +00:00
skodak 435f116fed MDL-14972 groupings and groupmembers only help icons 2008-10-13 22:42:24 +00:00
skodak a35e1c073b MDL-14972 new help files for groupings and groupmembersonly - most of the credit goes to Helen ;-) 2008-10-13 22:40:45 +00:00
stronk7 a1fb0461d1 Adding new setting "statsruntimedays" to configure the number
of days to calculate as max per stats cron invocation. Part of MDL-16709
2008-10-13 21:45:23 +00:00
skodak 8c5ea44aaf MDL-16839 forms: workaround for problematic hard frozen values 2008-10-13 19:38:49 +00:00
nicolasconnault 7b799d0c18 MDL-16568 Hiding courses with showgrades set to 0 2008-10-13 12:34:14 +00:00
jamiesensei 1b19052646 MDL-16842 "Adding group of elements in function lib/formslib.php/repeat_elements() not working correctly" Fixed using fullclone instead of clone now. 2008-10-13 11:50:14 +00:00
nicolasconnault c833e8c3ba MDL-15680 Committing the small refactorings required for the implementation of the weights interface 2008-10-13 07:05:40 +00:00
moodlerobot 4cbdb49e2b Updated the 19 build version to 20081013 2008-10-13 01:59:04 +00:00
moodlerobot 13c7ebc071 Automatic installer.php lang files by installer_builder (20081013) 2008-10-13 01:46:53 +00:00
dongsheng e10b05289e "MDL-16844, making choose very old stats data possible" 2008-10-12 05:45:58 +00:00
moodlerobot df5b42819f Updated the 19 build version to 20081012 2008-10-12 01:51:10 +00:00
moodlerobot eab7d2b9f4 Updated the 19 build version to 20081011 2008-10-11 01:56:05 +00:00
stronk7 f6a81a6698 Detect non-utf8 langs in user edition forms. MDL-16845 MDL-11829 2008-10-10 21:27:42 +00:00
stronk7 e2994aa61f Set the user->lang DB default to en_utf8. MDL-16845 2008-10-10 17:48:18 +00:00
nicolasconnault ca90016b5d MDL-15887 Changed showpercentage to On by default 2008-10-10 08:39:14 +00:00
moodlerobot 3d50601189 Updated the 19 build version to 20081010 2008-10-10 02:01:09 +00:00
poltawski 3c73cdd15d MDL-16205 - fix 'coltroller' typo 2008-10-09 13:17:19 +00:00
poltawski bfeb5ed8c2 MDL-16428 - fix typo 2008-10-09 12:59:27 +00:00
poltawski 664428a5a2 MDL-16461 - default wasn't being set on send for marking due to
incorrect element name

thanks to Brian Gray
2008-10-09 11:22:14 +00:00
mudrd8mz 09c2eb69e2 MDL-16506 Fixed error when deleting the only page in the Lesson. Credit goes to Chris Bertagne for the patch. 2008-10-09 11:04:12 +00:00
poltawski 8b21237fd4 MDL-16434 fix typo in class name "generalbox"
thanks to Joseph Rézeau
2008-10-09 10:51:06 +00:00
scyrma 2efc9eb251 Files/MDL-14231: reverting previous commit. 2008-10-09 07:11:19 +00:00
scyrma bd0185707b Files/MDL-14231: return false on file not found so that the user is warned that the file could not be deleted. 2008-10-09 06:20:17 +00:00
moodlerobot 732866c986 Updated the 19 build version to 20081009 2008-10-09 01:58:31 +00:00
moodlerobot 614ccf9671 Automatic installer.php lang files by installer_builder (20081009) 2008-10-09 01:49:36 +00:00
skodak 32c987cdd6 MDL-15262 using hardFreeze instead of static, because we need this info to b returned from form; the new change* caps are not in effect when adding new courses 2008-10-08 20:48:23 +00:00
skodak 02d4a0bbd8 MDL-15262 adding xss risks to new course update related caps 2008-10-08 20:06:35 +00:00
skodak 39eccdd11a MDL-15262 fixed major regressions for non-legacy roles with course:update enabled 2008-10-08 20:00:22 +00:00
wildgirl b72fd9598e reverted to previous version (changed in error - see MDL-15887) 2008-10-08 19:57:57 +00:00
skodak 25a237a24d MDL-16738 fixed + array operator overriding the same numeric keys - credit goes to Vince Gángó 2008-10-08 19:09:43 +00:00
skodak ebbc87af56 MDL-14840 trimming scale options - the spaces should not be there in the first place (to be addressed later MDL-16832) - credit goes to Mike Corb and Dan Marsden 2008-10-08 18:52:46 +00:00
nicolasconnault 821c604e82 MDL-15262 Instead of removing these form fields entirely, rendering them as static form elements 2008-10-08 13:40:26 +00:00
nicolasconnault 81dc7d8b36 MDL-15262 Added 3 new capabilities without changing defaults, as suggested by Matt. 2008-10-08 13:15:27 +00:00
nicolasconnault 1b52625473 MDL-12198 Fixed ordering of sections 2008-10-08 12:13:39 +00:00
nicolasconnault 783425fc96 MDL-15887 Implemented new setting 2008-10-08 10:56:10 +00:00
jamiesensei 9a4ba0a430 MDL-14676 "In question bank, problem with moodle/question:edit* when do not have moodle/question:move*" Fixed logic for processing submission of question form and also added some validation to check that the user has permissions to move a question. 2008-10-08 10:19:51 +00:00
nicolasconnault 0e64f1234c MDL-10301 Applying language patch 2008-10-08 09:21:14 +00:00
nicolasconnault e177755c7f MDL-10201 Applying patch 2008-10-08 09:07:23 +00:00
nicolasconnault a51c4acab3 MDL-15871 Applying patch 2008-10-08 08:25:03 +00:00
nicolasconnault 92e0ed3ca3 MDL-16784 Adding missing files to 1.9 2008-10-08 08:12:11 +00:00
dongsheng 1c6ec70112 "MDL-11371, The View past chat sessions should not appear if there haven't been any." 2008-10-08 07:51:40 +00:00
skodak af94c62bb4 MDL-16765 - undoing MDL-14303 and adding different fix 2008-10-08 07:15:34 +00:00
dongsheng 44b1830731 MDL-15370, replace some old html and javascript code. 2008-10-08 06:41:55 +00:00
moodlerobot 0dfe475afc Updated the 19 build version to 20081008 2008-10-08 02:03:40 +00:00
fmarier 9c0fbb65c2 mod/label: Fix typo in function name 2008-10-08 01:46:40 +00:00
dongsheng fe7c27f5b4 "MDL-16753, remove single quote in SQL (parameter is not empty)" 2008-10-08 01:18:23 +00:00
skodak 536db61cae MDL-15800 fixed undefined wwwroot problem - credit goes to Charlie Owen 2008-10-07 22:04:51 +00:00
wildgirl 1afb6de73e MDL-13875 multiplicator help file rewording 2008-10-07 10:47:16 +00:00
scyrma 99dfda7a6d Forum/MDL-14558: Prevent users from subscribing or getting subscribed to forums where subscriptions are not allowed. 2008-10-07 08:13:01 +00:00
scyrma e4909c4527 Lesson/MDL-13311: make it possible to have a short answer question using 0 has answer. 2008-10-07 05:13:51 +00:00
jerome 0dd18fa6f6 MDL-15800: clean filelib.php, fix https image link into the edit profil page (weblib.php), and also into the YUI integration (ajaxlib.php) 2008-10-07 02:09:51 +00:00
moodlerobot 2267cd6a20 Updated the 19 build version to 20081007 2008-10-07 01:49:19 +00:00
skodak 460de28701 MDL-15431 User icon and Guest icon mixed up on compressed Course list 2008-10-06 22:29:00 +00:00
skodak d9a17dc900 MDL-16799 - Unit tests failing on events testing - caused by handler caching 2008-10-06 22:07:10 +00:00
wildgirl 623dab16e0 MDL-14830 backup info added to role renaming help file 2008-10-06 15:23:04 +00:00
skodak a1365689d1 MDL-14696 Option to unenrol user from course when assigned to a role at a higher context 2008-10-06 09:28:26 +00:00
andreabix 813a34b3b6 Fixed non compliant HTMl in README 2008-10-06 08:18:21 +00:00
moodlerobot 8756039fac Updated the 19 build version to 20081006 2008-10-06 01:46:31 +00:00
moodlerobot 186328cfcd Updated the 19 build version to 20081005 2008-10-05 01:43:56 +00:00
moodlerobot 0c897809db Automatic installer.php lang files by installer_builder (20081005) 2008-10-05 01:37:51 +00:00
moodlerobot 9cf2c68924 Updated the 19 build version to 20081004 2008-10-04 01:46:16 +00:00
nicolasconnault ef322c9a8b MDL-16784 Removing old YUI 2008-10-03 13:18:25 +00:00
nicolasconnault 8e3a2f3d47 MDL-16784 Added YUI 2.6.0 2008-10-03 13:12:58 +00:00
nicolasconnault c1d9d90e71 MDL-16784 Removing old YUI 2008-10-03 13:08:39 +00:00
nicolasconnault 5c8b0beeaf MDL-16780 Updated README.txt 2008-10-03 07:10:16 +00:00
nicolasconnault 059a33a8f9 MDL-16780 Added HTML/AJAX 2008-10-03 07:09:49 +00:00
nicolasconnault 173ffb591f MDL-16780 Moved JSON class and updated core files 2008-10-03 07:07:32 +00:00
moodlerobot 73e448e0b2 Updated the 19 build version to 20081003 2008-10-03 01:46:08 +00:00
poltawski 776f1020c9 Group overview displays incorrect user count
When there are no users in a group, the count displays
as 1 - MDL-16705
2008-10-02 15:29:57 +00:00
poltawski 9f9539bdea MDL-16729 - typo in 'Statements' 2008-10-02 14:39:13 +00:00
nicolasconnault d292294c97 MDL-16768 Added php version-dependent function definitions so that we can use json_encode() and json_decode() no matter what PHP version the server is running. 2008-10-02 07:40:11 +00:00
tjhunt 587397becf MDL-8547 Time remaining covers question text in the quiz when using secure mode. 2008-10-02 02:45:25 +00:00
moodlerobot 329952a56c Updated the 19 build version to 20081002 2008-10-02 01:54:24 +00:00
moodlerobot 6031cd5187 Updated the 19 build version to 20081001 2008-10-01 01:55:22 +00:00
moodlerobot 394b9fe3f7 Updated the 19 build version to 20080930 2008-09-30 01:46:31 +00:00
stronk7 694db66283 Reviewed breadcrumb in 19_STABLE. Page name was missing. MDL-16331 2008-09-29 22:37:06 +00:00
stronk7 57ee499fc6 Improve DOM detection (due to conficts with old DOM-XML). MDL-15637. Thanks Dariem! 2008-09-29 17:09:42 +00:00
moodlerobot 61e6f7cd92 Updated the 19 build version to 20080929 2008-09-29 01:44:03 +00:00
tjhunt e42effaa67 MDL-16720 The edit icon in the quiz preview screen pops up the edit form in a window that is too small 2008-09-28 09:00:05 +00:00
moodlerobot fc193feda1 Updated the 19 build version to 20080928 2008-09-28 01:47:54 +00:00
moodlerobot eadeac6943 Automatic installer.php lang files by installer_builder (20080928) 2008-09-28 01:41:42 +00:00
moodlerobot da27ea2b48 Updated the 19 build version to 20080927 2008-09-27 01:48:14 +00:00
ethem 55246ce2e3 Authorize.net Trans IDs are changing in October-Will it break moodle? YES
http://moodle.org/mod/forum/discuss.php?d=106626
Backported from HEAD.
2008-09-27 00:40:00 +00:00
stronk7 7dd49286ad Cleaning wiki recent activity URLs. MDL-15896 2008-09-26 09:33:03 +00:00
scyrma a17718ae3e MDL-14092: forcing imported users with a weak password to change it on first login. 2008-09-26 09:10:20 +00:00
scyrma 93586136d2 MDL-16700: Making the password policy be applied all at once.
Also, any policy letting a user use password "password" is not worth using, so removing this check.
2008-09-26 08:08:21 +00:00
tjhunt 6a96e586d6 Correct comment. 2008-09-26 05:55:37 +00:00
tjhunt 1c2c8b0946 MDL-16600 forcedownload broken for file resources. 2008-09-26 05:49:06 +00:00
tjhunt 6852263fc2 XHTML strict. 2008-09-26 05:15:45 +00:00
tjhunt 72737be236 Fix whitespace. 2008-09-26 04:49:32 +00:00
tjhunt d25bee6187 MDL-16683 - add 5/6 as a grading option. 2008-09-26 03:13:30 +00:00
moodlerobot 9bda662574 Updated the 19 build version to 20080926 2008-09-26 01:58:32 +00:00
piers 705154d96f MDL-7068 - SCORM 2004 compliance. Handle cmi.interactions hydration (scorm 1.2 to as well). Backport to 1.9 - rerun compliance test. 2008-09-26 00:35:10 +00:00
stronk7 11d1f8ef69 Protect message settings with sesskey. MDL-16688 2008-09-25 22:31:39 +00:00
skodak 195ccb83ce MDL-15896 undoing last commit, sorry 2008-09-25 21:45:28 +00:00
skodak e990f1b6ad MDL-15896 proper pagename quoting 2008-09-25 21:44:01 +00:00
mudrd8mz d69d156acf MDL-16308 Use default country instead of empty one when some external auth source (LDAP, POP3 etc) is used 2008-09-25 10:09:59 +00:00
peterbulmer 1ec17a6380 MDL-16560 - correct bogus function call
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-25 09:57:33 +00:00
skodak 123b38e44b MDL-15682 fixed isset() test 2008-09-25 07:40:54 +00:00
skodak db12065ba8 MDL-16617 fixed forum name filtering - thanks Mark Nielsen 2008-09-25 07:11:31 +00:00
moodlerobot 9620024032 Updated the 19 build version to 20080925 2008-09-25 01:48:47 +00:00
skodak e6613a931c MDL-15810 whitelist _blank target in htmlpurifier cleaning 2008-09-24 21:38:43 +00:00
skodak 1faa5a441e MDL-16667 security fixes in htmlpurifier 2.1.5 2008-09-24 21:24:14 +00:00
skodak 373f371166 MDL-16598 Admin config setting to make enrolment key hint optional; backported from HEAD 2008-09-24 18:48:08 +00:00
stronk7 4c22bf9766 Substring MSSQL function *requires* 3rd parameter - MDL-16655 2008-09-24 17:26:27 +00:00
skodak ccceaab929 MDL-16365 domain restrictions are now optional when changing email address 2008-09-24 16:58:36 +00:00
scyrma b78c2ceb0c MDL-14489: Make the tag cloud "more extended" in size with small dataset (credits to Matt Gibson) 2008-09-24 08:04:01 +00:00
danmarsden a31878015b MDL-16599 - tidy up error message to be make more sense to the user. merged from HEAD 2008-09-24 07:02:46 +00:00
dongsheng 7f601668fb "MDL-16648, UTF-8 lang file for phpmailer" 2008-09-24 02:40:42 +00:00
moodlerobot c8961f175a Updated the 19 build version to 20080924 2008-09-24 01:52:44 +00:00
moodlerobot 6f48b3d99f Automatic installer.php lang files by installer_builder (20080924) 2008-09-24 01:46:29 +00:00
jerome 3e60778c6f MDL-12297: improvement for fix "assignment view submission" link into "Profil/Activty Report/all logs 2008-09-23 07:46:53 +00:00
jerome 472d8bf771 MDL-12297: fix "assignment view submission" link into "Profil/Activty Report/all logs 2008-09-23 07:21:40 +00:00
tjhunt 3177a65e62 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:03 +00:00
moodlerobot 9d4d9e2dd4 Updated the 19 build version to 20080923 2008-09-23 01:50:40 +00:00
scyrma 6ae3a5a15b MDL-16602: always display teachers. 2008-09-22 09:08:49 +00:00
dongsheng 5f2c283ad0 "MDL-16554, strip slashes in email, chech the patch, vefired" 2008-09-22 02:30:13 +00:00
moodlerobot 86d9320313 Updated the 19 build version to 20080922 2008-09-22 01:41:08 +00:00
moodlerobot 909ea21954 Automatic installer.php lang files by installer_builder (20080922) 2008-09-22 01:34:55 +00:00
arborrow 582bab05c0 CONTRIB-716 - removing files intended for CONTRIB from 19STABLE 2008-09-21 04:28:23 +00:00
arborrow 666a4a6eb7 CONTRIB-716 - adding the exabis_student_review block. Thanks to Daniel Prieler for contributing the code. 2008-09-21 04:14:49 +00:00
moodlerobot 88d8b37b18 Updated the 19 build version to 20080921 2008-09-21 01:42:10 +00:00
moodlerobot 6f147abf9f Automatic installer.php lang files by installer_builder (20080921) 2008-09-21 01:36:28 +00:00
pichetp edcf824953 MDL-16427 implement the '*' convention as for other questiontypes 2008-09-20 14:07:47 +00:00
pichetp 7564f1d095 merge from HEAD MDL-15358 negative data from datasets between () 2008-09-20 14:01:51 +00:00
moodlerobot 81fc3036eb Updated the 19 build version to 20080920 2008-09-20 01:47:40 +00:00
nicolasconnault 82a82552e3 MDL-16556 Merging from MOODLE_18_STABLE 2008-09-19 20:33:52 +00:00
scyrma eb61a1e83a MDL-16585: fixing query. 2008-09-19 10:02:30 +00:00
thepurpleblob d178d3a213 MDL-16570
Use CDATA sections for text where required. More readable and less error
prone.
2008-09-19 09:58:57 +00:00
nicolasconnault 577fb1cd3b MDL-16556 Reverting commit of test code 2008-09-19 06:22:43 +00:00
nicolasconnault 23375cea89 MDL-16556 Applied Mark Nielsen's patch 2008-09-19 05:32:23 +00:00
scyrma 21f1d5ec78 MDL-16574: improving configgetremoteaddrconf documentation 2008-09-19 03:33:29 +00:00
moodlerobot 2d46263265 Updated the 19 build version to 20080919 2008-09-19 01:46:59 +00:00
stronk7 7f08b6a5d7 Setting some proper zeros. MDL-16565 2008-09-18 16:14:12 +00:00
stronk7 f2e8a852b2 Respect role names for logged students. MDL-16569. Credit goes to Otakar Šprdlík 2008-09-18 15:13:34 +00:00
stronk7 c051d555b9 Fixing typo in my last commit, apologizes. MDL-13894 2008-09-18 14:43:20 +00:00
pichetp 253df4f69b MDL-16427 changing $answer=='*' to $answer ==='*' 2008-09-18 14:37:50 +00:00
stronk7 fe4550bbdf Fixing mistyped cfg var. Backported from HEAD. MDL-13894 2008-09-18 14:13:40 +00:00
scyrma 90ada2fc85 MDL-13894: saving a better source IP, following what the admin wants. 2008-09-18 08:16:01 +00:00
moodlerobot 6982a49147 Updated the 19 build version to 20080918 2008-09-18 01:58:55 +00:00
piers 372c1dd2d7 MDL-7097 - API debug. Add ability to manually poke the SCORM API for 1.2 and 2004. backport 1.9. 2008-09-17 02:11:46 +00:00
moodlerobot a238e79026 Updated the 19 build version to 20080917 2008-09-17 01:50:02 +00:00
moodler 4a8b9598bf MDL-12563 Fixed RSS dates so that they are always GMT 2008-09-16 08:55:43 +00:00
moodlerobot 8b7a64cdb7 Updated the 19 build version to 20080916 2008-09-16 01:59:19 +00:00
stronk7 f7ad0c514a Re-introducing colons in page names + cleaning tabs output. MDL-15896 2008-09-15 16:23:21 +00:00
wildgirl d7739ac095 MDL-16389 meta course help file update 2008-09-15 15:43:29 +00:00
wildgirl a2234cd4da MDL-15314 lang string rewording, thanks to Ray Lawrence 2008-09-15 15:14:52 +00:00
thepurpleblob c43541599b MDL-16508
Changed deprecated error() calls to print_error()
2008-09-15 14:21:02 +00:00
wildgirl e118ad4709 MDL-15134 lang string typo fix, thanks to David Mudrak 2008-09-15 14:18:46 +00:00
wildgirl b9c9531cee MDL-14404 enrolment expiry notification help file text 2008-09-15 14:00:50 +00:00
mudrd8mz 353f7ee981 MDL-16355 Do not set lesson maxgrade to 100 but use the real value without multfactor 2008-09-15 11:56:14 +00:00
mudrd8mz 45794074b5 MDL-16356 Fix capability name 2008-09-15 11:48:06 +00:00
mudrd8mz b0f74680f7 MDL-16441 Display language selection drop-down list at My Moodle page 2008-09-15 11:29:24 +00:00
andreabix 9b82222107 Fixed duplicated style in fw_fonts.css 2008-09-15 08:01:42 +00:00
moodlerobot ef043800b5 Updated the 19 build version to 20080915 2008-09-15 01:53:12 +00:00
moodlerobot 963c69ce92 Updated the 19 build version to 20080914 2008-09-14 01:47:42 +00:00
moodlerobot e888919b90 Updated the 19 build version to 20080913 2008-09-13 01:45:00 +00:00
moodler 2a4d3c9e22 MDL-16473 Removed stylings from user and group images so theme can do it with CSS 2008-09-12 06:54:03 +00:00
tjhunt 9c6389efc5 MDL-15632 Wrong permission in the admin tree defininition mean that people with moodle/role:manage could not define role, and people with moodle/role:assign could not assign system roles. 2008-09-12 05:18:40 +00:00
moodlerobot 7b814e23aa Updated the 19 build version to 20080912 2008-09-12 02:00:25 +00:00
stronk7 28d6c12579 Prevent get_users_by_capability() to retrn deleted users. MDL-16323 2008-09-11 22:14:10 +00:00
skodak 26c2ccbbe5 MDL-16468 never mail deleted users 2008-09-11 19:53:35 +00:00
urs_hunkler f709ee920d add missing icons 2008-09-11 13:16:07 +00:00
moodlerobot 4f9df5e050 Updated the 19 build version to 20080911 2008-09-11 02:06:20 +00:00
peterbulmer 856bbd151c MDL-16378 Changes to lang strings,
remoteappuser should be output as somthing like "Remote Moodle User" or
"Remote Mahara User", or "Remote <application name goes here> User"
2008-09-10 03:21:04 +00:00
moodlerobot af66ad1fe1 Updated the 19 build version to 20080910 2008-09-10 01:58:24 +00:00
tjhunt d37b5e0f44 XHTML Strict! 2008-09-09 02:49:01 +00:00
moodlerobot a24f50ced3 Updated the 19 build version to 20080909 2008-09-09 01:53:50 +00:00
stronk7 d0fd3458fc Fix regression introduced by MDL-12029. Concepts must not be linked by filters. MDL-16372 2008-09-08 23:04:22 +00:00
piers e1a609c888 MDL-11734 - cmi.comments_from_learner not read - write. revamp the handling of array style elements. Backport to 1.9. 2008-09-08 19:50:24 +00:00
stronk7 e644988f14 XHTML-ize course categories list. MDL-16358 2008-09-08 18:13:57 +00:00
stronk7 290d4edd83 Added missing join condition. Credit goes to Colin Chambers. MDL-16385 2008-09-08 14:25:18 +00:00
moodler 023fc40de4 MDL-9683 Fixed error call for when confirm_sesskey() fails in formslib 2008-09-08 02:41:40 +00:00
moodlerobot 68679f923f Updated the 19 build version to 20080908 2008-09-08 01:49:50 +00:00
piers c1d74923f8 MDL-16299 - Javascript error during scorm player load. SCOID should not be populated - TOC figures this out. Backport to 1.9. 2008-09-08 00:34:12 +00:00
peterbulmer 0e2a066e7b MDL-14488 - start sql query with unique field - credit David Monllaó 2008-09-07 06:03:49 +00:00
peterbulmer d74fddbd58 MDL-16301 address issue. 2008-09-07 05:08:35 +00:00
moodlerobot 98e9f88177 Updated the 19 build version to 20080907 2008-09-07 01:47:10 +00:00
moodlerobot afe78ffd24 Updated the 19 build version to 20080906 2008-09-06 01:43:33 +00:00
wildgirl 3f29c452f9 MDL-16050 wrong help file name, thanks to Marty Gilbert and Daniel Miksik for reporting this issue 2008-09-05 13:51:56 +00:00
scyrma 460add2ed7 MDL-16289: Backport of improvement to error reporting in mnet (patch by Penny Leach). 2008-09-05 07:22:11 +00:00
tjhunt a16f9c67fb MDL-12336 Inconsistent naming of the Front page area of the question bank, and the front page context more generally. 2008-09-05 04:05:16 +00:00
tjhunt 67d8f80127 MDL-12814 typo in CSS class name. 2008-09-05 03:38:17 +00:00
moodlerobot 794d10ebe2 Updated the 19 build version to 20080905 2008-09-05 01:53:06 +00:00
moodlerobot 7bafbd170f Updated the 19 build version to 20080904 2008-09-04 01:47:13 +00:00
pichetp 04ed1cebd7 Improving multichoice display MDL-14763 merging from HEAD 2008-09-03 15:22:46 +00:00
dongsheng 3b38133b31 "MDL-16284, fix mismatch tracking state title" 2008-09-03 02:57:33 +00:00
moodlerobot 9d74541b96 Updated the 19 build version to 20080903 2008-09-03 01:50:26 +00:00
piers d6e017d513 MDL-16299 - Javascript error during scorm player load. Ensure SCOID is always populated. Backport 1.9. 2008-09-03 00:41:14 +00:00
skodak 59499faf67 MDL-14826 reverting commit, MDL-16292 solves this issue 2008-09-02 21:45:50 +00:00
jerome 797ccfe11f MDL-12224: preload ratings for the specific user and only for his discussions 2008-09-02 09:32:49 +00:00
tjhunt 5c6522115b MDL-14160 SQL in get_categories_for_contexts does not work on Oracle. Thanks to Adrian Smith and Francois Marier for the fix. 2008-09-02 06:55:40 +00:00
moodlerobot f31e70f7db Updated the 19 build version to 20080902 2008-09-02 01:50:46 +00:00
moodlerobot a86917dcbf Automatic installer.php lang files by installer_builder (20080902) 2008-09-02 01:41:19 +00:00
skodak 693dbaa59c MDL-16029 Added $extralocations in the function print_error 2008-09-01 15:24:40 +00:00
skodak 1096639958 MDL-16292 print_error not backwards compatible with error(get_string('xx', 'moodle')) 2008-09-01 14:54:09 +00:00
wildgirl 32f4075551 MDL-15879 lang string typo fix (thanks to Susan Mangan) 2008-09-01 14:53:11 +00:00
mudrd8mz fe89f05464 MDL-16259 Display overridden role names in course info pop-up box. 2008-09-01 09:30:07 +00:00
skodak aa45463df1 MDL-15218 reset change password secret if somebody just tries to guess it 2008-09-01 08:15:38 +00:00
skodak 7fecd329e0 MDL-15948 inform that curl is required for recaptcha 2008-09-01 07:17:36 +00:00
tjhunt a7faad2559 MDL-15605 - Fix solution SQL syntax for the "question categories must belong to a context that exists" check. 2008-09-01 05:29:32 +00:00
tjhunt 1bc9815601 MDL-15655 - address_in_subnet does not work on 64 bit architectures. Also, we found some other issues with this funtion while diagnosing the problem. 2008-09-01 04:17:52 +00:00
moodlerobot 646ff46ce1 Updated the 19 build version to 20080901 2008-09-01 01:45:26 +00:00
skodak 30e3ea98d5 MDL-15580 detection of broken groups upgrade in 1.8.x -unfortunately this can not be fixed automatically because the courseid field from groups table is gone; adding missing $result into upgrade blocks 2008-08-31 20:59:14 +00:00
skodak 596a16d82a MDL-16283 fixed notice 2008-08-31 20:44:16 +00:00
moodlerobot 9479d167ac Updated the 19 build version to 20080831 2008-08-31 01:42:54 +00:00
moodlerobot 8fdac6dd60 Updated the 19 build version to 20080830 2008-08-30 01:50:30 +00:00
moodler 3dc83fb06c Latest tags file for 1.9 2008-08-29 05:44:36 +00:00
peterbulmer 77e78e7ea7 MDL-16264 Make mnet courses affect course_list block
If a user has mnet courses, these should affect block display in the same way as local courses do.
2008-08-29 04:23:38 +00:00
piers 3318cc4ecf MDL-14492 - Provide feedback to user about redirect delay in loadsco.php. Add sanity checking for scorm_resize() as it tries to set -ve heights if user specifies a small area. Thanks francois. backport 1.9. 2008-08-29 04:13:35 +00:00
moodlerobot af192f2f3d Updated the 19 build version to 20080829 2008-08-29 01:48:26 +00:00
moodlerobot 86d88be296 Automatic installer.php lang files by installer_builder (20080829) 2008-08-29 01:41:39 +00:00
stronk7 e54f616168 Allowing category themes to be reverted to "none". MDL-16152. Credit goes to Caio SBA. 2008-08-28 23:12:44 +00:00
skodak 7584bb8e26 MDL-16238 improved SQL - see tracker for details 2008-08-28 17:42:01 +00:00
mudrd8mz 1d3ab7bb8b MDL-14826 Added missing string 2008-08-28 16:37:52 +00:00
thepurpleblob ca1a880ffd MDL-16198
Blackboard V6+ can now handle the .dat file directly as an option to the .zip file
Some changes needed to recover the original filename.
2008-08-28 13:43:25 +00:00
thepurpleblob cb285deb66 MDL-16221
Specify both width and height for user image
2008-08-28 12:45:11 +00:00
stronk7 9b1294cad1 Improve get_user_courses_bycap() queries. MDL-16209 2008-08-28 12:37:58 +00:00
thepurpleblob 2f26b249c0 MDL-16252
Fixed some notices with essay questions when there is no feedback
2008-08-28 10:57:50 +00:00
thepurpleblob aeb8bb2802 MDL-16251
Changed tests to empty rather than isset to avoid notices when array is set but empty
2008-08-28 10:34:11 +00:00
thepurpleblob a2055ae57f MDL-16250
Added support for Essay type questions
2008-08-28 10:04:23 +00:00
thepurpleblob 9b1e693fa7 MDL-16221
Fixed missing height/width in CSS
2008-08-28 08:34:07 +00:00
tjhunt 1dcdf87bcc MDL-16202 formslib show/hide advanced button does not work with strict XML headers 2008-08-28 07:52:17 +00:00
skodak b67163420f MDL-15420 fixed wrong show submission to others test 2008-08-28 07:22:04 +00:00
jamiesensei f1a022424d MDL-16242 "'Required' does nothing for select fields in customisable user profiles" added an extra option 'Choose...' which is the default if no other default is specified. If the user leaves the select field set to 'Choose...' then the required rule fails and the form does not submit. 2008-08-28 06:46:43 +00:00
tjhunt 791a2be380 MDL-16243 Implement a health-centre check that the question categories are arranged properly in tree structures. 2008-08-28 05:06:39 +00:00
tjhunt 5fb836fdc0 MDL-16204 - On an old site, there were question categories where category->parent went round in a loop. This crashed the upgrade. Change the upgrade code to make it more robust. 2008-08-28 03:24:04 +00:00
tjhunt 568dfa5f06 MDL-16219 - mod/quiz/reviewquestion.php does not call questiontype::get_html_head_contributions. This was missed when implementing MDL-6368. 2008-08-28 02:15:24 +00:00
moodlerobot 3052f51877 Updated the 19 build version to 20080828 2008-08-28 01:52:30 +00:00
tjhunt f863bed701 MDL-8475 - Better handling of blank answer - further changes to make it even more robust. Also, make the same changes to the shortanswer question type that were already made to the numerical question type. 2008-08-28 01:46:47 +00:00
moodlerobot f1ea9b43b7 Automatic installer.php lang files by installer_builder (20080828) 2008-08-28 01:44:51 +00:00
piers bc6931c744 MDL-4746 - Course 01 of the ADL SCORM 1.2 test suite fails on point 4. only set browsed status if the SCO hasn't set a status. Backport 1.9. 2008-08-27 23:27:07 +00:00
danmarsden f9be7c4386 MDL-16137 - clear scorm directory if it already exists merged from HEAD 2008-08-27 22:39:50 +00:00
danmarsden c42d772ffa MDL-10767 - set values of checkboxes correctly merged from HEAD 2008-08-27 22:02:53 +00:00
thepurpleblob a05709ad59 MDL-16221
The height and width are now included in the user's image.
2008-08-27 10:17:01 +00:00
jerome 9e57da557f MDL-16043: manage case when administrator set enrol_remotecoursefield or enrol_remoteuserfield in UPPERCASE 2008-08-27 06:26:49 +00:00
piers c12b948bf2 MDL-4746 - Course 01 of the ADL SCORM 1.2 test suite fails on point 4. gramatical error - thanks Dan. Backport 1.9. 2008-08-27 04:06:31 +00:00
peterbulmer 7fec1d20eb MDL-15942 - separate data escaped for database entry from unescaped data 2008-08-27 03:33:14 +00:00
piers 65edfe910a MDL-4746 - Course 01 of the ADL SCORM 1.2 test suite fails on point 4. Fix cmi.comments, and mastery_score checking. Backport to 1.9. 2008-08-27 02:50:08 +00:00
dongsheng 669ba2b076 "MDL-13413, chat transcripts donot include instructor when using separate groups" 2008-08-27 02:17:37 +00:00
moodlerobot 3e683cfa5f Updated the 19 build version to 20080827 2008-08-27 01:47:10 +00:00
stronk7 a6a1b60ba7 Prevent SQL error when forcing download. MDL-15921 2008-08-26 23:01:12 +00:00
tjhunt 5877f527ac MDL-16201 - The logic in mod/quiz/view.php for when to display a link to the review page was not consistent with the logic in mod/quiz/review.php for when students are allowed to see the review. 2008-08-26 02:32:23 +00:00
moodlerobot 1f9fc718ac Updated the 19 build version to 20080826 2008-08-26 01:52:57 +00:00
iarenaza b29004e366 MDL-16061 Revert incorrect fix for "Remove 'username' from the $moodleattributes array".
Merged from MOODLE_18_STABLE.

The fix is wrong, as it breaks auth_db_sync_users.php and
auth_ldap_sync_users.php at least. No new users are added to Moodle, as the
username is missing from the new user info record.

The fix needs to go into update_user_record() in lib/moodlelib.php to make it
skip the 'username' key, as we really need get_userinfo() to return the
username as part of the user info array.
2008-08-25 22:40:29 +00:00
moodlerobot 919c6cc713 Updated the 19 build version to 20080825 2008-08-25 01:41:15 +00:00
moodlerobot 2c5ec7b773 Automatic installer.php lang files by installer_builder (20080825) 2008-08-25 01:34:47 +00:00
piers def6969944 MDL-15881 - Probable bug: Not able to update SCORM. Backport 1.9. 2008-08-24 23:03:40 +00:00
piers 7e51170aec MDL-16111 - SCORM grade not updated in Grader Report. Include grading by learning objects if status is complete. Backport to 1.9. 2008-08-24 21:13:02 +00:00
iarenaza 6046523272 MDL-15799 LDAP - user data mapping doesn't work. Merged from MOODLE_18_STABLE
The Right Way(tm) to write a LDAP filter is enclosing it in parentheses (see
RFC 4515/2254).
2008-08-24 20:42:57 +00:00
stronk7 bb61ce2e91 Prevent some notices at install. MDL-16188 ; merged from 18_STABLE 2008-08-24 16:31:33 +00:00
moodlerobot a78e7e7139 Updated the 19 build version to 20080824 2008-08-24 01:40:56 +00:00
moodlerobot 20e025b85b Automatic installer.php lang files by installer_builder (20080824) 2008-08-24 01:33:01 +00:00
moodlerobot e6fefabec5 Updated the 19 build version to 20080823 2008-08-23 01:40:58 +00:00
moodlerobot 4d02c666f2 Automatic installer.php lang files by installer_builder (20080823) 2008-08-23 01:34:27 +00:00
piers 5a3e0c81e7 MDL-16111 - SCORM grade not updated in Grader Report. Make sure that lastattempt does not exceed maxattempts. Backport 1.9. 2008-08-22 03:21:52 +00:00
moodlerobot db62c7ecc6 Updated the 19 build version to 20080822 2008-08-22 01:46:37 +00:00
moodlerobot a81c1d5c0b Automatic installer.php lang files by installer_builder (20080822) 2008-08-22 01:39:35 +00:00
piers cf42577a41 MDL-13431 - SCORM results not transferring to Gradebook. SCORM API debugging tool - add reference to SCORM, and SCO identifier. backport 1.9. 2008-08-22 01:38:37 +00:00
skodak e45cc3e023 MDL-15716 Tightened dataroot security checks and and 'loud' administrator warning; backported from HEAD 2008-08-21 15:31:09 +00:00
mudrd8mz 0738e88d48 MDL-14326 Remove all course_modules that remained empty (i.e. with instance==0) after the particular restore process. 2008-08-21 11:26:32 +00:00
piers cd74712f30 MDL-13431 - SCORM results not transferring to Gradebook. SCORM API debugging tool. Backport to 1.9. remove add_to_log. 2008-08-21 08:30:58 +00:00
piers c11ccc62f3 MDL-16111 - SCORM grade not updated in Grader Report. Thanks John Macklin. Backport 1.9. 2008-08-21 03:16:11 +00:00
danmarsden 20a2a2c49d MDL-14620 - fix link to repository and tidy up using $CFG vars merged from HEAD 2008-08-21 01:54:10 +00:00
moodlerobot d730018ff2 Updated the 19 build version to 20080821 2008-08-21 01:47:33 +00:00
moodlerobot 7c5bfc373a Automatic installer.php lang files by installer_builder (20080821) 2008-08-21 01:39:55 +00:00
piers 2753d9448f MDL-13431 - SCORM results not transferring to Gradebook. SCORM API debugging tool. Backport to 1.9. 2008-08-21 00:39:57 +00:00
piers 881e78daa2 file debug.js.php was added on branch MOODLE_19_STABLE on 2008-08-21 00:39:57 +0000 2008-08-21 00:36:12 +00:00
piers 604c88975c MDL-13431 - SCORM results not transferring to Gradebook. Add logging mechanism so that launched URI can be traced. Backport 1.9. 2008-08-20 23:31:37 +00:00
piers ff915d6056 MDL-15859 [PATCH] Fixes for tests of '' on Oracle. Backport 1.9. 2008-08-20 23:06:37 +00:00
piers 88ba1fda5e MDL-13431 - SCORM results not transferring to Gradebook. Add logging mechanism so that SCORM API interaction with Moodle can be traced. Backport 1.9. 2008-08-20 22:32:19 +00:00
piers 27fb07f87b MDL-13431 - SCORM results not transferring to Gradebook. Use the correct method for getting the course object. Backport 1.9. 2008-08-20 22:29:33 +00:00
danmarsden 0e70c9ea14 MDL-14620 - need to check vars are set before using. - adding check so I can include this form type in SCORM - merged from HEAD 2008-08-20 22:00:10 +00:00
whchuang d76df8e848 Minor formatting changes to make the content more consistent. See MDL-15075 2008-08-20 17:40:47 +00:00
whchuang 8820c44464 Fixed MDL-15075. Some mistakes in the help file for category aggregation. 2008-08-20 17:21:46 +00:00
tjhunt 9aa1607364 MDL-15654 Incorrect escaping of HTML in the history table on the review quiz attempt page. 2008-08-20 09:46:03 +00:00
tjhunt 3ac08fe986 MDL-15605 Convert question bank consistency checks described in MoodleDocs (http://docs.moodle.org/en/Development:Question_bank_consistency_check) to health centre checks. 2008-08-20 08:52:54 +00:00
tjhunt 0af8b572e4 MDL-16141 Need an sql_position function to do POSITION(needle IN haystack) on crappy databases. Backported from HEAD. 2008-08-20 08:51:11 +00:00
peterbulmer 4b39d5ca89 MNET-12558 Additional commenting and variable name change 2008-08-20 06:00:08 +00:00
danmarsden bc7cf284a9 MDL-16113 add warning to Scorm modedit page if slasharg is disabled. merged from HEAD 2008-08-20 02:25:23 +00:00
moodlerobot 3d1dbf4edb Updated the 19 build version to 20080820 2008-08-20 01:50:54 +00:00
skodak 2d843ded37 MDL-15819 bumping version, needed for updated risks of quiz caps 2008-08-19 21:39:05 +00:00
skodak 648c9db090 MDL-15819 bumping main version, needed for updated risks of question caps 2008-08-19 21:37:44 +00:00
tjhunt 40da47484d SCORM module XHTML strict fixes. 2008-08-19 06:59:23 +00:00
tjhunt faa479918c Fix up XHTML strick breakage introduce during the fix for MDL-13478. 2008-08-19 05:17:14 +00:00
tjhunt ab1efe3442 MDL-14643 - Revert the hugely umpopular change from MDL-10841. 2008-08-19 02:34:16 +00:00
moodlerobot 20139dedfd Updated the 19 build version to 20080819 2008-08-19 01:46:02 +00:00
moodlerobot 9e1feba326 Automatic installer.php lang files by installer_builder (20080819) 2008-08-19 01:38:28 +00:00
stronk7 9f00b6e8b4 Avoid "some" ra's duplicates. MDL-14817 2008-08-18 22:37:18 +00:00
skodak 4be2bb4847 MDL-16060 use old style slasharguments file.php link when launching scorm packages; merged from HEAD 2008-08-18 20:57:37 +00:00
skodak e26f73219a MDL-16108 force autocomplete off for unmaskable password fields 2008-08-18 20:38:26 +00:00
skodak 12ffbe6f65 MDL-16108 force autocomplete off for unmaskable password fields; merged from MOODLE_18_STABLE 2008-08-18 20:20:42 +00:00
stronk7 38a1e2bc67 Making some accesslib queries cross-db. Avoid using DISTINCT clauses on TEXT fields. MDL-16034 2008-08-18 18:35:43 +00:00
jerome 3d3bd448b1 MDL-MDL-12333: display custom field in categories box on the signup page 2008-08-18 08:23:03 +00:00
moodlerobot cd80e2619c Updated the 19 build version to 20080818 2008-08-18 01:41:05 +00:00
moodlerobot a136accca4 Automatic installer.php lang files by installer_builder (20080818) 2008-08-18 01:33:40 +00:00
skodak 6faef753b8 MDL-16003 changing to new adminroot style - thanks Tatsuya Shirai 2008-08-17 22:52:52 +00:00
skodak c1726a573b MDL-16024 adding spam risk to database approve capability 2008-08-17 22:47:47 +00:00
skodak 71f94d26fe MDL-15586 fixed undefined $course; backported from HEAD 2008-08-17 22:41:19 +00:00
skodak e80eec503e MDL-16051 fixed confirmed string in user filters 2008-08-17 22:33:04 +00:00
skodak d38c50ff6f MDL-16066 fixed apache log typo - thanks Neil Streeter 2008-08-17 22:22:51 +00:00
skodak 9aff1a51d0 MDL-16085 fixed typo -thanks John Ryan; merged from HEAD 2008-08-17 20:18:52 +00:00
moodlerobot 0ff122d12d Updated the 19 build version to 20080817 2008-08-17 01:37:11 +00:00
moodlerobot 5237fd4012 Updated the 19 build version to 20080816 2008-08-16 01:46:51 +00:00
pichetp 605d0b0c49 better filtering of null answers MDL-8475 merged from HEAD 2008-08-15 11:22:35 +00:00
iarenaza 1e6da87629 MDL-16061 Remove 'username' from the $moodleattributes array.
It doesn't make sense at all (username is not part of the externally mapped
fields) and produces a notice that breaks HTTP headers with debugging enabled.
2008-08-15 11:21:48 +00:00
tjhunt 865d83b3ca DEVELOPER_DEBUG messages to help you diagnose broken prev/next links in XMDBD files. 2008-08-15 11:09:51 +00:00
jamiesensei 64b0c54d0f MDL-16041 "Grade of new tests are zero!" no longer displaying graphs of grades for ungraded quizzes. 2008-08-15 10:28:16 +00:00
tjhunt 37cd57495b MDL-16056 - Aiken format should treat input as plain text, and so escape HTML special characters. 2008-08-15 03:13:39 +00:00
danmarsden 4700ef26f3 MDL-16052 deleting responses using view.php not working. merged from HEAD 2008-08-15 01:49:26 +00:00
moodlerobot 40a134e075 Updated the 19 build version to 20080815 2008-08-15 01:43:58 +00:00
piers c073b133a4 MDL-13904 Scorm structure isn't respected after an update of the package. Incorrectly named table in a delete. backport 1.9. 2008-08-15 01:09:26 +00:00
piers 45477f2cc0 MDL-16055 PHP warning when creating new scorm activity. backport 1.9. 2008-08-15 00:18:11 +00:00
peterbulmer 9bf3e1887d MDL-16021 dont force mnethost restriction forloading user data based on id 2008-08-14 23:45:32 +00:00
jerome 2c352e9940 MDL-12224: complete activity report: fix warning display + display the rating 2008-08-14 13:01:16 +00:00
pichetp 95c8fddc7d better validation of null answers MDL-8475 merged from HEAD 2008-08-14 11:39:03 +00:00
jerome 0f4a1b7db8 MDL-16043: ensures cross-db: add lowercase conversion for every database fieldname 2008-08-14 11:26:47 +00:00
jerome 36cf4a27de MDL-15175: ensures cross-db: add a lowercase conversion for the username 2008-08-14 09:44:13 +00:00
tjhunt 1c45f77669 MDL-14979 - Remove the obsolete quizfile.php and associated code. This has not been used since Moodle 1.5. 2008-08-14 03:48:12 +00:00
moodlerobot f02087ef36 Updated the 19 build version to 20080814 2008-08-14 01:48:43 +00:00
peterbulmer 5edabc2b82 MDL-15933 Require jump destination MNET peer to be non-deleted.
Also require landing source MNET peer to be non-deleted.
2008-08-13 23:31:01 +00:00
piers 4c15e91188 MDL-13904 Scorm structure isn't respected after an update of the package. This is a large change to the handling of SCORM package update - all SCOes are issued with a new id, and all references to the old ones are deleted. The scorm_scoes_track data is preserved by being reattached to the new SCO ids (unless they have been deleted). backport to 1.9. 2008-08-13 22:47:33 +00:00
piers 8b07448215 MDL-11188 SCORM module does not respect "prerequisites" like it used to. MDL-12342 & signs in CDATA sections are imported as &amp;. This is a rewrite of the prerequisite handling. backport to 1.9. 2008-08-13 22:40:24 +00:00
piers b79105c4a2 MDL-14492 Provide feedback to user about redirect delay in loadsco.php. Add lang text for please wait. backport 1.9. 2008-08-13 22:28:03 +00:00
tjhunt 20d50e975c MDL-15819 - Review the RISK_XXX flags on all quiz and question capabilites. 2008-08-13 07:05:58 +00:00
jerome 7a12ac92c0 MDL-15175: fix sync with external Oracle database 2008-08-13 06:31:45 +00:00
tjhunt 9ef749413f Remove broken unit test. 2008-08-13 06:21:49 +00:00
tjhunt 5929f17c0e Correct a URL in a comment. 2008-08-13 05:27:51 +00:00
tjhunt 930fbd3b5d MDL-12797 - Site-wide quiz default time-limit was not working. The default was being used, but the enabled state was not being initialised correctly for the form field. 2008-08-13 03:17:59 +00:00
moodlerobot e697e660da Updated the 19 build version to 20080813 2008-08-13 01:46:09 +00:00
skodak 8f184c6d5b MDL-15994 fix typo in choice/lib.php backported from HEAD 2008-08-12 21:27:01 +00:00
tjhunt 9e724aa8ed MDL-15973 - Errors from manual grading report on Postgres. Actually, this was already fixed in HEAD, so I am just backporting an already-working fix. 2008-08-12 07:27:50 +00:00
tjhunt b0d5723c11 Found while testing MDL-12392 - it should not be considered an error if a quiz does not contain any essay questions. Packporting this return true from HEAD. 2008-08-12 06:07:13 +00:00
tjhunt 1f64775a99 XHTML strrrict! 2008-08-12 04:11:56 +00:00
moodlerobot f512cbdb9c Updated the 19 build version to 20080812 2008-08-12 01:50:12 +00:00
moodlerobot 698c1c93f1 Automatic installer.php lang files by installer_builder (20080812) 2008-08-12 01:43:42 +00:00
danmarsden e5cba21fb3 MDL-14913 check vars b4 using merged from HEAD 2008-08-11 05:10:44 +00:00
danmarsden 6a85d31fab MDL-15328 - hide grade category drop down. - merged from HEAD 2008-08-11 04:49:57 +00:00
danmarsden fec92d9c3e MDL-14655 fix display of Choice when "show results after closed" is selected. merged from HEAD 2008-08-11 04:22:58 +00:00
moodlerobot 3ca11c32d2 Updated the 19 build version to 20080811 2008-08-11 01:19:18 +00:00
moodlerobot 3e81e45b43 Automatic installer.php lang files by installer_builder (20080811) 2008-08-11 01:13:04 +00:00
piers c0b72b725c MDL-14492 Provide feedback to user about redirect delay in loadsco.php. backport to 1.9. 2008-08-10 22:33:49 +00:00
moodlerobot eb8fa0ce5c Updated the 19 build version to 20080810 2008-08-10 01:37:26 +00:00
moodlerobot 0e3da7abb0 Updated the 19 build version to 20080809 2008-08-09 01:40:02 +00:00
moodlerobot b7a957168c Automatic installer.php lang files by installer_builder (20080809) 2008-08-09 01:33:48 +00:00
moodlerobot f306e3fa67 Updated the 19 build version to 20080808 2008-08-08 01:45:30 +00:00
moodlerobot 3ea5e9eb8b Automatic installer.php lang files by installer_builder (20080808) 2008-08-08 01:38:34 +00:00
stronk7 8c93a426ef Complete inline help about smtp hosts. Credit goes to Anthony. MDL-15923 2008-08-07 22:55:12 +00:00
stronk7 ebb5b6b760 Allow font-family "protocol" to avoid kses cleaning it. MDL-15963 2008-08-07 22:36:33 +00:00
danmarsden 42f42ad0bb MDL-15967 - must use full php tags, not shortags - thanks Urs merged from head 2008-08-07 20:47:20 +00:00
stronk7 fc9d285a62 Fixed copy&paste error. Credit goes to Sergio Rabellino.
http://moodle.org/mod/forum/discuss.php?d=102933
2008-08-07 17:09:27 +00:00
dongsheng f20c125374 MDL-11789, apply $CFG->filelifetime in send_file function. 2008-08-07 06:09:18 +00:00
moodlerobot 90ffc0342c Updated the 19 build version to 20080807 2008-08-07 01:49:06 +00:00
moodlerobot 61bad674a3 Automatic installer.php lang files by installer_builder (20080807) 2008-08-07 01:42:01 +00:00
piers d86a0382de MDL-10425 and MDL-12872 Firefox bugs String() handling on replace. enhanced rege xfor CMI data types. MDL-8193 Incorrect handling of quotes in SetValue processing - recoded so that it escapes all values passed from tracks. backport to 1.9. 2008-08-06 23:52:27 +00:00
stronk7 0616b1fba2 Fixing typo causing restore not to work within 19_STABLE branch (BC). MDL-15282 2008-08-06 16:41:48 +00:00
skodak 3b20cc2f8f MDL-15941 block view permissions override regression fixed, merged from HEAD 2008-08-06 05:08:35 +00:00
piers ec88010b2e MDL-15950 MDL-15640 MDL-15943 - SCORM player.php not inserting footer, Showing SCORM participation report. (thanks Urs Hunkler and Mitsuhiro Yoshida). Warning are displayed in a SCORM activity (thanks Dan). Backport to 1.9. 2008-08-06 05:06:00 +00:00
scyrma d024e361f9 MDL-15345: Fix in sql query, for postgres. 2008-08-06 02:35:19 +00:00
moodlerobot 3dc9ef3784 Updated the 19 build version to 20080806 2008-08-06 01:48:44 +00:00
moodlerobot 86031c9964 Automatic installer.php lang files by installer_builder (20080806) 2008-08-06 01:40:23 +00:00
tjhunt 0c5c51bdc5 MDL-15583 - Broken link in Item analysis report. Fix thanks to John T. Macklin in MDL-15940. 2008-08-05 17:45:50 +00:00
thepurpleblob d39d9a4df2 MDL-15949
enrol_logtolocation not defined in config_form()
2008-08-05 14:16:08 +00:00
moodlerobot 7e3bebda6d Updated the 19 build version to 20080805 2008-08-05 01:42:39 +00:00
moodlerobot 056f34bc58 Automatic installer.php lang files by installer_builder (20080805) 2008-08-05 01:35:28 +00:00
stronk7 f98a72984d Make custom checks BC, so any test about future releases doesn't fail
with error it the file and/or function is missing (highly possible). MDL-15939 ; backported from HEAD
2008-08-05 00:23:09 +00:00
stronk7 b0138cb939 Deleting one env test not needed for 2.0 (backporting from HEAD) 2008-08-04 23:01:20 +00:00
stronk7 1b9cd29cbe Backporting latest modifications of environment.xml in HEAD to 19_STABLE. MDL-15349 and sqllite 2.0 2008-08-04 22:42:52 +00:00
stronk7 fe6247bb36 Added missing curlrequired string. MDL-15349 2008-08-04 21:16:27 +00:00
skodak cc22d069c7 MDL-15928 switched to zip PHP extensions in HEAD - adding to env test 2008-08-04 16:46:03 +00:00
thepurpleblob 3da5676e18 MDL-15885
QTI fixes from Niall Barr
2008-08-04 10:07:54 +00:00
moodler 4cc1194951 Bumped to an integer. 2008-08-04 08:57:14 +00:00
moodler 8bea916e87 MDL-15926 JUst show one scale when required 2008-08-04 07:00:08 +00:00
moodlerobot d33a0a8cdd Updated the 19 build version to 20080804 2008-08-04 01:45:04 +00:00
peterbulmer 73c73b1119 MDL-12558 modify emails as they are being sent
replace urls in-place to direct users to their idp first
(1.9 edition - Moodle-Moodle sso only)
2008-08-03 23:28:59 +00:00
piers e0aa018ccf MDL-14457 SCORM module creating extra windows when opening module in a new window. Backport to 1.9 (thanks Jo Matthews). 2008-08-03 22:17:16 +00:00
stronk7 c2c2f12d41 Allow multiple SMTP hosts or host:port to be defined in $CFG->smtphosts. MDL-15923 2008-08-03 21:13:20 +00:00
moodlerobot 602bf00fd1 Updated the 19 build version to 20080803 2008-08-03 01:37:23 +00:00
gbateson cba660bfe6 MDL-15811 fix quotes: width=240" -> width="240" 2008-08-02 21:30:37 +00:00
moodlerobot 766624537d Updated the 19 build version to 20080802 2008-08-02 01:40:50 +00:00
moodlerobot e37d20268d Automatic installer.php lang files by installer_builder (20080802) 2008-08-02 01:34:04 +00:00
skodak 95e1b81938 MDL-15410 Require PHP 5.2.4 instead of 5.2.0 in HEAD because PHP 5.2.0 has many known problems :-( 2008-08-01 10:08:58 +00:00
piers 5b3e0dd963 MDL-14902 Missing column 'whatgrade' in prefix_scorm table. Is a DB patch (thanks Hans de Zwart). backport 1.9. 2008-08-01 04:30:45 +00:00
moodlerobot 0301220044 Updated the 19 build version to 20080801 2008-08-01 01:42:52 +00:00
piers 2e11eb2fed MDL-15899 JavaScript error In IE7 when opening SCORM content in a new window. Fix spaces in popup name for fussy IE. backported to 1.9. 2008-07-31 22:31:04 +00:00
thepurpleblob 5996538474 MDL-15148
In fact, getting IP lookup too from MDL-15008 by Lue Hudson.
2008-07-31 15:00:35 +00:00
thepurpleblob fe4cb39742 MDL-15148
When replacing key pair, lookup wwwroot again (it might have been changed)
2008-07-31 14:53:27 +00:00
mchurch fe67442c84 MDL-15896 - Clean 'page' and 'q' parameters to only allow normal page name characters. 2008-07-31 14:02:34 +00:00
moodler 4fb8cf0b0e MDL-15892 Added some phpdocs to explain the module parameter better 2008-07-31 07:35:59 +00:00
moodler 3fac08373c MDL-15892 Improved get_string - it can now handle paths as the module like 'mod/forum' or 'grade/import/txt' and will look in the right file automatically (eg forum.php and gradeimport_txt.php) 2008-07-31 07:23:35 +00:00
moodlerobot 305d28fc37 Updated the 19 build version to 20080731 2008-07-31 01:51:50 +00:00
skodak 484b866963 MDL-15890 removing public function - breaks PHP4, sorry! 2008-07-30 19:26:17 +00:00
moodlerobot 247b827045 Updated the 19 build version to 20080730 2008-07-30 01:40:59 +00:00
wildgirl c9332cc8ee MDL-11844 lang string small rewording 2008-07-29 14:23:58 +00:00
sam_marshall 5f6512446e MDL-15875: Missing break; in switch 2008-07-29 13:33:05 +00:00
wildgirl db1d22711d MDL-15846 lang string small rewording 2008-07-29 12:43:46 +00:00
moodlerobot 40513431f1 Updated the 19 build version to 20080729 2008-07-29 01:42:48 +00:00
piers 251b51c948 MDL-9378 New visualisation for SCORM - modify CSS class names to make them more specific. sorry to commit so close to review day, just fixing a regression - 1.9. 2008-07-29 01:25:20 +00:00
piers 8334db6c52 MDL-11892 JavaScript error on SCORM tree list - bapckport to 1.9 for AICC. 2008-07-28 22:42:57 +00:00
fmarier 50c995e402 mod/scorm/help: fix typo (extra space before period) 2008-07-28 06:31:46 +00:00
moodler 23ab305b99 MDL-15841 Removed the default safe overrides for new installs (MDL-8521) 2008-07-28 03:11:35 +00:00
moodlerobot d7cff10ece Updated the 19 build version to 20080728 2008-07-28 01:41:39 +00:00
moodlerobot ac273a80fb Automatic installer.php lang files by installer_builder (20080728) 2008-07-28 01:35:39 +00:00
piers 58afb04bc7 MDL-9378 New visualisation for SCORM - back ported to 1.9. 2008-07-28 00:44:49 +00:00
piers 17b03a9310 MDL-11137 Unable to locate API error - add check for empty array from DB interface (ksort complains) - backport to 1.9. 2008-07-27 21:23:26 +00:00
danmarsden be8dce4263 MDL-15747 typo merged from HEAD 2008-07-27 20:22:07 +00:00
moodlerobot d4574cfd9a Updated the 19 build version to 20080727 2008-07-27 01:37:49 +00:00
stronk7 fb7eddbe0e Fix A tag regex searching. MDL-15842 2008-07-26 23:03:24 +00:00
stronk7 710c437386 Fix A tag regex searching. MDL-15842 2008-07-26 22:11:33 +00:00
skodak f6e0e6860f MDL-15846 add option to prevent course welcome emails + support for searching in enrolment page; backported from HEAD 2008-07-26 16:51:11 +00:00
skodak 054fabfbb8 MDL-11844 new option for conditional stripping of tags from activity names; backported from HEAD 2008-07-26 15:17:03 +00:00
skodak a6017978a2 MDL-13353 Course page does not validate when a lable containing <p> tags is hidden 2008-07-26 11:35:23 +00:00
skodak f0217b9883 MDL-5018 added thead and tfoot to allowed tags 2008-07-26 11:27:48 +00:00
moodlerobot 15fe5d855b Updated the 19 build version to 20080726 2008-07-26 01:41:15 +00:00
skodak 25db6e1545 MDL-15823 format_string() improvements 2008-07-25 22:43:08 +00:00
nicolasconnault c43b787bd0 MDL-14383 Updated to YUI 2.5.2 2008-07-25 11:13:15 +00:00
nicolasconnault 564701314a file layout-core.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:14:09 +0000 2008-07-25 10:50:25 +00:00
nicolasconnault 0c590542b8 file uploader.swf was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:45 +0000 2008-07-25 10:50:24 +00:00
nicolasconnault c225616d65 file charts.swf was added on branch MOODLE_19_STABLE on 2008-07-25 11:14:07 +0000 2008-07-25 10:50:24 +00:00
nicolasconnault 17a80d2794 file profilerviewer-beta.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:35 +0000 2008-07-25 10:50:22 +00:00
nicolasconnault 143e492402 file profilerviewer-beta-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:36 +0000 2008-07-25 10:50:22 +00:00
nicolasconnault 18a086751a file profilerviewer-beta-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:36 +0000 2008-07-25 10:50:22 +00:00
nicolasconnault e27bbbc985 file imagecropper-core.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:14:08 +0000 2008-07-25 10:50:22 +00:00
nicolasconnault e8ebd7b421 file imagecropper-beta-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:14:01 +0000 2008-07-25 10:50:21 +00:00
nicolasconnault 129915ba8f file README was added on branch MOODLE_19_STABLE on 2008-07-25 11:14:01 +0000 2008-07-25 10:50:21 +00:00
nicolasconnault da3972a185 file README was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:35 +0000 2008-07-25 10:50:21 +00:00
nicolasconnault e1b5751918 file simpleeditor-core.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:14:06 +0000 2008-07-25 10:50:20 +00:00
nicolasconnault 40b4e7b4bc file selector-beta.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:26 +0000 2008-07-25 10:50:20 +00:00
nicolasconnault 78b6fd22c2 file selector-beta-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:26 +0000 2008-07-25 10:50:20 +00:00
nicolasconnault fc17c54077 file selector-beta-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:26 +0000 2008-07-25 10:50:20 +00:00
nicolasconnault de077f1dd4 file resize-beta-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:45 +0000 2008-07-25 10:50:20 +00:00
nicolasconnault 3425aa1e2c file imagecropper-beta.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:14:01 +0000 2008-07-25 10:50:20 +00:00
nicolasconnault 7d006e9a5e file imagecropper-beta-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:14:01 +0000 2008-07-25 10:50:20 +00:00
nicolasconnault 8621ab7126 file README was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:25 +0000 2008-07-25 10:50:20 +00:00
nicolasconnault da80ed628e file resize-beta.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:44 +0000 2008-07-25 10:50:19 +00:00
nicolasconnault 72771dc3cf file resize-beta-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:44 +0000 2008-07-25 10:50:19 +00:00
nicolasconnault cc3509a6ec file README was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:44 +0000 2008-07-25 10:50:19 +00:00
nicolasconnault 757ec59ed3 file colorpicker.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:32 +0000 2008-07-25 10:50:17 +00:00
nicolasconnault 03a3755549 file colorpicker-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:32 +0000 2008-07-25 10:50:17 +00:00
nicolasconnault 3e9d9efdad file colorpicker-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:31 +0000 2008-07-25 10:50:17 +00:00
nicolasconnault e9f830c53d file charts-experimental.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:49 +0000 2008-07-25 10:50:17 +00:00
nicolasconnault 5f88d883e9 file charts-experimental-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:49 +0000 2008-07-25 10:50:17 +00:00
nicolasconnault 0e89101111 file charts-experimental-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:49 +0000 2008-07-25 10:50:17 +00:00
nicolasconnault 07bde17a1c file README was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:49 +0000 2008-07-25 10:50:17 +00:00
nicolasconnault 3caa54fc84 file reset-fonts.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:53 +0000 2008-07-25 10:50:15 +00:00
nicolasconnault e8757d27e7 file calgrad.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:27 +0000 2008-07-25 10:50:15 +00:00
nicolasconnault 44ede51ffc file README was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:53 +0000 2008-07-25 10:50:15 +00:00
nicolasconnault 6d7cfc2957 file history.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:39 +0000 2008-07-25 10:50:14 +00:00
nicolasconnault bdd4d7abd6 file history-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:39 +0000 2008-07-25 10:50:14 +00:00
nicolasconnault 9dd0c1416e file history-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:39 +0000 2008-07-25 10:50:14 +00:00
nicolasconnault 526db10dcf file uploader-experimental.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:42 +0000 2008-07-25 10:50:13 +00:00
nicolasconnault 8b83d56614 file uploader-experimental-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:43 +0000 2008-07-25 10:50:13 +00:00
nicolasconnault e81145d832 file uploader-experimental-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:43 +0000 2008-07-25 10:50:13 +00:00
nicolasconnault d1362aa48f file imagecropper.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:57 +0000 2008-07-25 10:50:13 +00:00
nicolasconnault 4be67e14c6 file README was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:43 +0000 2008-07-25 10:50:13 +00:00
nicolasconnault 0530079e3a file imagecropper-skin.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:57 +0000 2008-07-25 10:50:12 +00:00
nicolasconnault 1efa5d19b2 file simpleeditor-beta.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:18 +0000 2008-07-25 10:50:11 +00:00
nicolasconnault acbddb8c0e file simpleeditor-beta-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:17 +0000 2008-07-25 10:50:11 +00:00
nicolasconnault ee92e22009 file simpleeditor-beta-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:17 +0000 2008-07-25 10:50:11 +00:00
nicolasconnault 5d82602a1a file cookie-beta.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:19 +0000 2008-07-25 10:50:08 +00:00
nicolasconnault 17a4761c51 file cookie-beta-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:19 +0000 2008-07-25 10:50:08 +00:00
nicolasconnault e2c4404f70 file cookie-beta-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:19 +0000 2008-07-25 10:50:08 +00:00
nicolasconnault 1de76b3cdf file README was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:19 +0000 2008-07-25 10:50:08 +00:00
nicolasconnault 3a855b0805 file imageloader.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:34 +0000 2008-07-25 10:50:07 +00:00
nicolasconnault a8bb07dc1a file imageloader-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:34 +0000 2008-07-25 10:50:07 +00:00
nicolasconnault 777f89e896 file imageloader-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:34 +0000 2008-07-25 10:50:07 +00:00
nicolasconnault dec437a979 file profiler-beta.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:40 +0000 2008-07-25 10:50:06 +00:00
nicolasconnault f89e53a5dd file profiler-beta-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:40 +0000 2008-07-25 10:50:06 +00:00
nicolasconnault 468c0855cc file profiler-beta-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:40 +0000 2008-07-25 10:50:06 +00:00
nicolasconnault 19b630187c file README was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:40 +0000 2008-07-25 10:50:06 +00:00
nicolasconnault c0d325e7a1 file transparent.gif was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:25 +0000 2008-07-25 10:50:03 +00:00
nicolasconnault af4676fb38 file yuiloader-dom-event.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:14:04 +0000 2008-07-25 10:50:00 +00:00
nicolasconnault cfd196d5ae file README was added on branch MOODLE_19_STABLE on 2008-07-25 11:14:03 +0000 2008-07-25 10:50:00 +00:00
nicolasconnault 70b194e93c file yuitest_core.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:47 +0000 2008-07-25 10:49:59 +00:00
nicolasconnault 7786b00b22 file yuitest-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:47 +0000 2008-07-25 10:49:59 +00:00
nicolasconnault c88e78bb40 file get.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:55 +0000 2008-07-25 10:49:59 +00:00
nicolasconnault 0d130bb286 file get-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:54 +0000 2008-07-25 10:49:59 +00:00
nicolasconnault 6bfdc81f0e file get-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:55 +0000 2008-07-25 10:49:59 +00:00
nicolasconnault b63e566b45 file README was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:55 +0000 2008-07-25 10:49:59 +00:00
nicolasconnault 82dccafe5a file yuitest_core-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:46 +0000 2008-07-25 10:49:58 +00:00
nicolasconnault 26c3caf6a3 file yuitest_core-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:47 +0000 2008-07-25 10:49:58 +00:00
nicolasconnault 4d689d16bb file yuitest.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:47 +0000 2008-07-25 10:49:58 +00:00
nicolasconnault f658f56f47 file yuitest-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:48 +0000 2008-07-25 10:49:58 +00:00
nicolasconnault 31fdf7577a file treeview-menu.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:38 +0000 2008-07-25 10:49:58 +00:00
nicolasconnault c85e20f0ba file sprite-menu.gif was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:38 +0000 2008-07-25 10:49:58 +00:00
nicolasconnault f312612a38 file menuitem_submenuindicator_disabled.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:41 +0000 2008-07-25 10:49:57 +00:00
nicolasconnault b53abb6ecc file menuitem_submenuindicator.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:42 +0000 2008-07-25 10:49:57 +00:00
nicolasconnault 122d408f7b file menuitem_checkbox_disabled.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:42 +0000 2008-07-25 10:49:57 +00:00
nicolasconnault 002d676529 file menuitem_checkbox.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:42 +0000 2008-07-25 10:49:57 +00:00
nicolasconnault 55bc41f9a2 file menubaritem_submenuindicator_disabled.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:41 +0000 2008-07-25 10:49:57 +00:00
nicolasconnault bd697aba1d file menubaritem_submenuindicator.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:42 +0000 2008-07-25 10:49:57 +00:00
nicolasconnault 5a42d736b7 file layout_sprite.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:14:05 +0000 2008-07-25 10:49:57 +00:00
nicolasconnault 8509497ed8 file layout.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:14:05 +0000 2008-07-25 10:49:57 +00:00
nicolasconnault 9594faa9c6 file layout-skin.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:14:05 +0000 2008-07-25 10:49:57 +00:00
nicolasconnault a00891dd9b file button.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:53 +0000 2008-07-25 10:49:56 +00:00
nicolasconnault 772b2bd4b1 file button-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:53 +0000 2008-07-25 10:49:56 +00:00
nicolasconnault dbd92929dd file button-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:54 +0000 2008-07-25 10:49:56 +00:00
nicolasconnault 659bbcfec4 file layout-beta.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:52 +0000 2008-07-25 10:49:55 +00:00
nicolasconnault 0720542e52 file layout-beta-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:52 +0000 2008-07-25 10:49:55 +00:00
nicolasconnault 69744ce1e3 file layout-beta-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:51 +0000 2008-07-25 10:49:55 +00:00
nicolasconnault a8a400a4e3 file README was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:52 +0000 2008-07-25 10:49:55 +00:00
nicolasconnault a802fb0865 file wait.gif was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:57 +0000 2008-07-25 10:49:54 +00:00
nicolasconnault a51609599b file resize-core.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:52 +0000 2008-07-25 10:49:54 +00:00
nicolasconnault d642645b37 file profilerviewer.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:58 +0000 2008-07-25 10:49:54 +00:00
nicolasconnault 6e0a143abd file layout_sprite.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:56 +0000 2008-07-25 10:49:54 +00:00
nicolasconnault c2a4193bd8 file header_background.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:58 +0000 2008-07-25 10:49:54 +00:00
nicolasconnault 8cea7b6440 file desc.gif was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:57 +0000 2008-07-25 10:49:54 +00:00
nicolasconnault f098c2e1cd file asc.gif was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:58 +0000 2008-07-25 10:49:54 +00:00
nicolasconnault 8b82876aa7 file resize.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:56 +0000 2008-07-25 10:49:53 +00:00
nicolasconnault fa13546769 file resize-skin.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:56 +0000 2008-07-25 10:49:53 +00:00
nicolasconnault cb0d52c9c9 file menuitem_submenuindicator_disabled.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:30 +0000 2008-07-25 10:49:49 +00:00
nicolasconnault 7230a16b43 file menuitem_submenuindicator.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:31 +0000 2008-07-25 10:49:49 +00:00
nicolasconnault 8f56f260fc file menuitem_checkbox_selected.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:29 +0000 2008-07-25 10:49:49 +00:00
nicolasconnault 2f2205fdc6 file menuitem_checkbox.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:30 +0000 2008-07-25 10:49:49 +00:00
nicolasconnault 0b47114700 file menubaritem_submenuindicator_disabled.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:29 +0000 2008-07-25 10:49:49 +00:00
nicolasconnault 69822d5b63 file menubaritem_submenuindicator.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:28 +0000 2008-07-25 10:49:49 +00:00
nicolasconnault 347dae0027 file menu_up_arrow.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:31 +0000 2008-07-25 10:49:49 +00:00
nicolasconnault 1b91f2ab8b file menuitem_submenuindicator_selected.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:31 +0000 2008-07-25 10:49:48 +00:00
nicolasconnault 8e2ea1ba39 file menuitem_checkbox_disabled.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:29 +0000 2008-07-25 10:49:48 +00:00
nicolasconnault a9b8a21de5 file menubaritem_submenuindicator_selected.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:31 +0000 2008-07-25 10:49:48 +00:00
nicolasconnault ad6e03efb0 file menu_up_arrow_disabled.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:30 +0000 2008-07-25 10:49:48 +00:00
nicolasconnault 2b39f6e384 file menu_down_arrow_disabled.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:28 +0000 2008-07-25 10:49:48 +00:00
nicolasconnault 4ca80babe5 file menu_down_arrow.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:29 +0000 2008-07-25 10:49:48 +00:00
nicolasconnault 65ac424b84 file json.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:18 +0000 2008-07-25 10:49:48 +00:00
nicolasconnault 1cb6492da5 file json-min.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:18 +0000 2008-07-25 10:49:48 +00:00
nicolasconnault 98273acc63 file json-debug.js was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:19 +0000 2008-07-25 10:49:48 +00:00
nicolasconnault 8e4865cf94 file menuitem_submenuindicator_disabled.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:20 +0000 2008-07-25 10:49:47 +00:00
nicolasconnault 1a0c5f3b0d file menuitem_checkbox_disabled.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:23 +0000 2008-07-25 10:49:47 +00:00
nicolasconnault 2065c05b07 file README was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:18 +0000 2008-07-25 10:49:47 +00:00
nicolasconnault 371944075f file transparent.gif was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:20 +0000 2008-07-25 10:49:46 +00:00
nicolasconnault e97f0e5420 file profilerviewer.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:21 +0000 2008-07-25 10:49:46 +00:00
nicolasconnault 208b652cd3 file menubaritem_submenuindicator_disabled.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:20 +0000 2008-07-25 10:49:46 +00:00
nicolasconnault 4a8d746b4f file imagecropper.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:22 +0000 2008-07-25 10:49:46 +00:00
nicolasconnault 4ad6881a2d file simpleeditor.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:21 +0000 2008-07-25 10:49:45 +00:00
nicolasconnault 5d6a449f7e file resize.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:21 +0000 2008-07-25 10:49:45 +00:00
nicolasconnault 2d7434c3bc file menuitem_submenuindicator.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:22 +0000 2008-07-25 10:49:45 +00:00
nicolasconnault 054de985c5 file wait.gif was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:22 +0000 2008-07-25 10:49:44 +00:00
nicolasconnault 48002b23c2 file menuitem_checkbox.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:22 +0000 2008-07-25 10:49:44 +00:00
nicolasconnault 7a0dc51192 file menubaritem_submenuindicator.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:23 +0000 2008-07-25 10:49:44 +00:00
nicolasconnault 31741dbe6d file layout_sprite.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:24 +0000 2008-07-25 10:49:44 +00:00
nicolasconnault 604cef521b file layout.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:23 +0000 2008-07-25 10:49:44 +00:00
nicolasconnault 8026517377 file header_background.png was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:23 +0000 2008-07-25 10:49:44 +00:00
nicolasconnault 9b1905cc2b file desc.gif was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:22 +0000 2008-07-25 10:49:44 +00:00
nicolasconnault 9fd99f387a file asc.gif was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:20 +0000 2008-07-25 10:49:44 +00:00
nicolasconnault 5adafb4e17 file simpleeditor.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:35 +0000 2008-07-25 10:49:43 +00:00
nicolasconnault 706bffc940 file simpleeditor-skin.css was added on branch MOODLE_19_STABLE on 2008-07-25 11:13:35 +0000 2008-07-25 10:49:43 +00:00
piers 8fdfb20a90 MDL-11137 Unable to locate API error - remove comment code with bad characters. backport to 1.9. 2008-07-25 02:32:38 +00:00
piers bf3fc937f6 MDL-11137 Unable to locate API error - force a sort order on the cmi elements, and ensure correct type comparison when determining whether we have seen this objective id before. affects aicc, 1.2 and 1.3. propagate to 1.9. 2008-07-25 01:48:36 +00:00
moodlerobot 9408154669 Updated the 19 build version to 20080725 2008-07-25 01:44:17 +00:00
skodak ea62f50ea7 MDL-15821 do not show profile link in admin block if using guest account 2008-07-24 23:14:09 +00:00
skodak 6e47562d93 MDL-15820 fixed some install noise on dev sites 2008-07-24 22:23:51 +00:00
skodak 3e79b6e37a MDL-11421 context levels fixed in capability definitions, sorting of caps by name, plug-ins may report used core caps, fixed some risks 2008-07-24 21:58:05 +00:00
nicolasconnault 1b5b25b498 MDL-14247 Applying Katja's fix. Thanks! 2008-07-24 14:03:17 +00:00
arborrow e403b1fd34 fix trivial typo 2008-07-24 12:32:26 +00:00
skodak d99319f400 MDL-15809 fixed js errors on group members page 2008-07-24 11:39:05 +00:00
skodak 709c9900b5 MDL-15804 yet more space for editor area 2008-07-24 11:11:58 +00:00
skodak b54847edc3 MDL-15804 smaller online assignment text box size 2008-07-24 06:01:55 +00:00
piers 61e8fd6d8a MDL-9077 switch from client to server side validation for reference field as client side not supported for this type (file upload name) - propogate to 1.9. 2008-07-24 01:40:35 +00:00
moodlerobot 3e9d48cb8c Updated the 19 build version to 20080724 2008-07-24 01:40:01 +00:00
piers 340d23ab2f MDL-7323 AICC Import does not handle Core_Vendor + remove tabs and ambiguous else - propogated to 1.9. 2008-07-24 01:16:12 +00:00
stronk7 47ec4f9c6f Course page blocks are lost when restoring 1.3 and 1.4 backups. MDL-15803 2008-07-23 22:46:10 +00:00
skodak bc8b3aa84d MDL-8521 new feature - safe overrides, see tracker for details 2008-07-23 16:09:13 +00:00
thepurpleblob e6ace9b182 MDL-13925
Was not handling adding subcategories properly. Thanks to Dennis Protzek for the patch.
2008-07-23 14:33:38 +00:00
thepurpleblob f0c952dd41 MDL-14566
Misused get_role_users() was not returning users assigned in parent categories
2008-07-23 13:16:31 +00:00
tjhunt b2ece40a6b MDL-15792 - Images in question don't display. This is a regression from MDL-14279. Fix thanks to Yolanda Ord?ez Rufat. 2008-07-23 10:32:33 +00:00
nicolasconnault d0c5b9f724 MDL-15682 Fixed 2008-07-23 05:21:21 +00:00
dongsheng 4cac26a67d MDL-15565, fix bug of maintenance mode alert reminder 2008-07-23 03:16:00 +00:00
moodlerobot e7202030ef Updated the 19 build version to 20080723 2008-07-23 01:40:44 +00:00
sam_marshall 0e8a3a618b MDL-15773 - 'Pass by reference' errors in update from 1.9.1+ 2008-07-22 14:06:48 +00:00
moodlerobot a8dc4f71d6 Updated the 19 build version to 20080722 2008-07-22 01:48:09 +00:00
moodlerobot 3d4a59a201 Automatic installer.php lang files by installer_builder (20080722) 2008-07-22 01:42:27 +00:00
mudrd8mz 553e7a6faf MDL-15738 Always use <textarea> in language translation form, even for short strings 2008-07-21 15:21:51 +00:00
sam_marshall f9e7707b90 MDL-15731 Removed default grouping for modules which do not support grouping 2008-07-21 11:46:00 +00:00
dongsheng e68f5a9bf6 MDL-15317, when forum is invisible, only users with 'mod/forum:managesubscriptions' capability can subscrib forum. 2008-07-21 09:18:12 +00:00
moodlerobot 497fe2b602 Updated the 19 build version to 20080721 2008-07-21 01:35:26 +00:00
moodlerobot 181bad6feb Automatic installer.php lang files by installer_builder (20080721) 2008-07-21 01:29:50 +00:00
moodlerobot 3e6232e1c0 Added autogenerated bn_utf8 installer file. 2008-07-20 21:23:09 +00:00
moodlerobot 9e9e8a3d7a file installer.php was added on branch MOODLE_19_STABLE on 2008-07-20 21:23:08 +0000 2008-07-20 21:20:08 +00:00
jamiesensei 65143620aa MDL-15198 "non-standard sql in reportlib.php" using CASE statement to wrap logic in fields list 2008-07-20 13:01:45 +00:00
moodlerobot cac921308c Updated the 19 build version to 20080720 2008-07-20 01:37:18 +00:00
moodlerobot 1261492cfc Updated the 19 build version to 20080719 2008-07-19 01:36:31 +00:00
moodlerobot f8a3490beb Automatic installer.php lang files by installer_builder (20080719) 2008-07-19 01:31:01 +00:00
nicolasconnault c288ec21b2 MDL-14909 Preventing the border from being assigned to label list elements. 2008-07-18 14:19:55 +00:00
nicolasconnault 5bab878c29 MDL-12198 Fixing the ajax reordering problem with a new method. 2008-07-18 14:00:56 +00:00
ericmerrill 66a84e93f5 MDL-15697 Added a check form rule limiting post subject and forum name to 255 characters, as limited by the DB 2008-07-18 13:18:28 +00:00
moodler 349a7e7522 MDL-15702 More efficient SQL for advanced searching 2008-07-18 07:49:27 +00:00
scyrma a6a816fb4c MDL-4346: limiting the 'defer' clause to one call / fix the missing openpopup() bug in IE. 2008-07-18 07:14:12 +00:00
moodler ef30cf850a MDL-6850 Removed apparent-size from du 2008-07-18 06:41:13 +00:00
piers db376fdb42 MDL-11892 Propogate Fixes for 'calls to expand javascript' to SCORM 1.2, and 1.3 code. 2008-07-18 06:27:12 +00:00
moodler e8aa537761 MDL-15701 Don't show deleted hosts in block 2008-07-18 04:02:32 +00:00
moodler 8239c00c74 MDL-15700 Tidied up the maintenance mode display to users 2008-07-18 02:59:45 +00:00
moodlerobot 82d8384cdd Updated the 19 build version to 20080718 2008-07-18 01:36:19 +00:00
tjhunt 9b3e993a98 MDL-15693 - print_question_icon does not cope with missing question types 2008-07-17 12:49:22 +00:00
tjhunt a1f418fb08 MDL-15692 - Quiz attempt paging bar screws up in IE7 when you zoom the page. Normal Moodle paging bar doesn't, so I've changed the HTML the quiz generates to be closer the the output of weblib. Fortunately, this is irrelevant in 2.0. 2008-07-17 12:39:43 +00:00
scyrma 7536d5b28c MDL-15676: restrict block/blog_tags to showing blog tags. 2008-07-17 04:22:11 +00:00
moodler c4c2438e8b Bump post 1.9.2 release 2008-07-17 03:25:33 +00:00
dongsheng 3afb22f274 MDL-15683, get query string instead of calling me(). 2008-07-17 03:12:23 +00:00
moodlerobot 88f8f8f327 Updated the 19 build version to 20080717 2008-07-17 01:40:57 +00:00
jmg324 5d10a560d7 MDL-7971 check in get_categories if user can see hidden categories uses specific capability not course:create 2008-07-16 15:12:12 +00:00
moodlerobot f7bbe3d2d0 Updated the 19 build version to 20080716 2008-07-16 01:40:35 +00:00
scyrma 273d765e8d MDL-15661: typo in function name - wrong call meant tag type was set incorrectly 2008-07-16 01:20:48 +00:00
tjhunt cdd3f7f3ea MDL-14413 - Invalid function name - is_image_by_extentsion in QTI export 2008-07-15 09:18:38 +00:00
moodler de1b29bc55 MDL-14299 - small fix to credit line 2008-07-15 04:28:39 +00:00
ikawhero 94f5f73216 MDL-14299 New checkbox profile field type.
Credit to Brian King.
2008-07-15 04:06:05 +00:00
ikawhero 63982e9727 Change language string file. 2008-07-15 04:01:20 +00:00
ikawhero 6a983a636f MDL-14299 New checkbox profile field type.
Credit to Brian King.
2008-07-15 03:24:20 +00:00
moodlerobot 5cb634a5fa Updated the 19 build version to 20080715 2008-07-15 01:41:06 +00:00
fmarier 409b091091 MDL-15614 Add 3 missing PHP error codes to get_file_upload_error()
The get_file_upload_error() function was missing the following error codes:

    UPLOAD_ERR_NO_TMP_DIR => 'Missing a temporary folder.',
    UPLOAD_ERR_CANT_WRITE => 'Failed to write file to disk.',
    UPLOAD_ERR_EXTENSION => 'File upload stopped by extension.',

(see http://www.php.net/manual/en/features.file-upload.errors.php)
2008-07-14 02:37:24 +00:00
dongsheng 5f16beaa9b MDL-15565, add maintenance mode alert reminders in title and navbar. 2008-07-14 02:29:26 +00:00
moodlerobot 47c35d0488 Updated the 19 build version to 20080714 2008-07-14 01:38:06 +00:00
gbateson c6eff884e7 improvements to generation of html from xml:
JCloze: set textbox size allowing for minimum gap size setting and longest answer;
JMatch: allow for duplicates and distractors in RHS items;
JQuiz: set textbox size allowing for longest answer, and use textarea if answer longer than 29 chars;
2008-07-13 12:20:30 +00:00
moodlerobot 8cfec7806c Updated the 19 build version to 20080713 2008-07-13 01:36:04 +00:00
gbateson 406a9d91d8 fixed a typo in get_baseurl function: get_file_url($this->filedir.'/'); should be get_file_url($this->filedir).'/'; i.e. finial slash should be *outside* the last bracket 2008-07-12 22:55:39 +00:00
moodlerobot 50d48da89d Updated the 19 build version to 20080712 2008-07-12 01:40:43 +00:00
skodak de62b323d9 MDL-13811 email change conf on by default 2008-07-11 07:49:54 +00:00
moodler e5ab89286b Bumping for release 2008-07-11 06:03:45 +00:00
dongsheng ea17cce0ae MDL-14932, improve accessibility in role assigning and group assigning pages. 2008-07-11 04:33:29 +00:00
moodler 04cb203237 MDL-15610 Fixed very old log display bug for labels (well spotted Gary!) 2008-07-11 02:54:54 +00:00
scyrma 4c87067821 MDL-14279: Fixes for regressions created by the get_file_url massive change 2008-07-11 02:28:31 +00:00
moodlerobot 4035e4dfcf Updated the 19 build version to 20080711 2008-07-11 01:39:46 +00:00
scyrma 4770b4b6b3 MDL-14279: use get_file_url instead of checking $CFG->slashargument manually 2008-07-10 09:48:43 +00:00
dongsheng 6023d353c4 "MDL-15592, change js function name toggle() to menu_toggle(), to be friendly with prototype.js" 2008-07-10 09:34:46 +00:00
moodler fa2b5a6add MDL-15601 Basic checking to avoid some notices 2008-07-10 08:50:00 +00:00
skodak 07dffe499d MDL-10586 fixed coding style 2008-07-10 08:36:02 +00:00
moodler 69f67b2af4 MDL-13811: Small fix to make this work even when email is disabled for that user 2008-07-10 08:05:52 +00:00
scyrma 0e27230f3b MDL-14999 & MDL-10657: Fix for a few problems in HTMLArea. (Patch by Nicklas Lindgren) 2008-07-10 04:11:34 +00:00
scyrma 0a3a5cdad5 MDL-10586: Fix header to show the right display order. (Initial patch by Mitsuhiro Yoshida) 2008-07-10 03:36:13 +00:00
dongsheng fcd05dab8e MDL-15563, use require instead of require_once, see tracker. 2008-07-10 01:50:32 +00:00
moodlerobot 1840030d48 Updated the 19 build version to 20080710 2008-07-10 01:39:42 +00:00
skodak e690e668ba MDL-15469 adding fclose before write to already open file 2008-07-09 10:32:37 +00:00
dongsheng 8cfc7e4ed4 MDL-15563, fix undefined variable in this page, and debugging information. 2008-07-09 09:31:40 +00:00
scyrma f505e072dd MDL-15403: Patch sent by Peter Bulmer, said to have been written by Donal McMullan. Prevents a remotely-triggered mass-unenrolments of users in a
(mnet-enabled) course.
2008-07-09 09:02:33 +00:00
moodlerobot 037b616369 Updated the 19 build version to 20080709 2008-07-09 01:40:26 +00:00
tjhunt 26f4fa7e15 MDL-11905 - Users with the capability to export questions may not have the capability to access backupdata. Therefore we need to change where question export files are stored. I know this is after the 1.9.2 code freeze, but I discussed this fix with Petr, and he reviewed it last night and we decided it was better to commit it before the 1.9.2 release. 2008-07-08 11:16:21 +00:00
thepurpleblob 9cc3a2e567 MDL-15304
Default name 'label' is looked up from language pack.
2008-07-08 09:38:27 +00:00
thepurpleblob dcb15c8dbc MDL-15304
Remove the item number from the created label name. It doesn't work for new labels.
2008-07-08 08:44:38 +00:00
moodlerobot 222b1a0040 Updated the 19 build version to 20080708 2008-07-08 01:43:17 +00:00
moodlerobot 21f7d612de Automatic installer.php lang files by installer_builder (20080708) 2008-07-08 01:35:27 +00:00
skodak 741cd9b3c1 MDL-13383 fixed restore form 2008-07-07 22:34:21 +00:00
skodak c029120bd6 MDL-15561 unsubscribe all option implemented; backported from HEAD 2008-07-07 21:51:40 +00:00
skodak 78a57b624b file unsubscribeall.php was added on branch MOODLE_19_STABLE on 2008-07-07 21:51:40 +0000 2008-07-07 21:51:01 +00:00
skodak 7713cdb03c MDL-15413 warn admins if display_errors enabled; backported from HEAD 2008-07-07 14:35:29 +00:00
thepurpleblob 4edbf22f28 MDL-15473
Fixed typo causing the image location to be ignored if the base_64 image is not included.
2008-07-07 11:51:57 +00:00
scyrma c2efdd7624 MDL-14237: Removing all remaining tag-related uses of html_entity_decode 2008-07-07 07:40:35 +00:00
scyrma 347579d364 MDL-14237: Removing calls to html_entity_decode, along with some syntax cleanup 2008-07-07 07:17:49 +00:00
scyrma 1690ed662c MDL-14772: Prevent official tags from being deleted when tag_instance table is empty. (Patch by Hynek Černoch) 2008-07-07 06:35:13 +00:00
scyrma adb9ea5757 MDL-12649: Prevent editing a blog from changing the display sort (based on creation date) (Patch by Dan Poltawski) 2008-07-07 03:19:09 +00:00
moodlerobot 06128605e7 Updated the 19 build version to 20080707 2008-07-07 01:36:47 +00:00
skodak 3cc961d47a MDL-13901 guest can not be selected in "Default role for all users" in 1.9.x 2008-07-06 23:53:33 +00:00
skodak 48f3e237f5 MDL-9983 role_unassign should not touch group members table directly - we need events 2008-07-06 22:54:05 +00:00
skodak 9952398b7f MDL-9983 role assignment related triggers 2008-07-06 19:26:21 +00:00
skodak 58286f7b5a MDL-15553 events_trigger() perf improvement 2008-07-06 18:56:50 +00:00
skodak 2959f8b18e MDL-9983, MDL-13998, MDL-15552 core events related cleanup and potential sql injection problem fixed; please note the changes are not backwards compatible, 3rd party code will need to be updated - sorry for the trouble 2008-07-06 17:55:54 +00:00
moodlerobot 5d1bd2051d Updated the 19 build version to 20080706 2008-07-06 01:34:43 +00:00
skodak 73db4aa6f3 MDL-13811 reworked unsetting of preferences and minor tweaks; backported from HEAD 2008-07-05 22:46:58 +00:00
skodak 9a6741db31 MDL-12505 do not leak separate groups info in advanced search user selection and other fixes 2008-07-05 20:57:09 +00:00
skodak 73532d6b11 MDL-15548 fixed regression, thanks Gary! 2008-07-05 17:24:48 +00:00
skodak 7cdd22b190 MDL-14035 fixed user images on user report 2008-07-05 16:13:35 +00:00
skodak 733818ca2e MDL-11905 send temp file support 2008-07-05 15:34:28 +00:00
skodak 3e779c59c6 MDL-15516 prvent access to deleted profiles and other user areas; backported from HEAD 2008-07-05 14:53:31 +00:00
nicolasconnault 7e408daaba MDL-13811 Fixing missing fullname variable for lang string. 2008-07-05 14:41:25 +00:00
nicolasconnault 84e9598a9f MDL-13811 Adding resetting of user preferences when change is successful. 2008-07-05 14:27:25 +00:00
skodak 7b22b8b89b MDL-13776 assignment attachment access now verified in module context 2008-07-05 14:17:29 +00:00
nicolasconnault e7f720c2c7 MDL-13811 Completed the required changes. Also added a "Cancel email change" link. 2008-07-05 14:06:58 +00:00
skodak 2b032990bf MDL-15420 fixed commented out continue which was causing leaks of info about hidden activities ;-) 2008-07-05 13:19:32 +00:00
skodak 2270fd6b61 MDL-14261 fixed access control issues for backup and unittest plugins 2008-07-05 13:05:24 +00:00
mudrd8mz 5100c95157 MDL-15077 Fixed link to admin section 2008-07-05 11:13:25 +00:00
skodak 67f6450846 MDL-15304 fixed empty label names coming from restore 2008-07-05 09:36:36 +00:00
moodlerobot 013a649ba8 Updated the 19 build version to 20080705 2008-07-05 01:42:38 +00:00
moodlerobot 0086b749dc Automatic installer.php lang files by installer_builder (20080705) 2008-07-05 01:36:03 +00:00
skodak 7eda97d239 MDL-15544 Disable email signup in new installation - add danger warning; backported from HEAD 2008-07-04 23:54:22 +00:00
skodak 0a062fdff5 MDL-14840 verbose scales in grade import; backported from HEAD 2008-07-04 20:48:18 +00:00
ethem a3c161ff00 http://moodle.org/mod/forum/discuss.php?d=100629 2008-07-04 17:07:00 +00:00
jamiesensei dcb16152f3 MDL-15530 "The Group menu in Quiz Module no longer works as before: all students are displayed regardless of what group is chosen" 'all attempts' mode for report is now disabled when a group is selected. 2008-07-04 09:48:01 +00:00
moodlerobot 022ebfc304 Updated the 19 build version to 20080704 2008-07-04 01:40:31 +00:00
moodlerobot ba91f79934 Automatic installer.php lang files by installer_builder (20080704) 2008-07-04 01:34:01 +00:00
skodak a5aea142e0 MDL-15304, MDL-15526 fixing regression 2008-07-03 23:00:33 +00:00
andreabix adefec37f7 Fixed MDL-13832 2008-07-03 22:05:59 +00:00
stronk7 de0a3bc5f1 Bump to clean empty role names. MDL-15284 2008-07-03 17:01:42 +00:00
stronk7 811e2ef0ee Clean empty role_names. MDL-15284 2008-07-03 17:00:54 +00:00
thepurpleblob 4f45ed6e32 MDL-13007
Corrected help for category selection. I hope this is what the tick boxes now do :-)
2008-07-03 15:12:44 +00:00
thepurpleblob 410f2eca60 MDL-13010
Now correctly checks for category context id and does not fail if it isn't there.
2008-07-03 14:47:09 +00:00
skodak dd11d7bdd3 MDL-15021 Deleted not fully setup separate admin settings; merged from MOODLE_18_STABLE but with better delete 2008-07-03 14:08:43 +00:00
stronk7 d889ca7bbc Only create role_name aliases if the original course (backup file) contains them. MDL-15284 2008-07-03 12:58:18 +00:00
skodak 524a75e438 MDL-11145 include orphaned mnet ids from user table into mnetid selector 2008-07-03 09:26:03 +00:00
jerome d38b5a753c MDL-14233 remove some var_dump() 2008-07-03 07:36:34 +00:00
jerome 465356acf0 MDL-14233 Make bulk user picture upload handle subdirectories in zip files (with patch) 2008-07-03 07:16:09 +00:00
jerome ff8e77b72a MDL-14635 fix user profil help icons 2008-07-03 04:08:33 +00:00
jerome d6b8aff273 MDL-14635 fix for user profil help icons 2008-07-03 04:08:06 +00:00
moodlerobot c0b030d581 Updated the 19 build version to 20080703 2008-07-03 01:40:04 +00:00
skodak 5efde2dafa MDL-15389 better explanation of spam dangers in user profiles - thanks Tim 2008-07-02 22:32:00 +00:00
skodak 37b48d3202 MDL-15390 improved subscribe me option when posting to forum - see tracker for more info 2008-07-02 21:58:35 +00:00
thepurpleblob cd50a71370 MDL-15505
Add debugging call if mnet authentication is not enabled.
2008-07-02 14:17:31 +00:00
robertall 74b4814e9c [MDL-15426] Distinguish latlong value being zero from no value 2008-07-02 12:42:15 +00:00
tjhunt 79cc2bf137 MDL-15494 - No allowance for the possibility that something might go wrong when processing the response to a question. Backported from HEAD. 2008-07-02 09:14:56 +00:00
dongsheng 8ca48dc533 "MDL-12843, add proper html id, thanks ken" 2008-07-02 07:32:35 +00:00
dongsheng 8b2a28041d "MDL-15424, close table tags manually before calling redirect" 2008-07-02 07:08:22 +00:00
dongsheng 359c7bbfa8 "MDL-15500, change helpbutton debug level to developer" 2008-07-02 06:38:09 +00:00
dongsheng 71f16fd1b3 "MDL-15501, typo, sorry" 2008-07-02 05:12:27 +00:00
dongsheng d64cb8b0c9 "MDL-15501, add appropriate div and h2 tags to the header div, merged from MOODLE_18_STABLE" 2008-07-02 05:02:00 +00:00
dongsheng f6ee689f33 "MDL-15469, limit email notification" 2008-07-02 04:46:04 +00:00
moodlerobot e40545b0d6 Updated the 19 build version to 20080702 2008-07-02 01:41:41 +00:00
skodak b3b6a4fff7 MDL-10633 fixed regression in last commit 2008-07-01 22:58:37 +00:00
skodak 0457fe8334 MDL-15387 fixing regression spotted by John Beedell 2008-07-01 22:25:26 +00:00
jamiesensei 696d84554d MDL-15490 "Create a new Quiz: warning message in Result tab" problem was when there were no students in a course - fixed. 2008-07-01 11:39:09 +00:00
gbateson 680c8b87e9 MDL-15184: fix sql injection vulnerability 2008-07-01 10:36:53 +00:00
moodlerobot d0356e72c3 Updated the 19 build version to 20080701 2008-07-01 01:35:58 +00:00
moodlerobot 11fc24fa4b Automatic installer.php lang files by installer_builder (20080701) 2008-07-01 01:30:08 +00:00
thepurpleblob 0f3cf24fa5 MDL-15476
Can now override the public key lifetime by specificying value
for $CFG->mnetkeylifetime in config.php
2008-06-30 15:00:25 +00:00
thepurpleblob d0de789783 MDL-15476
Can now override the public key lifetime by specificying value
for $CFG->mnetkeylifetime in config.php
2008-06-30 14:54:16 +00:00
thepurpleblob 08e6717022 MDL-14793
Added some debugging messages, if anything fails.
2008-06-30 14:14:31 +00:00
jamiesensei 78eabcc29d MDL-15198 "non-standard sql in reportlib.php" fixed this with new sql that does not require a limit clause. 2008-06-30 11:52:47 +00:00
ikawhero ccfbebff25 MDL-13000 - adding a missing call to update_capabilities() to process
local/db/access.php on an upgrade
2008-06-30 06:01:13 +00:00
scyrma ed77e5710f MDL-15392: preventing duplicate #id in blog entries list 2008-06-30 01:53:16 +00:00
moodlerobot af293d28c8 Updated the 19 build version to 20080630 2008-06-30 01:40:16 +00:00
moodlerobot ae022026b7 Automatic installer.php lang files by installer_builder (20080630) 2008-06-30 01:34:45 +00:00
moodlerobot 67f92d179d Updated the 19 build version to 20080629 2008-06-29 01:32:56 +00:00
stronk7 6daf124fcb Fix CEIL() uses with helper function. MDL-15336 2008-06-28 18:31:01 +00:00
stronk7 45516d902c Added sql_ceil() helper function. MDL-15336 2008-06-28 18:15:38 +00:00
moodlerobot 05ac554f60 Updated the 19 build version to 20080628 2008-06-28 01:35:52 +00:00
thepurpleblob b44c55c2bf MDL-15447
Admin search option only shown if user has moodle/site:config capability
2008-06-27 13:10:06 +00:00
scyrma e586bc17f1 MDL-15392: fix output sanitization and put permalink back, in a xhtml-strict compliant way. 2008-06-27 04:00:18 +00:00
moodler 80957b76a8 MDL-15413 Added some code to prevent direct calls on this script 2008-06-27 03:34:27 +00:00
dongsheng 81f64bba7f "MDL-10633, fix dobule quote in calendar, merged from MOODLE_18_STABLE" 2008-06-27 03:10:49 +00:00
moodlerobot fa2ff551e6 Updated the 19 build version to 20080627 2008-06-27 01:37:48 +00:00
tjhunt 3ba1f9c1cb MDL-15139 - Cannot create Random Short Answer questions becuase the validation code is buggy. Fix thanks to Paul-Andre Chasse. 2008-06-26 13:13:08 +00:00
dongsheng 3b65b56480 "MDL-15424, fix html tag" 2008-06-26 08:58:28 +00:00
robertall 97e32066cd [MDL-15423] Remove useless latlong formatting operations. 2008-06-26 08:04:04 +00:00
robertall 737f2c15b2 [MDL-14440] Show latlong field at list and single view in a prettier way. 2008-06-26 06:09:47 +00:00
moodlerobot 727bf3d324 Updated the 19 build version to 20080626 2008-06-26 01:43:33 +00:00
moodlerobot 3834d4ac9f Automatic installer.php lang files by installer_builder (20080626) 2008-06-26 01:37:08 +00:00
mudrd8mz 1e509794de MDL-15387 Always call add_to_log() even in case blocks are showing 2008-06-25 15:31:48 +00:00
robertall 7a8039c2e2 [MDL-15298] Avoid printing a warning if debugging is enabled. Backported from HEAD. 2008-06-25 10:22:34 +00:00
moodler 0867c861f4 Added a test to avoid potential notices for missing objects 2008-06-25 08:44:07 +00:00
skodak d3e345456a MDL-15372 fixed comment typo; backported from HEAD 2008-06-25 07:37:13 +00:00
Francois Marier 8c5891ba01 Fix drift between CVS and git 2008-06-25 03:01:49 +00:00
jerome 291f748a70 MDL-14635 remove tags from glossary block help 2008-06-25 03:01:49 +00:00
dongsheng 062b6df0ee "MDL-8642, see tracker, merged from MOODLE_18_STABLE" 2008-06-25 02:16:59 +00:00
moodlerobot 071e1ef4b0 Updated the 19 build version to 20080625 2008-06-25 01:40:28 +00:00
moodlerobot 066eecd756 Automatic installer.php lang files by installer_builder (20080625) 2008-06-25 01:34:06 +00:00
skodak 5e8fe2da7a MDL-15398 reverting previous incorrect patch 2008-06-24 22:09:46 +00:00
skodak 93b4063955 MDL-15298 fixed unlink with @ - silences debug warning 2008-06-24 21:52:54 +00:00
wildgirl a0f562e410 lang string typo fixes 2008-06-24 13:51:51 +00:00
jamiesensei ac625ae922 MDL-15309 "Switch role to student, take quiz, can't delete attempt" switching default of overview report to show all attempts whether or not the attempt is for a currently enrolled student. 2008-06-24 12:31:28 +00:00
jamiesensei f32aa45ef4 MDL-15378 "Quizz: sql error if not student in the group" now have extra logic to not display the table if there are no students at all or in current group - still displaying form and graph were appropriate. 2008-06-24 12:18:16 +00:00
moodlerobot d7a0b8fa3b Updated the 19 build version to 20080624 2008-06-24 01:39:30 +00:00
moodlerobot 78fa24340f Automatic installer.php lang files by installer_builder (20080624) 2008-06-24 01:33:46 +00:00
tjhunt 5cbc380ed5 MDL-15372 - Links in course summary and section summaries not recoded on restore. Petr thinks it is a bad idea to recode links in course summaries, becuase he thinks there should not be links there at all, but I disagree, and as long as links are there, and we have the code to stop them breaking on backup and restore, we should fix the bug. 2008-06-23 17:02:11 +00:00
tjhunt 00e807e8f5 MDL-13229 - Cannot export group events - now make it export group events if 'all' is selected - Oops, allow for course without groups. 2008-06-23 14:34:54 +00:00
tjhunt 5c6262b8cc MDL-13229 - Cannot export group events - now make it export group events if 'all' is selected - Oops, allow for course without groups. 2008-06-23 14:28:51 +00:00
dongsheng f8e68679d9 "MDL-15344, add lang string" 2008-06-23 06:05:09 +00:00
dongsheng 82f826bd09 "MDL-15311, remove extra enter" 2008-06-23 05:43:50 +00:00
scyrma 1938e7f893 MDL-15345: prevent problem while running tag_compute_correlations under pgsql. 2008-06-23 04:30:04 +00:00
moodlerobot 76fa355d68 Updated the 19 build version to 20080623 2008-06-23 01:36:50 +00:00
moodlerobot 5ffed7dfa5 Automatic installer.php lang files by installer_builder (20080623) 2008-06-23 01:31:06 +00:00
stronk7 0fea8c79f7 Fixed statistics generation under Oracle. MSSQL pending. MDL-13861 2008-06-22 23:37:12 +00:00
jamiesensei 29e3105632 Fixing typo introduced in 1.282.2.14 version of this file. 2008-06-22 13:01:39 +00:00
moodlerobot 85d6a36efa Updated the 19 build version to 20080622 2008-06-22 01:37:48 +00:00
moodlerobot 11742d0e26 Updated the 19 build version to 20080621 2008-06-21 01:38:47 +00:00
moodlerobot 9ec6d22190 Automatic installer.php lang files by installer_builder (20080621) 2008-06-21 01:33:30 +00:00
gbateson b797f83e4f add hidden "summarysource" field when updating HotPot. This fixes "undefined property" error from mod/hotpot/lib.php 2008-06-20 22:55:11 +00:00
nicolasconnault cb41c95ace CONTRIB-490 Adding support for generation of test calculated question type (thanks Pierre Pichet) 2008-06-20 19:11:34 +00:00
tjhunt 9af3558449 MDL-15315 - Error in Item analysis report for short aswer questions that use wildcards 2008-06-20 17:22:55 +00:00
tjhunt f4b0102d11 MDL-15332 - Item analysis links to the question edit form even for users without an appropriate capability. 2008-06-20 16:30:33 +00:00
tjhunt 2e0012e470 MDL-15330 - Truefalse help file not found 2008-06-20 15:24:14 +00:00
moodlerobot 51a934026a Updated the 19 build version to 20080620 2008-06-20 01:45:30 +00:00
tjhunt f446123b6a MDL-15321 - Add a class to the last column and row of the table in print_table to help theming 2008-06-19 18:38:36 +00:00
tjhunt b323b23ca0 MDL-13229 - Cannot export group events - now make it export group events if 'all' is selected. 2008-06-19 17:58:00 +00:00
jamiesensei 1c215c8bce MDL-15165 "Essay quiz Manual grading "these are no attempts to show" when there are actually attempts" - not resolved. But while reviewing the query I found a LIMIT clause in sql that I've replace with params to the get_records_sql function. Also made the logic in attempt_sql method more robust. 2008-06-19 15:19:17 +00:00
tjhunt e6afe4a18a MDL-15318 - url is a reserved word in JavaScript in IE, so the Gen Calendar URL button does not work there 2008-06-19 14:24:11 +00:00
jamiesensei e05eb943d0 MDL-15264 "Bar graph image missed when group with no attempts selected" added a query to check for sure that there are some grades there to display in the graph. Also now displaying grades for all groups a user has permission to view - but only if that is up to 4 groups and only if there are less than 500 grades total. 2008-06-19 12:31:28 +00:00
gbateson f5018bc548 improved setting of LHS and RHS items in JMatch 2008-06-19 11:41:49 +00:00
gbateson 7ed61cd749 allow <img> and other tags in LHS of JMatch in "v6" output format 2008-06-19 05:57:44 +00:00
fmarier f42d997d98 auth/ldap: fix PHP warnings and remove bad "Choose one" id 2008-06-19 02:27:33 +00:00
pichetp 6616311474 closing properly questions <label> i.e. adding </label> line 459-61 when some errors 2008-06-19 01:46:16 +00:00
moodlerobot 8a575a7c64 Updated the 19 build version to 20080619 2008-06-19 01:43:41 +00:00
robertall 720c7c0624 [MDL-15308] Automatically download exported preset. 2008-06-18 17:42:43 +00:00
thepurpleblob 5967922779 MDL-15304
Handle empty names for labels (if only HTML tags in label text)
2008-06-18 15:26:34 +00:00
robertall 5d7e3a41b2 [MDL-15300] Remove temporary files created while exporting a preset as ZIP file. 2008-06-18 14:42:20 +00:00
tjhunt aa0716e1ea MDL-15290 - Missing question types not handled properly on backup. 2008-06-18 14:29:40 +00:00
robertall 72c5387098 [MDL-15298] Don't create preset ZIP always in the same directory, as the same file name. 2008-06-18 11:39:43 +00:00
jerome 1335a32f75 MDL-15152 reverse MDL-14439 fix for dropdown menu for Opera+Linux 2008-06-18 05:40:19 +00:00
dongsheng 55737c854a "MDL-8642, setting of auto scrolling" 2008-06-18 03:57:50 +00:00
dongsheng 654b0cab44 "MDL-12304, fix double text" 2008-06-18 03:13:40 +00:00
moodlerobot 315e4bce26 Updated the 19 build version to 20080618 2008-06-18 01:41:05 +00:00
jerome 323f59a18f MDL-11461 all ressource types are now displayed in the ressource help popup 2008-06-17 01:47:57 +00:00
moodlerobot 28439653a2 Updated the 19 build version to 20080617 2008-06-17 01:40:34 +00:00
pichetp b50f8fc81f code cleaning 2008-06-17 01:11:09 +00:00
robertall e869c370bb [MDL-15258] Clean up data_presets_export() function. 2008-06-16 18:32:44 +00:00
sam_marshall d517630b63 MDL-15263 Fixed numeric entities remaining after html_to_text 2008-06-16 14:01:52 +00:00
robertall 12ab8a517b [MDL-15258] Move data_presets_export() function out from common module specific library. 2008-06-16 13:46:43 +00:00
pichetp 220058da84 MDL-14625 more tolerant to missing subquestions merged from HEAD 2008-06-16 13:07:05 +00:00
dongsheng 2c33f28f02 "MDL-15251, see tracker" 2008-06-16 12:24:23 +00:00
thepurpleblob 86f9dc29ac MDL-15257
Fix notice caused by (possibly) uninitialised variable.
2008-06-16 10:04:59 +00:00
nicolasconnault d2c33621f1 CONTRIB-475 Added CLI and web authentication, plus fixed a few little bugs. 2008-06-16 09:04:31 +00:00
dongsheng 33484c1b9f "MDL-15251, see tracker" 2008-06-16 09:04:15 +00:00
pichetp 890a48fabe MDL-15123 Using true value limits to grade responses, merged from head 2008-06-16 03:16:49 +00:00
pichetp 0e2dbbf7ee MDL-15123 Using true value limits to grade responses, merged from head 2008-06-16 03:09:48 +00:00
dongsheng 9052f663a8 "MDL-15251, fix country field in user/view.php" 2008-06-16 02:13:30 +00:00
moodlerobot 55d75bf44f Updated the 19 build version to 20080616 2008-06-16 01:41:51 +00:00
moodlerobot b10bddb693 Automatic installer.php lang files by installer_builder (20080616) 2008-06-16 01:35:42 +00:00
cataluke c918a27394 MDL-15156 add in missing upgrade_main_savepoint() 2008-06-16 00:20:33 +00:00
robertall 895dc1bb7d [MDL-15069] Change filename of exported preset to ensure downloading the latest version. 2008-06-15 15:17:30 +00:00
moodlerobot 33e0218f5f Updated the 19 build version to 20080615 2008-06-15 01:39:12 +00:00
moodlerobot 7197151005 Updated the 19 build version to 20080614 2008-06-14 01:52:22 +00:00
jamiesensei 1be3ce4510 MDL-15224 "Overview results in quiz module export to excel and txt fail" Fixed. 2008-06-13 12:46:54 +00:00
moodlerobot 44e9435e23 Updated the 19 build version to 20080613 2008-06-13 02:03:44 +00:00
stronk7 989807c327 Timezone info updated to tzdata2008c 2008-06-12 16:00:30 +00:00
robertall 258730666e [MDL-8407] Make the default role required to export database records weaker (use the 1.9 mod/data capability "viewalluserpresets"). 2008-06-12 13:49:40 +00:00
jmg324 7b8c3081a0 MDL-15223 need to default backup_blogs for backup_course_silently not to have PHP notice errors 2008-06-12 11:06:57 +00:00
thepurpleblob 9075e36022 MDL-15221
The name of the introformat database field was incorrect and the
format was not saved.
2008-06-12 09:35:28 +00:00
nicolasconnault 933f6db4b9 CONTRIB-490 Added support for scripted generation of questions. Calculated type not yet supported (datasets too complicated ;) 2008-06-12 04:48:20 +00:00
moodlerobot 2bf5901494 Updated the 19 build version to 20080612 2008-06-12 02:02:14 +00:00
moodlerobot 99f23c0304 Automatic installer.php lang files by installer_builder (20080612) 2008-06-12 01:55:16 +00:00
cataluke 7aa74e036b MDL-15156 fix conflict in schema for MNET PREFIX_mnet_enrol_course table 2008-06-12 01:30:26 +00:00
nicolasconnault e724b50ea0 MDL-15206 Fixed. My fault... 2008-06-11 08:46:50 +00:00
jmg324 ea39a99894 MDL-15183 defaulting a couple of variables in the graph class rather than every graph object needing to do it. 2008-06-11 08:22:35 +00:00
dongsheng 4440b029bb "MDL-12304, fix double text" 2008-06-11 06:05:09 +00:00
moodlerobot 9f69bbaec3 Updated the 19 build version to 20080611 2008-06-11 02:01:58 +00:00
nicolasconnault 73b73c9819 CONTRIB-490 Added generation code for generator tool. 2008-06-10 20:52:46 +00:00
jamiesensei f5d47e36f1 MDL-14821 "Quiz: report overview page is not XHTML compliant" wrapped hidden form params in div with style 'display:none'. 2008-06-10 07:45:22 +00:00
moodlerobot d41e6bdc07 Updated the 19 build version to 20080610 2008-06-10 02:00:10 +00:00
moodlerobot 2b63b81174 Automatic installer.php lang files by installer_builder (20080610) 2008-06-10 01:53:39 +00:00
jmg324 cd61bc6fb4 MDL-15183 reverting previous change 2008-06-09 10:05:50 +00:00
fmarier 7b30c23b87 filelib: Add .ics files to the mimetypes array.
Required so that .ics files can be attached to e-mails using the email_to_user
function. The facetoface module is doing this.

(from Nigel McNie <nigel@catalyst.net.nz>)
2008-06-09 05:33:52 +00:00
moodlerobot 8ba8fe0841 Updated the 19 build version to 20080609 2008-06-09 01:58:53 +00:00
dongsheng 8bf931fc5b "MDL-15138, fix breadcrumb nav" 2008-06-08 18:29:51 +00:00
iarenaza ad1f69b66b MDL-12783 IMS idon't unenroll students who were enrolled by other plug-ins
Credit goes to Scott Krajewski for the bug report and patch!

Merged from MOODLE_18_STABLE
2008-06-08 15:29:58 +00:00
moodlerobot df1c48b47f Updated the 19 build version to 20080608 2008-06-08 01:59:59 +00:00
iarenaza cf5d095f47 MDL-15182 Fix LDAP enrolment course auto-creation at user login
Merged from MOODLE_18_STABLE
2008-06-07 21:19:45 +00:00
jamiesensei 012de02b64 MDL-14821 "Quiz: report overview page is not XHTML compliant" gave the fieldsets in the form different names to avoid html id attribute conflict.
Backported from HEAD
2008-06-07 12:58:34 +00:00
moodlerobot ddad729c6e Updated the 19 build version to 20080607 2008-06-07 01:56:26 +00:00
gbateson 4200f652ad fix conversion of relative URLs in Hot Potatoes "<=" and "=>" buttons on sites where slasharguments as disabled (Site Admin -> Server -> HTTP -> Use slash arguments) 2008-06-07 01:42:32 +00:00
jmg324 8a7f4c11f9 MDL-7968 reports section of admin tree controled by reports capability not site config 2008-06-06 15:35:20 +00:00
jamiesensei a92741f2d2 MDL-15092 "Quiz overview report won't display if there are more than 29 questions" Small fixes in logic to do with sorting.
* Don't need extra joins for sorting if we are downloading as downloads are not sorted.
* Fix bug for sorting when detailed marks are not shown.
2008-06-06 12:24:17 +00:00
jamiesensei 6713e60db7 MDL-15150 "Quiz Report broken in course without students" added warning message if there are no students in course yet. 2008-06-06 11:08:58 +00:00
jmg324 a94592e608 MDL-12302 stopping filter_save_ignore_tags ignoring empty tags 2008-06-06 09:15:35 +00:00
jmg324 73f6e22ab9 init_y_axis parameter not set up correctly 2008-06-06 08:48:43 +00:00
moodlerobot 2bca713636 Updated the 19 build version to 20080606 2008-06-06 01:58:11 +00:00
mchurch f8dc3566d0 MDL-11892 Fixed calls to expand javascript to correctly use quoted strings in all necessary places. 2008-06-05 20:58:26 +00:00
jamiesensei 5b598e9e5d MDL-14223 "Add a column for the user's idnumber, controllable by a site-wide setting" adding idnumber to the list of columns that is 'suppressed' ie that is only printed once when the same data is repeated in consecutive rows. 2008-06-05 11:12:58 +00:00
jamiesensei 5bc700de54 MDL-15092 "Quiz overview report won't display if there are more than 29 questions" fixed this by going back to the old way of fetching data for display in the table. However still use table JOINs when user wants to sort by question grade. The user can sort by a maximum of two columns at once so the JOINs will not exceed the limit. 2008-06-05 06:12:26 +00:00
dongsheng e53a39773d "MDL-14932, move the course section" 2008-06-05 06:08:18 +00:00
dongsheng 7980e37b36 "MDL-14932, see tracker" 2008-06-05 06:02:56 +00:00
moodlerobot 4e8d585b85 Updated the 19 build version to 20080605 2008-06-05 02:01:12 +00:00
moodlerobot 3e980075e4 Updated the 19 build version to 20080604 2008-06-04 02:01:48 +00:00
moodlerobot 8c5171c03c Updated the 19 build version to 20080603 2008-06-03 01:59:50 +00:00
iarenaza 77d3068b70 MDL-15039 Apostrophes in idnumber prevent users from being unenrolled via LDAP
If any member of a course has an ID number containing an apostrophe (eg.
CN=Paddy O'Brien,OU=Students,DC=etc...), no other members will ever be
unenrolled via LDAP.

Thanks to Michael Woods for the bug report and proposed solution.

Merged from MOODLE_18_STABLE.
2008-06-02 22:35:23 +00:00
moodlerobot 3449d068e6 Updated the 19 build version to 20080602 2008-06-02 02:03:56 +00:00
skodak 5e61503fb3 MDL-15080 char to int cast problem in get_recent_enrolments(); backported from HEAD 2008-06-01 13:21:17 +00:00
skodak 669f7e7bc3 MDL-15079 fixed js quoting 2008-06-01 13:15:46 +00:00
skodak ac024610d8 MDL-15078 fixed role name displaying when adding group members 2008-06-01 13:14:23 +00:00
mudrd8mz ba309412ce The very last save button is tabindexed, too. Forgot to include it in the last commit. 2008-06-01 11:16:53 +00:00
mudrd8mz 92cfecea74 Save buttons are tabindexed as well. You don't need to touch the mouse at all ;-) 2008-06-01 08:38:58 +00:00
moodlerobot 6fcd60f62f Updated the 19 build version to 20080601 2008-06-01 01:58:42 +00:00
robertall 16b448da57 [MDL-8407] Don't offer the semicolon in the CSV delimiter selection menu. 2008-05-31 15:03:34 +00:00
iarenaza 8278b5164b MDL-4248 Fix error when updating user profiles and any of these fields is empty
According to http://es2.php.net/manual/en/function.ldap-modify.php#43216 we
need to specify an array() value to delete an attribute's value, instead of an
empty string.

Merged from MOODLE_18_STABLE
2008-05-31 14:55:56 +00:00
iarenaza 9fa80523a8 MDL-4207 Don't overwrite modified user profile values with empty LDAP values when 'unlocked if empty' is set
If user profile values are locked to LDAP, then LDAP should provide those
values.

But the purpose of the setting 'unlocked if empty' is to allow the user to fill
in a value for the selected field _if LDAP is giving nothing_ for this field.
Thus it makaes sense to let this value stand in until LDAP is giving a value
for this field.

Merged from MOODLE_18_STABLE
2008-05-31 13:26:01 +00:00
robertall 7960121a2c [MDL-14334] Export fields in preset.xml in the order as shown in the Fields tab. 2008-05-31 09:48:35 +00:00
moodlerobot 8b0d2ceeb0 Updated the 19 build version to 20080531 2008-05-31 02:02:25 +00:00
robertall 2852740b2e [MDL-8407] Last obligate commit to support exporting records of a database activity as a CSV, XLS, or ODS file. 2008-05-31 00:24:23 +00:00
robertall 7ce1f36198 [MDL-8407] Add two new files that contain the core CSV/XLS/ODS export code. 2008-05-30 22:17:31 +00:00
robertall d7652a4e1f [MDL-8407] Replace four language strings that will be used by 'mod/data/export_form.php' to be committed later. 2008-05-30 20:57:22 +00:00
robertall 2b9028dcd3 [MDL-14771] Replace direct use of function number_format() by format_float(). Some whitespace cleaned up has been made, too. 2008-05-30 16:10:42 +00:00
jamiesensei b536544e34 MDL-15047 "Quiz overview report download is broken - patch" fixed. 2008-05-30 12:22:20 +00:00
robertall 8da9517d60 [MDL-8407] Replace one language string that will be used by 'mod/data/export_form.php' to be committed later. 2008-05-30 10:19:11 +00:00
moodler 1fb0590508 MDL-15053 Fix RTL CSS typo (forum indenting and nav menu now work correctly) 2008-05-30 03:21:45 +00:00
moodlerobot 966230a681 Updated the 19 build version to 20080530 2008-05-30 02:03:37 +00:00
robertall 22cceb0cc9 [MDL-8407] Add new function text_export_supported() or export_text_value() to those "mod/data/field/*/field.class.php" files which need them. The existing code formatting has been cleaned up, too. 2008-05-30 01:34:41 +00:00
robertall 775a5f4020 [MDL-14771] Backend code to allow a "number" field to be displayed with a specified number of decimal digits. 2008-05-29 19:12:37 +00:00
mudrd8mz f685affe23 MDL-15036 Did not work with PostgreSQL 2008-05-29 17:25:30 +00:00
jamiesensei 49814438b9 MDL-15011 "grading report : allow user to select to grade next 10 ungraded attempts" added a new link and options to the grading report page to display only the next 10 ungraded attempts to grade. Also some fixes for faulty sql for ungraded option which was not respecting the users groups selection.
Merged from HEAD
2008-05-29 14:31:30 +00:00
dongsheng 2e49d3ab21 "MDL-15037, remove "none" in html head" 2008-05-29 03:21:11 +00:00
danmarsden eb6fad813f MDL-14550 really inefficient db calls - saves almost 3x number of users in site for backup queries. merged from head. 2008-05-29 02:02:39 +00:00
moodlerobot b7e1a3cc1b Updated the 19 build version to 20080529 2008-05-29 02:02:03 +00:00
mchurch 02d72f6b8b MDL-15035 - Changed error message to more meaningful one. 2008-05-28 14:52:15 +00:00
robertall 6f45a07d85 [MDL-14442] Resolve reopened bug for importing database records as CSV by applying "MDL-14442-clean_param.patch" (see tracker). Don't use PARAM_NOTAGS anymore. 2008-05-28 13:08:11 +00:00
robertall 849f63482c [MDL-8407] Finish preparation of language strings required to allow exporting records of a database avtivity. 2008-05-28 12:04:38 +00:00
robertall 994f8253f0 [MDL-8407] [MDL-14129] First step of patch to allow exporting records of a database avtivity. Three new error messages added in Moodle 2.0 style, to be used by 'mod/data/export.php' to be commited later. They are already present in HEAD. 2008-05-28 11:21:38 +00:00
scyrma 50789c3cbc MDL-15032: add quotes to make it possible to correctly send files with names containing spaces 2008-05-28 07:43:41 +00:00
dongsheng ee557b6f4d "MDL-15031, fix order of the user fields, see tracker" 2008-05-28 07:39:52 +00:00
scyrma c9e47cd096 MDL-13792: fixing problem in the previous patch, where filename contain spaces 2008-05-28 05:15:39 +00:00
moodler bd454a0c43 Latest tags file for 1.9, reduced in size 2008-05-28 03:20:03 +00:00
jerome a3612de1c2 MDL-14698 Improve language in actions list on course participants page 2008-05-28 03:10:45 +00:00
jerome a32a358768 MDL-14765 Assignments email teachers on any submission (only if Alert teacher = Yes AND Send for making = No) 2008-05-28 02:05:25 +00:00
moodlerobot 93b9727962 Updated the 19 build version to 20080528 2008-05-28 02:01:18 +00:00
dongsheng 1a8eaca65b "MDL-14932, accessibility imporvement, see tracker" 2008-05-28 01:45:16 +00:00
dongsheng 55d89d4337 "MDL-12405, add webpage to user fields" 2008-05-28 01:36:21 +00:00
tjhunt 50f45baff1 MDL-14764 - Imported multichoice questions may have a blank answernumbering value, which results in an "ERR" prefix to all answers' text. Thanks to Nate H for the fix. 2008-05-27 13:42:28 +00:00
tjhunt 32101da4c8 MDL-14593 - delete icons in the question bank do not work. This was a regression caused by part of the fix for MDL-13982. I hvae reverted that bit for now, pending a better solution. 2008-05-27 10:35:14 +00:00
sam_marshall e7c3b7e811 MDL-15015: Choice limited answers don't work with group mode 2008-05-27 10:16:01 +00:00
robertall e31e99f8f1 [MDL-14788] Don't store empty number fields as 0 2008-05-27 07:38:42 +00:00
moodlerobot b574ec6ff1 Updated the 19 build version to 20080527 2008-05-27 02:03:43 +00:00
jamiesensei e86d81b3ca MDL-15002 "grading report : notice from quiz_num_attempt_summary about how many total attempts there are on the quiz and how many in this group would make UI clearer" added call to function and fixed centering of notice on overview and grading report by adding a clear:left to stop the centering being affected by the groups menu. 2008-05-26 14:24:51 +00:00
jamiesensei cec3911dd4 MDL-12824 "Essay type of quiz questions needs to color mark which students have been graded and which have NOT"
Fixing notices introduced by the changes for this bug in grading report when no question is selected.
2008-05-26 13:23:14 +00:00
jamiesensei 9607206c71 MDL-12824 "Essay type of quiz questions needs to color mark which students have been graded and which have NOT"
As well as highlighting graded questions with a new CSS class highlightgraded which is a yellow bg in the standard theme, have also added the option to grade all ungraded attempts for a question.
2008-05-26 12:06:19 +00:00
jamiesensei 4c3332efff MDL-15000 "Moodle url method remove_params doesn't actually remove anything" Fixed. 2008-05-26 11:47:00 +00:00
jamiesensei 89bc941b70 MDL-14988 "tables have been hardcoded with a prefix of "mdl" - causing an error." Ooops! 2008-05-26 09:01:30 +00:00
moodlerobot 5265400d88 Updated the 19 build version to 20080526 2008-05-26 02:06:59 +00:00
iarenaza c875af622e MDL-14987 Default attribute for Active Directory password expiry is missing
Backported from HEAD
2008-05-25 21:55:50 +00:00
skodak 416f2dab44 MDL-14980 missing strsurveysaved when saving; backported from HEAD 2008-05-25 14:25:06 +00:00
jamiesensei 7e8b311075 MDL-5241 "When manually grading, identity questions by their number within the quiz as well as by question name" Ooops. Accidentally introduced a bug during refactoring and reworking of UI code. I added gradeall links to the table whether or not there were attempts to grade, have fixed this now. 2008-05-25 11:46:12 +00:00
jamiesensei 3a83ce8b5d MDL-5241 "When manually grading, identity questions by their number within the quiz as well as by question name"
Also added a drop down box to select question to mark instead of the viewquestions table. The drop down box is available at the top of every page, but only if there is more than one manually gradeable question in the quiz. If there is only one question it is automatically selected for marking.

Also added a new constant QUESTION_EVENTS_GRADED during a general refactoring of UI code in grading report and some improvements to efficiency of SQL in report.
2008-05-25 11:35:29 +00:00
moodlerobot 8c6725490f Updated the 19 build version to 20080525 2008-05-25 01:57:58 +00:00
pichetp 9f13517f8f Merge from head MDL-14054 Display of correct answers in the popup window
already use for feedback and MDL-14625 Make multianswer questions more tolerant if one of the subquestions
is missing
2008-05-24 22:33:05 +00:00
robertall 0654809d51 [MDL-14816] Escape special regex characters before applying perl compatible regex substitution of field names for database activity's advanced search 2008-05-24 11:02:17 +00:00
moodlerobot acf4b962b6 Updated the 19 build version to 20080524 2008-05-24 01:59:12 +00:00
jamiesensei 3014691278 MDL-12547 "allow manual quiz grading to sort by groups" added code to select which group to grade. 2008-05-23 13:00:47 +00:00
sam_marshall 1256ee3ec5 MDL-14965: Pass-by-reference call broke forum on php5 2008-05-23 11:02:27 +00:00
sam_marshall 2a212d94a0 MDL-14965: Pass-by-reference call broke install on php5 2008-05-23 10:36:11 +00:00
sam_marshall 38147894da MDL-14965: Pass-by-reference call broke install on php5 2008-05-23 10:28:23 +00:00
dongsheng 9ff5163d78 "MDL-14706, improve the progress bar" 2008-05-23 03:55:56 +00:00
moodlerobot e6fcaefe5b Updated the 19 build version to 20080523 2008-05-23 02:02:23 +00:00
moodlerobot f68d73ac89 Automatic installer.php lang files by installer_builder (20080523) 2008-05-23 01:54:58 +00:00
whchuang beadb11ec7 Fixed typo in the help text. Changed 'the' to then and removed the extra period in bulleted list 2008-05-22 16:25:33 +00:00
wildgirl 51a21e077f MDL-14951 help file typo fix 2008-05-22 12:41:44 +00:00
thepurpleblob fd17bd94da MDL-14945
MDL-14946
Now checks properly for mod/choice:deleteresponses and mod/choice:downloadresponses
2008-05-22 10:12:13 +00:00
jamiesensei 57fb427c9b MDL-14943 "moodle_url : need way to add extra params when outputting params as hidden fields for forms" added new optional param to method hidden_params_out 2008-05-22 09:18:03 +00:00
jerome fdab35a403 MDL-11748 add "protection" to avoid Notices in the A-Z name selector 2008-05-22 02:33:56 +00:00
jerome a1a7533fbc MDL-14819 changed main table size 2008-05-22 02:25:18 +00:00
moodlerobot 30a709620f Automatic installer.php lang files by installer_builder (20080522) 2008-05-22 01:55:30 +00:00
mchurch 9d3df57259 MDL-13860 - Fixed mistyped function call to 'scorm_seq_overall'. This was preventing some SCORM navigation from continuing in our tests - but only if debugging was turned off! 2008-05-21 16:27:42 +00:00
thepurpleblob 43aff3e874 MDL-14916:
Tidy up notices
2008-05-21 12:46:00 +00:00
thepurpleblob 902fa69779 MDL-14936
Course managers admin screen shows roles in "correct" order.
2008-05-21 12:22:21 +00:00
thepurpleblob 0c4c41bd80 MDL-14832
Don't show a user name more than once. Only show them in the
most 'senior' role.
2008-05-21 12:02:08 +00:00
tjhunt b44bd7a1f2 Inconsistency between quiz attempt->id and attempt.uniqueid 2008-05-21 11:10:04 +00:00
jerome fabd02b53f MDL-14709 fix call view.pgp => view.php 2008-05-21 04:01:09 +00:00
moodlerobot 7673817cca Updated the 19 build version to 20080521 2008-05-21 02:10:13 +00:00
tjhunt ae5d6704dc MDL-14928 - Adding random questions from a category with an apostrophe in the name does not work. Stupid bloody addslashes. Roll on dmllib 2.0. 2008-05-20 17:09:37 +00:00
moodlerobot 0751b52c22 Updated the 19 build version to 20080520 2008-05-20 01:57:37 +00:00
mudrd8mz f3ab121919 MDL-13997 Links from "missing" to "compare" mode are being created using ID instead of A NAME now. Do not highlight strings translated in _local only. 2008-05-19 21:43:14 +00:00
skodak 014734bcb0 MDL-14894 html purifier updated 2008-05-19 06:23:20 +00:00
moodlerobot 2afa9de179 Updated the 19 build version to 20080519 2008-05-19 02:00:05 +00:00
stronk7 d2fc0bff85 Deleting one print_object() that shouldn't be there. 2008-05-18 23:34:50 +00:00
iarenaza 600dea12d3 MDL-14883 Password expiration check during login doesn't work after NTLM integration
As part of the NTLM integration work, we moved some login code from
login/index.php to lib/moodlelib.php (function complete_user_login()). This
broke the password expiration check code, as we moved the $userauth variable to
complete_user_login(), and we also need it in login/index.php later.

Add the missing variable and related code to get a suitable password change url.
Also remove the now inexistant $focus variable from the call to print_header().
2008-05-18 21:26:57 +00:00
moodlerobot b8ab4168cd Updated the 19 build version to 20080518 2008-05-18 01:52:58 +00:00
moodlerobot 89e162bcf9 Updated the 19 build version to 20080517 2008-05-17 01:58:46 +00:00
moodlerobot d9ab71f1b0 Automatic installer.php lang files by installer_builder (20080517) 2008-05-17 01:51:35 +00:00
jamiesensei 34ccb459a6 MDL-14844 "Quiz Report: Bar Graph doesn't displayed maximum grade" Reverting accidentally committed changes to this file which where committed as part of the fix for MDL-14844 2008-05-16 14:44:05 +00:00
jamiesensei fdc1036f0e MDL-14844 "Quiz Report: Bar Graph doesn't displayed maximum grade" Now using php ceil function to round up $bands as in some cases it could be a non integer. 2008-05-16 14:39:02 +00:00
moodler 3883481bfd MDL-14865 DOn't pass CFG to get_string 2008-05-16 07:10:36 +00:00
dongsheng b0e592a9c6 "MDL-14703, remove obsolete options" 2008-05-16 02:19:14 +00:00
dongsheng ca5d438280 "MDL-14668, fix course full in activity reports (upgrade course module version)" 2008-05-16 02:07:57 +00:00
moodlerobot 8785a88758 Updated the 19 build version to 20080516 2008-05-16 02:03:32 +00:00
stronk7 a326872b88 prevent NULL contents before field change (old servers can have this wrongly defined). MDL-14859 2008-05-15 17:02:05 +00:00
stronk7 2ecc706b25 Delete the check_defaults test from 19_STABLE. MDL-14854 2008-05-15 16:20:55 +00:00
stronk7 e0f1b13481 Deleting the check_defaults test from 19_STABLE. MDL-14854 2008-05-15 16:19:06 +00:00
tjhunt 5bd56c517c MDL-14750 - followup - make the code robust in the case their are broken questions in the DB. 2008-05-15 16:05:49 +00:00
tjhunt b209022e74 MDL-14835 - Grade not checked against valid range when manua grading 2008-05-15 16:02:15 +00:00
tjhunt d577bb8622 MDL-14857 - Clean up summary table generation code at the top of the quiz review page - This is basically a merge of improvements we made at the OU. 2008-05-15 15:32:44 +00:00
thepurpleblob 5e7fc13080 Whoops. missed a string.
+fixed a couple of grammatical oddities I noticed.
2008-05-15 15:27:21 +00:00
thepurpleblob 4f6fdcecd8 Whoops. missed a string. 2008-05-15 15:22:56 +00:00
thepurpleblob 48fadcf73b MDL-14854
Add facility to XMLDB editor to check for inconsistent field defaults.
2008-05-15 14:51:54 +00:00
thepurpleblob a0382cfbee file check_defaults.class.php was added on branch MOODLE_19_STABLE on 2008-05-15 14:51:54 +0000 2008-05-15 14:50:10 +00:00
thepurpleblob b9c474a9b3 MDL-14854
Add facility to XMLDB editor to check for inconsistent field defaults.
2008-05-15 14:44:37 +00:00
jamiesensei 01676c49a3 MDL-14852 "improve sql in overview report for fetching question grades" moved all querying for question grades into main attempts sql query. AND MDL-14200 "Add group and course averages" some fixes for functionality to display question grades averages. Grade averages are not displayed when grading method is set to Average - as this cannot be done in sql and would be expensive to do in memory. 2008-05-15 13:55:49 +00:00
jamiesensei 05289910b7 MDL-14200 "Add group and course averages" fix for bug introduced in this patch. We are now using a seperate sql command to get the feedback text as we need to get it for the average rows too. Since it is not part of the sql to fetch attempt data we can't sort on Feedback anymore so removed the option from the table. Sorting by feedbacktext is not really useful anyway, users are more likely to want to sort by grade. 2008-05-15 12:52:56 +00:00
jamiesensei 5746826364 MDL-14200 "Add group and course averages" added extra rows to the end of the table in quiz overview report also MDL-14187 "Improve tablelib - improve api and add functionality to download table contents in a variety of formats - XLS, ODS and CSV" implemented the first of my proposals for improving tablelib. Added a extra method to use keyed arrays to add a row to a table. Seems obvious that this is an improvement to tablelib and it is an addition to the API so won't affect existing code. 2008-05-15 12:25:04 +00:00
jamiesensei 316d595389 MDL-14844 "Quiz Report: Bar Graph doesn't displayed maximum grade" added perfect grade to last 'band' on graph. 2008-05-15 10:40:58 +00:00
sam_marshall fc1d395b8a MDL-14838: Corrected javadoc package names in wiki 2008-05-15 10:08:05 +00:00
moodler 879b1c04e6 POst 1.9.1 bump 2008-05-15 08:11:19 +00:00
moodler 2d92fd5eed Latest tags for 1.9.1 2008-05-15 06:43:37 +00:00
moodler f12a2ccee5 Bumping to 1.9.1 2008-05-15 06:35:11 +00:00
moodlerobot a803edf7db Updated the 19 build version to 20080515 2008-05-15 01:58:26 +00:00
robertall d80e3a0b10 MDL-14442: apply addslashes() before importing values, to allow quotes in field's values 2008-05-14 17:07:22 +00:00
stronk7 1eae64185c XHTML minor fix. MDL-14836 2008-05-14 16:42:31 +00:00
jamiesensei ac2ce35b6c MDL-14201 "Summary graph" - small improvement to robustness for sql. 2008-05-14 11:15:14 +00:00
jamiesensei 4e27090284 MDL-14822 "Quiz Report: the quiz report do not find the first attempt" needed to include quiz id in WHERE conditions. 2008-05-14 09:12:57 +00:00
dongsheng fc3992e57e "MDL-14820, escape filename, merged from mOODLE_18_STABLE" 2008-05-14 05:21:57 +00:00
dongsheng 81f7813e8b "MDL-14442, replace error() with print_error" 2008-05-14 02:47:35 +00:00
moodlerobot 941369258b Updated the 19 build version to 20080514 2008-05-14 02:03:38 +00:00
skodak c72350373c MDL-14378 When deleting course category deal with everything that depends on its context 2008-05-13 22:03:40 +00:00
skodak ade1ee0deb MDL-14378 When deleting course category deal with everything that depends on its context 2008-05-13 21:51:46 +00:00
robertall cd91db1630 MDL-14442: added error checking to update_record() and insert_record() calls 2008-05-13 15:28:37 +00:00
jamiesensei 872c8cc93f MDL-14201 Summary graph in Overview Report - needed a little more spacing between bars of graph in some cases. 2008-05-13 15:03:29 +00:00
moodler 725f4c704c Fixed RTL problem for this theme (Heading on wrong side) 2008-05-13 08:04:40 +00:00
nicolasconnault 6ec1f89e73 Updating the translate_list for YUI components. 2008-05-13 07:24:54 +00:00
moodler 498f8e8f82 MDL-14738 Roles section on course settings is now "Role renaming", with help. 2008-05-13 06:16:12 +00:00
moodler ea22498866 MDL-14811 Fixed the popup window name for HTML editor help 2008-05-13 05:35:15 +00:00
jerome 8d1c6cd682 MDL-14609 change the wording "Click here to read the Site Policy Agreement" to "Link to Site Policy Agreement" 2008-05-13 02:41:25 +00:00
moodlerobot 4f75b1b68a Updated the 19 build version to 20080513 2008-05-13 02:06:03 +00:00
stronk7 7114adb590 Avoid $_REQUEST["id"] usage. MDL-14806 2008-05-13 01:46:37 +00:00
danmarsden e41839dc50 MDL-12037 - backup does not report errors correctly in backup_module() merged from HEAD 2008-05-13 00:45:15 +00:00
stronk7 9eff824be8 Role custom names (aliases) are now preserved during backup/restore. MDL-14783 2008-05-12 23:05:33 +00:00
stronk7 58e42445d2 Restoring from courses having custom role name doesn't cause duplicate roles. MDL-14808 2008-05-12 22:53:29 +00:00
skodak 536c4f8875 MDL-14692 groupings restore logic switched - credit goes to Vitor Rocio 2008-05-12 19:56:13 +00:00
robertall 5690a10e32 MDL-14442: Import all records of a database activity that has been exported as CSV 2008-05-12 19:55:20 +00:00
skodak abe8f35a49 MDL-14692 groupings restore logic switched - credit goes to Vitor Rocio 2008-05-12 19:53:27 +00:00
stronk7 354176b5fe user preferences are not restored if user exists. MDL-12594 2008-05-12 18:00:40 +00:00
tjhunt 1fca73d04c MDL-14804 - question_list_instances is broken - It does not include the each modules lib file before doing function_exists($module->name.'_question_list_instances'). 2008-05-12 17:29:47 +00:00
tjhunt 07a7a711fa MDL-10899 - followup - need to move random questions too. 2008-05-12 15:59:03 +00:00
tjhunt 26337523fa New convinience function in accesslib: get_parent_contextid. Also, the start of some unit tests for accesslib, but only this trivial funciton, and the get_parent_contexts function it is based on. Still, it is a start. 2008-05-12 15:28:31 +00:00
skodak 21dcd628bc MDL-11719 increased size of idnumber in user table - needed for some enrolment plugins 2008-05-12 14:40:29 +00:00
skodak ed31529ce5 MDL-11719 increased size of idnumber in user table - needed for some enrolment plugins 2008-05-12 14:34:31 +00:00
skodak d3613a1235 MDL-14183 guest type role not allowed in defaultuserroleid anymore, because it was causing trouble in many places; admins must choose another role if guest role detected in this setting 2008-05-12 14:03:18 +00:00
tjhunt 247fa07654 MDL-14797 - Error when moving a course to an empty category on Postgres 2008-05-12 10:44:38 +00:00
jerome 72cecd3b85 MDL-14656 Make welcome.html XHTML compliant 2008-05-12 05:17:46 +00:00
moodlerobot 81af00fbb9 Updated the 19 build version to 20080512 2008-05-12 01:58:00 +00:00
moodlerobot f74c520b87 Automatic installer.php lang files by installer_builder (20080512) 2008-05-12 01:50:55 +00:00
stronk7 a4810441af Prevent excess of unenolments by enrol_database_sync.php. MDL-8550 2008-05-11 23:48:16 +00:00
stronk7 9c13746dab Prevent some notices and process if $CFG->emoticons is not set or empty. MDL-12414 2008-05-11 23:32:34 +00:00
moodlerobot d5d17ef33a Updated the 19 build version to 20080511 2008-05-11 01:52:51 +00:00
stronk7 1c8ec13811 Blogs preference for scheduled backup. I had this here since ages! 2008-05-10 22:05:29 +00:00
moodlerobot 0492535297 New uz installer lang 2008-05-10 02:59:26 +00:00
moodlerobot e476dc67ea file installer.php was added on branch MOODLE_19_STABLE on 2008-05-10 02:59:26 +0000 2008-05-10 02:57:14 +00:00
moodlerobot f9edb1e4e4 Updated the 19 build version to 20080510 2008-05-10 01:58:52 +00:00
diml 6a06def8a1 fixes MDL-14770, $course_id error 2008-05-09 21:50:20 +00:00
tjhunt 48b65cc309 Following the fixes for MDL-14750 and MDL-10899, do a database upgrade that fixes any bogus values in the parent or category columns of multianswer questions' subquestions. 2008-05-09 15:50:45 +00:00
tjhunt ae8701d94d MDL-14750 - Multianswer questions get broken by backup and restore becuase question->parent is not recoded properly in the database. This commit also fixes a regression introduced by the fix for MDL-5482. 2008-05-09 15:10:42 +00:00
tjhunt c31957babf MDL-10899 - There is some data associated with some questons that needs to be udpated when moving questions between categories. This commit deals with subquestions, and lays the foundation for fixing the other problem - datasets - which is files as bug 14767. 2008-05-09 15:05:38 +00:00
tjhunt b0efb18b72 Problem when editing calculated questions when installed on Postgres. 2008-05-09 15:02:25 +00:00
jamiesensei 18d7110673 Oops accidentally reverted this patch. Here it is again. "MDL-14223 "Add a column for the user's idnumber, controllable by a site-wide setting" and MDL-14224 "Add a site-wide setting to hide the user profile image from quiz reports"
The quiz overview report now respect the settings for the gradebook - whether to display idnumbers and user pictures.

Also refactored the code to build table / download content a little to reduce code duplication."
2008-05-09 13:50:24 +00:00
jamiesensei 3114a292df Merging some small differences between HEAD and the 1.9 stable branch. 2008-05-09 13:15:12 +00:00
tjhunt 86462cee30 MDL-14762 - find and update links to files in answer->feedback when moving questions between contexts. 2008-05-09 13:13:45 +00:00
jamiesensei 88a78fa926 MDL-14223 "Add a column for the user's idnumber, controllable by a site-wide setting" and MDL-14224 "Add a site-wide setting to hide the user profile image from quiz reports"
The quiz overview report now respect the settings for the gradebook - whether to display idnumbers and user pictures.

Also refactored the code to build table / download content a little to reduce code duplication.
2008-05-09 13:00:06 +00:00
jamiesensei 6c90434d03 MDL-14637 "allow activity modules to add sub menus of settings pages to admin menu" and MDL-14565 "allow quiz reports to add configuration settings to the admin tree" added a mechanism to admin/settings/plugins.php to allow modules to include a file settingstree.php instead of settings.php which will allow for more flexibility of what a module can add to the admin settings menu. 2008-05-09 06:06:29 +00:00
moodlerobot 49e6e996df Updated the 19 build version to 20080509 2008-05-09 02:00:18 +00:00
moodlerobot 7ca75c035a Automatic installer.php lang files by installer_builder (20080509) 2008-05-09 01:53:42 +00:00
danmarsden a05c7db850 MDL-14736 this doesn't need to be an error call, as the backup should still succeed - changing to use notify() instead. 2008-05-08 22:57:42 +00:00
jamiesensei bef711f560 For the overview report : MDL-14199 "Option to only show / export final grade" small improvement to UI. Include highlighted message in the form about what the current grading method is. Some changes to lang strings for overview report settings form to indicate that options affect downloaded data as well as data shown on the screen. 2008-05-08 10:10:29 +00:00
jamiesensei 50c68d01cc For the overview report : MDL-14199 "Option to only show / export final grade" small improvement to UI. Include highlighted message in the form about what the current grading method is. 2008-05-08 09:51:26 +00:00
jamiesensei 18129bbfee MDL-14198 "Make it clear which student attempt gives the final grade, if the scoring method is first, last or highest score" adding a message about the highlighting above the table. 2008-05-08 09:31:05 +00:00
jamiesensei 1a827abb0c For the overview report : MDL-14199 "Option to only show / export final grade" and MDL-14198 "Make it clear which student attempt gives the final grade, if the scoring method is first, last or highest score" Oops. Seemed to have missed out part of the patch when merging into 1.9 from HEAD. 2008-05-08 08:56:23 +00:00
jerome a85c4eefaf MDL-12300 message window does show date now 2008-05-08 03:40:47 +00:00
jerome 1d8c89c4ad MDL-14716 Install script: icon image are now displayed on the Server Checks page 2008-05-08 03:04:25 +00:00
jerome e7ee1905ff MDL-14697 Participants page OK button hidden if javascript is enabled 2008-05-08 02:42:53 +00:00
jerome 6feba15b31 MDL-12648 Undefined property: stdClass::$wwwroot on popup screen during installation 2008-05-08 02:34:38 +00:00
jerome adb2905dcc MDL-14656 Make install.php XHTML compliant 2008-05-08 02:02:36 +00:00
moodlerobot 597748ddd8 Updated the 19 build version to 20080508 2008-05-08 01:59:01 +00:00
moodlerobot 0df80ebf9c Automatic installer.php lang files by installer_builder (20080508) 2008-05-08 01:51:43 +00:00
stronk7 a8293dd818 Reverting to previous revision. MDL-14668 2008-05-07 18:27:09 +00:00
jamiesensei f39ebcea89 MDL-14734 "improve interface for deleting attempts"
* The control for deleting attempts is a drop down box with onchange javascript to submit the form, you cannot see the label to say what the drop down box does. Better to use a button. The button label is visible so you can see what it does.
* Checkboxes should be displayed when there is no attempt to delete.
* The whole column for checkboxes should be removed when no attempts are displayed ie. when showing students with no attempts.

merged from HEAD
2008-05-07 16:11:17 +00:00
jamiesensei b44c702d45 MDL-14201 "Summary graph" included a summary graph at the bottom of overview report page. Shows the distribution of grades achieved by students. If a group is selected the grades from the group are compared with the grades for all participants. 2008-05-07 14:40:57 +00:00
jamiesensei e0fb4a8743 file overviewgraph.php was added on branch MOODLE_19_STABLE on 2008-05-07 14:40:57 +0000 2008-05-07 14:38:18 +00:00
jamiesensei 839d72b06c For the overview report : MDL-14199 "Option to only show / export final grade" fixing a notice warning from the form definition
Merged from HEAD
2008-05-07 14:02:31 +00:00
tjhunt ae0561140c MDL-14727 - Do a database update to fix random questions with the wrong parent (there may be some of these floating around in people's databases becuase of MDL-5482.)
This is a backport from HEAD. Note that I have intentionally not changed version.php. There is not a spare number, and 1.9.1 is due to be released soon. It is OK for this to wait until then.
2008-05-07 13:35:53 +00:00
tjhunt bbf8fb528f MDL-14726 - rcache bit wrong in set_field 2008-05-07 13:04:39 +00:00
tjhunt d1c840e99c MDL-5482 - Backup and restore problems for match, random and truefalse question types.
All the credit goes to Paulo Matos who carefully worked out and tested this fix, and updated the patch several times over more than a year while I very slowly got around to reviewing it and checking it in.
2008-05-07 12:31:37 +00:00
skodak c8b8b71645 MDL-14724 Students cannot see discussions in forums made by teachers if timedposts enabled 2008-05-07 11:30:59 +00:00
fmarier 57d6548065 Printing ADODB error to the web server error log (MDL-14628) 2008-05-07 04:37:39 +00:00
dongsheng f1bd861709 "MDL-14668, fix course full name in activity reports, see tracker" 2008-05-07 02:58:44 +00:00
moodlerobot 84a36391d5 Updated the 19 build version to 20080507 2008-05-07 01:54:37 +00:00
jamiesensei 6131f70069 For the overview report : MDL-14199 "Option to only show / export final grade" and MDL-14198 "Make it clear which student attempt gives the final grade, if the scoring method is first, last or highest score" 2008-05-06 18:06:33 +00:00
tjhunt 7706180dbd MDL-14681 - Fix package name of question/update.php. 2008-05-06 07:34:38 +00:00
scyrma df7ef3a1a4 MDL-14654: False is a problem, zero is fine. 2008-05-06 04:59:17 +00:00
moodlerobot 0d9a6ca147 Updated the 19 build version to 20080506 2008-05-06 01:58:11 +00:00
jamiesensei beb6d00f46 For overview report - MDL-14185 "Switch to using formslib and improve the interface" and MDL-14186 "Switch to using moodle_url and eliminate the use of $SESSION global" 2008-05-05 13:18:14 +00:00
jamiesensei 9df9473d98 file overviewsettings_form.php was added on branch MOODLE_19_STABLE on 2008-05-05 13:18:14 +0000 2008-05-05 13:12:11 +00:00
thepurpleblob ae875f50eb MDL-14624:
Reverting fix. This needs proxy to have exceptions for local subnets available.
Will work on this in HEAD only
2008-05-05 08:19:50 +00:00
scyrma bdde7324d7 esthetic typo fix 2008-05-05 07:13:22 +00:00
moodlerobot 851942fb7f Updated the 19 build version to 20080505 2008-05-05 01:53:05 +00:00
stronk7 f3f11963d8 Fixing query to be cross-db. Credit goes to David Mudrak. MDL-14583 2008-05-05 00:20:32 +00:00
stronk7 187b3f885d Glossary concepts must support multilang filter (all filters, in fact).
And accesible alt texts for action buttons too. MDL-14687
2008-05-05 00:08:32 +00:00
diml bb6c0ef2cf syntax fix for MSL-14678 2008-05-04 10:48:26 +00:00
moodlerobot 284115288b Updated the 19 build version to 20080504 2008-05-04 02:03:27 +00:00
moodlerobot f50c83ff30 Automatic installer.php lang files by installer_builder (20080504) 2008-05-04 01:58:25 +00:00
moodlerobot 722e45997d New lang supported by installer: cy_utf8 2008-05-04 00:47:53 +00:00
moodlerobot 8acf33144a file installer.php was added on branch MOODLE_19_STABLE on 2008-05-04 00:47:53 +0000 2008-05-04 00:42:16 +00:00
jamiesensei 720c94fa06 MDL-14677 "should rescale the grades displayed for each question in the detailed marks view of the overview report so that all grades add up to the sum total grade" used quiz_rescale_grades function to rescale the grade properly before displaying it. Also this patch includes some general clean up and refactoring of overview report. 2008-05-03 13:43:44 +00:00
moodlerobot 877129cd0d Updated the 19 build version to 20080503 2008-05-03 01:52:19 +00:00
moodlerobot b0e8fede48 Automatic installer.php lang files by installer_builder (20080503) 2008-05-03 01:46:16 +00:00
jamiesensei aa45776dd7 MDL-14663 "link_to_popup_window displays 'Click here....' as the link text if you pass in 0 as the link text."
Also fixing the problem in link_to_popup_window function. Test for null instead of empty.
2008-05-02 16:14:11 +00:00
jamiesensei c912dab6da MDL-14666 "overview report is very inefficient when view detailed marks is selected. There are several sql queries per row." Made a new query outside the loop for adding rows. 2008-05-02 15:25:19 +00:00
jamiesensei ada7af846f MDL-14664 "sorting by question mark when viewing detailled mark in overview quiz report not working" Found that the problem ocurred when attempt.id != attempt.uniqueid as the sql was using the wrong field to join the question records.
Merged from HEAD
2008-05-02 14:23:02 +00:00
jamiesensei 833b1e0045 MDL-14663 "link_to_popup_window displays 'Click here....' as the link text if you pass in 0 as the link text."
Solved this by formatting the grade using number_format to display the grade with a number of decimal places. So for 0 we display something like 0.00 and this displays OK in link_to_popup_window.

Merged from HEAD
2008-05-02 13:29:25 +00:00
poltawski ff0b80cc36 MDL-13716 - When storing progress of scorm activity a 404 is
encountered and js failure on split. Cast to string to avoid this.

thanks to Peter Chamberlin of LJCreate
2008-05-02 10:42:53 +00:00
scyrma 22d205da7a MDL-11342: Urlencode the filepath in directory resource (merge from 1.8) 2008-05-02 08:17:27 +00:00
jerome d492819687 MDL-11382 added a link 'Profil' to the administration block 2008-05-02 05:59:16 +00:00
jerome 97aaaec647 MDL-12864 fix bad XHTML in the messaging popup 2008-05-02 05:17:16 +00:00
jerome 5e6d7b8d6b MDL-12864 fix bad XHTML in the messaging popup 2008-05-02 05:09:41 +00:00
dongsheng 443a1fee8e "MDL-14460, fix all the other get_context_instance,(use sed replace them), see tracker" 2008-05-02 04:07:27 +00:00
scyrma 303e816601 MDL-8592: Get spellchecking to work over https 2008-05-02 03:31:49 +00:00
jerome 9fc2409875 MDL-14439 IE and Opera fire the onchange when ever you move into a dropdwown list with the keyboard - this changes fix the problem. 2008-05-02 02:20:36 +00:00
jerome cbcf18e5b8 MDL-14439 Added javascript file dropdwon.js - fix IE/Opera behavior. They do not fire dropdwon menu onChange automatically anymore. 2008-05-02 02:10:29 +00:00
moodlerobot 931e9d3ec4 Updated the 19 build version to 20080502 2008-05-02 01:53:58 +00:00
scyrma 94b9899627 MDL-13424: Tags are automatically cleaned on cron run. 2008-05-02 01:12:49 +00:00
skodak 66c3b5f155 MDL-14647 fix legacy add_teacher() when approving new course; backported from HEAD 2008-05-01 22:15:44 +00:00
skodak ba3381be5d MDL-14451 removing old upgrade code from HEAD and marking upgrade line in 19 stable 2008-05-01 20:37:22 +00:00
thepurpleblob 71588440e9 Whoops... left some testing code in. 2008-05-01 12:20:39 +00:00
thepurpleblob 0393331c13 MDL-14406
Ensure 'length' field for description type questions is 0 and that
default for all questions is 0
2008-05-01 12:08:04 +00:00
dongsheng 5f3d54fc4e "MDL-7362, allow_call_time_pass_reference setting may cause bug, see tracker" 2008-05-01 08:31:20 +00:00
scyrma 7c68f9da21 MDL-3381: keeping environment.xml in sync (from 1.8) 2008-05-01 08:10:08 +00:00
jamiesensei 1ab2605768 MDL-13678 "Change default number of rows per page on quiz reports" Made a new constant to say how many attempts / questions to list per page by default. 2008-05-01 07:40:54 +00:00
jamiesensei 521601d0ce file reportlib.php was added on branch MOODLE_19_STABLE on 2008-05-01 07:40:55 +0000 2008-05-01 07:08:29 +00:00
dongsheng d4680e253a "MDL-10944, fix undefined property in chatd.php" 2008-05-01 06:53:41 +00:00
scyrma 320e91e2f8 MDL-13424 Fixes suggested by Eloy, in tag_cleanup. 2008-05-01 06:15:09 +00:00
dongsheng 0148e8be18 "MDL-14460, fix all get_context_instance" 2008-05-01 06:02:27 +00:00
scyrma b2057b4917 code beautification 2008-05-01 05:48:42 +00:00
moodler 87dc962b44 MDL-14630 Fixed the exclusion of mentees block from the "my" page 2008-05-01 05:37:56 +00:00
scyrma 20875a12e0 MDL-14590 - Spellchecker now working in the messaging system too 2008-05-01 05:16:26 +00:00
moodlerobot f8ef9c04db Updated the 19 build version to 20080501 2008-05-01 01:58:09 +00:00
moodlerobot ea9b4c707e Automatic installer.php lang files by installer_builder (20080501) 2008-05-01 01:51:55 +00:00
thepurpleblob 9c3c1ab56d MDL-14406
MNET can now establish a peer through a proxy
2008-04-30 14:34:23 +00:00
skodak 2c9a36d79c MDL-14621 indicate missing modules on modules admin page; backported from HEAD 2008-04-30 13:08:46 +00:00
skodak 967e19d6a0 MDL-14621 fix warning when module code missing and editing course; backported from HEAD 2008-04-30 12:40:25 +00:00
skodak 4a440d90b6 MDL-14621 modinfo ignores missing modules now properly; backported from HEAD 2008-04-30 12:34:33 +00:00
skodak fcfd2e8a45 MDL-14621 fixed warning when module code missing; backported from HEAD 2008-04-30 12:25:52 +00:00
poltawski 86ad0ba459 MDL-12614 - Bad regular expression matching was causing syntactically
invalid js when returning to previously attempted SCORM package.

Credit to Peter Chamberlin of ljcreate.com
2008-04-30 11:57:33 +00:00
scyrma 3ceeb19d3c MDL-14569 - Don't count related tags for the tag cloud formatting and count display 2008-04-30 08:50:58 +00:00
jamiesensei 0dd41b1891 MDL-7772 "Quiz results overview: not all combinations of Show attempts with ... & Groups settings work properly"
This patch is based on Ann Adamcik's latest code, thanks Ann. Made a couple of small changes. This is equivalent to the two patches in HEAD for the same bug.
2008-04-30 08:21:01 +00:00
scyrma 5111517c8a MDL-13424 and MDL-14544: New function tag_cleanup removes unused un-official tags, or unlinked tags. Not yet called automatically. 2008-04-30 07:34:28 +00:00
scyrma 876e35b24c Fix tag documentation and add a missing 'return true'. 2008-04-30 06:35:57 +00:00
dongsheng 79fb7ea7d3 "MDL-14460,fix get_context_instance" 2008-04-30 04:45:22 +00:00
dongsheng a5d3cae9d3 "MDL-14538, remove duplicated settings, see tracker" 2008-04-30 03:53:49 +00:00
dongsheng 4955e30c0b "MDL-14465, add a setfocus() function, see tracker, thanks, Ralf" 2008-04-30 03:43:40 +00:00
moodlerobot d75724cb1a Updated the 19 build version to 20080430 2008-04-30 01:55:05 +00:00
moodlerobot aa51ed515c Automatic installer.php lang files by installer_builder (20080430) 2008-04-30 01:48:33 +00:00
dongsheng d3397f0604 "MDL-14262, fix optional_param, and fix link in restorelib.php" 2008-04-30 01:45:45 +00:00
dongsheng 3f5636b56e "MDL-14262, fix wrong logged link, see tracker, merged from MOODLE_18_STABLE" 2008-04-30 01:13:40 +00:00
moodler ed13c57b3b Latest tags file 2008-04-29 06:51:25 +00:00
moodler 94ad221b27 MDL-13261 get_context_users_bycap and get_context_users_byrole were draft and should never have been included in accesslib in 1.9 STABLE. To avoid confusion I've removed these functions. They weren't being used by any core code ... I only hope no-one out there is using them for Moodle 1.9 modules. :-( :-( 2008-04-29 06:48:56 +00:00
scyrma 785c3ff9ac MDL-13985 - Fix previous fix to display a warning when whitespace is used in popup window name 2008-04-29 05:07:57 +00:00
scyrma d8e091627c MDL-13985 - Prevent popup windows from having a space in their name. 2008-04-29 04:04:32 +00:00
scyrma 4d6e43a1dd MDL-14588 - Prevent error message when calling function with null variable 2008-04-29 03:28:25 +00:00
scyrma fcbf9d8a95 Converted file to utf-8 2008-04-29 02:57:24 +00:00
jerome 2467402841 MDL-13815 - Course summary text is optional and empty by default now 2008-04-29 02:20:58 +00:00
moodlerobot 3c724071a5 Updated the 19 build version to 20080429 2008-04-29 01:56:19 +00:00
moodlerobot 6ad59438e1 Automatic installer.php lang files by installer_builder (20080429) 2008-04-29 01:49:53 +00:00
dongsheng cc5d09ac00 MDL-14303, add missing cmidnumber parameter. see tracker 2008-04-29 01:38:21 +00:00
stronk7 d10e856d88 Fixed old-glorious typo in wiki backup. MDL-10811 ; merged from 18_STABLE 2008-04-28 23:08:57 +00:00
poltawski 77666b4acf MDL-12614 - Bad regular expression matching was causing syntactically
invalid js when returning to previously attempted SCORM package.

Credit to Peter Chamberlin of ljcreate.com
2008-04-28 16:51:41 +00:00
diml 0df6befcd9 Contributes to MDL12324 - fixes search failure when using extended chars (non ascii) in query strings 2008-04-28 16:28:06 +00:00
scyrma 42f6931f27 MDL-14569 - Remove linked tags when deleting users. 2008-04-28 08:33:48 +00:00
scyrma f8b1eb504e MDL-14150 - Make tag:edit and tag:manage more distinct - related tags and description are now editing, renaming is managing. 2008-04-28 08:22:36 +00:00
moodlerobot 879761a29f Updated the 19 build version to 20080428 2008-04-28 01:53:12 +00:00
skodak 737498e986 MDL-14564 pg null trouble fixed by David Mudrak; merged from MOODLE_19_STABLE 2008-04-27 22:40:21 +00:00
dongsheng 9bdb39c797 MDL-14262, fix incorrect link, see tracker 2008-04-27 17:01:06 +00:00
stronk7 862d935434 glossary->id for block is now properly recoded by restore. MDL-4934 ; merged from 18_STABLE 2008-04-27 01:55:49 +00:00
moodlerobot 8ab602a484 Updated the 19 build version to 20080427 2008-04-27 01:48:54 +00:00
stronk7 39ce906768 Prevent admin tree to be showed for non-admins in 'my' page. MDL-14225 2008-04-27 00:30:17 +00:00
stronk7 6b1688b15e Implemented more accurate way to retrieve trigger names. MDL-14567 2008-04-26 22:45:04 +00:00
skodak ee90562005 MDL-14055 auth sync constants, needed for sync cleanup - backporting from HEAD 2008-04-26 13:47:30 +00:00
dongsheng e8da9c41f0 MDL-14460, fix get_context_instance, see tracker 2008-04-26 11:07:15 +00:00
moodlerobot a3af58c6f1 Updated the 19 build version to 20080426 2008-04-26 01:54:38 +00:00
stronk7 5eeebe5b48 New setting in require_login() to avoid certain scripts (file.php)
to mess $SESSION->wantsurl. MDL-14495
2008-04-25 18:52:47 +00:00
skodak 2439bedff8 MDL-14484 rerun asearchtemplate upgrade - there were reported problems on some sites 2008-04-25 15:18:54 +00:00
skodak 06f5909a8d MDL-14557 PostgreSQL+empty integer problem: user/editadvanced_form.php - credit goes to David Mudrak; merged from MOODLE_18_STABLE 2008-04-25 14:43:42 +00:00
skodak ae4e154ed9 MDL-14556 reset coursepage state after switchrole 2008-04-25 14:09:07 +00:00
skodak 8e6f40259c MDL-14475 initialised $hideshow 2008-04-25 14:01:23 +00:00
skodak 475419e555 MDL-14543 fixed broken deleting from auth sync 2008-04-25 13:20:28 +00:00
skodak 6547c735ca removing bogus //1 2008-04-25 12:24:52 +00:00
skodak d1e867d052 MDL-13401 fixed REQUEST_URI test 2008-04-25 12:23:21 +00:00
skodak daa4c6c53a MDL-14473 added missing $files param 2008-04-25 12:20:02 +00:00
moodlerobot 7632e30c4f Updated the 19 build version to 20080425 2008-04-25 01:58:27 +00:00
moodlerobot 400781874e Automatic installer.php lang files by installer_builder (20080425) 2008-04-25 01:50:32 +00:00
stronk7 be50571e93 Fixed typo causing restore to existing courses not to work. MDL-14549 2008-04-24 21:47:40 +00:00
stronk7 d25fdffd6e Prevent wrong data->notifications to be stored. Default to 0 if empty. MDL-14540 2008-04-24 17:10:03 +00:00
stronk7 6768c07ed1 Fix tag links in tag clouds. MDL-14547 2008-04-24 16:44:43 +00:00
dongsheng 4d4dc7bf1d MDL-14460, fix get_context_instance 2008-04-24 08:35:47 +00:00
scyrma 5159864bc6 MDL-3381 - Remove all remaining core calls to ctype_* functions in 1.9, and make ctype required for 2.0. 2008-04-24 03:01:30 +00:00
moodlerobot 3a13bda089 Updated the 19 build version to 20080424 2008-04-24 01:58:22 +00:00
sam_marshall e246e032da MDL-14497 Fixed several minor bugs in navmenu() 2008-04-23 17:07:44 +00:00
tjhunt fb0454d62c Eliminate direct references to $_REQUEST and $_POST in the quiz code.
Also, when you edit the quiz, and therefore any preview attempts are deleted automatically, make sure the attempts are deleted properly by calling quiz_delete_attempt on each one, rathern than leaving orphaned junk in the database.
2008-04-23 14:49:24 +00:00
tjhunt 49676c0186 Improve PHPdocs on a function. 2008-04-23 14:30:47 +00:00
tjhunt 029f59fbd1 MDL-13982 - Performance problem when deleting questions from large question banks. Thanks to Michael Spall for this fix. Merged from MOODLE_18_STABLE.
At the same time, remove direct references to $_REQUEST and $_POST in this code.
2008-04-23 13:45:40 +00:00
tjhunt da7f4c196a Tidy up whitespace. 2008-04-23 10:54:57 +00:00
thepurpleblob a2e867b092 MDL-14461:
The user must be (effectively) be logged in to use this function.
Adding the logged in check means they will be asked if they are not (like
everywhere else)
2008-04-23 08:45:29 +00:00
dongsheng 82b04884f3 MDL-14460, fix get_context_instance, see tracker 2008-04-23 08:11:31 +00:00
moodler 117e675602 MDL-14483 Use the recipient language to send email 2008-04-23 02:24:15 +00:00
dongsheng 055f9be516 MDL-14053, include custom profile fields when export user info, see tracker 2008-04-23 02:03:59 +00:00
moodlerobot 6877f88f86 Updated the 19 build version to 20080423 2008-04-23 01:58:40 +00:00
tjhunt 1dfa763a2f MDL-14352 - General feedback for descriptions not showing up on the review page, as it should. 2008-04-22 16:16:58 +00:00
tjhunt 54ee7246cc MDL-14363 - Fix a broken redirect from mod/quiz/ attempt.php to edit.php when the quiz has not questions.
Also, when the quiz has no questions, disable the Info, Reports and Preview tabs, which, in this case, just redirect back to the Edit tab anyway.

Finally, change a redirect in quiz view.php, which used a relative URL, to a full url starting $CFG->wwwroot.
2008-04-22 15:19:45 +00:00
tjhunt 89f9450834 MDL-14467 - qtype_multichoice help file in the wrong place. 2008-04-22 14:34:18 +00:00
tjhunt afe83312b2 MDL-14407 - supplimental - Deal with another way the category id can be in the URL after it is deleted. 2008-04-22 14:06:57 +00:00
skodak a2067bf38d MDL-14424 approve icon now bigger + css class added 2008-04-22 13:34:40 +00:00
skodak 0d4542e24b MDL-8188 fixed missing global $CFG 2008-04-22 13:03:37 +00:00
skodak a5c9d2e444 MDL-14137 adding minor fix for quotes in fieldname 2008-04-22 07:30:52 +00:00
dongsheng 8ea4e65638 MDL-14460, fix get_context_instance, see tracker 2008-04-22 06:16:17 +00:00
dongsheng a6bc0fd2b6 MDL-14460, fix get_context_instance, see tracker 2008-04-22 06:08:47 +00:00
moodler 98d2cd7f7a MDL-8566 My addition, I fixed the navigation on the Permalink pages to show more information
was:   Site > Blogs

now:   Site > User > Blogs > Full blog title
2008-04-22 05:55:34 +00:00
dongsheng 3ff91874a8 MDL-8566, replace permlink with permalink 2008-04-22 05:16:10 +00:00
dongsheng 84fe017f67 MDL-8566, add lang string to MOODLE_19_STABLE, see tracker 2008-04-22 04:34:24 +00:00
moodlerobot 18877525ef Updated the 19 build version to 20080422 2008-04-22 02:01:40 +00:00
stronk7 94fc397cbb Fixed typo, grrr. 2008-04-21 18:09:15 +00:00
stronk7 1b8a70860d Replace custom casting code by proper sql_cast_char2int() core function. MDL-12893 2008-04-21 18:06:59 +00:00
skodak 4aeccc8bf8 MDL-14458 - optgroups Fields and Other in search menu; removed unused search code, html labels, added option to sort by time modified 2008-04-21 14:15:30 +00:00
skodak 12999c3311 MDL-13025 added data intro text formatting without cleaning - manage activity cap already marked with XSS risk 2008-04-21 13:25:04 +00:00
pichetp ebd585bb42 MDL-14435 Removing capitals merging from head 2008-04-21 02:50:43 +00:00
moodlerobot 0ef7420b0e Updated the 19 build version to 20080421 2008-04-21 01:50:39 +00:00
stronk7 fe9384833b Replace low level $db->Concat() calls to Moodle sql_concat() cross-db alternative. MDL-13823 2008-04-20 22:13:44 +00:00
stronk7 5d75612163 Modify sql_concat() to support all elements being numeric. MDL-13823 2008-04-20 21:18:34 +00:00
skodak 1a19384b18 MDL-8474 stats upgrade now uses editing teachers only 2008-04-20 19:54:28 +00:00
skodak a0b8e7637d MDL-14446 fixed inverted read flag in threaded view 2008-04-20 19:37:28 +00:00
skodak a7285f63b4 MDL-14336 defaultsort now stored as field name in preset.xml 2008-04-20 19:21:13 +00:00
skodak 3d3f891d44 MDL-12861 overriding of database settings now optional when using presets 2008-04-20 10:08:04 +00:00
skodak bccb50caab MDL-13188 asearchtemplate.htlm in presets implemented 2008-04-20 09:28:53 +00:00
stronk7 18fe8f7b9c Restore of blogs in SITE page added. MDL-9089 2008-04-20 01:58:40 +00:00
moodlerobot a9c5278c27 Updated the 19 build version to 20080420 2008-04-20 01:48:11 +00:00
stronk7 8312d945fb Added string to restore blogs. MDL-9089 2008-04-20 01:15:54 +00:00
stronk7 aa80e16b12 Adding some missing course info when backuping blogs. MDL-9089 2008-04-19 22:40:30 +00:00
skodak 38ffb6c139 MDL-14417 fixed sql for menu adv search - multimenu already fixed today 2008-04-19 21:20:56 +00:00
skodak 91cf92265e MDL-14018 fixed ##more## icon regression, thanks Robert Allerstorfer for all the testing! 2008-04-19 21:00:26 +00:00
skodak 8713ac5fd3 MDL-14424 - approval icon is bigger again, it is possible to sort by Approved status now 2008-04-19 20:46:56 +00:00
skodak 9e5ef14437 MDL-14018 fixed ugly query - thanks Eloy 2008-04-19 18:02:39 +00:00
skodak cd42b2be8d MDL-14018 fixed regression, proper LIKE meta quoting, fix displaying when options changed 2008-04-19 16:46:50 +00:00
skodak 631c9f5c49 MDL-9907 xhtml strict 2008-04-19 16:43:21 +00:00
skodak 6ba41390ef MDL-12089 several search related problems fixed in data module 2008-04-19 15:31:16 +00:00
moodler 8118207b6f MDL-12742 Deleted language files from the block, copied english one to correct location in core lang pack. 2008-04-19 13:25:39 +00:00
skodak f021a9119f MDL-13936 forum reply refactoring and bugfixing - the forum_user_can_post() did not have discussion parameter which was a problem because the login depends on discussion group - there was a hack in discussion.php and view.php working around this, but it was not present in cron; sorry for the change of API, but it was required 2008-04-19 10:47:42 +00:00
skodak 857ec70622 MDL-14428 fixed tag cron warning 2008-04-19 09:51:53 +00:00
moodlerobot 52bb51f204 Updated the 19 build version to 20080419 2008-04-19 01:50:22 +00:00
skodak f542e41fdd MDL-13936 improved new lang string 2008-04-18 20:18:18 +00:00
skodak 6fd207292f MDL-13936 indicate that user needs group membership to add new discussion, but only if having the capability to add new discussion - previously the message was incorrectly shown even when not having the cap in separate mode, visible mode needs this message too after previous commit; new lang string added in case user selects all participants in group selector and does not have accessallgroups - the existing group membership string could not be reused 2008-04-18 19:28:49 +00:00
skodak f7e75ede04 MDL-13936 users without accessallgroups can post start discussions only in own groups if groupmode enabled in forum (either separate or visible), this was the way it worked in Moodle <1.8 2008-04-18 18:51:01 +00:00
stronk7 5d64f72c23 MDL-14072 - Prevent NULLs, empties and numbers to be processed by:
- backup_encode_absolute_links() at backup
- restore_decode_absolute_links() at restore
2008-04-18 16:55:29 +00:00
skodak 0e36e50b0b MDL-12895 frontpage participants page improvements 2008-04-18 08:28:58 +00:00
scyrma 0eca93e5be MDL-14104: generate_password() now respects password policy 2008-04-18 07:55:38 +00:00
skodak 9b231c86ec MDL-11511 adding accidentaly removed replacement during last revert 2008-04-18 07:43:18 +00:00
moodler 6c089f4a28 MDL-11323
Cleaned up the display of role aliases by extending get_assignable_roles
and get_overrideable_roles to use role_fix_names better.

The lists of assignable and overrideable are now correctly derived from the
actual context (eg activity or module) while the aliases are derived from course
that is the parent.

Some other cleanups along the way.
2008-04-18 06:18:25 +00:00
moodler fe01ad8ec0 MDL-11142 Roles upgrade was losing timestart and timeend for teachers and students (Merged from 1.7) 2008-04-18 03:31:54 +00:00
dongsheng f6f3408324 MDL-12992, keep roles tabs consistent, see tracker 2008-04-18 03:10:31 +00:00
dongsheng d72e36cce7 MDL-14137, use addslash in get_settings() and remove the second parameter of htmlspecialchars() 2008-04-18 02:11:42 +00:00
moodlerobot bcdc90679d Updated the 19 build version to 20080418 2008-04-18 01:54:30 +00:00
diml ff3af6786d Fixes MDL-14377 UTF8 misconversions in search results 2008-04-17 20:49:18 +00:00
diml 504c188064 Fixes MDL-14325 2008-04-17 20:48:16 +00:00
skodak 6c9af98401 MDL-14052 fixed course display in upcoming events block - credit goes to Greg Rodenhiser 2008-04-17 19:19:11 +00:00
diml 183eb24d8d Fixes all registered unstabilities in MDL-14325, MDL-14328 and closes those buglines.
default values for global search parameters,
command quoting issues status choosed untill better resolution,
typo error in error message
2008-04-17 19:19:04 +00:00
tjhunt be80fc7e66 MDL-14407
1. After deleting a question category, it redirects you back to a question bank URL. In some circumstances, this URL will contain a cat=nnn parameter of the category you have just deleted, which naturally leads to an error. This parameter needs to be removed.

2. When there are questions in the category that need to be moved, the category id we are moving to is not exploded on ','.
2008-04-17 15:59:47 +00:00
wildgirl bff131f52e MDL-14040 help file typo fixes reported by Ray Lawrence 2008-04-17 14:59:30 +00:00
wildgirl 00c573bbce MDL-14040 help file typo fixes reported by Ray Lawrence 2008-04-17 14:49:28 +00:00
wildgirl 257ae54b65 help file typo re-fix, thanks to Ralf Hilgenstock to pointing out the mistake 2008-04-17 13:30:54 +00:00
tjhunt bd5ec8cef4 MDL-8682 - yet another followup. The javascript still was not quite right. you cannot rely on the case of element.nodeName. 2008-04-17 13:07:34 +00:00
wildgirl 8f476f51bf help file typo fix 2008-04-17 13:07:28 +00:00
wildgirl 281295d2b9 MDL-14388 help file rewording 2008-04-17 12:20:44 +00:00
dongsheng 1987fb0808 MDL-14320, remove useless icon in edit entry page 2008-04-17 09:41:56 +00:00
moodler 0a8b14d0d7 MDL-14399 Applied RTL patches from Hebrew team without modification. They look OK to me and won't affect LTR as far as I can tell. 2008-04-17 08:28:24 +00:00
dongsheng fc0a3140db MDL-11511, use a new version to avoid potential problems. 2008-04-17 08:09:35 +00:00
scyrma f0a6326181 MDL-12860 - do input sanitization early, so as to not mess up display later 2008-04-17 08:01:40 +00:00
dongsheng 2004936d44 MDL-11511, revert changes, see tracker 2008-04-17 07:51:39 +00:00
dongsheng 850d5da191 MDL-11511, revert changes, see tracker 2008-04-17 07:38:26 +00:00
dongsheng 4b6c7b206b MDL-11511, revert the changes, see tracker 2008-04-17 07:34:57 +00:00
moodler 08b8a69610 MDL-12279 RTL fix for category number alignment 2008-04-17 07:18:27 +00:00
dongsheng 69ef0b666c MDL-11511, make logic more clear 2008-04-17 05:57:37 +00:00
dongsheng d77d361e3d MDL-11511, two new caps are introduced, see tracker 2008-04-17 05:39:47 +00:00
dongsheng c4abdd2816 MDL-14137, donot filter single and double quote anymore, see tracker 2008-04-17 02:58:03 +00:00
dongsheng 96a8c8e639 MDL-8188, add approve.gif to chameleon theme 2008-04-17 02:26:41 +00:00
moodlerobot 9e7f36a948 Updated the 19 build version to 20080417 2008-04-17 01:52:25 +00:00
moodlerobot 527f62f6af Automatic installer.php lang files by installer_builder (20080417) 2008-04-17 01:45:47 +00:00
skodak 35ef2c8919 MDL-9907 searching ilike pg compatibility fix 2008-04-16 18:56:31 +00:00
tjhunt e24aa3d6ba MDL-14392 - Notice from description question types when you don't have edit permission 2008-04-16 16:56:34 +00:00
skodak afece01121 MDL-14018 fixed searching when date order selected 2008-04-16 15:08:33 +00:00
skodak 38d6fc273a MDL-14018 fixed searching when date order selected 2008-04-16 15:07:12 +00:00
skodak f271e4112e MDL-14390 fixed saving of multiselect field type 2008-04-16 14:50:58 +00:00
tjhunt b63b26f1aa MDL-14391 - Timestart shown twice in quiz overview report, instead of timefinish 2008-04-16 14:39:39 +00:00
skodak ae65fba742 MDL-14389 fixed adv search flag storage 2008-04-16 14:08:34 +00:00
skodak 33096a7bb9 MDL-9907 searching/sorting by author name fixed when paging, MDL-14389 more transition fixes 2008-04-16 13:52:32 +00:00
skodak 05cdffa828 MDL-9907 searching/sorting by author name fixed when paging, MDL-14389 more transition fixes 2008-04-16 13:52:32 +00:00
skodak 49a60852e8 MDL-14389 fixed transition from advanced to simple view if multiple fields used 2008-04-16 13:31:00 +00:00
skodak 309b6caaa5 MDL-14018 advanced search for multiselect menu improved 2008-04-16 13:19:46 +00:00
skodak bf44458bd2 MDL-14388 shuffling the field/butting lists a bit 2008-04-16 12:29:21 +00:00
skodak 14e404f960 MDL-9758 backported timeadded and timemodified + improved lang strings 2008-04-16 12:03:28 +00:00
skodak 24ca59f03e MDL-9907 searching/sorting by author name 2008-04-16 11:44:52 +00:00
dongsheng 7c589aa751 MDL-8566, add permlink, see tracker 2008-04-16 09:04:45 +00:00
dongsheng 2904df1380 MDL-14249, to keep ods lib exactly the same with excellib, some dummy function added 2008-04-16 07:05:06 +00:00
scyrma 56f2d43291 MDL-3381 - changing call to ctype_space to remove dependency on ctype 2008-04-16 03:35:37 +00:00
dongsheng c4fcff1d13 MDL-14317, fix parameter type, see tracker, thanks Stephen 2008-04-16 03:23:09 +00:00
dongsheng 8c8660ae5c MDL-14320, improve coding style, thanks Petr 2008-04-16 02:43:04 +00:00
dongsheng 612bbdefad MDL-14367, change alt text, see tracker 2008-04-16 02:35:54 +00:00
dongsheng 4c404aa348 MDL14312, remove align attribute in table tag 2008-04-16 02:29:55 +00:00
moodlerobot eefe474a0d Updated the 19 build version to 20080416 2008-04-16 01:50:00 +00:00
skodak 075d93f958 MDL-14113 fixed forum_count_user_posts() regressions - thanks Dan! 2008-04-15 21:56:14 +00:00
stronk7 e8ee249670 Finally fixed version of lastaccess hadling.
Moved from add_to_log() to require_login(). MDL-14272
2008-04-15 21:42:50 +00:00
stronk7 afd99f1f07 Correct usage of debugging. MDL-11893 2008-04-15 21:31:10 +00:00
stronk7 7d23ab127f Fixing logic + minor formatting of email. MDL-11893 2008-04-15 20:01:27 +00:00
dongsheng 2df5a942f3 MDL-14311, fix minor html errors 2008-04-15 05:53:51 +00:00
dongsheng 6fdfabaf42 MDL-11893, append failed SQL to email, see tracker 2008-04-15 05:36:25 +00:00
dongsheng 2dd4271bcb MDL-14310, fix minor bug in html, see tracker 2008-04-15 04:21:14 +00:00
dongsheng d64cc008d2 MDL-8188, fix approve.gif icon 2008-04-15 03:53:06 +00:00
dongsheng 6fa83c2add MDL-8188, moved from mod/glossary/check.gif 2008-04-15 03:43:50 +00:00
dongsheng 97da7bed2a MDL-8188, move check.gif to pix/i/approve.gif, see tracker 2008-04-15 03:42:36 +00:00
moodler 364a7f4f98 MDL-4485 Made sure views of the online assignment are logged like the others 2008-04-15 03:40:09 +00:00
dongsheng 03506f373f file approve.gif was added on branch MOODLE_19_STABLE on 2008-04-15 03:43:50 +0000 2008-04-15 03:33:05 +00:00
dongsheng a3691d7ef1 MDL-14314, use css style to close auto-wrap 2008-04-15 03:12:30 +00:00
dongsheng 3be617a985 MDL-14320, remove icon when no file in entry, Thanks Robert 2008-04-15 02:37:29 +00:00
moodlerobot f0c8025bbc Updated the 19 build version to 20080415 2008-04-15 01:58:16 +00:00
stronk7 e5c375e29c Cleanup of phpdoc + some clarifications when specifying colors. MDL-14354 2008-04-14 22:40:55 +00:00
skodak 9032900612 MDL-13936 fixed group handling when adding new discussions 2008-04-14 19:04:00 +00:00
skodak a745c8abee MDL-14113 when adding/editing posts the target group is now visible + fixed permission check when replying (removed obsolete mygroup function) 2008-04-14 18:33:46 +00:00
skodak db4095092f MDL-14113 digest finished message now in system lang + eliminated one has_capability call 2008-04-14 17:11:24 +00:00
skodak 1de384c32d MDL-13004 post ratings in user profile page 2008-04-14 12:03:58 +00:00
skodak 15bf342ec7 MDL-14113 fixed replies regression 2008-04-14 11:32:09 +00:00
skodak db65c8ca8f MDL-14270 separate groups mode and single discussion forums == normal students can not reply 2008-04-14 09:38:04 +00:00
skodak e21607e203 MDL-14270 workaround for FF alignment issue 2008-04-14 09:30:46 +00:00
skodak aeb85c2797 MDL-14270 mode selector alignment for single discussion forums 2008-04-14 09:22:59 +00:00
skodak 354c67d262 MDL-14270 fixed regressions - fatal error in forum code 2008-04-14 08:59:50 +00:00
skodak 10f40eec25 MDL-14349 adv forum search accessibility 2008-04-14 08:50:58 +00:00
skodak 14b2880f3b MDL-12505 general advanced search cleanup + added capability test to recent activity 2008-04-14 08:04:49 +00:00
skodak be22faa965 MDL-14113 fixed notices when tracking disabled 2008-04-14 07:31:24 +00:00
moodlerobot 16f75b4eba Updated the 19 build version to 20080414 2008-04-14 01:56:13 +00:00
moodlerobot 44ad54efea Automatic installer.php lang files by installer_builder (20080414) 2008-04-14 01:50:02 +00:00
stronk7 0cb6604857 Restore to the frontpage should work now (interface). MDL-12760 2008-04-13 23:53:38 +00:00
stronk7 ac1358665d Minor fixes in the restore form when restoring from within SITEID. 2008-04-13 23:26:55 +00:00
skodak add8d12caa MDL-14346 database preset throws Fatal error 2008-04-13 23:00:38 +00:00
skodak ee57cdb57d MDL-14345 undefined contexts and sesskey in new preset_class.php 2008-04-13 22:57:09 +00:00
skodak 1bdbe3964e MDL-14342 fixed wrong quotes 2008-04-13 22:17:08 +00:00
skodak abbf392ed1 MDL-14343 fixed groups_get_user_groups() when groupings disabled 2008-04-13 21:58:31 +00:00
skodak 474ade7a7d MDL-14113 patch for multiple issues - see tracker for subtasks 2008-04-13 19:10:35 +00:00
stronk7 21de682b37 Fixed missing string on restore. MDL-14330 2008-04-13 02:03:21 +00:00
moodlerobot 9df9cacc9c Updated the 19 build version to 20080413 2008-04-13 01:50:39 +00:00
stronk7 d81585ed6a Blogs added to scheduled backup. MDL-9089 2008-04-13 01:34:06 +00:00
stronk7 67a8c620b6 Blogs backup added. MDL-9089 2008-04-13 01:25:55 +00:00
stronk7 e06a19af92 Preparing for blogs backup. New string. MDL-9089 2008-04-13 01:19:05 +00:00
stronk7 34a00a23d5 Preparing for blogs backup. Helper function. MDL-9089 2008-04-13 01:16:16 +00:00
moodlerobot 3ede3c4be6 Updated the 19 build version to 20080412 2008-04-12 01:49:01 +00:00
moodlerobot dfcb02766e Automatic installer.php lang files by installer_builder (20080412) 2008-04-12 01:42:43 +00:00
diml 93bff91055 fixes reported quote issue on $file in shel exec commands (MDL14325) 2008-04-11 23:21:35 +00:00
dongsheng 58ab8bffd3 MDL-14249, add more needed functions to excellib.php 2008-04-11 07:38:54 +00:00
scyrma 7cad8ab660 MDL-9410 - In user profile display, add http:// to web links if it's not already there 2008-04-11 06:57:26 +00:00
dongsheng 37fb4b6c7f MDL-10735, fix worksheet name, thanks our patch Mitsuhiro Yoshida 2008-04-11 05:45:59 +00:00
dongsheng b9d7e5f583 MDL-12662, fix undefined index(IIS) 2008-04-11 05:24:26 +00:00
gbateson 5a761ab83a do not show hidden HotPots on mod/hotpot.index.php 2008-04-11 05:09:01 +00:00
dongsheng 450f580012 MDL-9534, fix xmlize() call 2008-04-11 03:59:14 +00:00
moodlerobot 26687962c2 Updated the 19 build version to 20080411 2008-04-11 01:55:11 +00:00
stronk7 f4cb414111 Check for 60s interval from PHP. Save 3 queries per request. MDL-14272 2008-04-10 20:57:10 +00:00
sam_marshall 0bd80872c5 doc comment change: improved comment on download_file_content to clarify $headers 2008-04-10 12:08:28 +00:00
skodak 7152a7833f MDL-14301 wrong label - credit goes to Daniele Cordella; merged from MOODLE_19_STABLE 2008-04-10 09:07:42 +00:00
skodak 403b1e85d8 MDL-14300 unclosed input - credit goes to Daniele Cordella 2008-04-10 09:04:38 +00:00
moodler 3a23d626f3 MDL-14293 Fixed uninitialised $status variable 2008-04-10 03:33:47 +00:00
moodlerobot 08225e2a51 Updated the 19 build version to 20080410 2008-04-10 01:52:40 +00:00
dongsheng 6b533b4584 MDL-14137, replace htmlentities with htmlspecialchars 2008-04-09 06:07:06 +00:00
dongsheng d17e23ee7a MDL-12611, realign the help icon 2008-04-09 03:43:05 +00:00
dongsheng 2293c3cd02 MDL-12611, realign the metacourse help and cost help icon 2008-04-09 03:32:14 +00:00
dongsheng 9011bb8224 MDL-14128, cannot use a full string in the param. 2008-04-09 03:03:49 +00:00
dongsheng 1bed04c61b MDL-14091, fix myMoodle courses list sort order, Thanks Iñaki 2008-04-09 02:43:51 +00:00
moodlerobot 6bd99cf609 Updated the 19 build version to 20080409 2008-04-09 01:53:55 +00:00
stronk7 5c978acd07 Unset rcahe on UPDATE statements not using dmllib.php. MDL-14257 2008-04-08 23:12:08 +00:00
diml 6aba72e06f fixes slash issues that avoid finding relative pathes to converters 2008-04-08 22:01:09 +00:00
dongsheng 29a2749da5 MDL-12531, make the new member value available to all the affected plugins, thanks, Robert 2008-04-08 05:40:15 +00:00
dongsheng 96eb0bd743 MDL-14079, improve UI consistency 2008-04-08 03:47:59 +00:00
dongsheng cbb5738c23 MDL-12611, fix the alignment of help icons. 2008-04-08 03:28:21 +00:00
scyrma 061a4b01be MDL-13792 - Commiting Patch by Skodak, fixing problem with japanese characters under some conditions. This has been reported to work, if nobody else
comes foward with bugs related to this, it will need to be changed everywhere else where there is no urlencoding done at this time. (1.9 - original
patch)
2008-04-08 03:02:49 +00:00
moodlerobot 3d229827b8 Updated the 19 build version to 20080408 2008-04-08 01:57:47 +00:00
moodlerobot ceb2d03736 Automatic installer.php lang files by installer_builder (20080408) 2008-04-08 01:50:55 +00:00
dongsheng 93e32c5f7f MDL-14085, roll back some error() call 2008-04-08 01:45:25 +00:00
stronk7 1a13367f78 Respect inherited default enrol method when deciding to display the course cost. MDL-14096 2008-04-07 23:42:54 +00:00
diml d3d9d95f42 sync with HEAD/1.8 compatible 2008-04-07 21:45:07 +00:00
diml ee95c70444 sync with HEAD/1.8 compatible 2008-04-07 21:34:17 +00:00
diml ab42d25ac1 updating Zend engine to 1.5.0 2008-04-07 21:32:52 +00:00
diml 3ae9e88793 global sync to HEAD for passing fixes 2008-04-07 21:28:10 +00:00
diml c5244b4f3e file Wildcard.php was added on branch MOODLE_19_STABLE on 2008-04-07 21:32:53 +0000 2008-04-07 20:45:44 +00:00
diml 7ba9cd4a78 file Range.php was added on branch MOODLE_19_STABLE on 2008-04-07 21:32:53 +0000 2008-04-07 20:45:43 +00:00
diml be69717a20 file Insignificant.php was added on branch MOODLE_19_STABLE on 2008-04-07 21:32:53 +0000 2008-04-07 20:45:43 +00:00
diml e66bb1797e file Fuzzy.php was added on branch MOODLE_19_STABLE on 2008-04-07 21:32:53 +0000 2008-04-07 20:45:43 +00:00
diml 4a8da19c12 file LowerCaseUtf8.php was added on branch MOODLE_19_STABLE on 2008-04-07 21:32:53 +0000 2008-04-07 20:44:21 +00:00
diml fa34b952f9 file CaseInsensitive.php was added on branch MOODLE_19_STABLE on 2008-04-07 21:32:53 +0000 2008-04-07 20:43:30 +00:00
diml ef04e681c9 file LockManager.php was added on branch MOODLE_19_STABLE on 2008-04-07 21:32:52 +0000 2008-04-07 20:38:19 +00:00
skodak c6569182cc MDL-14240 reverting previous commit 2008-04-07 12:15:20 +00:00
moodlerobot e04de8e20b Updated the 19 build version to 20080407 2008-04-07 01:53:08 +00:00
mudrd8mz 5b28f2b17f MDL-13997 Correct linking between missing mode and compare mode. Backported from HEAD. 2008-04-06 19:41:59 +00:00
joseph_rezeau c07d5ff235 emoved mistakenly committed clozejr format 2008-04-06 17:46:55 +00:00
joseph_rezeau 62382645cb closejr small hack to "pseudo-export" the questions inside a category into a new, unique cloze/multianswer question - by Joseph R?zeau 2008-04-06 17:14:27 +00:00
stronk7 3a6a84b79b Enforce DOT as decimal separator for Oracle. MDL-11629 2008-04-06 15:30:17 +00:00
moodlerobot 8cfb08638b Updated the 19 build version to 20080406 2008-04-06 01:47:38 +00:00
moodlerobot bc65820fd0 Updated the 19 build version to 20080405 2008-04-05 01:33:13 +00:00
stronk7 f45a63ee62 Documenting local hack about MDL-14215 2008-04-04 22:33:39 +00:00
stronk7 7e56570572 Fixed bug preventing correct detection of enums under mysqli. MDL-14215 2008-04-04 19:53:25 +00:00
stronk7 136c064f3a Fix wrong conversion from '0' to '' in oracle_diry_hack. MDL-14182 2008-04-04 11:19:36 +00:00
dongsheng 8ccbb75512 MDL-14079, add "Hidden" string after the hidden teacher, thanks Mathieu 2008-04-04 06:40:34 +00:00
dongsheng f9c06a4b94 MDL-14177, remove the useless h1 tags 2008-04-04 06:23:21 +00:00
dongsheng 78bc1f9ce6 MDL-10662, I found these bugs when I was working on MDL-14068 2008-04-04 04:32:59 +00:00
moodlerobot 022de3941f Updated the 19 build version to 20080404 2008-04-04 01:32:47 +00:00
moodlerobot 5133ebb08c Automatic installer.php lang files by installer_builder (20080404) 2008-04-04 01:26:29 +00:00
stronk7 c98670a5e3 Fixed DST calculation when requesting explicit (parameter) timezones. MDL-14093 2008-04-03 18:01:39 +00:00
moodlerobot bd0dc7fe3d Updated the 19 build version to 20080403 2008-04-03 01:26:04 +00:00
stronk7 df681accd9 MDL-13900 - If the course or the parent category are hidden and the user hasn't the 'course:viewhiddencourses' capability, prevent access 2008-04-03 00:57:31 +00:00
thepurpleblob 282cd5aec2 Replaced some nasty 'magic numbers' with defines. 2008-04-02 13:57:56 +00:00
nicolasconnault fbf5f5c483 MDL-14026 Backported the changes to the grade help files in HEAD 2008-04-02 06:54:03 +00:00
skodak 808bdc658a fixed typo 2008-04-02 06:50:20 +00:00
skodak 832a20fc17 cvs commmit notification test - fixed tabs 2008-04-02 06:42:58 +00:00
nicolasconnault 78c05837f4 MDL-14081 Adding the fullname value to test grade_outcomes 2008-04-02 06:36:36 +00:00
skodak 9e41616dab MDL-14034 List of participants in SITE course failing... - fixed last access - credit goes to Eloy 2008-04-02 06:33:30 +00:00
dongsheng dbb82a47ca MDL-14128, remove all uses of error(get_string()) 2008-04-02 06:09:56 +00:00
moodlerobot 003f4c662a Updated the 19 build version to 20080402 2008-04-02 03:41:38 +00:00
stronk7 c4e8b525de Force download checkbox is not initialized properly, credit goes to skodak. MDL-14010 2008-04-01 22:16:50 +00:00
skodak 95245d35a6 MDL-14126 fixed undefined message 2008-04-01 19:47:47 +00:00
dongsheng 73c7b457a9 MDL-14126, cron shouldn't print html tags 2008-04-01 16:03:46 +00:00
skodak e43ed443fe MDL-10660 reverting previous changes - see tracker 2008-04-01 08:47:04 +00:00
dongsheng 5957e19ae3 MDL-14085, Make print_error() autonomous 2008-04-01 06:15:54 +00:00
dongsheng 56fcf4b1b2 MDL-14111, multilang htmlblock title 2008-04-01 06:00:09 +00:00
dongsheng ad1db4c380 MDL-14111, change it back. 2008-04-01 05:30:18 +00:00
dongsheng 38b8f21410 MDL-14085, Move error() to deprecatelib.php 2008-04-01 04:07:01 +00:00
moodlerobot 525afa8223 Updated the 19 build version to 20080401 2008-04-01 03:36:11 +00:00
dongsheng 1ac8d21f76 MDL-14111, Multilang html-block title, thanks Gordon Bateson 2008-04-01 01:34:35 +00:00
stronk7 e76ddb2da6 Prevent cloning of non-object. Delegate to parent method as fallback. MDL-14120 2008-03-31 22:50:35 +00:00
tjhunt d3bba8da1b MDL-8682 - the last commit caused a regression that stopped it working.
!something==somethingelse

is not the same as

something!==somethingelse

in javascript, it seems.
2008-03-31 15:07:16 +00:00
nicolasconnault 08cebb831a MDL-14073 New param for download_file_content: skipcertcheck. ssl now used in recaptchalib. Merging from HEAD 2008-03-31 12:17:59 +00:00
scyrma ec8f711d06 MDL-14103 - remove the call to s() - the string has to already be in html format. 2008-03-31 06:52:16 +00:00
nicolasconnault dddf8e46ef MDL-13397 Fixed the language string. Merging from HEAD 2008-03-31 06:16:09 +00:00
moodlerobot 7b05b2702e Updated the 19 build version to 20080331 2008-03-31 03:38:22 +00:00
skodak 40b3f45dec MDL-8270 ignore blocks that can not be instantiated 2008-03-30 14:35:12 +00:00
moodlerobot 0651a3115b Updated the 19 build version to 20080330 2008-03-30 03:37:10 +00:00
stronk7 1f579d5052 Not visible courses don't cause unenrolment under LDAP anymore. Credit goes to Iñaki Arenaza. MDL-14097 2008-03-30 00:44:23 +00:00
moodlerobot 4048d5cf73 Updated the 19 build version to 20080329 2008-03-29 03:30:40 +00:00
moodler 7942f4377a MDL-14086 Hide navigation tabs when being forced to complete profile 2008-03-28 06:32:13 +00:00
moodlerobot 515ae2a180 Updated the 19 build version to 20080328 2008-03-28 03:38:17 +00:00
nicolasconnault 60ddeb3f09 MDL-14065 Fixed gradebook unit tests, including a bug fix in grade_item class.
Commented out buggy backuplib tests, and replaced E_ALL with DEBUG_DEVELOPER in dmllib tests

Backporting from HEAD
2008-03-27 17:13:00 +00:00
skodak afe0df456f MDL-14077 Mails form messages not RFC2822 conform 2008-03-27 17:08:51 +00:00
skodak cb5f71b27f MDL-14074 removed obsoleted $CFG->enablerecordcache = true; backported from HEAD 2008-03-27 08:48:34 +00:00
skodak 07c2d960d0 MDL-14074 removed obsoleted $CFG->enablerecordcache = true 2008-03-27 08:35:34 +00:00
gbateson f44721b9f7 fix typo: switch (HOTPOT_DISPLAYNEXT_QUIZ)
should be: switch ($hotpot->displaynext)
2008-03-27 08:16:44 +00:00
gbateson 37b267d4ec fix hotpot version number so hotpot_update_grades is correctly triggered. New version is 2007101511 2008-03-27 07:23:31 +00:00
gbateson e55ee4ba01 force hotpot grades (pre Moodle 1.9 on 27th Mar 2008) to be updated:
(1) call "hotpot_updated_grades()" from db/upgrade.php
    (2) fix typo in "hotpot_updated_grades()" - "s.id' should be "h.id"
    (3) micro-increment version number to trigger the update
2008-03-27 03:41:43 +00:00
moodlerobot cde5a89a74 Updated the 19 build version to 20080327 2008-03-27 03:37:22 +00:00
stronk7 d86eb86faa Change tooltip text by Helen's suggestion. MDL-13940 2008-03-26 23:49:54 +00:00
thepurpleblob 24037e0f07 Fixed typo in debug message, causing notice 2008-03-26 15:11:19 +00:00
sam_marshall f1d31dfee3 MDL-14051 Changed timeout behaviour for download_file_content so curl has a read timeout 2008-03-26 12:59:51 +00:00
skodak 2feaf50aa1 MDL-14060 fixed cm caching in forum cron 2008-03-26 09:16:06 +00:00
moodlerobot f0cf5bc1d3 Updated the 19 build version to 20080326 2008-03-26 03:41:59 +00:00
moodlerobot 27e661082b Automatic installer.php lang files by installer_builder (20080326) 2008-03-26 03:28:14 +00:00
scyrma d6be0ca412 MDL-14057 - Change position of the continue button. 2008-03-26 03:00:42 +00:00
dongsheng a057fabf60 MDL-13151, add a new language string: phone2, thanks for your idea, James 2008-03-26 02:46:48 +00:00
dongsheng e4d75c6f2e MDL-12531 add institution to lockable fileds, thanks for your patch, Lgor Plisco 2008-03-26 02:26:25 +00:00
dongsheng c9f43908a4 MDL-10660, check whether memcache has been installed. 2008-03-26 02:18:53 +00:00
skodak 9e13cb7144 MDL-13360 fixed regression - notifications going more than once a day 2008-03-25 23:03:24 +00:00
jmg324 402b744fd6 added new gradebook preference for backup silently function to avoid notice errors later in backup process. 2008-03-25 15:40:27 +00:00
poltawski ffa16956e6 MDL-14050 - count(FALSE) == 1 . This was causing fatal errors when scorm_scoes were
empty.
2008-03-25 14:36:34 +00:00
scyrma 4aee1d4ecb small code cleanup 2008-03-25 09:35:56 +00:00
moodlerobot 6a6723a267 Updated the 19 build version to 20080325 2008-03-25 03:37:11 +00:00
moodlerobot 44c109eb7e Automatic installer.php lang files by installer_builder (20080325) 2008-03-25 03:25:12 +00:00
scyrma 830abccdda MDL-14041 - Hide 'manage tags' when access is not permitted 2008-03-25 01:44:54 +00:00
dongsheng bc673426bd MDL-10606 Corrected course search box id 2008-03-25 01:23:16 +00:00
stronk7 09d10cdc1a Fix visualization under FF. MDL-14039 2008-03-24 23:05:13 +00:00
stronk7 6b98139026 New string for hidden roles eye in participants page. MDL-13940 2008-03-24 22:07:15 +00:00
stronk7 be24cfe9c2 If the user has hidden role assignments, the icon should be the closed eye. MDL-13935 2008-03-24 22:04:37 +00:00
skodak 6f5d60121b MDL-14023 frontpage edit summary centering issue 2008-03-24 20:23:57 +00:00
skodak 0ea152345f MDL-14032 rewritten forum_tp_clean_read_records() - it should not run out of memory anymore + other minor memory savings 2008-03-24 19:50:26 +00:00
stronk7 1ebff51139 Restore escaped from latest tag-lib refactoring. MDL-14038 2008-03-24 16:37:46 +00:00
stronk7 8809f87505 Adding help file for forcedownload option. MDL-14010 2008-03-24 10:32:49 +00:00
stronk7 afe91850a8 Added missing string for forcedowload option. MDL-14010 2008-03-24 10:29:32 +00:00
moodlerobot a393ece095 Updated the 19 build version to 20080324 2008-03-24 03:32:53 +00:00
stronk7 612b2f8c2c Make list of participants to work on SITE course. Fix for MDL-14034 2008-03-24 01:27:50 +00:00
skodak 7912ecb1b1 MDL-14029 html2text throws tons of notices is style or script tags found 2008-03-23 16:51:05 +00:00
skodak bc0dc73d24 MDL-14027 cron sometimes hangs in rss_client block 2008-03-23 16:23:48 +00:00
skodak 2dc6c4abe2 MDL-8270 full block backup/restore - based on patches by Mark Nielsen and code in HEAD by Tim Hunt 2008-03-23 15:56:03 +00:00
skodak a18258a969 MDL-8270 full block backup/restore - based on patches by Mark Nielsen and code in HEAD by Tim Hunt 2008-03-23 15:50:08 +00:00
moodlerobot 90165e2d01 Updated the 19 build version to 20080323 2008-03-23 03:30:16 +00:00
stronk7 af0322b9b3 Update timezone rules to tzdata2008a. MDL-14024 2008-03-22 23:36:14 +00:00
skodak 4c86245c5e MDL-14008 various SUM aggregation bugfixes 2008-03-22 21:25:39 +00:00
skodak b8ad30bec7 MDL-14008 various SUM aggregation bugfixes 2008-03-22 21:19:08 +00:00
skodak c78e0578f7 MDL-14021 replaced sloppy JOIN ON TRUE with CROSS JOINs - ora or ms does not like it 2008-03-22 20:21:25 +00:00
moodlerobot 1de8fe9ea6 Updated the 19 build version to 20080322 2008-03-22 03:30:43 +00:00
ethem aebf995894 get_recordset() for performance 2008-03-21 12:08:28 +00:00
moodlerobot 440f829392 Updated the 19 build version to 20080321 2008-03-21 03:29:08 +00:00
skodak fd25cefe34 MDLSITE-320 some debug code for digest times in forum cron 2008-03-20 22:31:06 +00:00
skodak 5452f37f23 MDL-2674 minor lang improvement 2008-03-20 21:16:32 +00:00
wildgirl 34aa9e6818 MDL-2674 PHP code removed from help file, small rewording 2008-03-20 21:07:50 +00:00
wildgirl 0f3cf17a4b MDL-2674 PHP code removed from help file 2008-03-20 20:48:20 +00:00
skodak fe3987a324 MDL-13619 legacy restore revisited -fixed sortorder 2008-03-20 20:07:35 +00:00
skodak 40af907f97 MDL-13393 detect broken cm instances when doing backup - prevents trouble during restore 2008-03-20 19:39:08 +00:00
diml 30ab1999fb shooting out debug code see MDL-13993 2008-03-20 19:31:42 +00:00
skodak d3d7ba8f7a MDL-13619 legacy restore revisited 2008-03-20 19:15:38 +00:00
poltawski e4c6b6b470 MDL-13994 - lang typo, thanks to Charles Kelly 2008-03-20 12:19:26 +00:00
ikawhero 16aa360aac Fixed typo that was affecting the reordering of custom profile fields.
MDL-13909.
2008-03-20 09:14:47 +00:00
dongsheng cd3a029451 MDL-12263, under certain conditions, $catctxids is NULL, so an if statement should be here. 2008-03-20 07:16:33 +00:00
scyrma 6d8c1e5e58 MDL-13985 - removed call to get_string, translation of this string made no sense and broke badly. 2008-03-20 07:04:02 +00:00
nicolasconnault 1ca801982a MDL-13880 Overridden and excluded grades are now coloured with alternate row colours that override the default alternate row colours (gray). I also fixed the long-standing notice about aggregationposition. See attached patch. Merging from HEAD 2008-03-20 06:26:20 +00:00
moodlerobot 3f86d1c681 Updated the 19 build version to 20080320 2008-03-20 03:36:24 +00:00
scyrma f52c805656 MDL-13959 - Fix from Eloy - this makes the timezone-related functions accept an optional parameter different from the current user timezone. 2008-03-20 02:59:50 +00:00
skodak 2934dce435 MDL-13899 force resending of all assignment grades into gradebook so that the submitted and graded dates get updated 2008-03-19 23:18:59 +00:00
skodak 9bb38ad7d2 MDL-13990 ignore bogus dirs in moodledata/user during upgrade 2008-03-19 23:07:53 +00:00
skodak 567c3be0a2 MDL-13986 "User view" Activity report links are invalid - patch by Matthew Davidson 2008-03-19 22:46:48 +00:00
skodak 945fec4e6d MDL-13899 improved submission and grading date hack 2008-03-19 22:38:09 +00:00
skodak 5db52de0fa MDL-13899 assignments should be now sending proper submissions and grading dates into gradebook 2008-03-19 22:33:18 +00:00
nicolasconnault 28df24fc95 MDL-13880 Overridden and excluded grades are now coloured with alternate row colours that override the default alternate row colours (gray). I also fixed the long-standing notice about aggregationposition. See attached patch. Backporting from HEAD 2008-03-19 16:16:20 +00:00
tjhunt 50522dae6e MDL-13978 - Notice when adding a new quiz 2008-03-19 12:21:54 +00:00
skodak 0e432a1d81 MDL-13811 p() can not be used to print html text, it does plaintext only or form values & button names 2008-03-19 10:46:32 +00:00
scyrma f9bc559511 MDL-13934 - Commit patch by Eloy - prevent display of moodle docs link on redirect pages 2008-03-19 08:18:48 +00:00
scyrma ab14532e7f MDL-12093 - remove added classes - they don't help the issue and clutter the code 2008-03-19 08:15:40 +00:00
scyrma 79d3cc8589 MDL-13434 Addslashes removed, is added whenever necessary in tag/lib.php. 2008-03-19 08:11:02 +00:00
scyrma 5198be103b MDL-12235 deprecated document_file function. Not found anywhere in core. 2008-03-19 07:56:56 +00:00
moodler b6f293036f MDL-13810 Fixed check for join 2008-03-19 07:48:45 +00:00
moodlerobot da336c9649 Updated the 19 build version to 20080319 2008-03-19 03:36:36 +00:00
skodak c014235e75 MDL-13899 feedback itself is a type of grading - date graded is now affected by feedback too 2008-03-18 23:20:13 +00:00
skodak 6ace2cf04c MDL-13899 feedback itself is a type of grading - date graded is now affected by feedback too 2008-03-18 22:54:14 +00:00
skodak 688b962ee4 MDL-13610 made assignment submissions table 100% wide 2008-03-18 17:18:01 +00:00
skodak 792068fa8d MDL-11007 groupmembersonly support for glossaries 2008-03-18 17:11:53 +00:00
skodak 592d0165e9 MDL-10990 forum perf revisited - reply and post discussion buttons now back for guests 2008-03-18 17:07:00 +00:00
skodak 3f21bfb704 MDL-13807 assignment_showrecentsubmissions does not hide submissions on recent activity full report - patch by Jason Meinzer 2008-03-18 16:44:25 +00:00
skodak dda0672145 MDL-13824 use 0 for all groups - patch by ELoy 2008-03-18 16:41:53 +00:00
skodak 563392734f MDL-13921 Incorrect access given to members of group included in 2 groupings 2008-03-18 16:37:21 +00:00
nicolasconnault c77cf00618 MDL-13953 The dropdown was not populated using the same methods as elsewhere in Moodle. Backporting from HEAD 2008-03-18 16:03:00 +00:00
scyrma 0584008dc4 MDL-13594 - Fixes a display problem with "flagged" tags, code cleanup, other small fixes.
MDL-13434 - Cleaned up a bit more the api
MDL-13687 - If a manual relation is added to a tag, the opposition relation will be added at the same time.
2008-03-18 08:29:19 +00:00
skodak f8eacd07ec MDLSITE-320 digest processing should be able to continue without duplicates if fails 2008-03-18 08:26:45 +00:00
moodlerobot 13dbf19ec1 Updated the 19 build version to 20080318 2008-03-18 03:37:42 +00:00
scyrma 541b11c434 MDL-12514 - Added missing js library (thanks Johannes Albert) and fixed missing string escaping. 2008-03-18 01:20:50 +00:00
skodak 45d3c87b30 MDL-2674 adding $cm->grouping reset if groupings not restored; removed info about groups included in backup - they are always included, and there will not be any global groups/groupings 2008-03-17 21:54:47 +00:00
skodak c153af6351 MDL-2674 backup always backsup/restores groups regardless of user settings; backported from HEAD 2008-03-17 21:27:53 +00:00
skodak 8527371af3 MDL-13847 gradebook backup/restore fixes, xhtml strict fixes, other minor fixes 2008-03-17 19:36:35 +00:00
nicolasconnault 889aaef90e MDL-13743 Added realmedia support. Merging from MOODLE_18_STABLE 2008-03-17 13:14:31 +00:00
nicolasconnault ed75557ce9 MDL-13903 New file resource option for forcing the download of the file instead of embedding it. Backporting from HEAD 2008-03-17 12:56:37 +00:00
skodak 6b3281b20e MDL-13949 removed adobe reader XSS bug workaround 2008-03-17 12:35:35 +00:00
stronk7 2a5d6b8035 Glossary extended search fixed. MDL-13947 2008-03-17 12:29:13 +00:00
moodlerobot 86a226f6ca Updated the 19 build version to 20080317 2008-03-17 03:36:04 +00:00
skodak 2b47d8926a MDL-13943 improved perf when sending multiple grades into grade_update() 2008-03-16 23:21:35 +00:00
skodak 931ad967da MDL-13945 prevent fatal errors in all rs_xx functions 2008-03-16 22:46:31 +00:00
skodak 57525b9420 MDL-13944 rs_close() does not throw fatal error if rs does not exist aynmore 2008-03-16 22:06:55 +00:00
moodlerobot 267ecadfe9 Updated the 19 build version to 20080316 2008-03-16 03:34:15 +00:00
skodak 9e8a2d77ef MDL-13939 stats produce bogus role/course data if user has several different enrolments 2008-03-16 01:23:35 +00:00
diml f0bb791809 syncing with other branches block level lang packs for search. 2008-03-15 23:22:11 +00:00
skodak 435dd405d5 MDL-13866 adding warning that regrading of forums may take a while 2008-03-15 22:50:28 +00:00
stronk7 f47b53dd0a Prevent duplicate users in list when user has both visible and hidden roles. MDL-13935 2008-03-15 21:52:10 +00:00
skodak 37168eadd6 MDL-13920 adding warning that regrading of assignments may take a while 2008-03-15 18:51:50 +00:00
skodak 96015624c1 MDL-13412 Allow callers of email_to_user() to set wordwrap 2008-03-15 17:03:27 +00:00
skodak a1ac8fd963 MDL-13893 fixed hiding of editor buttons, added labels there too 2008-03-15 16:36:23 +00:00
skodak 043fd9c793 MDL-13927 indicate missing parent languages 2008-03-15 16:09:50 +00:00
skodak 72ec0c3baa MDL-13927, MDL-13938 indicate missing parent languages and allow multiselection when importing langs 2008-03-15 16:08:23 +00:00
skodak 5a79a02a79 MDL-13093 "Continue" link jumps over items 2008-03-15 15:04:29 +00:00
skodak 5d0160f8f5 MDL-13886 whitelist text-decoration in kses cleaning 2008-03-15 15:00:03 +00:00
skodak d332a153a8 MDL-13920 assignment without grades now sets text grade type, fixed overriding of feedback and overriding logic in general on grade edit page 2008-03-15 14:54:07 +00:00
moodlerobot c9cebbcdaf Updated the 19 build version to 20080315 2008-03-15 03:38:08 +00:00
moodlerobot 02c62cb3d5 Automatic installer.php lang files by installer_builder (20080315) 2008-03-15 03:23:53 +00:00
gbateson cbebda6a36 require_once $CFG->dirroot."mod/hotpot/lib.php"; // get the "hotpot_is_visible" function 2008-03-15 01:17:01 +00:00
scyrma 892174bda5 MDL-13236 fixes a regression - thanks to Steve Wright for the patch. 2008-03-14 08:19:50 +00:00
moodlerobot 098a9ff379 Updated the 19 build version to 20080314 2008-03-14 03:35:37 +00:00
moodlerobot eb2af98aaa Automatic installer.php lang files by installer_builder (20080314) 2008-03-14 03:23:15 +00:00
nicolasconnault 7ee7cb758a MDL-13796 Committing new recaptcha element. Merging from HEAD 2008-03-13 15:45:31 +00:00
sam_marshall c147575b6c MDL-13915: Fixed add_to_log when very long url is specified (now doesn't try to insert more than 100 chars into database) 2008-03-13 15:25:12 +00:00
nicolasconnault 5fd87bf13c MDL-13919 Fixed undefined variable. Merging from MOODLE_18_STABLE 2008-03-13 14:02:34 +00:00
nicolasconnault ce60661535 MDL-13300 Adds verbosity to the heading above the list of participants, showing which group is selected, and the inactivity time period, if either of these two filters are used. Merging from HEAD 2008-03-13 12:17:27 +00:00
wildgirl 976b0d2f2f MDL-12251 lang string typo fix 2008-03-13 10:22:34 +00:00
scyrma 2f06efca9a Fixed a bug introduced somewhere down the late modifications.. 2008-03-13 08:34:57 +00:00
moodlerobot 4db516ba85 Updated the 19 build version to 20080313 2008-03-13 03:37:40 +00:00
skodak 65299ae590 MDL-13845 rewritten rounding in grades classes again - rounding done also before storage into db so that we can compare the values properly and skip db updates if possible + some more optimisations 2008-03-12 19:44:39 +00:00
nicolasconnault 5673b0ce58 MDL-13796 Backported recaptcha element from HEAD. 2008-03-12 12:37:34 +00:00
nicolasconnault 19466f5699 file recaptcha.html was added on branch MOODLE_19_STABLE on 2008-03-12 12:37:34 +0000 2008-03-12 06:56:37 +00:00
moodlerobot 4646b94ab0 Updated the 19 build version to 20080312 2008-03-12 03:46:53 +00:00
moodlerobot f54f4b22a9 Automatic installer.php lang files by installer_builder (20080312) 2008-03-12 03:33:00 +00:00
skodak 0690424663 MDL-13895 incorrect title and alt on grade edit icon in gradebook reports 2008-03-11 23:58:51 +00:00
danmarsden 320ce836d1 MDL-13892 partial fix - check var first before using! 2008-03-11 19:00:38 +00:00
thepurpleblob 673e73d799 MDL-13872:
Display a dash when no grade info, suppresses notice.
2008-03-11 14:24:12 +00:00
skodak fd74d39545 MDL-13884 fixed incorrect left join, thanks Tim 2008-03-11 10:50:58 +00:00
skodak 8a55979706 MDL-13884 Students assigned at site or course category level do not appear in grader report 2008-03-11 09:50:26 +00:00
skodak a2051dc458 MDL-13885 fixed participation report problems 2008-03-11 09:20:29 +00:00
skodak e1e2d33d8a MDL-13881 fixed silly logic bug when disabling rcache - patch by Matt Clarkson 2008-03-11 09:04:29 +00:00
ethem 0b82096d87 Race condition in cron for Scheduled-Capture (very very big sites and order review enabled only).
In one cron, 250-500 orders may be processed (based on 5 minutes).
If an admin sets cron time up smaller than 5 minutes and
250-500> new transactions are made after last cron executed, it can be blocked.
Authorize cron sets up an_lastcron every time when admin/cron.php executes.
This must be set up after blocking check code.

As result, if pending orders aren't accepted with in 30 days at payment management page, they expired and users cannot enrol.
When an admin enabled order review, he is guaranteed 'Payment managers accept/deny transactions manually'.
Scheduled-Capture is designed for forgotten orders only ;)

Backported from HEAD.
2008-03-11 08:26:42 +00:00
moodlerobot 81e8e321cc Updated the 19 build version to 20080311 2008-03-11 03:50:05 +00:00
moodlerobot 6d6d43d1df Automatic installer.php lang files by installer_builder (20080311) 2008-03-11 03:32:52 +00:00
pichetp c59a69dab8 MDL-12421 rounding merging from head a little correction line 77 2008-03-10 21:29:07 +00:00
skodak 7ff4e151ed MDL-13866 scale ratings do not work in forum 2008-03-10 21:18:44 +00:00
skodak bbf2de8d3b MDL-13866 fixed stupid bug in my last commit 2008-03-10 21:17:18 +00:00
skodak 5c691fc5fc MDL-13866 fixed stupid bug in my last commit 2008-03-10 21:16:57 +00:00
skodak e694d551b5 MDL-13878 use ints for old values of scales in grader report 2008-03-10 20:24:11 +00:00
garethmorgan e83460ac86 Populated $overridableroles and $assignableroles to make roles tags accessible. MDL-13803 2008-03-10 19:01:32 +00:00
nicolasconnault 49e1894df3 MDL-13796 Most of the recaptcha implementation is done. 2008-03-10 17:21:32 +00:00
andreabix 688df1279e fixed [MDL-13181] 2008-03-10 16:27:05 +00:00
andreabix c281745c42 Fixed [MDL-12830] 2008-03-10 15:53:10 +00:00
andreabix 361536479a Added grade pass/fail colours. Fixed label line height in course page 2008-03-10 15:13:34 +00:00
pichetp 4272fc068c nextpageparam["forceregeneration"] was not implemented correctly line 582 merging
from head
2008-03-10 12:00:58 +00:00
nicolasconnault 2b00d67a44 MDL-13789 Updating index.html and editing decimalpoints.html 2008-03-10 11:27:08 +00:00
nicolasconnault 5f58a4a398 MDL-13789 Removing useless files. 2008-03-10 10:46:12 +00:00
skodak a55cfa4fa1 MDL-13866 scale ratings do not work in forum; merged from MOODLE_19_STABLE 2008-03-10 10:45:49 +00:00
nicolasconnault 3fecb85f5b MDL-13789 Removing useless files. 2008-03-10 10:41:07 +00:00
skodak f74e0556dd MDL-13866 scale ratings do not work in forum 2008-03-10 10:40:21 +00:00
nicolasconnault de5971270b MDL-13852 Fixed help string links. 2008-03-10 10:11:15 +00:00
skodak 0f332452fe MDL-13863 detect missing idnumbers in formulas after restore 2008-03-10 09:34:52 +00:00
skodak 29ed8ead20 MDL-13862 grader report - do not show column averages if error found 2008-03-10 09:32:25 +00:00
nicolasconnault 1505b92d40 MDL-13830 Added colours for gradepass and gradefail. 2008-03-10 06:36:43 +00:00
moodlerobot c1a8231dfa Updated the 19 build version to 20080310 2008-03-10 04:31:07 +00:00
gbateson 0c11a3b0df add "mp3" (used by DewPlayer) to the list of query string parameters to search for when converting relative urls to absolute urls 2008-03-10 01:35:28 +00:00
stronk7 a72cd02f9e Ensure only target groups_members are added to backup. MDL-12453 2008-03-09 17:26:25 +00:00
moodlerobot 9046955f03 Updated the 19 build version to 20080309 2008-03-09 03:50:20 +00:00
arborrow a93679c79b MDL-13593 - added statement about non case sensitivity 2008-03-09 02:40:32 +00:00
skodak 52d6376cb9 MDL-13853 automatic fixing of incorrect grade category paths 2008-03-08 23:22:34 +00:00
skodak 5ce37277d3 MDL-13853 incorrect paths when moving grade categories - affects aggregation in subcategories 2008-03-08 22:37:27 +00:00
stronk7 5b7a62a269 Wood-ize groupinfo boxes. 2008-03-08 22:28:06 +00:00
skodak 9312d39243 MDL-13851 fixed disappearing grade categories in PHP4 2008-03-08 22:11:56 +00:00
skodak 83bf96e1ee cosmetic fix for CONTEXT:SYSTEM fetching 2008-03-08 15:36:00 +00:00
skodak a24259df35 MDL-13850 fix automatic creation of course grade item 2008-03-08 15:33:49 +00:00
skodak 11ff786551 MDL-13849 add API method to use outcome in course into grade_outcome class 2008-03-08 15:29:04 +00:00
skodak e347d1c0f9 fixed db warning 2008-03-08 15:27:01 +00:00
skodak 5f72b90848 add debug code for missing course id when getting course grading category 2008-03-08 15:09:52 +00:00
skodak 6b90b67d7c MDL-13848 backup form - do not include checkboxes for mods that are not used in course 2008-03-08 15:07:59 +00:00
skodak b6e8bdbbad MDL-13842 Error migrating grades for exercise module... 2008-03-08 12:57:23 +00:00
skodak c1393f970c MDL-13845 major performance problems when regrading course 2008-03-08 12:49:49 +00:00
moodlerobot cc4f01a09a Updated the 19 build version to 20080308 2008-03-08 03:56:08 +00:00
moodlerobot 1edcd3e2e0 Automatic installer.php lang files by installer_builder (20080308) 2008-03-08 03:40:48 +00:00
tjhunt 43d565b15f MDL-13836 - When grades are imported, list users who had grades imported, but who are not currenly in the course. 2008-03-07 17:30:52 +00:00
nicolasconnault b6b9873174 MDL-12356 Patched grade_grade->is_passed() method so that it returns null when the gradepass value is null or equal to grademin, or when the finalgrade is null. 2008-03-07 14:08:27 +00:00
nicolasconnault 291a7deb3e MDL-13709 Removing unneeded file 2008-03-07 13:26:53 +00:00
wildgirl aab5a32a63 MDL-13820 help file typo fixes 2008-03-07 13:11:55 +00:00
nicolasconnault 36f9513fc6 MDL-12854 Added required rule for submission text 2008-03-07 09:17:13 +00:00
nicolasconnault b412f4ac03 MDL-13820 Removed aggregation2.html and fixed typos in aggregation.html 2008-03-07 08:54:58 +00:00
moodlerobot d0e9296d42 Updated the 19 build version to 20080307 2008-03-07 03:57:28 +00:00
moodlerobot 63e7059c90 Automatic installer.php lang files by installer_builder (20080307) 2008-03-07 03:40:05 +00:00
danmarsden e352659420 MDL-13812 choice options not shown when limit enabled. 2008-03-06 19:55:24 +00:00
ethem ea9f82462a get_recordset in cron() for performance. Backported from HEAD. 2008-03-06 17:13:23 +00:00
nicolasconnault df87047314 MDL-12182 Fixing unit tests for gradebook. Mainly a change in set_locked() arguments. 2008-03-06 13:44:47 +00:00
andreabix 38302a5459 Fixed arrow problem in IE6 2008-03-06 10:32:51 +00:00
nicolasconnault bee7fad9b6 MDL-13046 Fixed notices 2008-03-06 09:41:24 +00:00
scyrma 2e291dfa51 MDL-12860 - Patch from Joseph Rézeau, to fix a problem in the display of lesson result when using regexp. 2008-03-06 08:02:09 +00:00
gbateson eb84b02feb remove trailing whitespace on everyline and standardize line endings 2008-03-06 07:34:02 +00:00
gbateson f01e8f7c24 fix for Moodle 1.8 and 1.9 to allow students to access hidden hotpots which form part of a hotpot chain - see http://moodle.org/mod/forum/discuss.php?d=91861. In Moodle 1.8 and later the "require_login" function (lib/moodlelib.php) is stricter than in earlier versions of Moodle and checks a module's visibility and groupings access. From Moodle 2.0 on, this HotPot module does not need this fix. 2008-03-06 06:59:44 +00:00
scyrma f06680badc MDL-13795 - Proposed fix to show a nice string instead of a non-existent deadline. 2008-03-06 04:57:42 +00:00
moodlerobot 5e0289bcde Updated the 19 build version to 20080306 2008-03-06 04:07:26 +00:00
moodler d8f4ee51a5 MDL-13810 Fixed check for ul.timeaccess 2008-03-06 02:11:53 +00:00
tjhunt edd01f0e5f MDL-13794 - Reordering tool does not work if you type the same number into two boxes.
Also, fix some javascript that did not work in IE7.
2008-03-05 10:16:16 +00:00
scyrma ee8bc9d180 MDL-13791 - fix to prevent notice 2008-03-05 10:15:52 +00:00
nicolasconnault 77e95f5bd3 MDL-13787 Updated get_pref() so that it looks up a short version of the config variable (grade_ instead of grade_report_) in case the first isn't set. It also returns null if no variable is found. 2008-03-05 07:09:03 +00:00
moodler 835625bf4c Fix up display of version in footer 2008-03-05 05:34:16 +00:00
moodler 3559450d81 Make the release build display a bit neater 2008-03-05 05:27:17 +00:00
moodlerobot d98bdd3592 Updated the 19 build version to 20080305 2008-03-05 04:20:00 +00:00
scyrma 7a6df50371 MDL-13769 - Fix for postgresql 2008-03-05 01:44:33 +00:00
stronk7 74c8a06e3e Simplify anydb_escape_string() to use simple-cross-db addslashes(). MDL-13793 2008-03-04 23:40:14 +00:00
danmarsden 4b02f546ee MDL-10358 Scorm package not updating correctly - calling function in lib not included. merged from HEAD 2008-03-04 22:26:30 +00:00
danmarsden 754104acb4 MDL-11722 - incorrect string - creating new one so that other lang packs translate it correctly. 2008-03-04 20:01:39 +00:00
skodak 7e3d9f3c18 MDL-13762 some debug code and workaround for sloppy use of recordsets 2008-03-04 09:23:08 +00:00
skodak f4d0a18a41 MDL-13360 expire notification problems 2008-03-04 08:54:09 +00:00
moodlerobot b53905ab09 Updated the build version 2008-03-04 07:30:29 +00:00
moodlerobot e31601a7f9 Updated the build version 2008-03-04 07:27:36 +00:00
moodler 1e2f651f2e Bumping release name post 1.9 2008-03-04 05:38:21 +00:00
moodlerobot 1568332295 Automatic installer.php lang files by installer_builder (20080304) 2008-03-04 03:51:57 +00:00
skodak ee1cbb3856 MDL-13741 Incorrect max size shown when using course upload limit; patch by Jason Meinzer 2008-03-03 20:48:54 +00:00
skodak 6904fe1e26 MDL-13749 Front Page Calendar: Not displaying information from courses student is a member of. 2008-03-03 20:39:19 +00:00
arborrow a15965fc5f MDL-13593 - adding uploadpictures.html help file 2008-03-03 17:42:08 +00:00
nicolasconnault 79147f355b MDL-13709 Removing escape slashes. 2008-03-03 12:36:40 +00:00
moodler aaa252dbc1 Bumoping version of module too 2008-03-03 12:02:12 +00:00
moodler 6f82b46490 Bumping backup version to 1.9 release date 2008-03-03 11:55:15 +00:00
moodler 60a6ca5f38 New version and requires (same as 1.9 release) 2008-03-03 11:48:39 +00:00
moodler 3dff726aa1 New block versions for 1.9 release 2008-03-03 11:41:01 +00:00
nicolasconnault 7fa6c5f12b MDL-13709 Re-entering the admin strings 2008-03-03 11:26:07 +00:00
skodak 67fbbc6a26 MDL-13730 site setting for aggregation of scales 2008-03-03 11:02:19 +00:00
nicolasconnault 72a2effa06 MDL-13709 More lang fixes. 2008-03-03 10:50:38 +00:00
nicolasconnault 99d4c223ff MDL-13709 66 new lang files, and links to these help files have been updated wherever found. 2008-03-03 10:29:44 +00:00
nicolasconnault e0bc9f3bec MDL-13709 66 new lang files, and links to these help files have been updated wherever found. 2008-03-03 10:21:32 +00:00
wildgirl e14a0902ed MDL-12759 lang string typo fixes 2008-03-03 10:11:07 +00:00
moodler 8a1d2fdf0d Final tags for 1.9 2008-03-03 07:31:32 +00:00
nicolasconnault 4efe1f63ca MDL-13663 Updated the link to configshowquickfeedback 2008-03-03 07:27:07 +00:00
moodler 585b76a0e8 Bumping the version to Moodle 1.9 in preparation for release. 2008-03-03 07:06:31 +00:00
moodler 15e6b71bc0 MDL-13754 Avoid joining to lastaccess unless we really wanted it
Plus some other cosmetic tidying and comments
2008-03-03 06:19:31 +00:00
moodler 94c265fe95 MDL-11484 Added some colors for overridden grades 2008-03-03 05:54:43 +00:00
moodler 9f3c4120f9 Fixed a notice 2008-03-03 05:27:36 +00:00
moodler 734b4d4dd1 MDL-13478 Cleaned up some variables 2008-03-03 05:24:29 +00:00
moodler 94cf182211 MDL-13753 Show percentages under numbers for result columns 2008-03-03 05:11:39 +00:00
moodler 2c7def765e MDL-13478 use count() function to count arrays 2008-03-03 04:38:36 +00:00
moodler 63ae91cc6d MDL-13478 - massive performance fixes
- general tidying up

           This patch is a mix of Dan Marsden's fairly extensive tidying up
           plus my fixes which bring db calls down to a constant value (from something
           like 6 calls per user response).  Thanks Dan!
2008-03-03 04:26:59 +00:00
moodler f7c44f3873 MDL-13722 Preview now works when when idnumbers might be empty 2008-03-02 15:15:07 +00:00
moodler 58331043d0 MDL-13475 Fixed some character lengths for course->shortname and role->shortname (100char) 2008-03-02 15:02:25 +00:00
moodler 08dc6e642a MDL-13717 Applied hack from Nicklas to fix sitemp etc. It worked for me in a quick test. 2008-03-02 01:20:23 +00:00
nicolasconnault 6a22b20efd MDL-13663 More lang string updates. 2008-03-01 16:56:41 +00:00
skodak ccb472e7b9 fixed groups property typo 2008-03-01 16:19:48 +00:00
skodak eccbfc92ae MDL-13705 2008-03-01 13:10:39 +00:00
nicolasconnault d4e9a98087 MDL-13663 Last lang string change. 2008-02-29 22:17:43 +00:00
nicolasconnault 1b44161802 MDL-13564 Deduced the missing strings from similar strings found in auth.php 2008-02-29 22:11:09 +00:00
nicolasconnault 66fd7a7612 MDL-13736 Wrapped the link in a div and fixed the style. 2008-02-29 21:44:08 +00:00
stronk7 60a18dc226 rebuild_course_cache() to calculate modinfo before role assignments. MDL-13740 2008-02-29 19:53:40 +00:00
nicolasconnault 7209121b5d MDL-11484 Changed the display of overridden and locked grades 2008-02-29 17:05:40 +00:00
tjhunt f154315266 MDL-13738 - Invalid context developer debug notice in manual grading. 2008-02-29 16:22:13 +00:00
moodler 189bb2de50 MDL-10990 Reverting patch for (5) for forum display for guests (from 27 Feb)
We really need this feature, there must be another way to still gain performance here.
2008-02-29 15:18:13 +00:00
stronk7 35cff7a641 Deletin the grader->get_numusers() method. I was doing some not
needed checks (I guess copied from load_users(), where they have
sense). Fallback to grade_report->get_numusers(), that looks ok. MDL-13403
2008-02-29 15:10:16 +00:00
danmarsden f0e4cbcabd MDL-13478 performance fixes. 2008-02-29 11:58:32 +00:00
nicolasconnault 464b3d80fa Notices on empty array index. 2008-02-29 10:06:43 +00:00
scyrma 08450fe007 MDL-13728 - No need for tag:changetype after all 2008-02-29 09:32:57 +00:00
scyrma 6387e05acd MDL-13728 - Tag form editing now provides a checkbox to set the tag type (official or not) 2008-02-29 09:31:58 +00:00
moodler fd21a93e5f MDL-13676 Fixed some mistakes 2008-02-29 08:55:42 +00:00
scyrma 548a5a4ae3 MDL-13728 - Removing old capabilities and creating a new one for tag type modifications. 2008-02-29 08:43:22 +00:00
moodler f45aff70d9 MDL-13676 Changed a field so that Oracle can cope with a COALESCE statement. :-(
I hate doing this at this late stage, but without it Oracle fails.

           On the way I also fixed the profile page so it displays role aliases if they exist
2008-02-29 08:40:39 +00:00
moodler 63b33f502d New tags file for 1.9 2008-02-29 07:49:53 +00:00
moodler 8f79558997 MDL-13568 Only show full profiles if capability allows it (FERPA) 2008-02-29 07:10:06 +00:00
scyrma 31820054f2 MDL-13728 - Removing old code, this is now in the tag management interface. 2008-02-29 07:08:23 +00:00
moodler 536273ae99 MDL-11960 DIsable rss block on tags pages :-( 2008-02-29 07:04:27 +00:00
moodler e331f94902 MDL-13727 Added a cpability check when showing blog entries 2008-02-29 06:51:02 +00:00
moodler 8a53bb7c91 Added error string for MDL-13725 2008-02-29 06:36:27 +00:00
moodler 97634109b7 MDL-13725 Fixed errorcode typo 2008-02-29 06:32:42 +00:00
moodler c7aebb6755 MDL-13725 Remove tag_get_tag_by_id completely
I also re-ordered tag/lib.php a bit
2008-02-29 06:25:22 +00:00
moodlerobot e8b45d3e1d Automatic installer.php lang files by installer_builder (20080229) 2008-02-29 03:36:24 +00:00
stronk7 9059cb4550 Raising to 1.9 final 2008-02-29 01:43:04 +00:00
tjhunt 078c8b402b MDL-12776 - Quiz email notification and separate groups mode - student not in group -> all teachers get email I have changed it so that if the quiz is set to groups mode, and if the student is not in a group, then only teachers with 'accessallgroups' get emailed. 2008-02-28 22:44:10 +00:00
tjhunt 0a22085fdb MDL-13723 - Unbalanced brackets in get_users_by_capability in the groups bit. 2008-02-28 22:39:15 +00:00
tjhunt 14942a2508 MDL-12815 - Quiz uses inconsistent class attribute for the paging bar. I have added the standard .paging class, but I have left the old class there too, so as not to break existing themes. 2008-02-28 21:43:47 +00:00
skodak 0abc6db872 MDL-13705 2008-02-28 21:16:56 +00:00
skodak 0771778fff MDL-13705 2008-02-28 21:00:13 +00:00
nicolasconnault cbca4dbf6c Changing "overall average" to "Course average" in the outcomes report. 2008-02-28 15:51:25 +00:00
nicolasconnault 0e55fb3512 MDL-13718 New icon for "locked" state icon, for grades whose grade item is locked. 2008-02-28 15:40:42 +00:00
tjhunt 3747744140 MDL-13189 - replace the $QTYPE_MENU global with a function call, so that we can set up the language strings later, after $COURSE is initialised. This ensures that the quesion names appear in the right language. 2008-02-28 12:52:59 +00:00
nicolasconnault 0b0bfed7f3 MDL-13712 Fixed 2008-02-28 12:40:38 +00:00
nicolasconnault 2a1245108c Corrected a few US spellings (z in categorized for example). 2008-02-28 08:57:21 +00:00
urs_hunkler 591f3a61ab added new icon 2008-02-28 08:14:24 +00:00
scyrma b893b91a47 MDL-12726 - Making the htmlarea width default to 598 if it's null, don't touch it otherwise 2008-02-28 08:13:08 +00:00
moodlerobot e018b8db42 Automatic installer.php lang files by installer_builder (20080228) 2008-02-28 03:41:27 +00:00
moodler 0e8422bf22 MDL-13659 Change display of groupings on course page 2008-02-28 03:37:03 +00:00
martinlanghoff 551f60bd3b MDL-90: Remove System.php until we have sorted licensing issues. 2008-02-28 03:16:18 +00:00
scyrma dec87682bf MDL-11242 - Setting the width back to it's 1.8 value. This makes it a bit too large for the message window, but is necessary for IE7/Vista 2008-02-28 03:11:37 +00:00
nicolasconnault 38e533a43c MDL-13663 Docs updated. 2008-02-27 19:04:03 +00:00
skodak 0ed613096c MDL-13681 fixed forum search 2008-02-27 18:49:08 +00:00
nicolasconnault 6778021371 MDL-13699 Followed Helen's instructions. 2008-02-27 18:43:07 +00:00
urs_hunkler d3228e8238 MDL-13700 :: added fontsizes for tag clouds 2008-02-27 18:40:06 +00:00
andreabix b17ce9a429 Fixed MDL-12564 2008-02-27 17:36:53 +00:00
nicolasconnault 2758b9a780 MDL-11924 Changed setting quickfeedback to showquickfeedback and added the toggle accordingly. 2008-02-27 17:03:46 +00:00
andreabix 3fb558da2f Updates and fix for Moodle 1.9 2008-02-27 13:41:08 +00:00
nicolasconnault 5c32a46383 MDL-13674 Course category fullname field is no longer required. If set to empty it will be recorded in the DB as ?, and the course name will be used instead wherever the category name is displayed. 2008-02-27 12:45:10 +00:00
urs_hunkler 4b76cb6fc0 MDL-13648 :: removed the chameleon settings 2008-02-27 12:06:49 +00:00
skodak 7c6e10fe39 MDL-90 fixed quickforms pear include regression 2008-02-27 11:08:01 +00:00
urs_hunkler 68d6a45263 MDL-13648 :: several enhancements/changes due to the discussion in the Moodle tracker:
_ changed the README - Custom corners is now experimental
_ styles_colors from standard included - all the usabilty work using colors will automatically show up in Custom corners too
_ optimized the JavaScript which adds the necessary layouttable classes to the body tag
_ Chameleon engine removed - developers throw in CSS at the end without caring if the Chameleon engine can handle it
2008-02-27 10:31:28 +00:00
nicolasconnault 517e069dec /MDL-13578 New links implemented. 2008-02-27 10:11:50 +00:00
skodak ed1b0d012c MDL-13690 activity outcome items do not support calculation - remove calc icon 2008-02-27 10:10:23 +00:00
skodak cb8faf0f12 MDL-90 fixed install.xml 2008-02-27 10:07:10 +00:00
skodak 0854d3f00e MDL-13695 precreating grades in grade calculation if needed 2008-02-27 10:00:47 +00:00
scyrma d3b68faff0 MDL-13404 - print cloud in the box 2008-02-27 09:44:55 +00:00
scyrma 7684e6314d MDL-13691 - make the tag description edition work again. 2008-02-27 09:33:24 +00:00
nicolasconnault a6b6baf25e MDL-13647 Added new icon. 2008-02-27 09:15:59 +00:00
skodak 7551972d69 MDL-12497 fixed regressionwhen saving site letters, fixed redirect 2008-02-27 08:57:54 +00:00
scyrma 6f5fd34644 MDL-13404 - misc fixes 2008-02-27 08:54:26 +00:00
moodler 4e2d942e71 Fixed the renaming and added a new tag_get() function.
Some of the other tag_get functions should be removed and we can use this for many things
2008-02-27 08:53:03 +00:00
nicolasconnault 8ea0f9c792 MDL-13579 Corrected a bug in default value selection for the grader report preferences form. 2008-02-27 07:50:12 +00:00
scyrma 70adc76b61 MDL-13404 - make tag_rename able to make a change in case, and prevent numerous possible missing addslashes problems. 2008-02-27 07:29:15 +00:00
nicolasconnault ca45180f23 MDL-13579 Reduced the setting to 3 locations. 2008-02-27 07:27:13 +00:00
moodler 9b80ac3538 MDL-13635 FIxed logic here a bit: Mat is fixing tag_rename next 2008-02-27 07:12:28 +00:00
scyrma bb6010edaa MDL-13404 - Minor performance improvement and code cleanup 2008-02-27 06:31:28 +00:00
moodler 2c1868ca6b Protect the directory a bit 2008-02-27 06:11:39 +00:00
scyrma 0a08be2397 MDL-13633 - Now sorting correctly 2008-02-27 06:02:44 +00:00
scyrma 6a4bd1e861 MDL-13633 - (OOPS) Completed incomplete changes - simplified tag_print_cloud. 2008-02-27 05:54:16 +00:00
moodler 524c0c8fab MDL-13685 Make custom_corners use colours properly on plugin page 2008-02-27 05:39:14 +00:00
moodler 6468df8aca MDL-6591 Simplified some wording and fixed the help file name for emailnotification 2008-02-27 05:05:01 +00:00
scyrma fb10b05479 MDL-10639 - Missing string 2008-02-27 04:46:43 +00:00
scyrma 86def10b64 MDL-13633 - This is a first step toward integrating all "tag blocks" together. 2008-02-27 04:46:15 +00:00
moodler 9e1889cdae MDL-90 Adding webdav_locks table to make Martin Langhoff's WebDAV patches simpler to apply later
From: http://git.catalyst.net.nz/gitweb?p=moodle-r2.git;a=commitdiff_plain;h=e27f04c42ba05ee224eafa03549b4b5252ca07f5
2008-02-27 04:33:20 +00:00
moodlerobot 08bae0231a Automatic installer.php lang files by installer_builder (20080227) 2008-02-27 03:44:00 +00:00
martinlanghoff 351b7cd179 MDL-90 PEAR/HTTP/WebDAV: fix file name encoding ... for real this time?
Cherry picked from upstream.
2008-02-27 03:02:05 +00:00
martinlanghoff ed997a6b9c MDL-90 moodlelib: Introducing get_cache_flag() - gets a row from cache_flags table
Useful if you intend to use cache_flags as a session
table. (Oops! Did I reveal my cunning plans?)
2008-02-27 02:57:44 +00:00
martinlanghoff 94ff81261d MDL-90 authenticate_user_login() - don't accidentally return a bogus $user
While I don't quite understand why we need that $user->id=0, at
_least_ make double sure we don't return it! Callers assume
that if we return an object===success and a user acct that just does
not exist will return an dummy object.
2008-02-27 02:56:59 +00:00
martinlanghoff 58bf9beea3 MDL-90 lib/setup: extend include_path to cover the PEAR libs we distribute
Almost no cost - most of our require/include calls are with
absolute paths, which will skip the include_path. The few
that are not absolute are usually to include PEAR libs -
so this is appropriate and avoids having to change the
PEAR libs themselves when they make references to other
PEAR libs.

Using the include path does mean that OS-installed PEAR libs
will override ours. There's a small compat risk here - if you
need to ensure a particular version, use an absolute path.
2008-02-27 02:56:06 +00:00
martinlanghoff 0844c5d93b MDL-90 weblib: Introducing mdie() - close sibling of Perl's die()
So that commandline scripts can die with a message and
a nonzero errorcode
2008-02-27 02:52:39 +00:00
martinlanghoff 26e8984b51 MDL-90 Introducing MOODLE_SANE_INPUT and MOODLE_SANE_OUTPUT to setup.php
These two constants indicate that the Moodle core should not mangle
input (magic quotes of any kind verboten!) and should not spit odd stuff
in the output (displaydebug verboten!). Both are needed for WebDAV
support.

MOODLE_SANE_INPUT is tricky - it means that the codepaths _must_ use
$db->qstr() (or addslashes() - but that has its own problems).
2008-02-27 02:51:59 +00:00
martinlanghoff 2f599e1732 MDL-90 lib/pear: Included System.php - used by WebDAV libs
We need to resolve the dual-licensing of this if we are going to
distribute it with Moodle - see MDL-6693
2008-02-27 02:51:18 +00:00
martinlanghoff c67c987c80 file System.php was added on branch MOODLE_19_STABLE on 2008-02-27 02:51:18 +0000 2008-02-27 02:50:59 +00:00
martinlanghoff b1f3971caf MDL-90 Imported PEAR's HTTP_WebDAV_Server from HEAD @ 28-01-2008
This is a very strict import - did not include any of the
sample files (which are quite dangerous!). See the
README_MOODLE.txt for details.
2008-02-27 02:50:20 +00:00
martinlanghoff dfaa493161 file _parse_proppatch.php was added on branch MOODLE_19_STABLE on 2008-02-27 02:50:21 +0000 2008-02-27 02:49:21 +00:00
martinlanghoff 3e02d264ab file _parse_propfind.php was added on branch MOODLE_19_STABLE on 2008-02-27 02:50:21 +0000 2008-02-27 02:49:21 +00:00
martinlanghoff 670fd620d8 file _parse_lockinfo.php was added on branch MOODLE_19_STABLE on 2008-02-27 02:50:21 +0000 2008-02-27 02:49:21 +00:00
martinlanghoff d47d910b13 file Server.php was added on branch MOODLE_19_STABLE on 2008-02-27 02:50:21 +0000 2008-02-27 02:49:21 +00:00
martinlanghoff 5874bee4d1 file README_MOODLE.txt was added on branch MOODLE_19_STABLE on 2008-02-27 02:50:21 +0000 2008-02-27 02:49:21 +00:00
martinlanghoff e74d5d31af file LICENSE was added on branch MOODLE_19_STABLE on 2008-02-27 02:50:21 +0000 2008-02-27 02:49:20 +00:00
martinlanghoff 9913f77ed1 file COPYING was added on branch MOODLE_19_STABLE on 2008-02-27 02:50:20 +0000 2008-02-27 02:49:20 +00:00
martinlanghoff ef201b4775 file AUTHORS was added on branch MOODLE_19_STABLE on 2008-02-27 02:50:20 +0000 2008-02-27 02:49:20 +00:00
skodak 36d07602b7 MDL-13158 choice/index.php only return values for choices in the current course. 2008-02-26 23:19:05 +00:00
skodak 2a154e890e MDL-10990 2) added event table index for calendar block/view 2008-02-26 22:46:32 +00:00
skodak 2bef07cd85 MDL-10990 4) added missing indexes into data module 2008-02-26 22:02:59 +00:00
martinlanghoff 5ab05fb15f MDL-11180 datalib: get_courses() - grab the course context as part of the select
This speeds up course & category listing enormously - cutting 2500 DB queries
for a site with 2500 courses. It's the power of the JOIN...
2008-02-26 21:51:16 +00:00
skodak 3236902cdd MDL-10990 5) eliminated reply related cap queries for guests and not-logged-in users because they can not post anyway, removed reply link for guests from news posts, they did not see Add discussion link already 2008-02-26 21:35:54 +00:00
skodak c1d1f1679e fixed occurred spelling; backport from HEAD 2008-02-26 21:25:03 +00:00
skodak 871836deb7 fixed broken lang string with incorrect " 2008-02-26 21:21:46 +00:00
skodak d242777c73 MDL-10990 1) fixed slow guest query with no mnethostid 2008-02-26 20:00:25 +00:00
skodak ea80372129 MDL-12927 installer should detect the magic quotes settings and undo the slashes if necessary 2008-02-26 19:50:06 +00:00
skodak ce896718cf MDL-6591 inverted checkbox for email notification; MDL-9657 - fixed date issues in drafts 2008-02-26 19:26:42 +00:00
skodak 13db6cc1e4 MDL-13623 proper version detection 2008-02-26 18:33:22 +00:00
nicolasconnault 997dc05600 MDL-13663 Docs updated. 2008-02-26 16:25:48 +00:00
nicolasconnault e588753478 Missing string 2008-02-26 13:02:00 +00:00
moodler 52ffec20aa MDL-13672 tag name function was not updated when tag/lib.php changed 2008-02-26 12:45:32 +00:00
sam_marshall c254ed8511 MDL-13660: Allow admin reports to have db tables, cron 2008-02-26 10:32:40 +00:00
nicolasconnault 8900fdf11d MDL-13663 Docs updated. 2008-02-26 09:56:30 +00:00
moodler 4dc9acd3db MDL-13569 Mark N patch for notice 2008-02-26 09:05:04 +00:00
moodler 2d08c94d20 MDL-12634 Fixed returning to index page 2008-02-26 08:42:21 +00:00
moodler 3bbc889109 MDL-12294 Fixed some strings 2008-02-26 08:34:04 +00:00
moodler eecbfe6e80 MDL-12294 Fixed some assignment strings 2008-02-26 08:26:23 +00:00
moodler 65be953852 MDL-12294 FIxed some wrong string 2008-02-26 08:06:56 +00:00
moodler c8842694e2 MDL-12294 Fixed a bunch of missing or wrong strings 2008-02-26 08:00:09 +00:00
scyrma 207828729e MDL-10639 - Removed "Export" column - export all available outcomes 2008-02-26 07:28:01 +00:00
moodler e5f7002f2f MDL-12294 fixed parentlang string 2008-02-26 07:27:23 +00:00
moodler 00f60cd1cb MDL-12248 custom_corners people can now use roles ;-) 2008-02-26 07:15:34 +00:00
moodler 659cae579e MDL-11809 Fixed broken headline 2008-02-26 07:01:23 +00:00
scyrma 8d0aa2442d MDL-13669 - Editing now only lists the manually added tags 2008-02-26 06:53:51 +00:00
scyrma 8389c869ee MDL-13404 - Missing part of previous commit : args to tag_get_related_tags have changed 2008-02-26 06:48:58 +00:00
scyrma 7bbd75dc6e MDL-13404 - Modification to all tag_get_tags_* calls needing an array & other improvements 2008-02-26 06:39:10 +00:00
skodak 186fa912d9 MDL-13623 fixed regression in PHP < 5.2.0 2008-02-26 06:25:23 +00:00
moodler 30c56fe4dc MDL-9367 Fix doc links for auth pages 2008-02-26 05:49:32 +00:00
scyrma 21c24eb64f MDL-13642 - re-added the proper query limits 2008-02-26 05:07:49 +00:00
scyrma a55d206ce7 MDL-13404 - Fix to a few queries, to prevent problems, as suggested by Eloy 2008-02-26 02:23:10 +00:00
skodak 578629dabe MDL-13626 fixed mssql compatibility issue in stats upgrade 2008-02-25 21:54:54 +00:00
skodak f362682471 MDL-13665 HTML editor is loaded as non-secure on the secure "Add new user" form, patch by Steve Bond 2008-02-25 20:38:52 +00:00
skodak 3dd102788f MDL-13661 - fixing incorrect use of array_shift 2008-02-25 20:21:18 +00:00
skodak a4166d5966 MDL-13237, MDL-13661 - fixing rcache regression, sorry :-( 2008-02-25 15:14:35 +00:00
skodak d7f64fa590 MDL-13483 adding noemailever info 2008-02-25 14:29:50 +00:00
skodak c5b4af2e5d MDL-13483 found two more native php mail() commands 2008-02-25 14:03:53 +00:00
skodak 3fa7bee5ce MDL-9657 advanced upload assignment draft tracking now available as activity setting 2008-02-25 13:33:26 +00:00
skodak e7bbc17fa2 MDL-9657 better dealing with drafts in assignment 2008-02-25 12:38:26 +00:00
skodak 2dc8d0e158 MDL-13653 droplow not ignoring ungraded items un sum aggregation 2008-02-25 12:16:56 +00:00
poltawski e9e0641372 MDL-9667 - convert_tree_to_html doesn't set css class properly if
$tab->linkedwhenselected is set

Patch from Jeff Graham
2008-02-25 11:56:43 +00:00
scyrma 6343168321 MDL-13624 - Use bigint(10), not bigint(11). This update doesn't change the schema on a site that's already installed. 2008-02-25 08:25:51 +00:00
scyrma 3c5591c51c MDL-13643 - Missing constant definition 2008-02-25 08:10:22 +00:00
scyrma 7afc1d07f4 MDL-13404 - Final fix to make it possible, for an tag-managing user, to rename a tag on the tag editing page. 2008-02-25 08:02:41 +00:00
skodak 137a439ac6 MDL-13644 permanent typos 2008-02-25 07:43:48 +00:00
moodler 4984973b93 MDL-13643 Use PARAM_TAGLIST 2008-02-25 07:16:14 +00:00
moodler 3ded4d989d Restoring type PARAM_TAGLIST MDL-13643 2008-02-25 07:15:33 +00:00
scyrma e9a0e86e70 MDL-13636 - Modification to the YUI autocomplete call, to show and use the right strings 2008-02-25 07:05:46 +00:00
moodler 10487fa6da MDL-13635 Managers can now edit tag name on the edit tag interface 2008-02-25 06:26:47 +00:00
moodler 58ea1ced21 Just moved a line of code 2008-02-25 06:25:54 +00:00
scyrma d6f8bc5b15 MDL-13639 - use tag_find_tags, MDL-13404 - improve documentation in the file, MDL-13636 - partial fix 2008-02-25 05:47:03 +00:00
moodler 4d6eee8d65 MDL-13632 Make sure official tags are in the right case. 2008-02-25 05:30:44 +00:00
moodler 6652a915eb MDL-13640 Manage tags link is now consistent on search and tag page 2008-02-25 05:02:25 +00:00
moodler 72876267d2 MDL-13638 Added a link to remove from interests, moved user/tag.php to tag/user.php and removed manage link from that list of links about the one tag 2008-02-25 04:56:18 +00:00
moodler 391cd0eb8e MDL-13637 Changed the check for siteadmin to a capability check (managetags) 2008-02-25 03:49:19 +00:00
scyrma dc62cb9ecc MDL-13404 - A site admin should always be able to edit a tag 2008-02-25 03:32:13 +00:00
scyrma f55102c501 MDL-13632 - Keep tag name case by default 2008-02-25 03:26:13 +00:00
scyrma f866f7be99 MDL-13404 - fix in tag_get_related_tags_csv 2008-02-25 03:23:03 +00:00
moodler 91e727f9ae Make blog_tags block get name and rawname MDL-13632 2008-02-25 03:20:35 +00:00
scyrma 1afe433c80 MDL-13634 - wrong _param type. Fixed 2008-02-25 03:15:59 +00:00
moodler f0f4244474 Latest tags 2008-02-25 03:15:51 +00:00
scyrma e278eb4830 MDL-13632 - keeptagnamecase needs to be "On", and with this change, it will work as expected. 2008-02-25 03:08:59 +00:00
scyrma dde95d41ec MDL-13630 - fix and improvement of the documentation. 2008-02-25 02:49:11 +00:00
scyrma 3310c48044 MDL-13404 - Several improvements to tag system (re-commit, with locallib.php). 2008-02-25 01:25:42 +00:00
scyrma 13ced7fb17 file locallib.php was added on branch MOODLE_19_STABLE on 2008-02-25 01:25:44 +0000 2008-02-25 01:16:46 +00:00
urs_hunkler 2bfb2f1f05 MDL-13418, MDL-13422, MDL 13597 :: corrected CSS issues 2008-02-24 21:15:05 +00:00
skodak 2ec2175f1e MDL-13625 improve perf and fixed groups code on forum index page 2008-02-24 20:14:30 +00:00
skodak 1f7448fc9d MDL-13303 fixed regression in forum recent activity 2008-02-24 20:04:52 +00:00
urs_hunkler da693b58b8 MDL-13453 :: corrected typo 2008-02-24 19:27:30 +00:00
skodak 4ba7849b64 MDL-13605 use userdate() instead of date() when printing next cron execution time 2008-02-24 13:29:10 +00:00
skodak 01911fa4b2 MDL-11494 MDL-13623 - support for secure and httponly cookies 2008-02-24 12:45:49 +00:00
skodak 7545ecdb86 MDL-13565 Tracking forum fixes 2008-02-24 10:52:40 +00:00
skodak 0ed6f1fc6b MDL-13274 label grouping identification 2008-02-24 10:32:13 +00:00
skodak 11274206e0 MDL-13520, MDL-13604, MDL-13620 stats - better simplified parent context join, administrator now counted too, optimised processing when no day logs present 2008-02-23 22:54:30 +00:00
arborrow f543e2acf7 added missing migratinggrades string (called from /backup/restorelib.php) 2008-02-23 20:20:30 +00:00
skodak 794fc9a9a3 MDL-13399, MDL-13614 fixed regression caused by last commit 2008-02-23 19:28:33 +00:00
skodak 1bd430af60 MDL-13615 course edit settings - improved metacourse compatible detection 2008-02-23 19:21:32 +00:00
skodak 910fa9c611 MDL-13613 added better detection for outdated course modinfo 2008-02-23 18:41:14 +00:00
skodak 11f95c99ad MDL-13525 role name aliases used in stat reports 2008-02-23 12:25:21 +00:00
skodak 17178a4ec3 MDL-13192 minor cleanup 2008-02-23 12:16:52 +00:00
skodak 54a252ba51 MDL-13603 fixed course_setup() minor problem with $course in $SITE 2008-02-23 12:12:47 +00:00
skodak 2771076cab MDL-13526 fixed site stats report language 2008-02-23 12:09:43 +00:00
skodak 80eb2b104b MDL-13532 removed incorrect coalesce+count combination 2008-02-23 11:54:34 +00:00
moodlerobot 11925184b7 Automatic installer.php lang files by installer_builder (20080223) 2008-02-23 03:27:48 +00:00
scyrma 4c264c7ff8 MDL-13594 - sorry again, didn't realize Petr had reverted the patch. This reverts the last commit..
i'll fix the mess on Monday.
2008-02-23 03:18:57 +00:00
scyrma a5725844ff MDL-13590 - commited the wrong file, sorry everybody. Here's the good one. 2008-02-23 03:12:52 +00:00
skodak 458544ed1d MDL-13404 reverted - missing file and other minor problems; backported from HEAD 2008-02-22 19:55:11 +00:00
skodak 6b1b51c095 MDL-13590 fixed fatal incorrect require 2008-02-22 14:53:46 +00:00
wildgirl 7541ac282a MDL-12759 help file grammar fix 2008-02-22 11:47:00 +00:00
scyrma 65c75c3ca7 MDL-13404 - Several improvements to the tag sub-system. 2008-02-22 10:17:56 +00:00
wildgirl 20dd99627c MDL-13116 lang string typo fix 2008-02-22 09:27:29 +00:00
wildgirl c070c4021e MDL-13013 lang string typo fixes 2008-02-22 09:02:30 +00:00
moodlerobot 48ab51a5ff Automatic installer.php lang files by installer_builder (20080222) 2008-02-22 03:39:22 +00:00
moodler 58dcf7ad08 Add a shortcut to assign roles page from the participants listing 2008-02-22 02:43:09 +00:00
moodler bda3445de9 MDL-13567 Some fixes to the updating of course settings for restricted modules 2008-02-21 15:15:49 +00:00
skodak 5ed1079984 MDL-13274, MDL-13215 - improved modedit shared forms, label supports groupmembersonly, removed extra button for labels 2008-02-21 14:11:18 +00:00
nicolasconnault 321fcad3ae MDL-11282 Implemented fix 2008-02-21 12:21:44 +00:00
skodak e731779d7a MDL-13559 discussion moving 2008-02-21 10:30:26 +00:00
skodak 9688dc4e27 MDL-13549 related these changes 2008-02-21 09:38:57 +00:00
skodak b8d4faed6b MDL-13549 major bugfixing and improvements in outline report 2008-02-21 09:35:31 +00:00
skodak 570d5b907d MDL-13549 major bugfixing and improvements in participation report 2008-02-21 09:32:15 +00:00
skodak e98a1b9ef3 MDL-13550 deprecated primary role concept 2008-02-21 09:28:59 +00:00
skodak e5a33e0082 MDL-13561 add cmid index to log table to speedup reports that deal with individual activities 2008-02-21 09:25:03 +00:00
nicolasconnault a919ee17b3 MDL-13465 Implemented Martin's solution. Merging from MOODLE_18_STABLE 2008-02-21 09:17:01 +00:00
skodak 20d03127ad MDL-13560 simplify deating with role name course aliases 2008-02-21 09:16:34 +00:00
skodak 2e14f03a63 MDL-13555 fixed typo - thanks Mitsuhiro Yoshida 2008-02-21 08:50:04 +00:00
skodak 1e095f1636 MDL-6591 moving the disable notification from fg prefs 2008-02-21 08:13:58 +00:00
moodler 7a67c58424 Initialise a variable to avoid a notice $displaypage 2008-02-21 06:13:05 +00:00
moodler fdc61d3e9f Latest tags file 2008-02-21 06:09:03 +00:00
moodler 246eb27d88 Avoided a notice for users not logged in 2008-02-21 06:08:30 +00:00
moodler 83ad6e2213 Just some robustness in checking for a variable 2008-02-21 06:01:31 +00:00
moodler 71ebb06911 Some better error checking to help us pick bad lang files 2008-02-21 05:59:50 +00:00
moodler 0746cf3e40 Reverted bad lang file MDLSITE-359 2008-02-21 05:51:48 +00:00
moodler c98be5a96f MDL-13554 Fix from Mark Nielsen for bad block backups 2008-02-21 05:34:10 +00:00
moodler d20c043713 MDL-11752 Upload user pictures (from Anthony and Inaki)
Verified with just major code formatting changes
2008-02-21 05:23:24 +00:00
moodlerobot 4f353aadf5 Automatic installer.php lang files by installer_builder (20080221) 2008-02-21 03:41:22 +00:00
scyrma 16b963e777 MDL-13553 - one more time : it's 'post' not 'blog' 2008-02-21 01:49:06 +00:00
scyrma d970b5a0b2 MDL-13553 - now correctly saving tags with itemtype 'post' 2008-02-21 01:39:31 +00:00
scyrma 6d643c9d6d MDL-13553 - upgrade path to correctly identify the type of each tag_instance 2008-02-21 00:49:59 +00:00
skodak 2c4bd0a648 MDL-6591 changing label to Disable notification in order to prevent confusion 2008-02-20 21:48:25 +00:00
stronk7 645beec03b Adding one new string, preparing for blogs backup. 2008-02-20 19:06:13 +00:00
skodak 0db6d34e6d MDL-12909 do not included users without idnumber in xml grade export preview 2008-02-20 18:28:50 +00:00
skodak 6b465e1867 MDL-6591 Optional assignment graded email notification - based on patch by Gary Anderson 2008-02-20 17:49:58 +00:00
pichetp 5420407e1e Merging from HEAD MDL-13457 Validation when moving to another category 2008-02-20 13:00:36 +00:00
skodak 9660a6ddf2 MDL-4667, MDL-4112 switching order of columns in course-userid log table index in order to please mysql 2008-02-20 09:52:46 +00:00
skodak 8ae9a7dffc MDL-4667, MDL-4112 switching order of columns in course-userid log table index in order to please mysql 2008-02-20 09:31:44 +00:00
skodak f499bdf505 MDL-13546 fixed table name typo - patch by Samuli Karevaara 2008-02-20 08:40:04 +00:00
moodler d0c276727d Prevent a notice with bad rss feeds 2008-02-20 08:10:38 +00:00
moodler 3eb9c93999 MDL-13544 Removed logging of cleanremoteaddr from logs 2008-02-20 07:01:18 +00:00
moodler 86e44df6b0 SMall notice fix for $showing 2008-02-20 06:51:45 +00:00
moodler d30f1d1ad9 Fixing a trivial notice 2008-02-20 06:18:52 +00:00
moodler f3aac02c26 MDL-13542 More return value checking 2008-02-20 06:15:16 +00:00
moodler 2116a8a428 FIxed some notices MDL-13542 2008-02-20 06:12:09 +00:00
moodler f8471a1a96 MDL-13541 Error checking on parameters 2008-02-20 06:07:18 +00:00
moodlerobot bebd1968b2 Automatic installer.php lang files by installer_builder (20080220) 2008-02-20 03:38:26 +00:00
moodler ed3b8f3d0c MDL-12277 Merged from 1.8 - fix for message sending in other languages 2008-02-20 02:32:03 +00:00
tjhunt 978af5c28b Fix dangerous comment. (MDL-13536) 2008-02-19 17:14:10 +00:00
tjhunt 1cc44fbf90 MDL-13448 - missing the global $db statement. Fix thanks to Samuli Karevaara. 2008-02-19 16:21:35 +00:00
tjhunt 17e4bb1533 MDL-13390 - Wrong links in quiz notification emails 2008-02-19 16:19:56 +00:00
tjhunt aede0ebcc0 MDL-13530 - Improve words used in the gradebook plugin selector dropdown menu 2008-02-19 15:00:00 +00:00
skodak 5f65bc5b94 MDL-12538 skip to main does not work if page div contains other attributes 2008-02-19 13:33:21 +00:00
skodak 4a906d7333 MDL-9931 adding go button to delete 2008-02-19 13:12:55 +00:00
skodak 281ec00e8f MDL-11586 rewritten file name collision handling in upload manager - files without extension, fixed increments if file name contains _123 already 2008-02-19 13:03:01 +00:00
stronk7 d685fe5705 Added one new string to installer files. MDL-13489 2008-02-19 11:47:35 +00:00
skodak c26f59b6fc MDL-11816 fixed wiki export with quick hack 2008-02-19 11:04:48 +00:00
skodak 9e931faa98 MDL-11816 fixed wiki export with quick hack 2008-02-19 10:59:21 +00:00
skodak f6dde04372 MDL-11843 deleting of activities directly from calendar is dangerous/confusing 2008-02-19 10:45:14 +00:00
skodak e4fd076246 MDL-12862 ewiki source code converted to utf8, patch by Tatsuya Shirai 2008-02-19 10:04:08 +00:00
urs_hunkler 5407ff018b Merged from 1.8 :: Added h1 - h4 fontsizes. Disabled the Chameleon engine by default. Wrote a short hint about the intearactive editing in the README. 2008-02-19 07:52:37 +00:00
moodler 6fd30e78c7 MDL-13489 Fixed wording 2008-02-19 06:57:10 +00:00
moodler d33eb04648 MDL-13489 Applied patches from Anthony with minor changes 2008-02-19 06:49:41 +00:00
scyrma a81b97bf9b MDL-13404 correct typo 2008-02-19 05:13:41 +00:00
scyrma a5cf0536aa MDL-13404 - cleanup code style 2008-02-19 05:12:25 +00:00
skodak 827ea538e5 MDL-12382 allow admins to access any course - including courses where they have guest role and course does not allow guests 2008-02-18 23:39:28 +00:00
skodak adb4cdc5a8 MDL-12382 allow admins to access any course - including courses where they have guest role and course does not allow guests 2008-02-18 23:33:35 +00:00
skodak ff90e9be5f MDL-13302 gradebook data deleted now in remove_course_contents() - it makes better sense to have it there 2008-02-18 23:09:43 +00:00
skodak acb05e1d85 MDL-13302 gradebook data deleted now in remove_course_contents() - it makes better sense to have it there 2008-02-18 23:07:44 +00:00
pichetp a19e31a1d6 cleaning // 2008-02-18 20:40:41 +00:00
pichetp a1b3e19dd4 merging MDL-13419 removing space before input html element and cleaning of diagnostic
message
2008-02-18 20:35:52 +00:00
skodak 8905e7b645 MDL-13399 prevent ambiguous column names in get_my_courses 2008-02-18 20:13:02 +00:00
danmarsden b28a21b88b MDL-13478 choice results using too much memory. - improves performance when not showing the unanswered column. - also tidies up a few checks which aren't needed. Merged from HEAD 2008-02-18 19:53:06 +00:00
skodak 35e8af0edf MDL-12942 extra credit implemented in sum aggregation type; fixed sum aggregation; fixed division by zero in item grade min==max 2008-02-18 19:10:15 +00:00
moodler a607365fc8 Swapped the two save buttons MDL-6826 2008-02-18 14:22:30 +00:00
skodak ce07f4dc34 big big sorry, forgotten old debug code that sends all mails to null 2008-02-18 12:34:16 +00:00
stronk7 48c52be77a Add support to specify text sizes via formats. MDL-13505 2008-02-18 10:52:32 +00:00
moodlerobot c4e643d335 Automatic installer.php lang files by installer_builder (20080218) 2008-02-18 03:37:00 +00:00
moodler 1ba4c3e132 Add some information about the next stats run to the cron output 2008-02-18 03:12:57 +00:00
moodler eed0327fd9 MDL-13498 Removed path from display of plugins. 2008-02-18 02:10:14 +00:00
moodler e8f4d7e395 Removed some required files that are not needed 2008-02-18 02:08:04 +00:00
skodak 9159c64a7d MDL-11811 OpenDocument is correct name for file format 2008-02-17 19:47:48 +00:00
skodak 1f30b89fd8 MDL-11811 OpenDocument is correct name for file format 2008-02-17 19:47:25 +00:00
skodak 985ea691ac MDL-13445 linked activity deleting improvements 2008-02-17 19:11:29 +00:00
skodak 205e71d01a MDL-12934 temporary fix for grade items of activities without proper course module record 2008-02-17 19:03:15 +00:00
skodak 55534cfdd2 MDL-12934 temporary fix for grade items of activities without proper course module record 2008-02-17 18:37:54 +00:00
skodak 832ca9bd1b MDL-13026 improved sql for course totals on grader report 2008-02-17 17:17:48 +00:00
skodak c2f2f33541 MDL-13231 outcomes aggregation off by default now 2008-02-17 16:05:16 +00:00
skodak d29877ac8c MDL-13269 fixed regrading of activity raw grades 2008-02-17 15:59:44 +00:00
skodak 44ceee90e9 MDL-13437 Grader report: Showing idnumber column shifts controls into wrong columns 2008-02-17 14:55:40 +00:00
skodak bd9a7b89a7 MDL-13477 main version bumped to .02 - three decimal points did not work for Eloy :-( 2008-02-16 22:26:54 +00:00
skodak 1b268daa33 MDL-13192 major stats cleanup patch - see tracker for more details 2008-02-16 18:32:23 +00:00
skodak 490c14fe8a MDL-13459 fixed hardcoded mdl_ prefix 2008-02-16 11:35:54 +00:00
skodak 53726ba409 MDL-13241 adding forgotten table scale_history into upgrade code 2008-02-16 11:20:15 +00:00
nicolasconnault ee6689b003 MDL-13459 Didn't use the patch, which puts its finger in too many pies. Instead just implemented a quick-fix, a temporary get_assignable_for_switchrole() function. It only affects the switchroles menu 2008-02-15 16:35:19 +00:00
nicolasconnault 29252268ca MDL-13459 Didn't use the patch, which puts its finger in too many pies. Instead just implemented a quick-fix, a temporary get_assignable_for_switchrole() function. It only affects the switchroles menu 2008-02-15 16:35:19 +00:00
skodak bd09b95b81 undefined discussion timestart on frontpage 2008-02-15 15:27:17 +00:00
skodak 3db9b3c2b1 MDL-13484 peak memory used perf info added 2008-02-15 11:31:38 +00:00
skodak 30914826c9 MDL-13483 new hidden $CFG->noemailever setting to block sending of all emails - for dev sites only, set in config.php if needed 2008-02-15 10:45:36 +00:00
skodak 32d746f1d7 fixed warning when module code missing 2008-02-15 10:38:37 +00:00
skodak 02bb190c1d MDL-13482 fixed pg issue with group by 2008-02-15 10:30:38 +00:00
mudrd8mz 11a30670cb MDL-13480 swapped strings in help 2008-02-15 09:36:43 +00:00
skodak fc98a031c3 $cours typo fixed 2008-02-15 08:32:48 +00:00
donal 5afa13193d MDL-12492: Thanks to Nigel McNie, this addresses a problem which prevents hosts from re-keying when their keys expire. 2008-02-15 08:32:24 +00:00
donal 14715db3ee Write to the log when the SSL key is created 2008-02-15 08:10:52 +00:00
donal 28febd2534 Remove unneeded mnet_host2service records 2008-02-15 08:04:22 +00:00
moodler 282e599572 UPdated readme to be consistent with new version
Languages all seem to be fixed upstream
2008-02-15 06:49:30 +00:00
moodler 626b76b38f Added back some forced conversion in _adodb_column_sql() (not the same patch as before)
Related to SC#259
2008-02-15 06:44:22 +00:00
moodler 4dd6dd7155 Reapply MDL-12378 to current version for XHTML compliance 2008-02-15 06:34:16 +00:00
moodler a41ba92752 Upgrading to 4.98 as per MDL-13474. Works for me! 2008-02-15 06:03:58 +00:00
moodlerobot c9d4eba186 Automatic installer.php lang files by installer_builder (20080215) 2008-02-15 03:39:23 +00:00
moodler 9988024f6e Just tidying up source 2008-02-15 02:42:56 +00:00
moodler 1fe0ed0b7d Fixed MDL-13476
- discussions can now be moved
 - URL for return is now correct (discuss.php not discussion.php)
2008-02-15 00:50:10 +00:00
stronk7 3ecc34b2d5 Messages backup improvement. MDL-13473 2008-02-14 23:32:43 +00:00
skodak 186c4de5ac MDL-13303 fixing missing group icons in forum 2008-02-14 16:36:12 +00:00
skodak 7a26b64a13 MDL-12945 fixed sql purity to make pg happy, fixed bug in user list of active chats 2008-02-14 16:11:58 +00:00
nicolasconnault 43a4458850 MDL-13430 I can only see this issue in the assignment submissions page. Merging from MOODLE_18_STABLE 2008-02-14 07:25:11 +00:00
moodler 6fcb1a4e2d MDL-13152 from Dariem Garces
Groups that don't exist will be created on the fly
2008-02-14 03:12:00 +00:00
skodak 66714f7c98 MDL-13303 - forgot to change warnings to developer mode only MFC 2008-02-13 17:17:26 +00:00
skodak 5623276da8 MDL-13450 and MDL-13303 - sorry for changing forum API so late, but it was needed; major perf improvement for forum; fixed printing of user pictures 2008-02-13 17:01:41 +00:00
skodak af9ce11eec this function should work for all modules but forgot to remove 'quiz' from sql. - backporting from HEAD, I hope that is ok ;-) 2008-02-13 16:30:12 +00:00
skodak f34dfc143f MDL-13375 fix for duplicate itemnumbers in outcome items 2008-02-13 09:47:22 +00:00
skodak 8a881c78de MDL-13375 reverting, the bug is somewhere else 2008-02-13 09:22:26 +00:00
nicolasconnault 4618409cfd MDL-13375 Applied Dan's patch, and patched up assignment/lib.php accordingly. Multiple outcome grading from assignment is now possible. 2008-02-13 08:49:52 +00:00
nicolasconnault 6644a4f4e5 MDL-13375 Fixed the bug in modedit.php 2008-02-13 08:14:40 +00:00
donal 916071c464 Ensure that the wwwroot has been supplied with a http:// or https:// prefix 2008-02-13 03:06:56 +00:00
pichetp a01d104cdf merging MDL-12421 rounding 2008-02-13 02:09:14 +00:00
pichetp 5710f8575c merging MDL-12388 return url and MDL-12421 rounding problem 2008-02-13 01:30:13 +00:00
donal 0962e21070 MDL-12492: This patch addresses a problem which prevents hosts from re-keying when their keys expire. 2008-02-12 22:27:51 +00:00
urs_hunkler 0594a0aaee MDL-13421 :: corrected left padding in admin block - second approach 2008-02-12 21:26:49 +00:00
poltawski 624c7abf1a MDL-13337 - Add confirmation before deleting outcomes (and POST for action..) 2008-02-12 21:13:25 +00:00
urs_hunkler 0871252e6b MDL-13444 :: removed the jQuery library and use direct JavaScript instead. That's much faster.
MDL-12078 :: Changed them calles from themewww to httpsthemwww (MDL-12078). MDL-13421 :: corrected left padding in admin block
2008-02-12 21:12:46 +00:00
nicolasconnault 311ea49f58 MDL-13397 Implemented the requiredentries parameter (previously not implemented). This includes a warning message and an SQL restriction on entries fetched for view.php 2008-02-12 15:55:34 +00:00
nicolasconnault 111c351849 MDL-13397 Implemented the requiredentries parameter (previously not implemented). This includes a warning message and an SQL restriction on entries fetched for view.php 2008-02-12 15:06:52 +00:00
nicolasconnault aebdc0bdb3 MDL-13440 fixed typo 2008-02-12 13:45:15 +00:00
thepurpleblob 91fa457ea2 Added check for <text> fields that contain markup (an error!) 2008-02-12 11:55:33 +00:00
skodak c2d04f05a0 MDL-9657 assignment submission finalisation now independent from grade 2008-02-12 10:50:35 +00:00
skodak a63215000d MDL-11920 prevent db traffic caused by user images 2008-02-12 08:19:50 +00:00
scyrma 6fec177f09 MDL-10639 - fix problem with buttons when there are no outcomes. 2008-02-12 07:59:24 +00:00
ethem a1cc49c6b1 Merged from MOODLE_18_STABLE 2008-02-11 15:39:13 +00:00
scyrma fa868b8a3d MDL-10639 - now using moodleforms 2008-02-11 02:19:37 +00:00
moodlerobot 78298a17dd Automatic installer.php lang files by installer_builder (20080209) 2008-02-09 03:35:43 +00:00
poltawski 4890c92d15 MDL-13262 - role related user filters were assuming roleids because array_merge
was stomping on keys. Patch by Dennis Rochford
2008-02-08 12:14:39 +00:00
poltawski a3b2abed80 MDL-13354 - wrong capability checked for view report link 2008-02-08 09:57:07 +00:00
moodler e26612356b Fixed context in has_capability call MDL-13378 2008-02-08 03:58:45 +00:00
moodlerobot 40a15c546e Automatic installer.php lang files by installer_builder (20080208) 2008-02-08 03:30:27 +00:00
poltawski f8cfb1230f MDL-13339 - ensure we don't continue the restore process if there is
no course header in the backup file. This bug was causing blank course
records to be created when users tried to restore a non-moodle backup file
such as a scorm file.
2008-02-07 18:48:53 +00:00
ethem f461eacc8e Cron handles all expired unenrolments. It is time to use own enrolment method when calling funcs enrol_into_course, role_assign.
Zend Studio Warning: Assignment in condition (line XX), Solved, one more ()

Merged from MOODLE_18_STABLE
2008-02-07 16:27:50 +00:00
moodler 67574a93c5 Fix subject lines and corrupted emails from messages MDL-13364 2008-02-07 05:19:01 +00:00
gbateson a6a781458e MDL-13328 correct the counting of attempts when clickreporting has been enabled 2008-02-07 04:14:21 +00:00
moodlerobot 32e854e51f iAdded lang 2008-02-07 03:32:09 +00:00
moodlerobot 713f0c63dd file installer.php was added on branch MOODLE_19_STABLE on 2008-02-07 03:32:09 +0000 2008-02-07 03:29:58 +00:00
moodlerobot ab147736c1 Automatic installer.php lang files by installer_builder (20080207) 2008-02-07 03:27:24 +00:00
nicolasconnault 2a5e3d244b MDL-6826 Removed the optional_param lines at the top, and set the submit buttons to PARAM_RAW. Also changed !empty() to isset(); Merging from 1.8 2008-02-06 10:24:40 +00:00
ethem d8347a0ab7 MDL-10181 User Management Improvements: Cron unenrolment of manual should takes place in the main cron.
It is time to use own enrolment method when calling funcs enrol_into_course, role_assign, role_unassign.

Zend Studio Warning: Assignment in condition (line XX), Solved, one more ()
Assignments in a conditional statement are sometimes the result of a typo.
In many cases, instead of the assignment operator =, the equality operator ==
should be used. When comparing a variable and a non-variable expression,
it is common practice to put the variable on the right-hand side of the equality
operator, so that if the equality operator is erroneously replaced with the
assignment operator, PHP will report a parse error immediately.
This helps you avoid a big subset of this class of bugs.
2008-02-06 08:07:03 +00:00
scyrma c9c2c21b84 MDL-13348 - fix to get the right order for countries with names starting with unicode characters 2008-02-06 06:17:10 +00:00
moodler 4f8ac26792 Fixed some apostrophes 2008-02-06 05:55:21 +00:00
scyrma 8f5ef63f5d Fix for MDLSITE-345 and correction to MDL-12565. This doesn't solve it all
though : there will still be "orphans" tags in table tag.
2008-02-06 03:34:14 +00:00
skodak 9e10147777 MDL-10132 improved random glossary blocks - now uses modinfo too + fixed some notices 2008-02-05 23:33:44 +00:00
skodak 58da996994 MDL-11282, MDL-11643 - removing notice() from grade_update() - we can not stop execution there! 2008-02-05 23:10:27 +00:00
skodak 9c76f3b45e MDL-13345 disabled module not present on backup form anymore 2008-02-05 22:55:26 +00:00
skodak ffd15ec8f6 MDL-13155 once more - reverting mod/xx/index.php to use get_all_instances_in_courses() again, should be now nearly the same as in 1.8.x ;-) 2008-02-05 21:39:52 +00:00
skodak f1bd9b5ecf MDL-13155 reworked get_all_instances_in_course() and get_all_instances_in_courses(), based on patch by Tim 2008-02-05 21:34:08 +00:00
stronk7 d916897125 Some old backups can contain empties in user->picture, fix them before insert. 2008-02-05 20:28:29 +00:00
skodak ef7b0cc319 MDL-13292 <Vspan> tag on the bottom of the wiki HTML Editor fixed 2008-02-05 19:51:49 +00:00
andreabix 03daf74013 Added missing classes
.rolecap .inherit.capdefault, .rolecap .allow.capdefault {
  background-color:#E3DFD4;
}

#admin-roles-override .capcurrent {
  background-color:#E3DFD4;
}
2008-02-05 18:53:54 +00:00
skodak 1eff062408 MDL-10796 fixed wiki deprecated passing by reference 2008-02-05 18:41:43 +00:00
poltawski c472c4bb50 MDL-13314 count_role_users was showing different count to those returned from
get_role_users(), based on patch from Patrick Pollett
2008-02-05 17:18:10 +00:00
poltawski f296008fe5 MDL-13235 - bulk user action removing users etc was buggy 2008-02-05 15:22:07 +00:00
skodak 782532955d MDL-12518 fixed restore of grade calculations 2008-02-05 13:11:09 +00:00
skodak f6ea800797 MDL-12938, MDL-12937 - unenrol fixes - can not unenrol if can not unassign all users roles in course, do not show self unenrol if enrolment comes from parent context, fixed rturn value from get_user_roles; based on patch by Eric Merrill 2008-02-05 12:58:59 +00:00
jamiesensei 1fe2c24de3 MDL-13298 "Question bank displays always page 1 after adding new question" this was caused because the question creation page was redirecting back to the question back edit page and telling it to change to the category of the question that was just saved. This was causing the edit page to go back to page 0 of the new category. Now we only go back to page 0 if the category has actually changed. 2008-02-05 12:08:38 +00:00
skodak 0e47869e99 MDL-3942 fixed warnings 2008-02-05 11:48:45 +00:00
skodak 6708fa8b98 MDL-12795 length specification in configtext constructor instead of css 2008-02-05 11:42:51 +00:00
jamiesensei c6a4075609 MDL-13005 When trying to restore a course when you have more then one quiz and you choose only one quiz, the restore fails when trying to create categories and questions. Fixed this by ignoring module context level q categories in backup when the course module has not already been restored. 2008-02-05 11:24:19 +00:00
skodak 9430296726 MDL-3942 - various forum scoring types - patch by Anthony Borrow 2008-02-05 11:21:36 +00:00
skodak ddc33af359 MDL-13335 rewritten caching in forum cron 2008-02-05 10:51:20 +00:00
skodak 907a481674 MDL-13334 get_role_access() static cache in cron only 2008-02-05 10:39:59 +00:00
nicolasconnault 7021c8441d MDL-12158 Applied Matt's patch, merging from 1.8 2008-02-05 10:39:29 +00:00
nicolasconnault 50d0bb2e24 MDL-12888 Removing redundant form 2008-02-05 10:29:31 +00:00
nicolasconnault 56352ac96f MDL-12497 Disabled the "override site defaults" checkbox for admin page, and removed redundant help buttons 2008-02-05 10:26:13 +00:00
jamiesensei 4811aacb5a MDL-13034 fixes "insertion of question / category ids at the CONTEXT_MODULE level does not respect whether the instance of the module has been selected for backup" and cleans up code a little. The last commit for this issue did not include any changes. 2008-02-05 10:16:40 +00:00
nicolasconnault 2008bbe5de MDL-10451 Fixed HTML errors, merging from 1.8 2008-02-05 09:53:07 +00:00
scyrma 816219141b MDL-10639. Initial commit of an import/export system for outcomes (and associated scales). 2008-02-05 08:38:44 +00:00
gbateson aad4873cc6 MDL-10451 remove extraneous closing </b> tag from lang/en_utf8/help/hotpot/outputformat.html 2008-02-05 04:24:24 +00:00
gbateson 369865830c MDL-13048 fix undefined course id when importing a Hot Potatoes quiz into the Lesson module 2008-02-05 04:09:58 +00:00
moodler ea5a1c3bf6 Merged logic fix for MDL-6826 2008-02-05 03:17:42 +00:00
skodak ecf7fad11a MDL-13038 update_record now works with boolean false 2008-02-04 23:51:40 +00:00
urs_hunkler f3c789cd94 merged from 1.8 :: MDL-13329 :: Buttons in the sidblocks looked quite different in the different browsers. Changed several CSS aspects to make them look more similar, specially added IE "hacks". 2008-02-04 20:59:20 +00:00
nicolasconnault 63fc9bd4fd MDL-13087 Adding a page break before the first user report 2008-02-04 14:29:11 +00:00
nicolasconnault 74f7fe1b30 MDL-13050 Now showing a link to the gradebook for the hotpot, assignment, quiz and lesson module grading pages, with the right capabilities etc. 2008-02-04 13:52:49 +00:00
nicolasconnault ad619206e1 MDL-6826 Implementing Tatsuya's patch 2008-02-04 12:59:53 +00:00
nicolasconnault d7df0a5d84 MDL-6826 Removed the word "changes" from the two buttons 2008-02-04 12:17:49 +00:00
nicolasconnault 1ee448b935 MDL-13101 Added the Reload button; inserted the 3 tables into one large table so they appear side-by-side; Reduced the font size 2008-02-04 10:58:24 +00:00
nicolasconnault 62556bfefa MDL-13101 Moved the "unattended upgrade" checkbox to the plugin check page 2008-02-04 10:06:49 +00:00
scyrma 087f51bde0 doc & typo fixes 2008-02-04 06:44:49 +00:00
scyrma 7677bef81e MDL-13060 - removing old entries fro VA and CD 2008-02-04 00:48:09 +00:00
stronk7 cebf5d77a3 Save one extra query per user being restored. $newid contains the user id along all the iteration. 2008-02-04 00:04:02 +00:00
stronk7 1b053c41a4 Now custom profile fields and user tags are restored. MDL-6856
.CVS: ----------------------------------------------------------------------
2008-02-03 23:51:20 +00:00
stronk7 4512e31e51 Only insert outcome_course if it doesn't exist. MDL-13308 2008-02-03 18:42:48 +00:00
stronk7 d6ab69f11b Add some outcomes missing strings. MDL-13318 2008-02-03 18:31:57 +00:00
stronk7 0088748449 Oops, commenting some debug lines I left in my previous commit. 2008-02-03 18:24:56 +00:00
stronk7 71b750ed86 Fix restore of outcomes, resusing them when possible. MDL-13309 2008-02-03 18:20:36 +00:00
skodak b632c1b6c9 MDL-13320 typo in lang/en_utf8/forum.php, found by Mitsuhiro Yoshida 2008-02-03 17:56:59 +00:00
skodak 022747163e MDL-13319 skip disabled modules and blocks in cron 2008-02-03 17:27:32 +00:00
urs_hunkler 038b5bd550 Chameleon restrictions info added. 2008-02-03 17:07:05 +00:00
urs_hunkler 270c2f9a0d MDL-13268 :: CSS cleanup and moved from the end of the file to the other admin CSS definitions 2008-02-03 16:57:25 +00:00
urs_hunkler c1abb7586f Merged from 1.8 :: MDL-13268 :: CSS added 2008-02-03 16:54:53 +00:00
stronk7 e2f8d8a212 Detect used scales in course outcomes too. MDL-13307 2008-02-03 16:39:21 +00:00
skodak a3b9814156 MDL-13317 use cached system context in get_user_access_sitewide and when rebuilding paths 2008-02-03 16:21:35 +00:00
skodak b79595db64 MDL-13316 added static cache for time zone info 2008-02-03 16:00:27 +00:00
urs_hunkler 38d6367287 removed trailing space 2008-02-03 15:59:18 +00:00
urs_hunkler 936eeefdcb MDL-13181 :: added to handle changed xhtml
.glossarypost div.concept h3,
.glossarypost.continuous .concept {
  display: inline;
}
2008-02-03 15:55:29 +00:00
skodak ea3c67c5cb MDL-13312 fixed notices caused by previous commit, patch by Gary Anderson 2008-02-03 12:52:29 +00:00
skodak 27ea59826f MDL-13310 added static cron cache into format_text() to prevent some db access 2008-02-03 10:55:24 +00:00
skodak c0207b1ba7 MDL-13306 option to skip logging of blocked emails in forum cron 2008-02-03 10:35:23 +00:00
stronk7 e0acc94f9f Add missing description to grade_outcomes backup. 2008-02-03 10:32:10 +00:00
skodak fc637ec2c1 MDL-13305 , MDL-13304 - fixed memory leak in forum cron and saved 10% of queries when printing user pictures in mails 2008-02-03 10:20:31 +00:00
moodler 04d79b7a0e Automatic installer.php lang files by installer_builder (20080203) 2008-02-03 03:37:11 +00:00
stronk7 9ddb243f13 Add some browser output when restoring a lot of users 2008-02-03 00:46:32 +00:00
stronk7 8f92c1f78b Now we are reading user_profile_fields and user_tags + some small fixes on roles. MDL-6856 2008-02-02 23:58:09 +00:00
skodak 01eaffcf75 MDL-12901 undo weird IE6 hack on bulk and manage users filter form 2008-02-02 22:59:33 +00:00
skodak f995637ed3 MDL-12710 no wrapping of user selection columns in user bulk form 2008-02-02 21:52:43 +00:00
skodak 14f79d5a2f MDL-12900 prevent fatal errors when incorrect scale id specified in grade_item 2008-02-02 21:33:20 +00:00
skodak ccd48da98d MDL-13147 fixing undefined ungraded array and its indexes 2008-02-02 21:23:02 +00:00
stronk7 82ecf200b7 Respect $showfeedback when deleting groups and groupings. 2008-02-02 20:41:55 +00:00
skodak 0e87d49e09 MDL-13257 fixed problems when section 0 does not exist yet 2008-02-02 18:55:35 +00:00
skodak 98cb031e96 MDL-13239 improved smtp bulk setting based on feedback from Gary 2008-02-02 16:22:15 +00:00
moodler 7e49db8100 Automatic installer.php lang files by installer_builder (20080202) 2008-02-02 03:46:03 +00:00
stronk7 fe5f3d08ac Change some conditions to properly check if the custom-profile-field really is using a duplicate shortname. MDL-13288 2008-02-01 17:17:51 +00:00
skodak ede88ab3be MDL-12945 changing get_fast_modinfo() section property to sectionnum to prevent conflicts with real cm->section; full recent activity speedup when printing user pictures in forum 2008-02-01 14:09:27 +00:00
exe-cutor 3d4646688f Corrected some typos and improved instructions 2008-02-01 13:36:54 +00:00
exe-cutor 59780d2e8f Added Shibboleth integrated WAYF service (forgot to add these files) 2008-02-01 12:58:08 +00:00
skodak 38f3f5f1a1 MDL-12945 modfullnames typo 2008-02-01 09:11:52 +00:00
skodak c2508a1608 MDL-12945 fixing mod indexes broken by previous commit 2008-02-01 09:08:40 +00:00
exe-cutor 0bc5c5f8c6 Added new text strings for integrated Shibboleth WAYF service 2008-02-01 08:34:08 +00:00
exe-cutor f32f73c0a6 file login.php was added on branch MOODLE_19_STABLE on 2008-02-01 12:58:08 +0000 2008-02-01 08:30:17 +00:00
exe-cutor 765235a121 file index_form.html was added on branch MOODLE_19_STABLE on 2008-02-01 12:58:08 +0000 2008-02-01 08:30:17 +00:00
exe-cutor 0975cc6e50 Added integrated Shibboleth WAYF service on alternative login page
Updated README
2008-02-01 08:30:16 +00:00
skodak ab3f9fc74e MDL-13220 rebuild course cache after ajax edits - patch by Myles Carrick 2008-02-01 08:22:25 +00:00
skodak c102e3aade MDL-7547 yet more speed improvements in rebuild_course_cache() 2008-02-01 08:15:06 +00:00
skodak 8d8105fdf7 MDL-13214 rebuild_course_cache fixes and speed improvements 2008-02-01 07:47:47 +00:00
skodak 4ce19d978c MDL-12945 disabled mods are not returned from get_course_mods() anymore, the results are used in scheduled backup and other parts that do not expect disabled mods 2008-02-01 07:32:34 +00:00
skodak ab62d48e88 MDL-13239 smtp bulk sending 2008-02-01 07:04:25 +00:00
moodler 6242b7c12b Some cleanups on the error page
- avoid spammers
 - emit proper 404 response
 - use support address if configured
2008-02-01 05:48:43 +00:00
moodler e629fc4ed0 Fixed a notice when a feed dies 2008-02-01 03:05:34 +00:00
fmarier bb4bab500b MDL-13244 - weblib - Add 'summary' attribute to print_table() 2008-01-31 22:21:52 +00:00
mjollnir_ 34f06f743b MDL-12440: take out auth title and description into base class, plugins can override. updated places that use get_string to call these methods. Credit: Luke Hudson <luke@catalyst.net.nz> 2008-01-31 22:01:38 +00:00
gbateson cfce2efbf3 fix for MDL-13174 : replace calls to html_entity_decode() with hotpot_charcode_to_utf8() because html_entity_decode is broken in PHP 4 2008-01-31 07:26:08 +00:00
moodler 1659924e8d MDL-13260 Fixing misplaced variable (notice) 2008-01-31 07:03:33 +00:00
moodler 88e2f1c4bc MDL-13263 2008-01-31 05:49:46 +00:00
moodler e21d53b06b Automatic installer.php lang files by installer_builder (20080131) 2008-01-31 03:46:40 +00:00
moodler 42e9c00f18 MDL-13245 Add a check for viewall 2008-01-31 01:28:29 +00:00
scyrma 08576b0d0a MDL-11594 - Changes in image location broke chameleon 2008-01-31 00:37:06 +00:00
scyrma 740e1c8bd7 file open.gif was added on branch MOODLE_19_STABLE on 2008-01-31 00:37:06 +0000 2008-01-31 00:35:27 +00:00
scyrma 7f5e32ce55 file item.gif was added on branch MOODLE_19_STABLE on 2008-01-31 00:37:06 +0000 2008-01-31 00:35:27 +00:00
scyrma a227d4c0d9 file closed.gif was added on branch MOODLE_19_STABLE on 2008-01-31 00:37:06 +0000 2008-01-31 00:35:27 +00:00
stronk7 013df172c0 Quick fix for not working glossary index. Related to MDL-12949 that needs more improvements. 2008-01-31 00:19:04 +00:00
poltawski 9724b07ebc MDL-13255 - hidden activity capability check was wrong 2008-01-30 21:00:00 +00:00
poltawski 53938064c5 MDL-13255 - hidden activity capability check was wrong, but require_login()
handles it for us when passsed $cm
2008-01-30 20:57:37 +00:00
poltawski 0a3158d669 MDL-13221 - doing wrong capability check for hidden activites. But we
don't need it at all as require_login() with the $cm argument does the
check for us
2008-01-30 20:41:52 +00:00
tjhunt 9e1a55242f MDL-13110 - Manually grading random questions does not work. Fix thanks to Ken Burres. 2008-01-30 18:18:34 +00:00
mchurch f98f1a922e MDL-13252 Fix context to always use course context, rather than instance->page. 2008-01-30 16:42:22 +00:00
tjhunt 4334697e9e MDL-13253 - Should use separate language strings for user and module idnumber. 2008-01-30 16:33:41 +00:00
tjhunt 000b78f3f0 MDL-13238 - Optionally show the user's idnumber in the grader report. 2008-01-30 15:57:56 +00:00
scyrma ea4e7a0226 converted file from dos encoding to unix encoding 2008-01-30 07:27:15 +00:00
moodler 30b646c765 Don't show grades link when $course->showgrades is off MDL-13245 2008-01-30 06:55:55 +00:00
scyrma bcdb377366 MDL-13060 - upgrade path for users (re)created from backup files 2008-01-30 05:23:39 +00:00
stronk7 06e22959d1 Now user profile fileds and user tags are included in backups. Part of MDL-6856 2008-01-30 01:09:40 +00:00
moodler d9ab63d7e9 Applied patch from Yazel Hernandez to fix XHTML strict MDL-13230 2008-01-30 00:34:33 +00:00
danmarsden 3b32b74f43 MDL-3721 Wiki adds lots of invalid tags to the top of the page in every edit. patch from Grigory Rubstov 2008-01-29 20:51:36 +00:00
skodak b8a2e4a095 MDL-13237 rceche limiting through intcachemax finally implemented - this should prevent major memory leaks 2008-01-29 17:29:39 +00:00
poltawski 6f36f19a62 MDL-13226 - allow user digest settings to be set with bulk user actions 2008-01-29 16:20:14 +00:00
scyrma 4d4938c15e Upgrade path for MDL-13060. 2008-01-29 05:47:01 +00:00
moodler 296c5450fd Automatic installer.php lang files by installer_builder (20080129) 2008-01-29 03:39:22 +00:00
scyrma d74e9bf395 No changes - only recoded to utf8. (MDL-13060) 2008-01-29 03:34:14 +00:00
scyrma e783513693 oops : problem with apostrophes. 2008-01-28 08:32:43 +00:00
scyrma 50d3025947 Imported and replaced country list to fix MDL-13060. The new list is the exact ISO list. Note that an official list also exists in French, but we will need to
do translations to other languages.
2008-01-28 08:30:05 +00:00
moodler d2f18a8694 Merged pdf php5 fix from MDL-13207 2008-01-28 05:27:13 +00:00
moodler c15c851c3b Automatic installer.php lang files by installer_builder (20080128) 2008-01-28 03:42:10 +00:00
moodler d53e1e9535 Fixed missing context argument MDL-13206 2008-01-28 03:21:42 +00:00
moodler dd0070851d Latest 1.9 tags 2008-01-28 03:18:13 +00:00
pichetp 339726d0d0 Mergging from head MDL-12255 Adding questiontext decoding and subquestions validation 2008-01-28 00:42:42 +00:00
pichetp 5c90d8094c MDL-12255 Adding questiontext decoding and subquestions validation when editing 2008-01-28 00:39:13 +00:00
gbateson 04d1cad3bf Fix Undefined property: stdClass::$displaynext in mod\hotpot\lib.php on line 356 2008-01-27 23:55:29 +00:00
gbateson b09b58f052 fix Undefined index: studentfeedbackurl in mod\hotpot\mod_form.php on line 305 2008-01-27 23:47:17 +00:00
mjollnir_ 357eefcdbe MDL-13161 - auth/db - suppress php warning when there are no users using db auth 2008-01-27 20:05:29 +00:00
poltawski 66d4805a81 MDL-13149 - use correct capability checks to decide which forum subscribe
links to display
2008-01-27 16:59:29 +00:00
stronk7 5e41141993 Rename lesson usegrademax to usemaxgrade because some old sites can be using the wrong one. MDL-13177 2008-01-27 15:34:29 +00:00
stronk7 03901b0c62 sql_isnull() not used anymore. Deleting. MDL-12970 2008-01-27 01:37:41 +00:00
stronk7 b8f671b379 Deleting core uses of sql_isnull(). MDL-12970 2008-01-27 01:26:47 +00:00
stronk7 59a745a6ad Adding some missing log actions when restoring forums. MDL-13184 2008-01-27 00:34:41 +00:00
stronk7 3f134ab610 Fix notice with edit enabled in site page. 2008-01-26 23:12:09 +00:00
stronk7 5cfbedea89 Added some helper functions, cleanup a bit and add missing parts. MDL-10721 2008-01-26 21:52:20 +00:00
poltawski df599bc11f MDL-13180 - prevent return of duplicate rows 2008-01-26 17:35:22 +00:00
poltawski 8b722fe0b0 MDL-13179 - avoid calling get_admin() when unecessary.
It uses a relatively complex query and its not needed except
for a minority of users so we may as well avoid it..
2008-01-26 16:56:23 +00:00
poltawski 278ecb2567 MDL-13180 - stop returning duplicate rows 2008-01-26 16:02:30 +00:00
nicolasconnault c86003482a MDL-13101 Correcting the display of non-standard plugins missing from disk 2008-01-26 09:58:08 +00:00
moodler d7b02b694e Automatic installer.php lang files by installer_builder (20080126) 2008-01-26 03:33:54 +00:00
poltawski 53bdf7e60a MDL-13068 - fix typo causing course delete to fail 2008-01-25 21:07:49 +00:00
poltawski 6b18f14151 MDL-13117 - course info was unavailable to students. There was broken logic...
course_parent_visible() always returns true if $CFG->allowvisiblecoursesinhiddencategories
is true,
2008-01-25 20:42:57 +00:00
nicolasconnault be664f9a44 MDL-13101 Now showing installed plugins missing from disk 2008-01-25 16:27:34 +00:00
skodak 2b5db7a39f MDL-12945 minor modinfo improvement- fixed typos (thanks Nicolas) 2008-01-25 12:06:39 +00:00
skodak fecac81cac MDL-12945 minor modinfo improvement 2008-01-25 09:38:16 +00:00
nicolasconnault db9f04b35d MDL-13101 Now showing standard plugins missing from disk. Refactored get_plugin_name() method 2008-01-25 08:36:17 +00:00
scyrma e3a08c6eaa Start on MDL-12730 .. fixes some E_STRICT messages for 1.9 (removing __construct in
this branch only, to stay compatible with PHP4)
2008-01-25 08:34:37 +00:00
jamiesensei ed3a874632 MDL-13156 "insert_category_and_question_ids() function name can cause name conflicts" 2008-01-25 07:06:34 +00:00
moodler a2b4c8cb94 Avoid a notice about $current for guests 2008-01-25 06:26:26 +00:00
scyrma 9f7d599561 MDL-12565 : use the right table 2008-01-25 02:43:10 +00:00
scyrma 4175366743 MDL-12565 - add AS to prevent problem with pgsql 2008-01-25 02:31:22 +00:00
scyrma 080ed4ba60 Fixes MDL-13124 and chooses more relevant tags to display 2008-01-25 01:31:40 +00:00
martinlanghoff b227269e56 accesslib: Fix get_context_users_bycap() when no roles grant the cap
When no roles mention the capability, get_context_users_bycap() breaks
badly. This trivial patch does a sanity check before jumping into the
SQL shark-pool...

MDL-13160
2008-01-25 00:54:35 +00:00
stronk7 d8898325db Merge + General cleanup of backup users. Part of MDL-10721 ; merged from 18_STABLE 2008-01-25 00:46:55 +00:00
skodak 94cbbdbd2e MDL-12945 a slightly bigger patch for performance in recent activity and various group related issues + some other fixes - see list of subtasks in tracker 2008-01-24 20:29:31 +00:00
poltawski f954aeaecd MDL-12627 - when visiting the gradebook for the first time, we don't sort
by anything sensible. Default to surname
2008-01-24 20:11:21 +00:00
stronk7 f0421951ed Prevent grade_grades and grade_grades_history to be exported for non-target users. MDL-13115 2008-01-24 20:02:56 +00:00
nicolasconnault 405350262e MDL-13103 It wasn't a missing !, it was $grade_item spelled as $item... 2008-01-24 19:55:25 +00:00
nicolasconnault c92941d7a4 MDL-13103 Added missing exclamation mark in front of empty() 2008-01-24 19:46:17 +00:00
poltawski 3a8093f895 MDL-13088 - database presets weren't escaping bad chars, causing presets
to break with a rogue <
2008-01-24 19:39:59 +00:00
skodak 293a2545b1 mod/quiz: fixed fatal error in quiz_print_recent_mod_activity(); Author: Matt Clarkson <mattc@catalyst.net.nz>
backported from HEAD
2008-01-24 19:11:59 +00:00
stronk7 98e13c2eea Reworked a bit to prevent non-target user role assignments to be exported. MDL-13115 2008-01-24 19:07:43 +00:00
nicolasconnault 227323aecf Backporting small changes from Head 2008-01-24 19:05:00 +00:00
tjhunt adea20f6dc MDL-12933 - Bug in mod/quiz/lib.php break MyMoodle - Fix thanks to Eric Merrill. 2008-01-24 17:13:29 +00:00
tjhunt 0c1d63a43e MDL-13102 - quiz_results block links to the old URL of the groups editing interface, and it links there for everyone, even if they don't have the capability to go there. Make it link to the participants page instead, if possible. 2008-01-24 16:33:37 +00:00
poltawski e30a701156 MDL-13148 - adding help popup for course module idnumber 2008-01-24 16:09:12 +00:00
nicolasconnault 95a7a2b866 Correcting unicode characters 2008-01-24 15:34:39 +00:00
tjhunt 369f3834ca MDL-13150 - Remove extra <br /> tag for XHTML strict validation - Thanks to Joseph R?zeau 2008-01-24 15:06:48 +00:00
nicolasconnault be5709b7fb Fixing $Id: tag 2008-01-24 14:45:49 +00:00
nicolasconnault b1c418839e Backporting phpdocs from Head 2008-01-24 14:33:43 +00:00
nicolasconnault 300ce0c64d Backporting comment from Head 2008-01-24 14:32:02 +00:00
nicolasconnault 1b5d15ba9d Backporting view.php link in navigation from Head 2008-01-24 14:10:45 +00:00
poltawski 5c5d465c97 MDL-13146 - prevent debug message about missing helpbutton title 2008-01-24 10:59:28 +00:00
nicolasconnault 8ab96578ab MDL-13101
1. Showing full path
2. Showing plugins to be installed
3. Lang strings properly used
4. Table headers
2008-01-24 08:40:31 +00:00
scyrma ccbbdc7319 MDL-13124 : simplify and fix the tag correlation logic. 2008-01-24 08:38:27 +00:00
moodler 0c89fe886d Automatic installer.php lang files by installer_builder (20080124) 2008-01-24 04:08:27 +00:00
scyrma 9bd0d5f805 MDL-8810: changing require_once to include_once when looking for mod/.../lib.php 2008-01-24 02:17:17 +00:00
stronk7 182ac1d6d8 Readding one line missed in last commit 2008-01-24 00:49:50 +00:00
stronk7 8ba998c60e Now the backup->users = none setting is properly populated to all
modules / instances, saving a lot of info to be always written. MDL-13115

Merged from 18_STABLE
2008-01-24 00:47:40 +00:00
nicolasconnault f547727478 MDL-13101 Renamed the print_modules_table() function to print_plugin_tables() 2008-01-23 22:48:48 +00:00
nicolasconnault f5f4cc3fe7 MDL-13101 New section of the upgrade process: plugins check 2008-01-23 22:43:11 +00:00
skodak 3e6a1aa58e MDL-13026 rewritten sql for calculation of averages on grader report, I hope it will be a bit faster now 2008-01-23 19:04:45 +00:00
skodak 690b1d1324 MDL-11920 prevent db traffic caused by user images 2008-01-23 17:40:45 +00:00
poltawski d6ad2b61f1 MDL-13112 - order my courses block alphabetically when only displaying a users
individual courses.
2008-01-23 15:39:48 +00:00
poltawski af1a463811 MDL-13107 - clean up data cvs import capability checks
Removed bad check 'mod/data:uploadentries' (which doesn't exist),
replaced it with mod/data:manageentries which is what is used to display
the form for this page.

Also removed the empty database redirect and editing entries checks
as there no way to get to this point in the UI and capability check
is covered by the manageentries requirecap (+ later sesskey check).
2008-01-23 13:26:46 +00:00
nicolasconnault b55b207c27 MDL-6826 New button added! 2008-01-23 12:54:30 +00:00
scyrma 7bff26bed6 MDL-8123 and MDL-11594 : make admin icons themeable. 2008-01-23 05:41:56 +00:00
moodler 173ac66759 Automatic installer.php lang files by installer_builder (20080123) 2008-01-23 03:47:51 +00:00
moodler 7604731552 Disable Workshop by default in 1.9 MDL-13100 2008-01-23 02:52:12 +00:00
skodak 75ec296d45 MDL-12144 new catgory on modedit available only when outcomes used in course 2008-01-22 12:11:53 +00:00
skodak 14a3c9f3bc MDL-12144 fixed creation of course category 2008-01-22 11:58:43 +00:00
skodak fa2d7d3201 MDL-13091 Aggregate including subcategories off by default, adding default values info into grade cat combo setting 2008-01-22 08:25:32 +00:00
moodler 6be5bdfb8e Automatic installer.php lang files by installer_builder (20080122) 2008-01-22 03:40:16 +00:00
moodler d6b6304fc3 Fixed a typo in the styles 2008-01-22 01:20:47 +00:00
skodak 5db97707d3 MDL-13085 delete grades and items when uninstalling module 2008-01-21 23:35:11 +00:00
danmarsden 9d6bdd5874 Fix for MDL-12998 and MDL-13079 Ldap not unenrolling users correctly merged from HEAD 2008-01-21 23:22:49 +00:00
skodak d4e4739aed MDL-12620 When a student receives feedback on an an assignment, they should be able to see how many points it is worth 2008-01-21 18:45:43 +00:00
skodak 5dd81daaed MDL-12773, MDL-12144 grade category selection on modedit page 2008-01-21 18:41:32 +00:00
skodak 29ad04a314 MDL-13084 SORT_LOCALE_STRING not defined < PHP 4.4.0; fixed typo 2008-01-21 18:16:59 +00:00
skodak 4516dce1a3 MDL-13084 SORT_LOCALE_STRING not defined < PHP 4.4.0 2008-01-21 18:15:44 +00:00
nicolasconnault 0fbc5579fb MDL-13050 Reverting, it's not working out as well as planned 2008-01-21 13:39:51 +00:00
gbateson 9455d7c920 fix Undefined property: stdClass::$studentfeedbackurl (line 282) and Undefined property: stdClass::$cellcontent2 (line 1081) in mod/hotpot/lib.php 2008-01-21 07:33:33 +00:00
skodak bfaa2a61dc MDL-13081 add "long grade" formatted string "score / maxscore" into grade_get_grades() and friends 2008-01-21 07:17:47 +00:00
skodak 46203368b5 MDL-13080 delete calendar events when uninstalling modules 2008-01-21 07:07:51 +00:00
gbateson 5fffec5d49 fix for MDL-13047 where no attempts were found for a particular HotPot 2008-01-21 07:00:21 +00:00
gbateson 9275a2bae5 fix for: Error in call to helpbutton function: at least one of $title and $linktext is required 2008-01-21 06:42:40 +00:00
moodler 9051fd4e30 Automatic installer.php lang files by installer_builder (20080121) 2008-01-21 03:40:04 +00:00
stronk7 949e8de8e7 Adding missing string to installer. MDL-12914 2008-01-20 20:39:18 +00:00
danmarsden 69329d504a Fix for MDL-12979 forum sends out notification to users not in course - due to call to deprec function get_course_users - This also fixes MDL-10163 2008-01-20 20:04:17 +00:00
skodak cb2bf96fe9 MDL-12983 Installation stops after trying to download Language-Pack - patch by Dan Poltawski 2008-01-20 17:58:06 +00:00
moodler ec5e30a4e9 Automatic installer.php lang files by installer_builder (20080120) 2008-01-20 03:37:39 +00:00
mudrd8mz 39477c96a9 MDL-12291 help.php is now able to skip _local langpacks 2008-01-19 21:57:13 +00:00
skodak a746e49818 MDL-13063 fixed comments and changeme password reset; fixed prev commit 2008-01-19 20:04:23 +00:00
skodak 6c9aa9b38b MDL-13063 fixed comments and changeme password reset 2008-01-19 20:02:28 +00:00
nicolasconnault 890204da8c MDL-13050 Oops... fixing syntax error 2008-01-18 22:40:05 +00:00
skodak 49aa2ee116 MDL-13052 edit/user.php typo 2008-01-18 17:13:23 +00:00
jamiesensei acfc18d8e8 MDL-13034 fixes "insertion of question / category ids at the CONTEXT_MODULE level does not respect whether the instance of the module has been selected for backup" and cleans up code a little. merged from HEAD 2008-01-18 15:09:55 +00:00
nicolasconnault 82a6cc3f44 MDL-13050 reverting a debugging comment 2008-01-18 14:37:29 +00:00
nicolasconnault 7bb1b32039 MDL-13050 Modules were updated, and grades.php files were added to the lesson and hotpot modules 2008-01-18 14:31:15 +00:00
skodak 996177940e MDL-11165 [[writinggroupingsgroupsinfo]] - it was already in head 2008-01-18 11:06:58 +00:00
skodak a948673c75 MDL-11165 [[writinggroupingsgroupsinfo]] 2008-01-18 11:05:13 +00:00
sam_marshall 85caf1b299 MDL-13045: Made groups UI use role name aliases 2008-01-18 11:03:01 +00:00
skodak 047e7670aa MDL-11072 sort groupings alphabetically 2008-01-18 10:49:24 +00:00
skodak 3824b03f06 MDL-11759 group edit cleanup; merged from MOODLE_18_STABLE 2008-01-18 10:15:40 +00:00
skodak 4b4d9ef4fa MDL-11759 group edit cleanup; merged from MOODLE_18_STABLE 2008-01-18 10:08:10 +00:00
moodler 654a2dae51 FIxed some typos in the popup names 2008-01-18 05:17:12 +00:00
moodler 66b3a7bcec Automatic installer.php lang files by installer_builder (20080118) 2008-01-18 03:41:08 +00:00
danmarsden e7504c319b fix for MDL-7128 lang file. 2008-01-18 00:39:01 +00:00
danmarsden c562b0f504 fix for MDL-7128 - hide save button when options are all full. and tidy up of old is_guest call 2008-01-18 00:31:37 +00:00
danmarsden bab754c727 MDL-12331 prevent hidden role assignments from being shown in the unanswered column of the choice, but still allow them to be shown if they have selected a choice. 2008-01-17 23:01:02 +00:00
nicolasconnault 7300023df8 MDL-12122 Applied Petr's suggested capability fix 2008-01-17 16:25:40 +00:00
nicolasconnault 3983345254 MDL-12122 Changed userid to PARAM_INT, and changed 'all' to 0 2008-01-17 16:07:11 +00:00
nicolasconnault 047901cbd0 MDL-12122 Completed the change to a more useful user report for the admin, with a few extra bits. 2008-01-17 15:03:35 +00:00
nicolasconnault e0ade9dbe7 MDL-12122 Completed the change to a more useful user report for the admin, with a few extra bits. 2008-01-17 14:54:50 +00:00
sam_marshall 6d07659acf MDL-12991 Updated groups UI so that it categorises members and potential members into roles (Teacher, Student, etc) 2008-01-17 11:28:56 +00:00
moodler f35daade0d Automatic installer.php lang files by installer_builder (20080117) 2008-01-17 03:42:39 +00:00
urs_hunkler e9a903a539 some CSS cleaning up 2008-01-16 20:04:06 +00:00
danmarsden 5a60b8a69a MDL-12890 - patch that allows doanything users to submit a choice, but not shown in the unanswered column. 2008-01-16 18:49:42 +00:00
skodak 91cb9645d4 tweak has_capability() debug mode to add only one query per page for cap name verification 2008-01-16 17:23:07 +00:00
urs_hunkler c9262623e7 new faster jQuery version 2008-01-16 17:21:28 +00:00
urs_hunkler 6489172657 MDL-12536 :: changed customtheme call to fixed custom_corners call. 2008-01-16 17:19:03 +00:00
poltawski 64ca832445 MDL-13003 - dont initialise params twice 2008-01-16 15:05:11 +00:00
scyrma f9348b84bc MDL-13020 : deprecates make_table 2008-01-16 08:24:27 +00:00
nicolasconnault d994fe68bc Reverting MDL-12974 and MDL-12941 (Urs simple wrapper changes) 2008-01-16 08:05:01 +00:00
nicolasconnault a28baeb99c MDL-12941 Added clear:none; to div.user-box css. Also fixed a couple of & with &amp; 2008-01-16 07:33:24 +00:00
scyrma e52c8d89f6 Fix for MDL-9669 : make it possible to specify 0 as cellpadding and cellspacing 2008-01-16 06:29:03 +00:00
moodler f845a2fba9 Small fix for the new SQL ... it works now for me on moodle.org MDL-12990 2008-01-16 06:12:10 +00:00
moodler 3475eeac11 Automatic installer.php lang files by installer_builder (20080116) 2008-01-16 03:38:52 +00:00
moodler 7a15af7d90 Move the inclusion of upgradelib.php to the top MDL-13017 2008-01-16 01:48:53 +00:00
poltawski b972485c21 MDL-12990 - save more needless db queries 2008-01-15 22:07:36 +00:00
poltawski 1c9a35efa2 MDL-12990 - use our user object and we save 2dbq for free on message history page 2008-01-15 21:33:15 +00:00
poltawski 3e5f98212d MDL-12990 - Significantly reduce database queries for messaging
search by getting info required by in search sql.

On a site with 1500 users:
Before: 850 dbq
After:  8   dbq
2008-01-15 16:09:50 +00:00
tjhunt ae1a7e05a6 MDL-13011 - Improve import form layout. 2008-01-15 15:25:03 +00:00
thepurpleblob 3ed692737c MDL-12016:
Read xml structure correctly to get category path
2008-01-15 14:50:24 +00:00
thepurpleblob be1448f47b Reverting Mike C's change in MDL-12016 2008-01-15 14:34:08 +00:00
poltawski 86f404fa52 MDL-12990 - clean up message_print_contacts() a lot to:
* Use less DB queries and avoid getting lots of needless data
 * Dont do a big php array rearranging loop - database does the work for us instead
 * split all the duplicated display code into a single function
2008-01-15 13:47:45 +00:00
ethem 8c4ca06f88 Tidy up 2008-01-15 10:54:18 +00:00
mjollnir_ 33c34c5705 MDL-13000 Adding support for developers to add their own capabilities to local/db/access.php
This relies on a local/ language pack as well for the capability names.
Notes on implementation are in lib/locallib.php
2008-01-15 04:20:02 +00:00
mjollnir_ 0972aa2291 MDL-13001 - adding support for language files in local/ directory. 2008-01-15 01:39:55 +00:00
mjollnir_ 8b2a37e7b1 More on MDL-11561 - fixed up path to local/ settings file to be more consistent,
added documentation in lib/locallib.php on how to create new local admin tree items
2008-01-15 01:09:54 +00:00
mjollnir_ c1139b492e MDL-11561 - added support for local/localsettings.php 2008-01-14 23:32:19 +00:00
skodak 94000d7320 MDL-12822 readding grade_get_course_grade(), alternative to grade_get_course_grades() 2008-01-14 23:28:06 +00:00
skodak aaf8bbd470 MDL-12912 module idnumber course unique only 2008-01-14 22:45:22 +00:00
ethem c8db08b82e MDL-12958 In the Authorize enrol plug-in when a credit card expiry date (year) is entered, a validate error is generated blocking credit card usage 2008-01-14 17:55:43 +00:00
poltawski b81e38ec0b MDL-12990 Ensure that displaying message contact list pictures doesn't take a
dbq per contact. Could do with a rewrite, but this saves us dbqs for now
2008-01-14 16:58:07 +00:00
moodler 2a5bbf81ca Automatic installer.php lang files by installer_builder (20080114) 2008-01-14 03:53:09 +00:00
urs_hunkler 3f710c6be5 MDL-12974 :: We urgently need a simple wrapper function to avoid the advanced containers when only a wrapper div is needed. Pages like for example the tags page look awful in custom_corners with all those unesessarily overlapping boxes.
I created the function print_simplewrapper_start($classes='generalbox', $idname='', $return=false) { ... } and used it in tag/indec.php and tag/lib.php.

The pages look much better now in custom_corners.
2008-01-13 20:02:53 +00:00
poltawski 3416e63f61 MDL-8269 - stats wasn't paying attention to run time settings as the strtotime
arguments were the wrong way round. Thanks to Mark Nielsen
2008-01-13 18:45:55 +00:00
urs_hunkler f86a5be206 merged from 1.8 :: MDL-12564 :: added font-family to the arrow properties. 2008-01-13 17:52:48 +00:00
poltawski 8ac075addf MDL-12560 - layout fixes for tag blocks 2008-01-13 16:34:18 +00:00
poltawski d15518f149 MDL-12560 - layout fixes for tag blocks 2008-01-13 16:28:55 +00:00
poltawski 9c8bcc6562 further refinement.. 2008-01-13 12:30:17 +00:00
poltawski 2cf92c01fb Improving wording 2008-01-13 12:28:14 +00:00
poltawski 4575e76e98 MDL-7846 - use translatable strings for bulk messaging 2008-01-13 12:20:59 +00:00
poltawski 5d53aa0544 MDL-12943 - remove old dialogue unused dialogue language files 2008-01-13 11:44:44 +00:00
poltawski 22c2af60e8 MDL-12742 - remove duplicated lang files 2008-01-13 11:36:14 +00:00
jamiesensei 4a6a7074ce MDL-12695 Symantec Norton internet security pop up blocker seems to be stopping user starting a quiz attempt - fixed this by using print_single_button which uses an onclick event to trigger a confirm dialogue, should work better even with popup blockers. 2008-01-13 08:54:56 +00:00
jamiesensei f92b08d9e1 whitespace clean up, removed all indentation with tabs and trailing white space 2008-01-13 08:35:38 +00:00
jamiesensei d42e5b0034 MDL-12906 add an optional parameter $jsconfirmmessage parameter to print_single_button 2008-01-13 08:09:09 +00:00
stronk7 c279331f64 Minor changes to custom check definition. MDL-12914 2008-01-12 18:50:33 +00:00
stronk7 be176082f4 Function changed to check for register_globals. MDL-12914 2008-01-12 18:49:38 +00:00
urs_hunkler 2c30fce4a2 MDL-11154 :: added the missing code and the config line and explanation in config.php for flexible columns. 2008-01-12 17:52:03 +00:00
urs_hunkler 17be8562d7 merged from 1.8 :: MDL-9306 :: explanation added for hooks as comma separated lists in Chameleon. 2008-01-12 16:31:50 +00:00
urs_hunkler 0cb3c46479 merged from 1.8 :: MDL-11486 :: added width to the adminblock 2008-01-12 14:51:52 +00:00
urs_hunkler f300eadf46 MDL-12210 :: set background-color: none to transparent 2008-01-12 14:26:20 +00:00
urs_hunkler 901c3d48a6 MDL-12910 :: changed top from 2.9em to 3.5em 2008-01-12 14:04:49 +00:00
skodak bcb667b7f5 MDL-12914 Register globals trouble 2008-01-11 23:21:35 +00:00
stronk7 9040c8d4e9 Fixed copy/paste typo. MDL-11341 ;-) 2008-01-11 17:20:31 +00:00
poltawski 99f36270c0 MDL-11341 - allow users with language editing perms to access language
editing
2008-01-11 16:26:10 +00:00
poltawski 5a3cafc899 MDL-11074 - incorrect test in page_generic_activity, thanks to Gordon Bateson 2008-01-11 15:42:05 +00:00
skodak ca9b92d39f MDL-12926 Discussion list shows all discussion in separate mode if user not member of any group and does not have accessallgroups 2008-01-11 13:08:17 +00:00
poltawski f57cdf69c8 MDL-12930 - wrong title text on search webpages button, thanks to Mitsuhiro
Yoshida
2008-01-11 11:58:41 +00:00
poltawski 18778321e8 MDL-12400 - superfluous required_param causing problems in upload
assignment user report.
2008-01-11 11:45:30 +00:00
urs_hunkler 56db843241 typo body#tag-manage table#tag-management-list, th, must be body#tag-manage table#tag-management-list th, 2008-01-11 11:32:49 +00:00
nicolasconnault d9d18969f0 Fixed intermixed quickgrading and quickfeedback help strings 2008-01-11 10:03:24 +00:00
urs_hunkler c309d41688 MDL-12221 :: removed the "nocoursepage" hack, which was an attempt to find out if a page has a layout-table. I developed this hack because Martin said, that he does not see any chance to implement a layout-table check. This hack followed several exception hacks because Moodel pages are inconsistently created. All those exceptions I could delete too.
Now I added a JavaScript layout-table check which works great.
2008-01-11 09:21:24 +00:00
moodler 2ac2ce803e Automatic installer.php lang files by installer_builder (20080111) 2008-01-11 03:41:08 +00:00
stronk7 a8482189a7 Adding custom check to test MDL-12914 2008-01-11 00:04:12 +00:00
stronk7 9e87c6033e Backported from HEAD. Added new library to store all core
custom checks to be performed by environmental stuff. MDL-12914
2008-01-10 23:49:15 +00:00
stronk7 692866105a file customcheckslib.php was added on branch MOODLE_19_STABLE on 2008-01-10 23:49:15 +0000 2008-01-10 23:46:28 +00:00
skodak b5c8f2f808 MDL-12921 Using visible groups in Q&A Forums student can't reply to discussions for All participants (including groups code cleanup) 2008-01-10 23:12:46 +00:00
poltawski ba4aea2b35 MDL-12915 - fixed require of removed file 2008-01-10 16:10:07 +00:00
jmg324 3dc2b907da MDL-6216 print_category_info no longer counts invisible courses if the user does't have permission to see them. 2008-01-10 15:43:21 +00:00
tjhunt 168eda8b3a MDL-12913 - Error messages when doing an XML grade import are not very helpful, include the idnumber that is causing the problem in the error message. 2008-01-10 15:38:47 +00:00
skodak fa366ea698 MDL-12911 fixed permission checks; merged from MOODLE_18_STABLE 2008-01-10 15:09:10 +00:00
tjhunt d67aacd867 Fix notice when you try to import an empty XML file. 2008-01-10 14:17:35 +00:00
tjhunt 33d2459c8d MDL-12373 - More instances of links to the participants list being shown in the navigation bar to people without the necessary capability.
I have not copied and pasted the same code into lots of different places. That sucks. We really need to refactor this into a function that builds the navigation up to, and including the user's name. However, I don't have time now. A list of the places touched by this bug (MDL-12373) will at least give a complete list of places that such a refactoring would have to touch.
2008-01-10 10:58:09 +00:00
poltawski ff82f12d5e MDL-12221 - use theme variables so it doesn't break on my setup ;) And remove
comment reffering to local server
2008-01-10 10:42:42 +00:00
skodak 0e2c2828fa search cron.php is included from search block, the config.php was already included in admin/cron.php - MFC 2008-01-10 10:05:50 +00:00
jmg324 decfd5028c altered require statement for config. (merged from head) 2008-01-10 09:54:31 +00:00
moodler ab54cc74d8 Removing some temp files that shouldn't be here 2008-01-10 06:12:07 +00:00
moodler 65743c17e0 Some small fixes to make custom_corners behave better as a parent theme MDL-12221 2008-01-10 06:10:02 +00:00
moodler 84dc99bbe9 Add support for db folder to auth plugins 2008-01-10 03:46:01 +00:00
moodler 5be691946f Automatic installer.php lang files by installer_builder (20080110) 2008-01-10 03:39:46 +00:00
stronk7 675b1a05ea Bump release to have it included in backups to beta 4 2008-01-10 00:19:57 +00:00
skodak d3d791f208 MDL-12822 removing some unused grade functions (obsoleted by format grade function), renaming PUBLIC API to activity communication API and adding new querylib.php with useful functions (requested by other devs) 2008-01-09 18:19:12 +00:00
tjhunt 0e544a84e6 MDL-12373 - If you can see your user profile, but don't have moodle/course:viewparticipants, you get a link in the nav bar that takes you to an error message - and there were also instances in blog. 2008-01-09 17:23:45 +00:00
tjhunt 79a9b69e28 MDL-12373 - If you can see your user profile, but don't have moodle/course:viewparticipants, you get a link in the nav bar that takes you to an error message - this was repeated in other parts of the user profile that I had not noticed when I fixed this before. 2008-01-09 16:46:19 +00:00
urs_hunkler 8f4a3ae2f1 MDL-12221 :: I added changes to weblib and the forum and glossary view pages, the custom_corners and standard theme to get those pages working.
In the view pages I changed the container function call to a simple "echo 'div ...'" to avoid the custom_corners container overhead and page oddity.

In weblib I added "clearfix" handling to the function "print_box_start($classes ...". "clearfix" is handed over to the containing divs. This is a hack, but I didn't know how to handle it without rewriting too much areas.
2008-01-09 15:03:29 +00:00
poltawski 3dd4e13cd6 MDL-12889 - bad capability check [thanks Tim!] in assignment recent activity report 2008-01-09 12:56:48 +00:00
poltawski f00d4c451b MDL-12888 - remove require to form no longer used 2008-01-09 11:03:00 +00:00
poltawski 18077e8b96 MDL-12888 - remove require to form no longer used 2008-01-09 10:56:48 +00:00
poltawski 78fb3bf3df MDL-10886 - Category edit: use 'save changes', enable cancel button to allow us
to get back from where we came from & refine where we are returned to when cancelled.
2008-01-09 10:49:05 +00:00
poltawski fd0e2fec76 MDL-12461 - wrong urls for message related log entries 2008-01-09 10:11:04 +00:00
moodler 4d7325ef33 Added back missing string to 1.9 MDL-12801 2008-01-09 07:35:47 +00:00
moodler 220a6d19b1 Hmm, somehow I checked in a conflict! :-( MDL-12801 2008-01-09 07:30:02 +00:00
moodler 8826b45a5a Bumping to Beta 4 2008-01-09 06:59:41 +00:00
moodler 1ec0ef254c Merged MDL-12801 from MOODLE_18_STABLE (Improve roles terminology for system) 2008-01-09 06:49:14 +00:00
scyrma 941802c3d1 Small documentation fix. 2008-01-09 04:09:00 +00:00
ericmerrill 95fb95cb3e MDL-11674
Undid change that could result in dataloss.
2008-01-09 02:08:04 +00:00
mjollnir_ 07e27f4746 MDL-12884 web installer should set the depth of the miscellaneous course category to 1 too (discussion in moodle hq skype chat with Petr) 2008-01-08 23:26:26 +00:00
martinlanghoff 9b672f584f mod/chat:chat_cron() - IS NOT NULL is better - MDL-11674 2008-01-08 22:37:18 +00:00
poltawski 8049c822ec MDL-12840 - gradebook CSV import was failing due to newlines with nothing
on them
2008-01-08 22:24:10 +00:00
martinlanghoff bf2de3499f mod/chat:chat_cron() delete stale chat messages with a single query, fast, and portable too! MDL-11674 2008-01-08 20:58:32 +00:00
poltawski 8432e9ba39 MDL-12882 - we were caching empty records which caused clone warnings 2008-01-08 20:19:18 +00:00
tjhunt 5e17bdd0eb MDL-12771 - change multianswer quetsion type HTML to more closely match that of other question types, in order to fix a layout glitch in Moodle 1.9. 2008-01-08 18:37:43 +00:00
tjhunt 5ae009ad6d MDL-12785 - Partially correct tick icon not displayed for MULTICHOICE, single answer questions. Fix thanks to Joseph R?zeau. Merged from MOODLE_18_STABLE. 2008-01-08 18:29:17 +00:00
urs_hunkler a35ce8ef14 MDL-12881 :: added class names "username" and "password" for better login form handling. 2008-01-08 17:59:44 +00:00
sam_marshall 6730788f48 MDL-12876 Moved accesshide text further off the screen as it was sometimes visible 2008-01-08 17:27:29 +00:00
poltawski 27e05b35a9 MDL-12464 - refine further so that glossary can't refer to instance from
another course (and cause breakage)
2008-01-08 16:46:41 +00:00
nicolasconnault b521e9ed8a MDL-12829 Removed a hard-coded test integer 2008-01-08 15:23:52 +00:00
tjhunt e0a411d4a4 MDL-12875 - Hidden courses not in category list not visible to teachers on those courses in the list of courses in a category. 2008-01-08 15:17:04 +00:00
tjhunt 0229dc83ea Put back DEBUG_DEVELOPER sanity check in has_capability, that makes sure the capabiltiy you are asking about actually exists. I know it takes an extra DB query, but it is DEBUG_DEVELOPER only, and it is worth its weight in gold, because otherwise you get really subtle bugs that take forever to diagnose. I know, I have just been banging my head against the wall for an hour. 2008-01-08 15:04:04 +00:00
poltawski 39dfcf7138 MDL-9372 - only show RSS options in database module when RSS is enabled 2008-01-08 13:39:35 +00:00
poltawski 0b7c820a73 MDL-10813 - Course requests not respecting course request category.
Also made the course request category more robust, as breakage would
incur if $CFG->defaultrequestcategory didn't exist as a category.
2008-01-08 12:49:41 +00:00
poltawski dc51efed7e MDL-12873 - show an add course button when editing at the top level (which
is the default view when you click 'Add/Edit Courses'
2008-01-08 11:59:07 +00:00
skodak df2a9e2a0a MDL-11830 width applied to input fields only, that should solve the incorrect size of button 2008-01-08 07:32:56 +00:00
skodak d65bb1547b MDL-12869 fixed minor security problem in installer - reported by hanno 2008-01-08 07:15:29 +00:00
iarenaza d0d840eaed MDL-12858 fix print_error() usage.
print_error()'s third parameter is the URL we jump to (defaults to
$CFG->wwwroot if not set) when we click the 'Continue' button, not the message
string parameter object.

Forward ported from MOODLE_18_STABLE
2008-01-08 00:16:18 +00:00
poltawski 7e65c42f39 MDL-12856 - previous commit was breaking moodle installs after
redeclaring method. Remove the duplicate function.
2008-01-07 20:56:20 +00:00
poltawski 6b843dfac1 MDL-12859 - add some whitespace so translation layout doesn't get messed
up
2008-01-07 20:31:02 +00:00
tjhunt d091ee027f Use the locale to sort the list of activites everywhere. This matches a change a made in one place before christmas. If you don't do this, the PHP sorts by ASCII order, so mixed case names, or special characters, get sorted wrongly. 2008-01-07 16:46:10 +00:00
poltawski d18387534d MDL-6529 - strip slashes when displaying category added success messsage 2008-01-07 12:20:13 +00:00
martinlanghoff 9276c875dd dmllib:rcache_set()/rcache_get() - use clone() function which we can support in PHP4 - MDL-12827 2008-01-07 05:03:45 +00:00
ikawhero f1d52ce1aa Adding method to allow printing of the enrolment key form code when using PayPal. 2008-01-07 00:58:10 +00:00
martinlanghoff 9dc8c1b014 MDL-12452 accesslib: get_users_by_capability() now excludes doanything'ers properly
With some subselect-outer-join poison-pill magic, when the we don't
want doanything users, we remove the roles that would grant such
dubious status.

Just a flick of the SQL muscle, actually.
2008-01-06 23:20:00 +00:00
martinlanghoff 264d665380 MDL-12523 accesslib: get_users_by_capability() fix subselect with ra.hidden
MDL-12452
2008-01-06 23:19:04 +00:00
martinlanghoff 4658b598b4 MDL-12523 lib/deprecatedlib: use sort_by_roleassignment_authority() to sort RAs
After calling get_users_by_capability(), use
sort_by_roleassignment_authority() to mimic what older versions of
Moodle did.

Affects: get_teacher(), get_course_teachers()

    MDL-12452
2008-01-06 23:18:51 +00:00
martinlanghoff 4ebe85b6a5 MDL-12523 accesslib: Introducing sort_by_roleassignment_authority()
This will help us bridge the gap from olden-style order-by
user_teachers.id. From the phpdoc...

 Will re-sort a $users results array (from get_users_by_capability(), usually)
 based on a sorting policy. This is to support the odd practice of
 sorting teachers by 'authority', where authority was "lowest id of the role
 assignment".

 Will execute 1 database query. Only suitable for small numbers of users, as it
 uses an u.id IN() clause.

 Notes about the sorting criteria.

 As a default, we cannot rely on role.sortorder because then
 admins/coursecreators will always win. That is why the sane
 rule "is locality matters most", with sortorder as 2nd
 consideration.

 If you want role.sortorder, use the 'sortorder' policy, and
 name explicitly what roles you want to cover. It's probably
 a good idea to see what roles have the capabilities you want
 (array_diff() them against roiles that have 'can-do-anything'
 to weed out admin-ish roles. Or fetch a list of roles from
 variables like $CFG->coursemanagers .

MDL-12452
2008-01-06 23:18:37 +00:00
martinlanghoff 3e117fb6af MDL-12523 lib/deprecatedlib: enrol/manual: Fix calls to get_users_by_capability() to avoid ra
get_users_by_capability() can no longer refer to properties of role
assignments or roles, as the capability aggregate is indirect.

Fixes:
 get_teacher() - though the results will be poor, as we cannot provide
                 role.sortorder reliably
		 (used mainly by mod/workshop)
 get_course_teachers() - which seems broken for a lot of situations as
                 its default parameters still refer to old tables.

MDL-12452
2008-01-06 23:18:19 +00:00
martinlanghoff f5687e385b MDL-12523 enrol/manual: Fix calls to get_users_by_capability() to avoid ra
get_users_by_capability() can no longer refer to properties of role
assignments or roles, as the capability aggregate is indirect.

MDL-12452
2008-01-06 23:18:08 +00:00
martinlanghoff b5ea0a4a52 MDL-12523 accesslib: get_user_by_capability() - Fix pagination
Ooops! Off-by-one error

MDL-12452
2008-01-06 23:17:53 +00:00
martinlanghoff 8658d5c5b0 MDL-12523 datalib: get_admins() - Rewrite to avoid get_users_by_capability()
get_admins() and get_admin() were counting on
get_users_by_capability() returning a role-assignment id to pick the
"primary" admin account. With the get_users_by_capability() rewrite,
we no longer have an RA id to clearly blame for the capability.

So, rewrite get_admins() based on the known-good SQL used in
is_siteadmin().

MDL-12452
2008-01-06 23:17:42 +00:00
martinlanghoff 22edc02cf9 MDL-12523 accesslib: get_user_by_capability() - Fix last_access handling
We were missing $courseid, which is actually $context->instanceid.

MDL-12452
2008-01-06 23:17:24 +00:00
martinlanghoff 3f1e6d3c73 MDL-12523 accesslib: get_user_by_capability() - Move capcheck to has_capability_from_rarc()
This fixes the handling of default roles as "tie breakers" for lower
RAs in conflict, and simplifies the code a lot.

The main loop in get_user_by_capability() runs a simpler state machine
that just collects role assignments (roleid and depth), and handles
pagination.

The complex part of the state machine has moved to
has_capability_from_rarc() which will walk the data structures
collected by get_user_by_capability() for each user.

Having all the complex state handling of $hascap there makes things a
lot easier for pagination and general sanity of
get_user_by_capability().

MDL-12452
2008-01-06 23:17:11 +00:00
martinlanghoff 53d3f7fd89 MDL-12523 accesslib: get_user_by_capability() - Move hidden RA checks to subselect
we don't deal with RAs in the main SELECT -- we deal with _capabilities_
which is an entirely different matter ;-) -- so push the ra.hidden check
into the subselect.

Also, remove ra.hidden from the default list of fields. Hopefully no
callers are using ra.hidden -- if they are, they should be calling
something else, as this function deals with capabilities. So we might
need an audit of callers, to check that noone is expecting ra.hidden
to be there.

MDL-12452
2008-01-06 23:16:54 +00:00
martinlanghoff ba702c6731 MDL-12523 accesslib: get_user_by_capability() - Handle the complex case
With this commit, we can handle the complex cases with

 - correct pagination, but not very efficient over large datasets

 - mostly-correct application of the override rules

The structure of the code is fairly complex in that we want to do
it without holding all the recs in memory, so we use a small state
machine. We have to handle the complex override rules over 1 or 2
permissions (when $doanything is set) so it all ends up quite complex.

There is one known issue with this code, in cases where the default
role ends up as the decider between 2 conflicting RAs, we fail to
apply it. This will need a bit of reorg of how the loop works.

MDL-12452
2008-01-06 23:16:33 +00:00
martinlanghoff b8dc2b75a4 MDL-12523 accesslib: get_user_by_capability() - Simple cases now handle multiple RAs
The "simple" case SQL did not handle multiple enrolments for the same
user correctly -- it would generate multiple rows for those users,
incorrectly.

With this patch we move the join to RA to a subselect where DISTINCT
takes care of things.

MDL-12452
2008-01-06 23:16:20 +00:00
martinlanghoff 6d5d43bab3 MDL-12523 accesslib: get_user_by_capability() - Handle complex rolecap resolution
With this patch, get_user_by_capability() can handle the cases where
users have multiple role assignments to the same course, and PREVENTs
and PROHIBITs affect the rolecaps of this course.

Without stored procedures we cannot resolve this entirely on the
server side - so in the complex cases we do as much as we can on SQL,
and post-process the data on the PHP side, including SQL-style
pagination.

MDL-12452
2008-01-06 23:16:07 +00:00
martinlanghoff 285b024ebf MDL-12523 accesslib: get_user_by_capability() - First, handle simple cases
This patch reorganises the conditions and field handling so
we can spot if this is a call we can resolve in a single SQL
query that we just pass back the results.

If there are any PREVENTs or PROHIBITs, we need to delve into
more involved stuff...

MDL-12452
2008-01-06 23:15:33 +00:00
martinlanghoff 26de0996d9 MDL-12523 accesslib: revert changes to get_users_by_capability() - MDL-12452 MDL-12451
The changes made by Yu and Tim are superceded by the patches that
follow -- and would not apply cleanly without this revert.
2008-01-06 23:14:25 +00:00
martinlanghoff 18ef2fc61e lib/setup: restore sanity to rcache handling
$CFG->rcache is safe to keep, even as we are reading the config table.

This is because whenever we update the config table, all the rcache
plugins either mark the cache as dirty or they update the cache.

The reason we want to be able to preserve this is that rcache settings
in CFG should usually be set in config.php rather than in the config
table.

With this fix, we support both control points.

Merged from HEAD.
2008-01-06 22:56:11 +00:00
martinlanghoff 73733d1b4b dmllib:rcache_get()/rcache_set() clone cached records - we do not want magic references here - MDL-12827\n And calling fullclone() with the huge cost in serialize()/unserialize() is not needed. Merged from HEAD. 2008-01-06 22:46:49 +00:00
moodler f0a794d200 Automatic installer.php lang files by installer_builder (20080106) 2008-01-06 03:24:42 +00:00
thepurpleblob 235b0335ef MDL-12701:
Missing string

Merged from STABLE_18
2008-01-04 21:05:44 +00:00
stronk7 fea7cdb0ba This change was missing in 19_STABLE 2008-01-04 18:18:18 +00:00
stronk7 c319e83622 Fixing $Id expansion. 2008-01-04 18:13:07 +00:00
moodler 890aec679c FIxed the navigation on the course assign roles tab MDL-12828 2008-01-04 05:19:21 +00:00
moodler 377002f981 Automatic installer.php lang files by installer_builder (20080104) 2008-01-04 03:31:09 +00:00
poltawski c5e1dedb3c MDL-12825 - add some extra height to popups in IE7, otherwise they cant
be used
2008-01-03 22:40:12 +00:00
skodak b85226a64e MDL-12817 logout before 1.9 upgrade in order to prevent weird upgrade problems 2008-01-03 16:36:22 +00:00
skodak c05ce94476 MDL-6786 Improved dropping of block and module tables during uninstall 2008-01-03 15:02:59 +00:00
moodler 2fa04d6d4b Automatic installer.php lang files by installer_builder (20080103) 2008-01-03 03:24:17 +00:00
skodak f113b4cc91 MDL-9744 passwork field for ldap bind pw - patch by Iñaki Arenaza; merged from MOODLE_18_STABLE 2008-01-02 22:54:25 +00:00
skodak 883ceaf293 MDL-10975 enrol_database_sync.php will run even if the plugin is disabled - patch by Braden MacDonald 2008-01-02 22:35:33 +00:00
skodak d282117166 MDL-11471 adodb 4.96a import 2008-01-02 18:37:42 +00:00
skodak d2b41f28a8 MDL-12796 iplookup rewrite; MFC 2008-01-02 16:49:02 +00:00
skodak 4d3e308a52 file geoipregionvars.php was added on branch MOODLE_19_STABLE on 2008-01-02 16:49:05 +0000 2008-01-02 16:48:00 +00:00
skodak a54217c8fd file geoipcity.inc was added on branch MOODLE_19_STABLE on 2008-01-02 16:49:05 +0000 2008-01-02 16:48:00 +00:00
skodak fa0516e1c4 file geoip.inc was added on branch MOODLE_19_STABLE on 2008-01-02 16:49:05 +0000 2008-01-02 16:48:00 +00:00
skodak 5b6d891d19 file earth.jpeg was added on branch MOODLE_19_STABLE on 2008-01-02 16:49:04 +0000 2008-01-02 16:48:00 +00:00
skodak 936649fc69 file README.htm was added on branch MOODLE_19_STABLE on 2008-01-02 16:49:05 +0000 2008-01-02 16:48:00 +00:00
skodak 6a981df540 file ChangeLog.htm was added on branch MOODLE_19_STABLE on 2008-01-02 16:49:04 +0000 2008-01-02 16:48:00 +00:00
skodak 60eb215831 file marker.gif was added on branch MOODLE_19_STABLE on 2008-01-02 16:49:04 +0000 2008-01-02 16:47:59 +00:00
stronk7 789d840942 Respect case of enumvalues. MDL-12803 ; Merged from 18_STABLE 2008-01-02 16:47:34 +00:00
poltawski 8a898cb994 MDL-12789 - dont unnecessarily iterate over all groups 2008-01-01 23:03:02 +00:00
skodak a6c905fdac MDL-12794 admin setting for file location 2008-01-01 22:23:35 +00:00
skodak fb179457ce MDL-12793 PARAM_HOST incorrect cleaning 2008-01-01 17:21:54 +00:00
skodak 9263acf92a MDL-12790 highlighting in admin search results breaks html
MDL-12791 add defaults parameter to format_admin_setting()
MDL-12792 search in admin settings and defaults
+ minor speedup of fast highlighting and fixed empty span tags
2008-01-01 15:51:12 +00:00
poltawski ecf8aad8ca just tweaking comment for easy greppage 2008-01-01 15:30:09 +00:00
stronk7 225ff8f476 Better behaviour for "-" course searches under MSSQL and Oracle. MDL-7312 ; merged from 18_STABLE 2008-01-01 12:01:36 +00:00
moodler 2d00ab58bf Automatic installer.php lang files by installer_builder (20080101) 2008-01-01 03:15:04 +00:00
skodak dc2c453d63 MDL-11845 fixed security issues in curl related code in new download_file_content() + minor fixes in Snoopy 2007-12-31 23:16:56 +00:00
skodak f3566b2674 MDL-12786 admin search in configselect choices 2007-12-31 15:54:28 +00:00
skodak 5cc576de2f MDL-12782 magpie now uses download_file_content() - that should solve several remote RSS issues including proxy user/password + several download_file_content() improvements + other minor fixes 2007-12-31 15:36:48 +00:00
stronk7 1ee938f8ef Removed old timezones file. MDL-12024 ; merged from 18_STABLE 2007-12-31 15:27:11 +00:00
stronk7 40a6466542 Correct timezones listing when importing olson files 2007-12-31 15:24:22 +00:00
stronk7 f7cf45ab80 Prevent some debugging notices, cast to object before inserting. 2007-12-31 15:18:59 +00:00
stronk7 3e04a3cae9 Moving from old "timezones" location to the new "timezone" one. MDL-12024 ; merged from 18_STABLE 2007-12-31 15:06:09 +00:00
poltawski e967a609ae MDL-12777 - No longer a second option so tweak language 2007-12-31 15:01:51 +00:00
stronk7 6a51c3b132 1976 rules from 2007j Olson files. MDL-12024 ; merged from 18_STABLE 2007-12-31 13:22:21 +00:00
stronk7 1dd5f6455f file timezone.txt was added on branch MOODLE_19_STABLE on 2007-12-31 13:22:21 +0000 2007-12-31 13:20:36 +00:00
moodler 1ac07fdbcd Automatic installer.php lang files by installer_builder (20071231) 2007-12-31 03:19:00 +00:00
stronk7 19f28a9a35 Missed this in my previous commit. MDL-12698 2007-12-31 01:09:31 +00:00
stronk7 6dbe0406b6 Change some constants to avoid name collisions. MDL-12698 2007-12-31 01:03:37 +00:00
poltawski 5738a677f2 MDL-11845 - use the http 1.0 'Moved Temporarily' rather than unhelpful 'Found' 2007-12-30 23:09:29 +00:00
skodak 7271bdaf04 MDL-11830 a bit bigger button in login block, removing colons and adding css spacing 2007-12-30 22:54:16 +00:00
skodak bd955d4add MDL-12698, MDL-12569 - fixed inline docs 2007-12-30 22:35:45 +00:00
skodak 668932588a MDL-12775 PARAM_INT value '' automatically converted to 0 in configtext settings 2007-12-30 22:29:47 +00:00
skodak 5a5534d815 MDL-11845 unmask password field type for proxy url - thanks Dan for reminding me 2007-12-30 22:24:38 +00:00
skodak 52d4f11037 MDL-12698, MDL-12569 - componentlib & langimport improvements and fixes 2007-12-30 22:18:39 +00:00
skodak 593eb8ee75 MDL-11845 removing curl emulation library, snoopy has better support for proxies and seems to be more reliable on different platforms; spelling correction cURL instead of Curl; adding all proxy admin settings; better debug messages for file downloading; SOCKS5 proxy support 2007-12-30 19:42:04 +00:00
skodak 994190c63b MDL-12774 allow returning of errors from admin configtext settings 2007-12-30 17:58:30 +00:00
moodler f2bb3ae677 Automatic installer.php lang files by installer_builder (20071230) 2007-12-30 03:16:09 +00:00
mark-nielsen c992ccef67 Merging fixes for MDL-12383 and MDL-12605 from MOODLE_18_STABLE 2007-12-29 22:47:48 +00:00
mark-nielsen 56c256f030 Merging fix for MDL-12605 from MOODLE_18_STABLE 2007-12-29 22:16:03 +00:00
poltawski 3d3e3df555 MDL-11306 - adding a bit of info to try and explain that you can use
.domain.com to allow subdomains
2007-12-29 22:08:21 +00:00
mark-nielsen 69cf3d1ffb Merging fix for MDL-11900 from MOODLE_18_STABLE 2007-12-29 21:49:39 +00:00
mark-nielsen da367cb720 Merging fix for MDL-12610 from MOODLE_18_STABLE 2007-12-29 20:40:18 +00:00
poltawski 8ab536ef8c MDL-9925 - When a user presses cancel on restore they are sent to
/admin/. For teachers this gives an ugly access denied message,
so instead send them back to the course they came from.

Thanks to Wen Hao Chuang for the fix!
2007-12-29 20:29:00 +00:00
poltawski 6984aea08f MDL-12763 - proxy_url() in langimport was doing its own custom proxied
download magic. Convert to use download_file_contents() for more
robust downloads. And also add a more helpful error message while i'm
at it.
2007-12-29 20:01:04 +00:00
skodak e2d53c3d9e MDL-12756 print save button in admin search only when there are settings to save 2007-12-29 16:47:58 +00:00
skodak f62b5930a7 MDL-12752 making unsupported pages truly hidden 2007-12-29 16:35:59 +00:00
poltawski 1a30e1bc5c MDL-7242 eliminate last use of location to refer to city in profile where
it causes problems for translators
2007-12-29 15:35:38 +00:00
moodler 1946941cd7 Automatic installer.php lang files by installer_builder (20071229) 2007-12-29 12:18:40 +00:00
poltawski 3e6c7834ed Remove debugging message 2007-12-29 12:06:10 +00:00
stronk7 b097747f75 Added note about automatic DB creation. MDL-9609 2007-12-29 11:53:25 +00:00
stronk7 93c366d35d New string goes to installer lang files. MDL-9609 2007-12-29 11:50:09 +00:00
stronk7 9dbf0647b4 New string added to note about automatic DB creation. MDL-9609 2007-12-29 11:46:25 +00:00
stronk7 4698d64435 Under MySQL, create the db on install if possible. MDL-9609 2007-12-29 11:27:18 +00:00
moodler b4cc78ec68 Automatic installer.php lang files by installer_builder (20071229) 2007-12-29 03:18:14 +00:00
poltawski bb28536f44 MDL-3842 - tweak file-moving text to clarify 2007-12-28 23:23:46 +00:00
poltawski f0f110ff74 MDL-4962 - intialise var 2007-12-28 22:54:28 +00:00
stronk7 e7282f1fe6 Prevent race condition in event creation. MDL-5956.
Credit goes to Penny, Luke and Martin @ Catalyst.

Merged from MOODLE_18_STABLE
2007-12-28 18:57:45 +00:00
mchurch 23d08ac7be MDL-12703 - Use the 'welcometocourse' language string if there is no 'welcomemessage' property set in the course object. Currently, there does not seem to be any code or data items that would set this property. 2007-12-28 17:12:32 +00:00
mchurch 16614d8106 MDL-12704 - Added error handling to print_recent_activity() to prevent fatal errors in the case of missing files. 2007-12-28 16:00:24 +00:00
poltawski 32261099c9 MDL-5598 - Custom feed titles on RSS block did not allow spaces or other
useful characters ;)
2007-12-28 12:56:32 +00:00
urs_hunkler e0a046d040 MDL-12749 :: print_box_strart was closed with pint_simple_box_end. corrected. 2007-12-28 12:43:43 +00:00
poltawski 2a2113d1be MDL-2414 - using quotes in enrolment keys failed due to slashes. 2007-12-28 12:35:26 +00:00
iarenaza 4efbaec111 MDL-12323 MDL-4061 Don't connect to the LDAP server if update external is not set for any field.
Forward ported from MOODLE_18_STABLE
2007-12-28 12:08:57 +00:00
moodler 5fcd786eca Automatic installer.php lang files by installer_builder (20071228) 2007-12-28 03:33:58 +00:00
mchurch aef130f71e MDL-12744 - Add ability to pass an extra button for use in print header for modules that use the course page to display themselves with blocks. 2007-12-27 21:32:04 +00:00
urs_hunkler d7d14a80ef MDL-12745 :: added class clearfix to "form-item" to stop div collapsing. 2007-12-27 20:54:33 +00:00
poltawski f1b73b438f MDL-12209 - fix css errors 2007-12-27 15:38:53 +00:00
poltawski 1107dde0a1 ZZMDL-12345 - use consistent ordering on both sides of the assign group members
pane, sorted by lastname like other screens
2007-12-27 13:39:43 +00:00
poltawski 11bdc5ab49 MDL-12530 - fixed changing of tag type in tag management 2007-12-27 12:11:21 +00:00
poltawski ed3e48f765 MDL-9312 - prevent more than 20 chars being typed in city field, (we only
store 20 chars )
2007-12-27 11:35:38 +00:00
poltawski 9964700f5b MDL-12640 - if $CFG->country is set, use it for signup default 2007-12-27 11:17:58 +00:00
stronk7 17f1039b58 Bump to 1.9 beta 3 2007-12-27 00:15:12 +00:00
skodak 36d703a877 MDL-9552 reverting the [$userid] change - we do need array there in upgrades and changes in modedit 2007-12-26 23:20:54 +00:00
poltawski 08b6eeeae3 MDL-4164 - fix typo 2007-12-26 22:12:23 +00:00
poltawski e3a87a68b9 MDL-3776 fix typo 2007-12-26 21:40:01 +00:00
skodak ad2c8da954 MDL-12735 Make AJAX on by default, add option to disable AJAX course editing by default 2007-12-26 21:32:34 +00:00
poltawski f6453c1cde MDL-12734, fix calling print_header() twice 2007-12-26 20:18:14 +00:00
poltawski c5f4b371fe MDL-2013 - Stop resource auto-linking from occuring when resources are hidden 2007-12-26 17:41:48 +00:00
skodak cf0352fa3b MDL-12729 show recoverable fatal errors in DEBUG_ALL and DEBUG_DEVELOPER 2007-12-26 13:31:52 +00:00
skodak 50726e2969 MDL-12351 verify active group before use because allowed groups may change 2007-12-26 12:41:54 +00:00
skodak 05a3688962 MDL-12728 missing USER->mnehostid in forum cron processing 2007-12-25 22:21:19 +00:00
skodak 564c1a9392 MDL-11783 no uploads after finalising 2007-12-25 22:02:05 +00:00
skodak 1665e2d3b6 MDL-11758 removing one htmlpurifier file to prevent problems on some systems 2007-12-25 21:05:33 +00:00
skodak fbedee57ef MDL-12338 prevent KSES from breaking í chars in alt/title tags - credit goes to Eloy 2007-12-25 20:55:57 +00:00
skodak e262e268b2 MDL-12458 fixed gradebook upgrade/update problems when not grades yet in activities 2007-12-25 20:50:42 +00:00
skodak 3ff4e0d771 MDL-11561 tex debug leaking sensitive info 2007-12-25 11:41:46 +00:00
skodak 8450217132 MDL-11561 improved text filter cache resetting when settings change; fixed bug causing fatal errors if html purifier enabled during upgrade 2007-12-25 10:03:16 +00:00
moodler b2bc7cc85c Automatic installer.php lang files by installer_builder (20071225) 2007-12-25 03:17:23 +00:00
poltawski 8a4cb9dd5e MDL-12697 Category Themes do not appear when editing off 2007-12-25 00:59:31 +00:00
skodak 74a05d3fc8 MDL-12725 remove_dir() does not return correct status and fails if dir does not exist + improved sanity test in check_dir_exists() 2007-12-24 21:15:05 +00:00
skodak cb6400a485 MDL-12724 import of html purifier 2.1.3 2007-12-24 21:06:34 +00:00
skodak c525a81701 MDL-12713 all IE versions are broken beyond belief, rewrite of admin tree collapsing/expanding 2007-12-24 20:53:20 +00:00
moodler 7938b1cced Automatic installer.php lang files by installer_builder (20071224) 2007-12-24 03:21:34 +00:00
arborrow 1444c9d07e added comment to see MDL-9609 for progress on resolving auto creation of MySQL database 2007-12-24 02:35:49 +00:00
skodak 54e0d9a55c MDL-12720 removing confusing/not implemented CONTEXT_PERSONAL 2007-12-23 20:00:51 +00:00
skodak 9ddbe2cfb8 MDL-12720 removing confusing/not implemented CONTEXT_PERSONAL 2007-12-23 19:47:59 +00:00
poltawski cbf2ebdeee MDL-9981 - remove hardcoded admin path 2007-12-23 17:20:44 +00:00
poltawski 37c9edcbdf MDL-10611 - backslashes in username get doubled up with an nonsuccessful log in
merged from MOODLE_18_STABLE
2007-12-23 16:41:48 +00:00
poltawski 5dc7db71af MDL-10241 - unenrolling self wasn't working properly from user profile
because unenrol.php was doing wrong capability check when $userid set.o
Also improves the lanaguage used when unenrolling self.
merged from MOODLE_18_STABLE
2007-12-23 16:17:13 +00:00
poltawski 868f172373 MDL-10607 - support single quotes in db user/password in installer 2007-12-23 13:26:54 +00:00
skodak 4bdb55f50b MDL-12716 fixed admin setting for rcache; more robust rcache handling in setup.php 2007-12-23 13:08:56 +00:00
skodak 0c6d0ae8ed MDL-12717 use apply_default_exception_settings before other admin defaults 2007-12-23 12:04:59 +00:00
skodak 05b11fcb66 MDL-12714 no guest autologin for admin settings 2007-12-23 11:52:59 +00:00
skodak 8d6e06a18a MDL-12711 use 'checked' value for enabled resource_popup 2007-12-23 11:49:42 +00:00
skodak ed2d5284f7 MDL-12712 fixed multiselect when nothing selected 2007-12-22 21:57:28 +00:00
poltawski 2be702e457 MDL-12707 - moved hotpot/ lams to use new admin settings
backported from HEAD
2007-12-22 20:04:11 +00:00
poltawski 7c23e5eff3 file settings.php was added on branch MOODLE_19_STABLE on 2007-12-22 20:04:12 +0000 2007-12-22 19:57:46 +00:00
skodak eeaf6aa373 MDL-12705 disabled guest autoogin in upgrade scripts 2007-12-22 18:16:22 +00:00
poltawski d44522b5f7 MDL-12706 - fix caps typo 2007-12-22 17:04:09 +00:00
moodler 068deeb136 Automatic installer.php lang files by installer_builder (20071222) 2007-12-21 19:10:26 +00:00
tjhunt 6bd8edfbde Ensure links of the form /mod/quiz/view.php?q=332 are backed up and restored correctly. 2007-12-21 15:38:38 +00:00
tjhunt 88b020ce95 Sort the add activites dropdown using the locale. 2007-12-21 15:37:50 +00:00
nfreear 999fb96f7b Merged MDL-7493 further fix: clean up themes, and remove references to 'hide-show-image' background images. Document smartpix for theming icons in wood and orangewhite readmes. 2007-12-21 12:01:24 +00:00
nfreear f7bd77baf5 Merged MDL-7493 further fix: strip_tags from title strings because the titles may have HTML in them.
-From Martin D/moodler in moodleblock.class.php - thanks.
2007-12-21 11:28:50 +00:00
skodak 67c2776bae MDL-12690 use the same title for block in admin tree as in blocks manage page 2007-12-21 09:52:20 +00:00
scyrma dc82ac6eff Let the admin choose if a textfield is to be shown as plain text or as a password (with '*' in place of normal text) 2007-12-21 08:17:36 +00:00
moodler 0319f6ccac Automatic installer.php lang files by installer_builder (20071221) 2007-12-21 03:24:25 +00:00
stronk7 13ffbef897 tidy up phpdoc 2007-12-20 23:16:51 +00:00
stronk7 c15475c93b After some more tests... apply the new preconfigure_dbconnection()
to core. MDL-12657
2007-12-20 23:12:51 +00:00
stronk7 73c4f0de0e Adding the new preconfigure_dbconnection() function
to pre-define some BD/ADOdb stuff before connection. MDL-12657
2007-12-20 22:51:10 +00:00
skodak c7d6dce97d MDL-12683 - fixing broken tex in windows (borked by my last commit) sorry 2007-12-20 21:37:00 +00:00
skodak 45158bdb9d MDL-12443 use "UTF-8" label instead of "None" in sitemailcharset select box 2007-12-20 21:16:33 +00:00
skodak 766acf6ce4 MDL-12684 fixing wrong link to manual settings page - settings.php not implemented yet, sorry 2007-12-20 20:59:13 +00:00
poltawski 5d2fb0f679 MDL-12159 - We were only showing the filter selections to the user list when
there were more results than shown on the current page. This is unintuitive
with small lists where we were invisibly exluding users because of a filter
which is applied (but not shown on screen).

Now we always show the filter selections. Thanks to John Ryan.
2007-12-20 17:42:30 +00:00
skodak 583c8c1ebe MDL-12680 Assignment count for groups not working - patch by Greg Humphreys 2007-12-20 17:37:52 +00:00
poltawski cf20428733 MDL-12668 - Various themes not respecting theme varaibles 2007-12-20 17:31:18 +00:00
skodak 7e9b2809a9 MDL-12678 moved pinned blocks setup page to Modules/Blocks/ 2007-12-20 16:30:39 +00:00
skodak ed277edea0 MDL-11814 use system context for pinned blocks 2007-12-20 16:25:17 +00:00
poltawski 0c3cdd4d79 MDL-12638 - fixed typo 2007-12-20 16:16:50 +00:00
poltawski ae74081cc3 MDL-12670 - fix warning when groupings not enabled 2007-12-20 16:10:03 +00:00
poltawski 847af02833 MDL-12676 - generate navigation if none supplied to print_header_simple() 2007-12-20 15:48:37 +00:00
tjhunt 176c6e8a23 MDL-12675 - Give teachers a direct link from the quiz index page to the results. 2007-12-20 15:11:01 +00:00
poltawski bcb2b60ff9 MDL-12674 - use require_capability on the participants page to get
friendly error messages
2007-12-20 15:09:40 +00:00
skodak 59a1e0f320 MDL12672 fixed parent::search trouble 2007-12-20 14:38:01 +00:00
tjhunt 204f51c760 MDL-12666 - When moving questions between categories, we should default to copying amy linked files. 2007-12-20 11:26:50 +00:00
skodak 0d3b5bdc16 MDL-10464 user list download in bulk ops 2007-12-20 10:54:07 +00:00
skodak 165ea8e3bb MDL-12659 fixed warning 2007-12-20 09:00:59 +00:00
moodler 5f4d28ccf9 MDL-7493 further fix: strip_tags from title strings because the titles may have HTML in them. 2007-12-20 01:50:38 +00:00
whchuang 2b9cc5a966 Fixed MDL-11812, thanks to Alan Trick's report 2007-12-20 01:35:17 +00:00
mjollnir_ 363d415464 fixing lying phpdoc comments in role_cap_duplicate function that I moved to accesslib yesterday 2007-12-19 23:32:15 +00:00
skodak 4d3769bf61 MDL-12656 indicate when current value is incorrect and propose default instead in admin settings 2007-12-19 22:37:37 +00:00
poltawski bc97420bd4 MDL-11561 - tweaking language a bit 2007-12-19 22:35:49 +00:00
skodak a5b7f1ab73 MDL-12655 set_config() should cast values to string because get_config does that too 2007-12-19 22:31:16 +00:00
poltawski a3eed2b0c0 MDL-11561 - remove unused variable 2007-12-19 21:06:12 +00:00
diml c695bf2783 adding keys for LESSON Module 2007-12-19 19:29:26 +00:00
skodak a8419f1a9d MDL-11561 use 60x8 text area to fit on all screens 2007-12-19 18:41:09 +00:00
skodak 00c2507ab0 MDL-11561 nail the editor width to 640px in admin settings pages - prevents resize problems (whitespace fix) 2007-12-19 18:25:19 +00:00
skodak 285286acf3 MDL-11561 nail the editor width to 640px in admin settings pages - prevents resize problems 2007-12-19 18:24:57 +00:00
skodak 765e3e8e82 MDL-10401 redirect to site/admin/ if section error found 2007-12-19 18:04:18 +00:00
skodak 3e1f8e095c MDL-12858 fix course category depths during upgrade to 1.9 2007-12-19 17:47:31 +00:00
skodak 40f43aa1fc MDL-11561 admin tree improvements and bugfixing; backported from HEAD 2007-12-19 17:38:37 +00:00
skodak d7381358f8 file filtersettings.php was added on branch MOODLE_19_STABLE on 2007-12-19 17:38:49 +0000 2007-12-19 17:35:28 +00:00
skodak 530239bbc9 file settings.php was added on branch MOODLE_19_STABLE on 2007-12-19 17:38:49 +0000 2007-12-19 17:35:27 +00:00
skodak 92c1df4735 file settings.php was added on branch MOODLE_19_STABLE on 2007-12-19 17:38:45 +0000 2007-12-19 17:35:26 +00:00
skodak 07053e3df5 file settings.php was added on branch MOODLE_19_STABLE on 2007-12-19 17:38:41 +0000 2007-12-19 17:35:26 +00:00
skodak 86a42c8ac9 file filtersettings.php was added on branch MOODLE_19_STABLE on 2007-12-19 17:38:43 +0000 2007-12-19 17:35:26 +00:00
skodak 8caa580efd file plugins.php was added on branch MOODLE_19_STABLE on 2007-12-19 17:38:37 +0000 2007-12-19 17:35:25 +00:00
skodak 618689ef22 file lib.php was added on branch MOODLE_19_STABLE on 2007-12-19 17:38:41 +0000 2007-12-19 17:35:24 +00:00
skodak 6237517812 file filtersettings.php was added on branch MOODLE_19_STABLE on 2007-12-19 17:38:42 +0000 2007-12-19 17:35:24 +00:00
skodak 5b8f6bcc0b file settings.php was added on branch MOODLE_19_STABLE on 2007-12-19 17:38:48 +0000 2007-12-19 17:35:22 +00:00
skodak 2328f76997 file settings.php was added on branch MOODLE_19_STABLE on 2007-12-19 17:38:47 +0000 2007-12-19 17:35:22 +00:00
skodak f58505164c file settings.php was added on branch MOODLE_19_STABLE on 2007-12-19 17:38:43 +0000 2007-12-19 17:35:22 +00:00
skodak 0384e168e8 file settings.php was added on branch MOODLE_19_STABLE on 2007-12-19 17:38:46 +0000 2007-12-19 17:35:21 +00:00
skodak 14b34c4af3 file filtersettings.php was added on branch MOODLE_19_STABLE on 2007-12-19 17:38:45 +0000 2007-12-19 17:35:21 +00:00
tjhunt 6dd47a844f Teach XMLDB about the local/db folder, but only include it if the local folders exists. 2007-12-19 15:06:52 +00:00
nfreear b310a2d7c0 Followup for MDL-7493... - Finally the correct images! fix transparency, and improve contrast in Windows High Contrast Black mode. Merged. 2007-12-19 13:39:11 +00:00
tjhunt 7542409d39 New option on print_single_button to all printing of disabled buttons. 2007-12-19 13:31:06 +00:00
tjhunt 5af229ea58 gradebook / graded_users_iterator - Typo in conditional. 2007-12-19 12:40:02 +00:00
tjhunt 16ee776952 MDL-12647 - Moving multiple_choice questions between contexts breaks them.
There was a subtle interaction between get_question_options  and replace_file_links for this question type.
2007-12-19 12:10:50 +00:00
scyrma e8fe560958 Fix a bug passed on after commit of by http://lists.moodle.org/arc/commits/2007-12/msg00352.html
There shouldn't be html tags in this place.
2007-12-19 05:57:24 +00:00
poltawski 0600c266e9 MDL-12639 - prevent debug warnings about help buttons on database presets 2007-12-18 21:25:21 +00:00
mjollnir_ 4f5ffe5a7e moving two functions from admin/roles/manage.php (switch_roles and role_cap_duplicate) to accesslib & added phpdoc. Fixes MDL-12621 2007-12-18 20:50:39 +00:00
tjhunt e5f0e7d200 Improve the quiz_rescale_grade function, and call it from one other place, instead of duplicating code. 2007-12-18 18:19:36 +00:00
skodak b9015c2c2b MDL-12496, MDL-11889 allow deleting of activities with disabled grading from gradebook 2007-12-18 17:37:45 +00:00
nfreear fc025aeae5 Fixes reopened MDL-7493... - foreground show/hide block icon/ALT text switched with Javscript. Merged. 2007-12-18 17:25:59 +00:00
tjhunt 3f7c4ee5c4 MDL-12635 - Manual grading report does not check capabilites - also, only show the tabs for the reports people can access. 2007-12-18 16:11:41 +00:00
poltawski dca17878da MDL-12515 Feedback not available to student on assignments unless a grade has been assigned 2007-12-18 15:35:35 +00:00
tjhunt 5db5737b4f MDL-12517 - fix typo in the last commit. 2007-12-18 14:57:05 +00:00
skodak 7293bdf4cb MDL-12517 reverting the moving of data processign, returning array of warnings instead from function 2007-12-18 13:52:15 +00:00
skodak 44e65ebf62 MDL-12517 null not treated properly, max instead of min typo and pretty please initialize all objects properly 2007-12-18 13:26:30 +00:00
skodak 5b6219a750 MDL-12628 acces typo fixed 2007-12-18 11:59:52 +00:00
scyrma 72d707a346 MDL-12613 - this should fix (part of) the problem with the search block (take 2) 2007-12-18 08:17:13 +00:00
scyrma 075e3c715d MDL-12613 - this should fix the problem with the search block 2007-12-18 07:53:32 +00:00
moodler 7fdfade8dc Automatic installer.php lang files by installer_builder (20071218) 2007-12-18 03:26:51 +00:00
skodak 470b711740 MDL-12103 new config option for mail newline chars 2007-12-17 23:39:43 +00:00
skodak e1be3139a4 MDL-12524 fixed quoting of phrases in mail header (problem with special chars in names of users) 2007-12-17 21:37:59 +00:00
tjhunt cfa16a536e Strip out an unneccessary HTML table that way causing a 'button moves when you try to click on it' problem. 2007-12-17 17:17:17 +00:00
tjhunt 860f345ceb Minor quiz layout improvements. 2007-12-17 16:56:16 +00:00
tjhunt 833711e3b8 Unset a meaningless id. This probably does not change anything in moodle, but it was part of a bug fix in the OU version of Moodle that seemed correct, so I am merging it over. 2007-12-17 15:29:43 +00:00
tjhunt 204666c569 MDL-12616 - Improve layout so you can distinguish the student's response to an essay question from the feedback. 2007-12-17 12:28:00 +00:00
fmarier 00ff61c64a course/lib: Cache get_categories() using a static variable (MDL-11938)
Some recursive functions call get_categories() repeatedly to get all of the
child categories of the current one.

This commit create a lazily-initialized cache of all of the categories so
that the database is only queried once to retrieve all of the categories.

It speeds up the both the homepage and the course edit page (where the
categories are displayed in combo boxes).
2007-12-17 04:48:52 +00:00
poltawski 0b777b60c6 MDL-12385 - glossary category edit page doesn't respect $CFG->pixpath 2007-12-16 18:15:00 +00:00
poltawski 071680021c MDL-11086 - more tweaks to helpfile as per Rays suggestions 2007-12-16 16:13:26 +00:00
skodak 04a9e1a834 MDL-12596 Timezone problem in PHPMailer RFCDate() Function - patch submitted by Leo Gaggl 2007-12-16 14:50:02 +00:00
poltawski 5b243bb55d MDL-11191 - lets not advocate copyright abuse by advising to steal pictures
from the web!
2007-12-16 11:57:34 +00:00
skodak 60414b0b11 MDL-12599 , MDL-12598 - fixed capability tests in user and overview reports 2007-12-16 10:53:36 +00:00
skodak f337e9c2c9 MDL-12598 use user context instead of personal 2007-12-16 10:34:41 +00:00
urs_hunkler 6c9f235d93 CSS cleanups :: collect some background definitions in a basic property and work with cascading to more special definitions. 2007-12-16 09:39:52 +00:00
poltawski dd377953f7 MDL-12593 - hidden role assignment icon wasn't being shown. Also prevent warning
about unset $hidden
2007-12-15 23:27:01 +00:00
poltawski 2559de3be6 Improving phpdocs for when to use format_string()/format_text() based on
wiki comments. It wasn't an entirely clear (e.g. mixup in MDL-11800)
2007-12-15 18:40:18 +00:00
skodak 504e7efe76 MDL-12580 fixed infinite redirect loop when editing profile for the first time 2007-12-15 16:56:33 +00:00
skodak 138b92ce7f MDL-12592 do not execute theme_setup() if header already printed 2007-12-15 16:52:27 +00:00
skodak 7d23e00836 MDL-12581 fixed multiple xhtml strict 2007-12-15 16:05:30 +00:00
skodak 05719ae21a MDL-12585 make sure category path, parent and depth are ok before creating contexts 2007-12-15 15:46:37 +00:00
skodak 2637d1d193 MDL-8992 eoas hack added only when really needed, removed slow fullclone 2007-12-15 13:20:28 +00:00
skodak 62d19b5336 MDL-11800 improving previous commit 2007-12-15 12:05:12 +00:00
skodak 4df7a2ef4f MDL-12570 option to disable lang autodetect from browser 2007-12-15 11:48:34 +00:00
stronk7 8b32d8e829 19_STABLE version bump by delta. Modify some timezone fields to accept new olson files. MDL-12024 2007-12-15 00:31:31 +00:00
stronk7 b0f0e1bb3a Modify some timezone fields to accept new olson files. MDL-12024
Merged from MOODLE_18_STABLE
2007-12-15 00:30:41 +00:00
skodak 7fdb5ee675 MDL-12221 reworked container autoclosing - error() and notice() do not work everywhere though; notice print header if needed now; new print_footer('empty') for empty footer - removes some hacky </body></html> 2007-12-14 21:21:06 +00:00
toyomoyo fc9aacd2d7 MDL-9290, restore performance improvements on reading xml 2007-12-14 06:15:11 +00:00
urs_hunkler 7006fb7609 MDL-12221 :: Some enhancements to handle the changed boxes - work in progress. 2007-12-13 20:21:05 +00:00
urs_hunkler aeb10b1c28 MDL-11438 :: added screenshot.jpg to prevent IEs crashing on the them selection page. 2007-12-13 20:17:37 +00:00
tjhunt c9cde2149e MDL-12575 - Backup and restore problems with the new question bank. 2007-12-13 18:48:16 +00:00
stronk7 ac11681809 Added the sql_cast_char2int() funtion to provide cross-db
casting from char/text to integer. MDL-12574
2007-12-13 18:00:30 +00:00
tjhunt ddd8279beb Improve error messages. 2007-12-13 17:24:51 +00:00
tjhunt 6a729d0756 MDL-12517 - Further refinement. Move the processing to after print_header, so any notices do not break XHTML strict. 2007-12-13 14:26:01 +00:00
tjhunt 99a4959494 MDL-12517 - Move checking code into the user interface layer where it belongs. 2007-12-13 14:17:29 +00:00
toyomoyo c912cc7258 MDL-12517, notify when grades entered into gradebook is out of bounds 2007-12-13 07:08:52 +00:00
toyomoyo 86b73f8e9c MDL-12470, fixing broken span tag 2007-12-13 02:32:27 +00:00
tjhunt 946db1620f MDL-11267 - follow-up - don't show the checkboxes in the overview report if you cannot do anything with them. 2007-12-12 19:12:54 +00:00
tjhunt a488df2a95 Improve PHP doc comments. 2007-12-12 19:02:01 +00:00
tjhunt 4e0af3b107 Fix Javascript error from essay questions on the review page. 2007-12-12 18:10:50 +00:00
tjhunt b7f00cff12 Fix notice. 2007-12-12 17:47:37 +00:00
tjhunt ea7f759cbf MDL-9459 - Provide information relating to groups in the summary message "Attemts: 123". Now, depending on the situation, you see one of three messages: "Attempts: 123", "Attemtps 123 (45 from your groups)" or "Attemtps 123 (45 from this group)".
I also took the opportunity to improve the layout of this message slightly, and clarify the message that tells you that you cannot add or remove questions from the quiz if there are attemts.
2007-12-12 17:23:38 +00:00
tjhunt 297178bc87 Improve PHP doc comments. 2007-12-12 17:10:51 +00:00
toyomoyo 82b7f28a61 MDL-12544, hide hidden roles in profile when user has no capability 2007-12-12 07:12:38 +00:00
toyomoyo d40f5b74e6 MDL-12550, wrong user count in role assignment 2007-12-12 03:28:41 +00:00
stronk7 214f6d7493 Reintroducing the possibility to declare a second row of tabs
via extratabs. MDL-12551
2007-12-12 00:56:54 +00:00
stronk7 a88c2ffdaa Adding the ability to perform custom uninstall tasks in modules. MDL-12520 2007-12-11 23:38:38 +00:00
tjhunt 5775ef80c0 MDL-12546 - The choice module was calling get_users_by_capability, which hammers the database and returns lots of data, inside a loop over users - and it was calling it with identical parameters each time. Ouch!
Actually, since the fix for MDL-12331, which changed the get_users_by_capability call at the top of this function, the check it was doing is entirely redundant anyway, so I removed it.
2007-12-11 18:49:44 +00:00
tjhunt 0eea4f9355 MDL-12543 - Quiz overview report displays a grade of 0 the same way as a missing grade for an incomplete attempt. 2007-12-11 16:55:40 +00:00
tjhunt 8d531749c3 MDL-8682 - followup. When disabling the enter key, don't disable it on links. That is bad for accessibility. 2007-12-11 16:23:32 +00:00
tjhunt 6233a11b29 MDL-12542 - backup_todb not called on restore on date before it is inserted into mdl_user. This would cause a backup from a pre 1.7 site (or a pre 1.7 that has been upgraded to 1.9) to a 1.9 fresh install, to fail sometimes. 2007-12-11 15:21:28 +00:00
nfreear 0a440a8682 Fixes MDL-12541 "Weeks course format - dates for each section should be marked up as heading". 2007-12-11 15:17:55 +00:00
tjhunt c6d734d3f9 MDL-12540 - Quiz sometimes outputs content before <head> when previewing - breaks HTML strict. 2007-12-11 15:04:09 +00:00
nfreear 2ec308a8b5 Fixes MDL-12539 "Help link text for all admin/user filters are broken". Merged. 2007-12-11 14:01:17 +00:00
nfreear 29308ee5da Fixes MDL-12539 "Help link text for all admin/user filters are broken". Merged. 2007-12-11 13:01:13 +00:00
tjhunt eabc30d78b Take out debugging output in role_assign. It only tells you that something has worked, and everywhere else we use debugging output to warn people they have called an API wrongly. Therefore, this is just confusing now that we trust this bit of roles code. 2007-12-11 10:37:56 +00:00
toyomoyo 66064c5262 MDL-12504, gradebook export does not respect course item position 2007-12-11 05:42:08 +00:00
scyrma 1c8bf4e4c2 prevent some notices, cleaner code. 2007-12-11 05:09:08 +00:00
scyrma 64fa3a1f8f MDL-12528 - getElementById was misspelled. 2007-12-11 04:58:13 +00:00
jamiesensei be350cb127 MDL-12410 - a way to select which questions to export, includes debug messages 2007-12-11 03:54:21 +00:00
toyomoyo 0abcfef0c9 MDL-12463, do not backup mod gradeitems if not selected 2007-12-11 03:15:33 +00:00
toyomoyo ed8bd3952b MDL-12519. grader report row colors override highlighting 2007-12-11 02:04:00 +00:00
martinlanghoff 25977a0eaf MDL-12523 accesslib:cleanup_contexts() - Fix invalid SQL syntax and reserved keywords
cleanup_contexts() was not working on Oracle - mostly due to 2 SQL
syntax problems. So probably marginally working elsewhere.

 - We should not use AS when naming table/subselect aliases - only
   when referring to column aliases in the resultset

 - level is a reserved word - oops! - so back to contextlevel
2007-12-10 21:34:05 +00:00
tjhunt abc011e5cc MDL-12512 - Gradebook calculations are broken. This was caused by == FALSE that should have been === FALSE deep in the 3rd pary maths lib. 2007-12-10 17:37:01 +00:00
tjhunt 1bb997ecc3 Do not suppress errors from developers! it makes debugging a nightmare! 2007-12-10 16:53:11 +00:00
tjhunt 200640a52c Fix notice in numerical question. 2007-12-10 11:57:22 +00:00
stronk7 2494fa8c7b Document MDL-12378 2007-12-09 18:21:39 +00:00
stronk7 6931f8a7b5 Prevent XHTML breackage. MDL-12378 2007-12-09 18:19:24 +00:00
skodak d6948ebc6a MDL-11835 proper merging 2007-12-09 15:26:00 +00:00
stronk7 91cd49491c Changing wrong UNSIGNEDs to nulls in tests. MDL-11662 2007-12-08 18:52:12 +00:00
stronk7 c9a6c442a3 Changing XMLDB_UNSIGNED to nulls for non-numeric types. MDL-11662 2007-12-08 18:33:33 +00:00
stronk7 25da458902 XMLDB_UNSIGNED only applicable to number types. MDL-11662 2007-12-08 18:18:56 +00:00
tjhunt f8c7c3ae32 MDL-12501 - Logic for including 'Grades' link in admin block is different for the logic in grade/report/index.php. 2007-12-07 16:57:53 +00:00
sam_marshall cc4dae1350 MDL-12500 Fixed restore conversion for links in database templates 2007-12-07 16:26:07 +00:00
stronk7 1b2335b2c6 Using new cross-db sql_isnotempty() function. MDL-12084
Backporte from HEAD
2007-12-07 16:02:08 +00:00
sam_marshall ac1b88eab8 MDL-11845 Last checkin accidentally omitted a require_once (hopefully finally done now!!) 2007-12-07 11:11:13 +00:00
sam_marshall 58520f98b0 MDL-11845 Updated the three file downloads from Snoopy to download_file_content (which I didn't know about before :) 2007-12-07 10:23:27 +00:00
moodler 3563da4aad Added some whitespace as a test, sorry for the noise 2007-12-07 08:12:43 +00:00
moodler 15ad5491a4 Added whitepspace 2007-12-07 07:45:52 +00:00
fmarier ec7125dc19 weblib: Fix typo in print_table() which was causing invalid <th> tag
MDL-11506
2007-12-07 04:59:32 +00:00
toyomoyo 8353edcdf1 customized cron should be in dirroot/local/cron.php 2007-12-07 04:38:57 +00:00
toyomoyo b1b887fd84 MDL-12373, restore should not try to restore pre 1.9 gradebook categories 2007-12-07 04:06:33 +00:00
moodler ba1674a11c A test commit, only whitespace affected 2007-12-07 02:26:59 +00:00
toyomoyo 9132d15eca MDL-12432, do not enable 'updated only' grades export for other plugins 2007-12-07 01:40:45 +00:00
mattc-catalyst b97e501d33 MDL-12433: course/info respect the $CFG->allowvisiblecoursesinhiddencategories setting
Credit goes to Petr Kalis
2007-12-07 00:24:29 +00:00
mattc-catalyst 4ead5c7e3c MDL-12335: mod/lesson - fixed missing navigation links 2007-12-06 22:52:27 +00:00
sam_marshall a8e3b790b5 MDL-11845 Support for config proxy options when downloading language packs (& other components), timezone file 2007-12-06 18:07:42 +00:00
poltawski e0af2ed26c MDL-12464 - if a glossary is deleted, it causes some breakage in the
random glossary entry block
2007-12-06 15:42:01 +00:00
skodak a964e03d4f fixing unmerged files 2007-12-06 09:30:45 +00:00
skodak 0cec6e0c68 fixing unmerged files 2007-12-06 09:23:27 +00:00
skodak f8ed98f83b fixing unmerged files 2007-12-06 09:02:02 +00:00
moodler 6aac29e4ef Bumped the version to Beta 3 for new CVS server 2007-12-06 07:46:42 +00:00
toyomoyo be8e377c91 MDL-12352, block/search fails to install on postgres 2007-12-06 07:07:32 +00:00
moodler 3bdac46d14 Automatic installer.php lang files by installer_builder (20071206) 2007-12-06 05:22:42 +00:00
toyomoyo a08b933a00 MDL-12451, in get_users_by_capability(), defaultroleid bit fixes 2007-12-06 03:55:19 +00:00
tjhunt ccc64d9cf0 MDL-12452 - not a fix I fear, just clarifying the comments about how this method is broken. 2007-12-05 17:25:18 +00:00
tjhunt 22dd4e275a MDL-12438 - followup - fix typos. Thanks to Dan Poltawski. 2007-12-05 16:50:15 +00:00
tjhunt ecfa2d90ff MDL-12450 - Matching up roles on the restore settings form is broken - this is basically a complete rewrite of these two functions. 2007-12-05 16:13:59 +00:00
diml 6e7e89849a fixing security hole. reference : http://moodle.org/mod/forum/discuss.php?d=85748#p379857
Inaki Arenzana
2007-12-05 15:55:27 +00:00
poltawski 33dfd09c2d MDL-12446 - profile signup page not respecting custom user profile field
sortorder
2007-12-05 14:29:55 +00:00
nicolasconnault 4e5fa682b5 MDL-11835 Implemented changes discussed in http://moodle.org/mod/forum/discuss.php?d=85908. Also added item name and module name and category name (for category totals) in alt tags of icons 2007-12-05 09:35:18 +00:00
toyomoyo 1c47be2472 MDL-12430, if new and regrade are chosen, then preview hides 'old' students 2007-12-05 07:49:21 +00:00
toyomoyo 566e9d1313 MDL-12439 database preset fixes 2007-12-05 06:12:38 +00:00
toyomoyo 26deeb61ab MDL-12435, cancel in preferences form doesn't work 2007-12-05 02:58:54 +00:00
toyomoyo c635d2acc8 MDL-12437, sorting by names adds teacher to gradebook list 2007-12-05 01:12:02 +00:00
skodak ce9dd0470a MDL-12133 fixed regression in user advanced edit, sorry 2007-12-04 23:52:09 +00:00
mudrd8mz 907e321018 Do not produce PHP warnings in case string file does not define array $string 2007-12-04 21:50:35 +00:00
tjhunt a7502277f2 MDL-12438 - Print a develoer debug message if you call get_records with a non-unique first column. 2007-12-04 17:29:35 +00:00
nicolasconnault 5203f7252e MDL-11835 Implemented all the default settings suggested in the pdf report, and turned down the size of the report table fonts. 2007-12-04 16:05:57 +00:00
poltawski d5ca7a5706 MDL-12415 - When we have more than one category/lots of courses the course
block shows two links next to search other (Search Courses/All courses)
which point to the same place....

The all courses link is able to be switched off and the search courses is not,
for this reason i've gone for removing the search courses link.
2007-12-04 12:54:47 +00:00
sam_marshall afeec49db6 MDL-12431 Added ability for filters to contain lang files 2007-12-04 11:46:12 +00:00
nicolasconnault dbb552852a MDL-12389 Removed the selectallornone element in favour of a more generic submitlink element. The checkbox controller is now added to a form using moodleform::add_checkbox_controller. 2007-12-04 10:27:14 +00:00
martinlanghoff 7e17fa336e datalib: get_logs_user*() - fix invalid SQL - MDL-12426
Oracle does not accept column labels in the GROUP BY section -
get_logs_usercourse() and get_logs_userday() were computing the
day/hours column and using it in the GROUP BY. The compatible fix
is to reproduce the same computation in the GROUP BY section.

Credit for the fix goes to Dennis Rochford <Dennis.Rochford@usq.edu.au>.
2007-12-04 06:24:23 +00:00
martinlanghoff fc3a00b2dc blocks/online_users: Remove SQL "id,id" which causes errors on Oracle - MDL-12425
Credit for the fix goes to Dennis Rochford <Dennis.Rochford@usq.edu.au>
2007-12-04 06:23:44 +00:00
martinlanghoff a3fd4aeea7 mod/assignment: Remove SQL "id,id" which causes errors on Oracle - MDL-12425
This loop also needs some rewriting - it is _very_ inefficient on
large courses.
2007-12-04 06:23:23 +00:00
martinlanghoff eaad116912 accesslib: build_context_path() remove $temptable for Oracle too
The removal of $temptable was incomplete - and so build_context_path()
was broken on Oracle. MDL-11347
2007-12-04 06:23:06 +00:00
moodler 522437d506 Automatic installer.php lang files by installer_builder (20071204) 2007-12-04 05:24:57 +00:00
toyomoyo 8473f41780 MDL-12399, shorten_text() truncates all closing tags 2007-12-04 05:07:11 +00:00
toyomoyo d5694b16bb MDL-12419, do not present course start date if start date is invalid 2007-12-04 01:07:59 +00:00
toyomoyo ff302bdbb9 MDL-12419, do not present course start date if start date is invalid 2007-12-04 01:03:12 +00:00
fmarier ce32e5047d ddllib: Mark table_column() as deprecated
Signed-off-by: Eloy Lafuente
2007-12-03 23:19:17 +00:00
stronk7 50371de63b Adding some outer spaces to returned SQL to avoid wrong
sentences caused by concatenation.

Merged from MOODLE_18_STABLE
2007-12-03 20:43:43 +00:00
stronk7 257d6684ca Adding two new functions: sql_isempty() and sql_isnotempty() to perform
SQL comparisons to empties in a cross-db way. General solution for
problems like MDL-12084

Merged from MOODLE_18_STABLE
2007-12-03 20:28:45 +00:00
nicolasconnault 4d502df33f MDL-12389 Removed testing code 2007-12-03 20:07:24 +00:00
nfreear 9008efba33 Fixes bug MDL-12416, Help links - img ALT text should contain phrase "new window" to match link TITLE. Merged. 2007-12-03 16:44:49 +00:00
nicolasconnault 3e328cac4e MDL-12389 Added a new getElementsByClassName function in lib/javascript.php, added the selectallornone formslib element, modified the advcheckbox element to support the group variable, and implemented the new element in grade_export_form 2007-12-03 15:42:08 +00:00
poltawski ab8eeb7b5a MDL-12409 - stop access to editing 'site course' with course edit form. 2007-12-03 12:12:15 +00:00
toyomoyo 5c451f237d MDL-10915, additional setting for emoticons 2007-12-03 06:25:58 +00:00
toyomoyo d062a31039 wrap search/replace in a function so that it could be used in cron 2007-12-03 04:45:49 +00:00
toyomoyo 58d4c2f1c0 MDL-12397, gradebook sort by names should start with ASC 2007-12-03 02:02:49 +00:00
tjhunt 974fc258fb MDL-12373 - If you can see your user profile, but don't have moodle/course:viewparticipants, you get a link in the nav bar that takes you to an error message. 2007-11-30 12:07:25 +00:00
tjhunt 25c052dbd7 MDL-12393 - Layout tweaks on question category editing page. 2007-11-30 11:00:06 +00:00
scyrma 4b50cb9857 Code style corrections. 2007-11-30 03:08:05 +00:00
toyomoyo 79aa617250 adding support for customized cronjob 2007-11-30 01:56:52 +00:00
toyomoyo 5ed7235b17 fixing duplicate navigation 2007-11-30 01:15:34 +00:00
moodler 2548ed0c9c New installer files added - stronk7
Backported from HEAD
2007-11-29 17:03:39 +00:00
moodler abe74df9d9 file installer.php was added on branch MOODLE_19_STABLE on 2007-11-29 17:03:33 +0000 2007-11-29 16:59:26 +00:00
skodak 5642a74c63 MDL-7028 rewritten course reset + forum role_unassign cleanup fixes 2007-11-29 14:40:36 +00:00
scyrma a723bf77c4 Possible fix to MDL-12093 : give window without heading and navigation special css classes. 2007-11-29 07:18:53 +00:00
toyomoyo 4904f5c7a5 fixing a typo 2007-11-29 07:08:45 +00:00
moodler e38cd94623 Automatic installer.php lang files by installer_builder (20071129) 2007-11-29 06:00:48 +00:00
scyrma 4c75fbc5bb MDL-12093 : new strings to get locale-aware popup windows. 2007-11-29 05:59:18 +00:00
scyrma 84f78756c8 MDL-12093 : cleanup & simplify code to get popup windows. 2007-11-29 05:52:38 +00:00
toyomoyo 095c40469a MDL-12346, lesson module GIFT import fails 2007-11-29 04:31:14 +00:00
stronk7 cb60bc9eda Adding new wraplevelXX class for easier containers identification. MDL-12339 2007-11-28 18:13:32 +00:00
tjhunt 811c6b01e0 MDL-12330 - moving a question that uses an image in a subfolder of course files, where the same subfolder does not exist at the destination, fails. 2007-11-28 16:43:04 +00:00
urs_hunkler 210caf54a8 added missing pix 2007-11-28 16:14:58 +00:00
urs_hunkler 6480900924 file adv.gif was added on branch MOODLE_19_STABLE on 2007-11-28 16:14:58 +0000 2007-11-28 16:14:08 +00:00
urs_hunkler c5de7683ad file req.gif was added on branch MOODLE_19_STABLE on 2007-11-28 16:14:58 +0000 2007-11-28 16:14:07 +00:00
urs_hunkler 63aaa32f88 MDL-12370 :: added missing images 2007-11-28 14:20:56 +00:00
tjhunt 49aeee2bf6 MDL-12369 - get_actual_response should not truncate the student's response. 2007-11-28 12:45:42 +00:00
skodak a863e9a119 MDL-7028 gradebook related changes for course reset 2007-11-28 09:43:04 +00:00
toyomoyo 53bbf98533 MDL-10263, enable forum search for multiple groups 2007-11-28 07:51:48 +00:00
nicolasconnault f6ae5aee7c MDL-12356 Merging changes back from HEAD 2007-11-28 05:15:54 +00:00
toyomoyo 55271966bf MDL-11818, single post forum descript = first post 2007-11-28 05:08:19 +00:00
toyomoyo 2266595f2f MDL-11800, multilang support for category description 2007-11-28 02:56:04 +00:00
toyomoyo 33d78656e4 MDL-12326, adding missing footer 2007-11-28 01:24:52 +00:00
toyomoyo 76cf7cce29 MDL-12366, removing useless print_capabilities function 2007-11-28 01:19:38 +00:00
tjhunt b4c11424e2 MDL-12362 - Don't show scores for incomplete attempts on the quiz view page. 2007-11-27 19:18:11 +00:00
nicolasconnault 7f5f3d5f28 MDL-8863 Initial page field was disabled when there were no entries in the wiki, making it useless. It is now always enabled 2007-11-27 13:30:22 +00:00
nicolasconnault 43ba326a82 MDL-12098 Printing a closing div tag and the moodle footer 2007-11-27 10:31:48 +00:00
nicolasconnault b3469a7e13 MDL-12312 Reviewed and slightly improved Petr's great help file 2007-11-27 10:00:45 +00:00
gbateson 4761566c54 MDL-12318 filter/mediaplugins/filter.php can no longer insert mediaplayers into javascript, so hotpot module now requires its own filter to mimic behavior of multimedia filter in Moodle 1.7 2007-11-27 08:41:00 +00:00
nicolasconnault 9333d66af5 MDL-9506 Added support for 'course' type in grade_get_grade_items() function, plus corrected a few typos 2007-11-27 07:08:41 +00:00
nicolasconnault cd7bc967e3 MDL-12356 CSS classes implemented 2007-11-27 06:38:56 +00:00
moodler 00a00321ae FIxed up info about recordset usage 2007-11-27 05:58:18 +00:00
toyomoyo 430196f1a0 MDL-12352, block/search fails to install on postgres 2007-11-27 05:30:10 +00:00
scyrma dab7fce2aa imagealt wasn't loaded in a list of the user's posts. 2007-11-27 04:59:35 +00:00
toyomoyo 19907e0cfa fixing a typo 2007-11-27 03:22:03 +00:00
toyomoyo 2be1f0f6bb MDL-11194, course role names not reflected in course description 2007-11-27 01:52:17 +00:00
skodak 81bfdff8dd MDL-12350 do not set parent cat when updating 2007-11-26 17:44:46 +00:00
dwoolhead 81d923af09 MDL-12313 basically rationalising getting calendar events function calls 2007-11-26 14:43:07 +00:00
jamiesensei 619b3ca8db fix for error message 2007-11-26 13:34:47 +00:00
toyomoyo 52fbb269fd MDL-12331, hidden teacher should not be displayed in choice results 2007-11-26 06:00:55 +00:00
scyrma 1e27409e63 MDL-12294 - one more string fix 2007-11-26 04:51:06 +00:00
scyrma 35c9a930f3 Fix for part of the missing strings, as reported in MDL-12294 2007-11-26 04:42:23 +00:00
toyomoyo 717d379f57 MDL-12175, forum reset should delete attachments 2007-11-26 04:21:30 +00:00
toyomoyo 98ee46df71 expect multiple groups from sql 2007-11-26 03:21:20 +00:00
toyomoyo cb00cf26de MDL-12081, teacher with import capability can not import course 2007-11-26 02:38:56 +00:00
moodler 013c9869e1 Automatic installer.php lang files by installer_builder (20071125) 2007-11-25 03:57:12 +00:00
skodak a11abf14cb MDL-12130 fixed regression - disabledIf did not work in dateselectors 2007-11-24 13:36:13 +00:00
skodak ef4ad6c66e MDL-12133 validate() method tidying up 2007-11-23 22:12:34 +00:00
skodak a7d006a0d9 MDL-12329 fixed last access when course not accessed yet - patch by Yolanda Ordóñez Rufat 2007-11-23 21:30:46 +00:00
skodak 6900784f92 MDL-12221 custom themes revisited - fixed bug in previous commit, added more developer debug 2007-11-23 20:23:43 +00:00
skodak d6756ebbbc MDL-12221 custom themes revisited - implemented container concept 2007-11-23 16:41:13 +00:00
thepurpleblob a87249f196 MDL-12296:
Oops, missed adding do-not-unenrol option to synchronisation script.
Also took out bogus test function
2007-11-23 15:41:27 +00:00
moodler 868282ddc0 Automatic installer.php lang files by installer_builder (20071123) 2007-11-23 05:02:43 +00:00
stronk7 7b6da3346c Deleting one ='' condition that isn't cross-db nor necessary. MDL-12186
Merged from MOODLE_18_STABLE
2007-11-22 22:46:56 +00:00
skodak a75f4ef3e3 MDL-12312 fixed outdated aggregation help, added examples 2007-11-22 21:35:34 +00:00
tjhunt d1453ce26e MDL-12322 - Reference to incorrect language file 2007-11-22 18:15:07 +00:00
skodak 4aa2dc193f MDL-12312 fixed outdated aggregation help 2007-11-22 17:52:08 +00:00
tjhunt 1dcf42a4ba MDL-12282 - fix typo in previous commit. Sorry. 2007-11-22 11:51:19 +00:00
nicolasconnault a4a66fc93b MDL-9506 Returning stdclass objects instead of grade_item objects 2007-11-22 08:50:33 +00:00
moodler 338efed0ca Rename Smallest -> Lowest so it pairs with Highest 2007-11-22 07:04:25 +00:00
scyrma d2957326c8 Replaces 'GMT' by 'UTC' where it showed in user interface and fixes MDL-9164. 2007-11-22 06:26:58 +00:00
toyomoyo 81e19d3595 MDL-12309, gradebook can not sort by names while in group mode 2007-11-22 05:15:47 +00:00
toyomoyo b7144a35b3 removing user class from firstname/lastname cell, to avoide arrow image css 2007-11-22 01:37:00 +00:00
toyomoyo 3202bd7416 turn this block off when CFG->messaging is off 2007-11-22 01:16:37 +00:00
toyomoyo 9e4ae46a4b MDL-10028, adding a string 2007-11-22 01:04:59 +00:00
tjhunt 4a0f06d551 MDL-12305 - Don't let the quiz reorder tool put a page break at the start of the quiz. 2007-11-21 18:08:56 +00:00
tjhunt a5f1acc2b4 MDL-12305 - Quiz reorder tool broken. 2007-11-21 17:59:52 +00:00
tjhunt ac6fa5eb90 Fix some whitespace. 2007-11-21 16:30:14 +00:00
tjhunt c4c1a7737f Fix typo. 2007-11-21 16:28:40 +00:00
nfreear 375f8d33f8 Fixes reopened bug MDL-7472, "Explicitly label radio buttons in Survey" - removes use of USER->screenreader using get_accesshide + many other accessibility fixes. MERGED. 2007-11-21 15:06:02 +00:00
thepurpleblob 5612af0dba MDL-12296:
Added option to prevent database enrolment plugin unenrolling users.
2007-11-21 11:07:56 +00:00
thepurpleblob e80944a42a MDL-12296:
Add option to turn off unenrolment by database plugin.
2007-11-21 11:04:52 +00:00
nicolasconnault 08403fd61c MDL-9506 Implemented and tested the new API functions 2007-11-21 10:04:19 +00:00
toyomoyo 02bd2e0d38 MDL-10294, MDL-10028, changing messaging/bulk messaging system 2007-11-21 07:52:50 +00:00
mudrd8mz 36d2ca6559 MDL-8090, MDL-10664 & others - improved help files editing
* langdoc.php has been merged into lang.php, some GUI improvements
* ability to edit both master and local help files
* preview fix (but still blocked by MDL-12291)
* added a help file
2007-11-21 02:56:30 +00:00
stronk7 7a92a518b3 Applying one missing string. tableofcontentsabbrev. MDL-12071 2007-11-20 23:43:15 +00:00
stronk7 a62cc62551 Adding one missing string. tableofcontentsabbrev. MDL-12071 2007-11-20 23:40:49 +00:00
diml 794d8721c0 added default values for datetime fields 2007-11-20 23:29:44 +00:00
diml c75d22a17c adding lesson support to 1.9 STABLE 2007-11-20 23:28:29 +00:00
diml e7b43fe5a2 fix unchecked foreach loops 2007-11-20 23:27:45 +00:00
diml 3b0d855c3c fix table name for deletion of indexes before regeneration 2007-11-20 23:27:26 +00:00
sam_marshall eebf6e2a47 MDL-12284 Moved require_js to weblib and improved it so that it works if called during header (also tidied up code) 2007-11-20 18:03:14 +00:00
tjhunt 5ee185d12e MDL-12286 - 'Save as new question' button ignores the setting in the 'Save in category' dropdown. 2007-11-20 17:51:45 +00:00
tjhunt b35f76841d MDL-12172 - Sorry, more fall-out from converting continue buttons to use GET instead of POST. Sometimes, URLs were being passed in with & already repalced by &amp; and we weren't handling that properly. Should now be fixed. 2007-11-20 17:30:56 +00:00
tjhunt 011508b2b0 MDL-12282 - Numerical question type - the units are displayed on the editing form with a stupidly large number of decimal places. Merged from MOODLE_18_STABLE. 2007-11-20 16:57:15 +00:00
tjhunt e1a0eb49d6 MDL-12280 - Question bank forgets sort order when adding multiple questions to a quiz. 2007-11-20 15:54:21 +00:00
tjhunt 09846a54ad MDL-12133 - Errors calling parent::validation in a moodle form subclass because the base class method returns true not an empty array. This patch allow subclasses to start their validate method with
$errors = parent::validation($data, $files);

which is what you naturally want to do if you are used to object oriented programming.
2007-11-20 15:07:48 +00:00
tjhunt 06d7ef9cd3 Remove a developer debug notice and save a database query. 2007-11-20 14:46:33 +00:00
nfreear 14156d6b54 Fixes for bug MDL-12256, "Course AJAX has very poor accessibility - ALT text" (includes white-space cleanup). Merged (+ hacks for IE). 2007-11-20 14:24:41 +00:00
ethem 104838c9db Fix for Canadian Postal Code
http://moodle.org/mod/forum/discuss.php?d=81736
2007-11-20 13:30:50 +00:00
tjhunt 1a632495f7 MDL-12133 - Errors calling parent::validation in a moodle form subclass because the base class method signature was changed. This patch fixes all calls to parent::validation in the question editing forms. 2007-11-20 12:40:44 +00:00
scyrma 6ededd5f41 Makes it possible to confirm users using manual auth system. 2007-11-20 05:26:57 +00:00
moodler 36103b02fa Automatic installer.php lang files by installer_builder (20071120) 2007-11-20 05:17:31 +00:00
toyomoyo c1427112a1 fixing header/formatting 2007-11-20 05:14:55 +00:00
toyomoyo cba041369f MDL-12234, fixing unicode issues for global searchy 2007-11-20 04:09:41 +00:00
mattc-catalyst a559555e6c MDL-12264 - course/info: check if course is hidden before displaying info about it.
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-11-20 02:34:55 +00:00
martinlanghoff 244f618892 MDL-12142 mailout-debugger: Now works on Windows too
Switched to use sys_get_temp_dir() to define
which tempdir to use.
2007-11-20 00:32:15 +00:00
martinlanghoff 27bb711fe9 accesslib: has_capability_in_accessdata() respects rdef locality a bit more
With this patch, we respect rdef locality when two roles
assignments in the same context have conflicting rdefs.
In that case, the most local rdef wins.

So RA locality still matters most. If you are a teacher
sitewide and a student in course X, student role trumps
teacher.

For a use case, see the discussion here
http://moodle.org/mod/forum/discuss.php?d=84472

Notes:

- If we wanted to have locality of RDEF trump everything
  we can. A comment in this patch shows how.

- I don't know how to reproduce this in pure SQL.

And Also:

This patch also fixes a bug where if CAP_PROHIBIT was set
_and_ another role added to it in the same context, we would
add or substract 1 to CAP_PROHIBIT, and it would lose its magic.

And while at it, tighten the code to avoid casts. All the
ints are unambiguously ints.
2007-11-20 00:19:07 +00:00
stronk7 d77bd5ecbe Some question formating...
Merged from MOODLE_18_STABLE
2007-11-20 00:08:58 +00:00
skodak 24b3c8307f MDL-12249 fixed distribution for small groups 2007-11-19 22:53:50 +00:00
skodak bad6da7acc MDL-12249 fixed small group ration, can be overriden from config.php now 2007-11-19 21:30:47 +00:00
skodak 70e10c77f3 MDL-12249 groups UI cleanup and improvements - see tracker for details 2007-11-19 20:27:50 +00:00
nfreear 9523ad0ab7 Initial fix for MDL-12256, "Course AJAX has very poor accessibility - ALT text" - test, imgAttributes.length NOT attributes.length. Merged. 2007-11-19 15:26:29 +00:00
sam_marshall ee20235449 MDL-12075 Display individually colour-coded events in calendar rather than random day colours 2007-11-19 10:50:53 +00:00
moodler 17afefef30 Improvements to the tabs for assigning and overriding roles. MDL-12120
Tabs are now all on the top row
Tabs have clearer titles
Other help texts improved
2007-11-19 07:10:48 +00:00
moodler d0131dbd89 Added some styles so that override screens have color. MDL-12248 2007-11-19 06:56:50 +00:00
scyrma 64b489a10d MDL-3632 : this prevents people without mod/forum:viewhiddentimedposts to see hiddentimedposts. 2007-11-19 04:42:43 +00:00
toyomoyo 8ed7f23e33 MDL-12218, display course specific rolenames on override page 2007-11-19 04:34:16 +00:00
toyomoyo 08f256c416 MDL-12217, display course specific rolename in participants page 2007-11-19 04:12:38 +00:00
martinlanghoff 27278d2346 user_login() was not converted to using get_cache_flags().
It was still using the 'old' get_config() interface, so the 'cookie'
set by ntlmsso_finish() wasn't retrieved at all, and the automatic
login always failed.

Signed-off-by: Iñaki Arenaza <iarenuno@eteo.mondragon.edu>


Author: Iñaki Arenaza <iarenuno@eteo.mondragon.edu>
Committer: Martin Langhoff <martin@catalyst.net.nz>
2007-11-19 02:51:36 +00:00
martinlanghoff bb4bfe13df If the cache flag is not set, it doesn't make sense trying to test its value
Signed-off-by: Iñaki Arenaza <iarenuno@eteo.mondragon.edu>


Author: Iñaki Arenaza <iarenuno@eteo.mondragon.edu>
Committer: Martin Langhoff <martin@catalyst.net.nz>
2007-11-19 02:51:25 +00:00
martinlanghoff c124578f93 Fix typo in ntlmsso_finish()
Signed-off-by: Iñaki Arenaza <iarenuno@eteo.mondragon.edu>


Author: Iñaki Arenaza <iarenuno@eteo.mondragon.edu>
Committer: Martin Langhoff <martin@catalyst.net.nz>
2007-11-19 02:51:14 +00:00
martinlanghoff 2e2892ce89 auth/ldap: "creators" role assignment now also supports contexts
Now the DNs that indicate a course-creator role can also be contexts.
This way we support one more widely used practice in the weird and
wonderful LDAP world... MDL-12178
2007-11-19 02:50:55 +00:00
toyomoyo 896c18e842 MDLSITE-294, have to use a type cast 2007-11-19 02:23:30 +00:00
toyomoyo a3752a0b13 MDLSITE-294, role id needs to be an int, not a string 2007-11-19 02:06:37 +00:00
mattc-catalyst fc0e5e988e MDL-12172: fixed get parameters not being submitted in Firefox
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-11-19 01:42:38 +00:00
toyomoyo 4ea6f1f0ef changed to get_recordset_sql because get_records forces the first element to be key 2007-11-19 01:38:59 +00:00
toyomoyo 8bb10719d6 making an SQL cross-db compatible 2007-11-19 01:12:22 +00:00
iarenaza 2fa4b6d68e MDL-11099 and MDL-11655 Don't show external db password in clear (backported from HEAD) 2007-11-18 12:47:26 +00:00
moodler 9e65d861f7 Automatic installer.php lang files by installer_builder (20071118) 2007-11-18 04:49:16 +00:00
skodak 92db621b5d MDL-12231 fixed applying of CFG defaults during initial install phase 2007-11-17 21:20:48 +00:00
skodak 119fb86673 fixed typo throwing warnings during install 2007-11-17 20:54:43 +00:00
skodak 056ac15288 MDL-12041 fixed groupmode flag in cm when mode forced in course 2007-11-17 17:40:46 +00:00
skodak be4dd6c79b MDL-12041 fixed groupmode flag in cm when mode forced in course 2007-11-17 16:55:26 +00:00
skodak 9743ed49b9 MDL-10888 parent definition_after_data() must be called too! 2007-11-17 16:52:45 +00:00
skodak eafe828b26 MDL-12221 initialised $output and fixed whitespace 2007-11-17 16:35:26 +00:00
skodak 16ba1b0cf2 MDL-12199 problem with "Show advanced" used after pressing of enter in forms 2007-11-17 13:29:14 +00:00
skodak 6d1ad6b3e1 MDL-12146 merged recent changes from normal item to outcome form 2007-11-16 22:13:12 +00:00
skodak e56fb50a4a MDL-12146 merged recent changes from normal item to outcome form 2007-11-16 22:13:12 +00:00
skodak 519b6676c8 MDL-12200 fixed problems when no custom user fields defined 2007-11-16 22:10:52 +00:00
dwoolhead 0c46637a1a MDL-12226 forum index page not always displaying forum links or subscription buttons as expected 2007-11-16 17:00:50 +00:00
nfreear 326cf96333 Fixes bug MDL-12225, Mark up lists correctly in course/lib (accessibility). Merged. 2007-11-16 16:51:14 +00:00
dwoolhead 2bb2aa4dbb MDL-11979 Forum subscriptions loop hole allowing users to subscribe to forums they should not have access to. 2007-11-16 16:23:42 +00:00
arborrow fc4a2fffc6 Clarified help for importing custom user profile field data in response to http://moodle.org/mod/forum/discuss.php?d=84651 2007-11-16 16:13:48 +00:00
urs_hunkler b173ea77d9 MDL-12221 :: example: adding custom_corners to the info box on the forum page. 2007-11-16 12:49:10 +00:00
urs_hunkler 441df375b6 MDL-12221 :: add CSS for custom_corners boxes 2007-11-16 12:47:16 +00:00
urs_hunkler 1adb0ebb50 MDL-12221 :: Added wrapper functions for print_box, print_box_start and print_box_end to be able to add custom_corners to any boxes.
If you call print_custom_corners_box with the same parameters as print_box and custom_corners is enabled you get the custom corners divs within those boxes and can style them accordingly.
2007-11-16 12:44:53 +00:00
skodak 5a948984c4 MDL-12096 changed label of parent cat 2007-11-16 07:34:55 +00:00
scyrma 6df78935f8 Small fix for MDL-12216 : user.imagealt now showing in forum posts. 2007-11-16 06:05:34 +00:00
moodler 45b20961da MDL-12215 made the advanced search tab more consistent with the interface 2007-11-16 05:55:00 +00:00
toyomoyo 14975c1946 MDL-12121, fixing a warning 2007-11-16 04:24:17 +00:00
scyrma d9b9b40a71 Fix to a bug preventing rss feeds from loading correctly. 2007-11-16 03:32:26 +00:00
toyomoyo d9c7b58af6 MDL-12187, fixing grader report style 2007-11-16 03:08:14 +00:00
toyomoyo 990e04d823 MDL-11672, hide hidden assignment descriptions from calendar 2007-11-16 02:48:32 +00:00
skodak b8e8419bfc MDL-12096 new simple weighted mean aggregation type 2007-11-15 22:28:45 +00:00
skodak 791ad685b2 MDL-12146 grade item settings can be now configured as advanced, new advanced defaults, minor tweaks in admintree 2007-11-15 17:31:07 +00:00
urs_hunkler 6142a99373 MDL-12195 :: added closing '>' in line 157. 2007-11-15 16:26:33 +00:00
skodak 72c475f9ab MFC: MDL-12140 weights/extrapoints are never advanced 2007-11-15 15:44:39 +00:00
mchurch 1ea47ba4c0 MDL-12016 Category text not being sent to 'create_category_path'. 2007-11-15 13:56:31 +00:00
mchurch 89d2e91d13 MDL-12015 Import question count was wrong. 2007-11-15 13:30:44 +00:00
urs_hunkler 3941cc43f1 MDL-12191 :: workaround with JavaScript to add MDL-12191"haslayouttabel" class to body. 2007-11-15 12:06:34 +00:00
urs_hunkler f545230234 changed the form lable look. 2007-11-15 11:43:25 +00:00
bobopinna d0d5d320b1 MDL-12161 Stripped slashes in LO titles 2007-11-15 08:40:02 +00:00
skodak 4217056ab9 MDL-12140 category can be selected when adding new items or categories 2007-11-15 08:27:13 +00:00
bobopinna c90933facf MDL-12161 Stripped slashes in LO titles 2007-11-15 08:01:51 +00:00
toyomoyo edc62676a2 MDL-12180, blocks capabilities not appearing when overriding block roles 2007-11-15 07:44:52 +00:00
scyrma f2ee9706a2 Fix for MDL-10996 : prevent course name from being displayed twice. 2007-11-15 04:08:44 +00:00
scyrma 42cf57fb26 MDL-11401 - This simplifies the code and makes the registration page a bit more clear & coherent. Also fixes an issue where the $id was mangled when coming back from moodle.org registration. 2007-11-15 02:02:12 +00:00
toyomoyo 59a24c227e MDL-8330, adding a warning to translators about updating of lang packs 2007-11-15 01:17:48 +00:00
martinlanghoff 77db689064 MDL-9399 - auth/ldap NTLM SSO - strings 2007-11-14 23:45:21 +00:00
martinlanghoff 4e5813e6f2 admin/mnet: undo accidental commit 2007-11-14 23:43:05 +00:00
martinlanghoff 53cda2de31 MDL-9399 - auth/ldap NTLM SSO - fix a missing global 2007-11-14 23:40:50 +00:00
martinlanghoff c1ef755c30 MDL-9399 auth/ldap: NTLM temp sessions now use cache_flags
cache_flags is now the apropriate way to manage this kind of temp
data. It gives us time expiry and GC for free, so it's a perfect fit
for the job, as it simplifies the code a bit.
2007-11-14 23:39:41 +00:00
martinlanghoff 8b435d0993 MDL-9399 auth/ldap: NTLM SSO - fix hardcoded strings
From Iñaki Arenaza
And here is a little patch with the last remaining non-traslated
strings (unless I missed something).
2007-11-14 23:39:24 +00:00
martinlanghoff 4912df1582 MDL-9399 auth/ldap: NTLM SSO - move textlib conversion earlier
From Iñaki Arenaza - fix for

... I forgot to put the textlib conversion
call before the block of code that uses $extusername, so it
completely breaks the user validation process.
2007-11-14 23:39:11 +00:00
martinlanghoff 6e45019417 MDL-9399 auth/ldap: NTLM SSO - cleanup of sesskey handling
Fix a bug in ntlmsso_finish(), and tighten up user_login() to avoid a
pointless DB lookup if the password doesn't match the sesskey.

Hopefully this makes things work again...
(thanks I~naki for the testing!)
2007-11-14 23:38:44 +00:00
martinlanghoff d8ee4dfa6e MDL-9399 auth/ldap: NTLM SSO - use sesskey and other tidyups
Several tidyups:

- use moodle_strtolower() for utf-8 correctness

 - use sesskey as the key instead of IP addr to support
   proxied users

 - clean the sesskey after success!

 - pull timeout out to a constant: AUTH_NTLMTIMEOUT
2007-11-14 23:38:31 +00:00
martinlanghoff 8f09118ae0 MDL-9399 moodlelib: set_config() deletes config entries if the value is NULL
New! Improved! If you pass NULL as the value, it will delete the
config entry for you.
2007-11-14 23:38:07 +00:00
martinlanghoff 176307a26a MDL-9399 auth/ldap: Tighten NTLM AD checks to the appropriate OU
From Iñaki Arenaza...

Right now, if someone logs in via NTLM magic, we don't check if that
user is inside the contexts specified in the LDAP settings. I mean,
if I want to restrict my Moodle site to those users inside a given OU
or subtree of my LDAP directory, with the current code any valid user
in my whole AD domain (and if we are using a GC as the LDAP server,
the whole forest) can log in. We should check that the user is inside
one of the configured contexts before allowing his/her to log in.

Something along the lines of the attached patch could do it.
2007-11-14 23:37:53 +00:00
martinlanghoff 58af55c35e MDL-9399 auth/ldap: ntlmsso_finish() now completes the user session setup
As Iñaki points out, ntlmsso_finish() needs to do all the setup that
login/index.php would do for a user once auth succeeds. With this
patch, the session setup is complete so the logon is usable.
2007-11-14 23:37:40 +00:00
martinlanghoff afac1a0781 MDL-9399 auth/ldap: NTLM redirect only on initial GET
We only want to redirect when users are being shown the login page (on
GET) but not when users are POSTing to it, actually trying to login.
2007-11-14 23:37:26 +00:00
martinlanghoff a1353477c4 MDL-9399 auth/ldap: NTLM SSO - lots of fixes from Iñaki
Lots of typos and minor errors fixed by Iñaki. Thanks!
2007-11-14 23:37:10 +00:00
martinlanghoff 3ae767d8ba MDL-9399 auth/ldap: NTLM SSO - Resolve Moodle cookies issue, tighten config.php require()s
Use $nomoodlecookie global to avoid session troubles. Also

 * Ensure we load the appropriate config.php, even if we are executing
   under a strange environment (ie: with a user's credentials!)

 * Test we have a spacer gif to open before we open it
2007-11-14 23:36:56 +00:00
martinlanghoff bdadff33ff MDL-9399 auth/ldap: Add NTLM SSO pages
These pages control the process of attempting an NTLM SSO login
safely. This is very draft and needs real-world testing and polish.

And string localisation too ;-)

  * If NTLM SSO is enabled, and the user's IP addr is in the right
    subnet, the loginpage_hook() of auth/ldap redirects to
    ntlmsso_attempt.php

  * ntlmsso_attempt.php will display a "redirect" msg with an img tag
    pointing to ntlmsso_magic.php, a 3s wait, and a redirect to
    ntlmsso_finish.php

  * ntlmsso_magic.php should be configured to have "Integrated
    Windows Authentication". If it does, it will serve a spacer gif
    and call ntlmsso_magic()

  * ntlmsso_finish.php calls ntlmsso_finish() to complete the SSO
    and handles failures.
2007-11-14 23:36:41 +00:00
martinlanghoff 94beeb79c7 MDL-9399 auth/ldap: flesh out ntlmsso_* functions
Flesh out the functions that get the job done. These will be triggered
by PHP files sitting under auth/ldap/ ...

ntlmsso_magic() - here is where the magic happens. Call it serving
something harmless, like a space GIF, from a URL that is blessed with
Integrated Windows Authentication. If the IWA is successful, it will
set a special session cookie in config_plugins table.

It won't complete the job because when we are under IWA magic we
cannot change (even read!) the session data, as the execution happens
under the OS privileges of the actual user acct being logged in (!!!)

ntlmsso_finish() - if it finds the session set by ntlmsso_magic() and
it hasn't expired, it will finish the job of logging in the user, by
calling authenticate_user_login() and exercising the whole auth
machinery.

user_login() - when called by authenticate_user_login() it will check
to see if there's a session setup by ntlmsso_magic() and OK the login
without really asking the AD backend to proof a password we don't have
anyway.
2007-11-14 23:36:14 +00:00
martinlanghoff 056a54babe MDL-9399 auth/ldap: Introducing loginpage_hook(), ntlmsso_attempt(), ntlmsso_finish()
A work in progress -- initial loginpage_hook() and headers for the
remaining functions. One thing to consider here is that this won't
work if there's a proxy in the middle.

Does NTLM auth thingy support proxies?
2007-11-14 23:36:00 +00:00
martinlanghoff 04038968be MDL-9399 auth/ldap: Manage 2 new config settings for NTLM SSO
Changes in the forms and forms handling to set and edit NTLM SSO
related config options.
2007-11-14 23:35:46 +00:00
martinlanghoff 6d3da6bf92 MDL-9399 auth/shibboleth: ensure we load enrolments
Most of this code should be replaced with complete_user_login() but it
does a few odd things, so we'll play it safe for now, specially since
I don't have a Shib setup to test...
2007-11-14 23:35:31 +00:00
martinlanghoff b3ebb9802e MDL-9399 loginas: call check_enrolment_plugins()
Admins will want to see an update of the user's enrolments when
they do a login-as.
2007-11-14 23:35:15 +00:00
martinlanghoff 12a113f24e MDL-9399 auth/mnet: when landing, user complete_user_login()
By using complete_user_login() we ensure that the session is fully
setup, and that enrolment plugins are called correctly.
2007-11-14 23:35:00 +00:00
martinlanghoff 8f5c5184aa MDL-9399 accesslib: Move check_enrolment_plugins() to complete_user_login()
... where it belongs ;-)

load_all_capabiloties() gets called at several points where we don't
want to be re-querying the enrolment backends. It needs to  be called
before load_all_capabilities() and only by callers that are setting up
a logon session.

Those callers need to be calling complete_user_login() anyway, as they
need to set the Moodle cookie, log the logon action, etc. In fact,
those callers duplicate a lot of that code already.

The callers that don't duplicate code for the login are actually the
cases where the backend enrolment plugins should not be queried.

To be followed by callers cleanup...
2007-11-14 23:34:46 +00:00
martinlanghoff 9d6a3d1513 MDL-9399 login/index, moodlelib: move session setup logic to complete_user_login()
Move most of the user session setup logic from login/index.php to
complete_user_login().
2007-11-14 23:34:29 +00:00
martinlanghoff 5f3315e78e file ntlmsso_finish.php was added on branch MOODLE_19_STABLE on 2007-11-14 23:36:41 +0000 2007-11-14 22:12:25 +00:00
martinlanghoff 5f084a4ecb file ntlmsso_attempt.php was added on branch MOODLE_19_STABLE on 2007-11-14 23:36:41 +0000 2007-11-14 22:12:25 +00:00
martinlanghoff 2115a30667 file ntlmsso_magic.php was added on branch MOODLE_19_STABLE on 2007-11-14 23:36:41 +0000 2007-11-14 22:08:55 +00:00
mudrd8mz dee938a59e MDL-11332 Preview did not work with help files in subdirectories. Thanks to Christian Deligant for the patch. 2007-11-14 21:20:41 +00:00
tjhunt 582e15dfd2 MDL-12066 - Links in the HTML block are not recoded on backup and restore.
This is messy because the links are hidden in the configdata column, which is serialized and base64encoded. So we have to untangle that, then ask the block whether there are any bits of $config that need to be fixed, then re-encode it before backup up. And reverse that on restore. It needs to remain base64 encoded in the backup file, so that the file format is backwards compatible.

I disucssed this with Eloy before doing it.
2007-11-14 17:03:16 +00:00
tjhunt d2219dda26 MDL-12172 - print_continue should create a method="get" button, not post. 2007-11-14 16:33:57 +00:00
urs_hunkler cf8781f41c added 2 CSS definitions to dimm the summary and the course no. in a hidden course topic. 2007-11-14 16:05:07 +00:00
tjhunt 2fca979ee3 Delete commented-out code that was actually not commented out properly, and so caused warnings. Merged from MOODLE_18_STABLE. 2007-11-14 14:48:46 +00:00
bobopinna 85ab48b33f MDL-12118 Fixed learner_response report. It was changed by SCORM2004 3rd Ed. specification 2007-11-14 12:59:16 +00:00
skodak 3929ee53cd MDL-12146 grade category defaults, forced settings and advanced options 2007-11-14 11:49:55 +00:00
bobopinna cf6e361c02 Fixed MDL-11914 2007-11-14 09:51:31 +00:00
toyomoyo 8909a7a075 removing duplicate entries in grade_grades prior to adding unique key 2007-11-14 05:06:50 +00:00
toyomoyo 0fb90ef70b MDL-12140, making most common non-weighted settings easy for teachers 2007-11-14 02:11:19 +00:00
martinlanghoff b21ca22e1f htmlarea: fix in FF - MDL-11242
The previous fix for IE left some problems in the FF side of
things because we were trying additions/substractions on
width once its had turned to a string of value + unit.

Do the math before we attach 'px' to it...
2007-11-14 01:24:40 +00:00
fmarier cfb5feb8b5 mod/quiz: Revert commit which added the "go back to course" link 2007-11-14 01:09:29 +00:00
mchurch bc304733e8 MDL-11991 Fixing error on undefined method while using the manual plug-in. 2007-11-13 18:04:58 +00:00
mchurch 90cef3dc05 MDL-12149 Added code to check for selected group as well, so that privileged users get correct count when changing groups. 2007-11-13 16:59:13 +00:00
skodak b4deed5688 MDL-12154 used proper cast to float before !== comparison 2007-11-13 16:46:12 +00:00
skodak 11b9b76181 MFC: MDL-12154 used proper cast to float before !== comparison 2007-11-13 16:09:00 +00:00
arborrow e3f5d9654a MDL-11743 - SHOW LOCAL VARIABLES more accurately returns database character set on some hosts and makes explicit what is normally the default behavior. 2007-11-13 16:02:20 +00:00
mchurch 8ead149149 MDL-12114 Fixed typo in elements array. 2007-11-13 15:59:51 +00:00
skodak 08d82f5688 MFC:
MDL-10901 new SUM aggregation type
MDL-12154 used proper cast to float before !== comparison
2007-11-13 15:33:16 +00:00
nfreear 1a78d381ff MDL-12153, "Validome - moodle.org invalid - require Content-Script-Type". Merged. 2007-11-13 14:49:04 +00:00
urs_hunkler 2c00ee97df removed CSSEdit reference line. 2007-11-13 10:31:37 +00:00
skodak 1a35d7472f MFC: MDL-12101 cleanup/fixing/refactoring of user bulk operation and admin user browsing 2007-11-13 09:02:11 +00:00
skodak 4d85a640dd file simpleselect.html was added on branch MOODLE_19_STABLE on 2007-11-13 09:02:12 +0000 2007-11-13 08:43:27 +00:00
skodak c8693d4dc1 file user_bulk_forms.php was added on branch MOODLE_19_STABLE on 2007-11-13 09:02:12 +0000 2007-11-13 08:43:22 +00:00
skodak 3d5f5f6021 file lib.php was added on branch MOODLE_19_STABLE on 2007-11-13 09:02:12 +0000 2007-11-13 08:43:22 +00:00
skodak 8ab940c495 file user_filter_forms.php was added on branch MOODLE_19_STABLE on 2007-11-13 09:02:12 +0000 2007-11-13 08:43:20 +00:00
skodak 0fe0327175 file simpleselect.php was added on branch MOODLE_19_STABLE on 2007-11-13 09:02:13 +0000 2007-11-13 08:43:20 +00:00
moodler cd73c31074 Fixed up some grammar and capitals MDL-12145 2007-11-13 08:41:47 +00:00
toyomoyo 995a53787b allowing horizontal and vertical highlighting 2007-11-13 06:21:48 +00:00
toyomoyo 6f04b5d626 MDL-12124, fixing styles for grader report 2007-11-13 03:18:18 +00:00
toyomoyo 522803d42a MDL-12138, set aggregate graded only as default 2007-11-13 03:06:56 +00:00
toyomoyo 815673e92f MDL-12141, category names should be mandatory 2007-11-13 02:52:30 +00:00
martinlanghoff 69a4aef1e1 admin: Introducing the mailout-debugger
A stand-in for sendmail that will log all emails instead of sending
them out. Use when debugging cron performance and output.

References:
  MDL-12142
  http://moodle.org/mod/forum/post.php?reply=349457
2007-11-13 00:33:42 +00:00
urs_hunkler d0796153bf The XHTML of the actual tab has been changed. Therefor the actual tab was not shown in front of the line any more. I changed the CSS to correct this introduced bug. 2007-11-12 20:20:48 +00:00
skodak 0fe09ea8fe MFC: MDL-12131 db debug messages now quoted properly 2007-11-12 17:22:22 +00:00
skodak 8490c5350e MFC: MDL-12130 and MDL-12129 - fixed advanced status of elements when header not closed; disableIf now works inside grouped elements too; code cleanup in focus() and _getElNamesRecursive() 2007-11-12 17:14:52 +00:00
nfreear 8ca956147b Fixes MDL-12125, Call to a member function FetchRow on a non-object in get_user_access_sitewide. Merged. 2007-11-12 16:56:38 +00:00
urs_hunkler 04139219e7 MDL-12093 :: changed function call from get_in_popup to is_in_popup. 2007-11-12 11:36:57 +00:00
urs_hunkler 24bcd2e3b1 MDL-12093 :: Tim propsed to change the name get_in_popup to is_in_popup for esear reading - done. 2007-11-12 11:05:18 +00:00
gbateson 393150a996 fix for MDL-9713 : use XMLDB functions to create tables when mod/hotpot/db/mysql.sql is not found. This allows upgrade direct from Moodle 1.5 (or earlier) to Moodle 1.8 (or later) 2007-11-12 08:53:54 +00:00
toyomoyo 903740173f MDL-9059, when teacher creates group event on calendar, they can not see it 2007-11-12 06:26:57 +00:00
martinlanghoff ce97dd9102 htmlarea: Fix fullscreen editor on IE6/7 -- MDL-11242
Only say px if the width is a pure number. Under IE we
get the "100%" for the width of the editor, so blindly
appending "px" results in a JS execution error.

With this patch we only attach px if it's a pure int.

Also tested the sizing of HTMLArea in the messaging
window. So both should be working now.
2007-11-12 04:09:37 +00:00
toyomoyo 2efdf88b94 MDL-12104, gradebook is showing 2 scales together 2007-11-12 03:13:05 +00:00
urs_hunkler ff3cf1e507 MDL-10683 :: added as Eric proposed:
.mform .ftextarea #id_alltext {
    width: 100%;
}
2007-11-11 19:32:09 +00:00
urs_hunkler aaef7468ac moved the sideblock accessibility property to the sidblocks section. 2007-11-11 19:24:56 +00:00
urs_hunkler fb529d5c10 added the clearfix option to the custom_corners call for admin pages to keep the "Save Changes" button within the area. 2007-11-11 17:27:55 +00:00
urs_hunkler 6a1a00bc50 Some theme enhancements while working on MDL-12098 and MDL-11154.Some theme enhancements while working on MDL-12098 and MDL-11154. 2007-11-11 16:02:21 +00:00
urs_hunkler fb87e8ae3b Added the check, if all opend custom_corners are closed. This way it's possible to add the close call in the footer which closes eventually open ccs. 2007-11-11 15:02:54 +00:00
urs_hunkler 60a4797402 MDL-12045 :: the extra "clearer" div broke the custom_corners theme on IE7. I removed the "clearer" div and added the class "clerafix" to the surrounding coursebox.
In FF and Safari floating is a mess now. I removed float:left for "coursebox" to get the page working in all browsers. It is a single element and should not need floating.
2007-11-11 11:19:36 +00:00
urs_hunkler cdedf35b0f MDL-12045 :: the extra "clearer" div broke the custom_corners theme on IE7. I removed the "clearer" div and added the class "clerafix" to the surrounding coursebox. 2007-11-11 10:53:31 +00:00
urs_hunkler b3c26633e5 added missing "if ($heading)" to suppress empty page header. 2007-11-11 09:29:51 +00:00
mark-nielsen 1e73338065 Mergin fix for MDL-12088 from MOODLE_18_STABLE 2007-11-11 01:21:52 +00:00
skodak d184f8f9b7 MFC: MDL-12079 fixed use of clean_param() 2007-11-10 14:55:46 +00:00
skodak 537e8dedfa MFC: MDL-12079 fixed use of clean_param() 2007-11-10 14:50:34 +00:00
urs_hunkler 1463bdc4ee MDL-12093 :: function get_in_popup() added to weblib.php. It returns true if the page is opened in a popup window.
* TODO Use a central function to create the popup calls allover Moodle and
 * TODO In the moment only works with resources and probably questions.
2007-11-10 14:44:41 +00:00
skodak 6ba839a768 MFC: MDL-12092 removed newline chars, we do not know the admin's platform, one line should be ok IMHO. 2007-11-10 14:36:36 +00:00
stronk7 42ae2fccb2 New profilefield_ lang files are now supported with
safe fallback to the "old" ones (stored in admin.php)
2007-11-09 20:10:14 +00:00
stronk7 d770f41a00 Adding lang support within profile fields to make them selfcontained.
Merged from MOODLE_18_STABLE
2007-11-09 19:10:08 +00:00
nfreear e9a5857b7d Follow up fixes MDL-12029 "Glossary view needs heading markup..." Merged, 2 days late :(. 2007-11-09 14:35:03 +00:00
toyomoyo 57a676ee7a MDL-12044, adding missing string 2007-11-09 02:55:59 +00:00
toyomoyo a48ae8ec5d MDL-12065, do not force parents to enrol in student courses 2007-11-09 01:39:06 +00:00
fmarier fa9ad7b620 Add missing fields when upgrading/installing on Postgres
mod/exercise, mod/scorm and question/type/rqp
MDL-12023
2007-11-09 01:24:28 +00:00
fmarier c10cac4e4a mod/quiz: Add a link back to the course page after a quiz is completed 2007-11-09 01:14:45 +00:00
poltawski e4e1faa6ab MDL-12070 - PARAM_CLEANHTML strips magic quotes.. 2007-11-08 22:18:33 +00:00
poltawski b72d8a7b98 MDL-12070 - re-enable the use of HTML in choice options,
merged from MOODLE_18_STABLE
2007-11-08 18:29:53 +00:00
sam_marshall fbaf314c87 MDL-12072 Added heading tag for calendar 'blocks' 2007-11-08 16:59:14 +00:00
sam_marshall eb8a6e6c60 MDL-12069 Make calendar events key labels and link titles consistent (also tidy up one bit of duplicated code) 2007-11-08 15:15:59 +00:00
skodak 5bdacd72ef MFC: MDL-10365 grade history can be turned off + lifetime 2007-11-08 09:58:55 +00:00
toyomoyo 46bdf8d1a8 keeping version numbers in sync 2007-11-08 05:53:02 +00:00
toyomoyo 05bab49047 MDL-12061, <p> in html editor breaks xhtml strict 2007-11-08 05:37:22 +00:00
moodler f6b74139d7 Automatic installer.php lang files by installer_builder (20071108) 2007-11-08 05:25:20 +00:00
nicolasconnault 44445b034f MDL-11790 Fixed hard-coded strings. Merci Nicolas! 2007-11-08 05:16:48 +00:00
toyomoyo 85c9758459 1.9 Beta 2 should not be read as 1.9.2 in environment page 2007-11-08 05:12:32 +00:00
toyomoyo f75cf3a13d MDL-11909, putting a unique constrait userid-itemid on grade_grades table 2007-11-08 01:59:49 +00:00
urs_hunkler 41b08f2d96 merged from 1.8 :: In the first table column class="header" was missing. 2007-11-07 18:11:26 +00:00
sam_marshall 366c49848f MDL-12055 Tweaked forum subscribe 'continue' address 2007-11-07 17:31:58 +00:00
sam_marshall 5d735c5281 MDL-12055 Tweaked forum subscribe 'continue' address 2007-11-07 17:05:06 +00:00
ethem f91a5b733a Fix for refactoring
Fatal error: Call to undefined method enrolment_plugin_authorize::print_enrolmentkeyfrom() in /usr/local/www/data/moodle/enrol/manual/enrol.html on line 7
2007-11-07 15:55:09 +00:00
tjhunt 6d3bcb44dd Eliminate duplicate $Id$ tag. 2007-11-07 15:26:29 +00:00
tjhunt 41c88b8cda Eliminate duplicate $Id$ tag. 2007-11-07 15:20:48 +00:00
tjhunt 228d5ecb07 Eliminate duplicate $Id$ tag. 2007-11-07 12:35:09 +00:00
toyomoyo 38161091d6 MDL-12025, enable row markings via javascript to keep track of current row 2007-11-07 07:45:30 +00:00
moodler 67945637f3 Merged a grammar fix from 1.8 2007-11-07 07:15:35 +00:00
toyomoyo 0646497a1e MDL-12048, assignment grades not migrated into 1.9 2007-11-07 04:27:53 +00:00
toyomoyo 69eedfa2fe backup/restore of grade histories should be off by default 2007-11-07 01:10:18 +00:00
nicolasconnault 6c5efa9157 MDL-8853 Applied Ann's Patch 2007-11-06 13:25:22 +00:00
toyomoyo 7d1b0eee29 fixing bogus $scoid 2007-11-06 05:40:58 +00:00
toyomoyo 0cd2561466 fixing a warning 2007-11-06 02:58:28 +00:00
toyomoyo 4e3dad540c MDL-10509, LDAP username to be always in lowercase 2007-11-06 01:00:27 +00:00
sam_marshall 7135ffca51 MDL-12030 Incorrect double quotes in sql 2007-11-05 17:57:10 +00:00
nfreear 6a021d6fc4 Fixes MDL-12029 "Glossary view needs heading markup + other accessibility fixes". Merged. 2007-11-05 15:24:58 +00:00
nicolasconnault 211e9c6d3f MDL-8992 Now only appearing once per page, and XHTML compliant. Also removed an ugly browser-sniffing css hack from the quicktime plugin, and applied the same browser detection as for the other plugins 2007-11-05 14:10:29 +00:00
skodak 071aeb9926 MFC: MDL-11399 make sure user context exists 2007-11-05 09:51:52 +00:00
skodak d5defbf5a8 MFC: MDL-11079 detect/prevent email duplicates when uploading users 2007-11-05 09:39:30 +00:00
skodak a17ca7ba09 MFC: MDL-11996 bulk user upload - custom profile fields docs 2007-11-05 09:13:15 +00:00
toyomoyo 31248c5d9c MDL-9552, update the gradebook everytime score is sent 2007-11-05 07:29:59 +00:00
skodak dd861fbc33 new csv import library included ;-) 2007-11-05 00:56:02 +00:00
skodak 3aa5023ef9 new csv import library included ;-) 2007-11-05 00:49:29 +00:00
skodak c92718aa13 file csvlib.class.php was added on branch MOODLE_19_STABLE on 2007-11-05 00:49:29 +0000 2007-11-05 00:43:37 +00:00
moodler f991a28d5c New installer file added to CVS repo. 2007-11-04 17:08:11 +00:00
moodler 76980fca70 file installer.php was added on branch MOODLE_19_STABLE on 2007-11-04 17:08:11 +0000 2007-11-04 17:05:25 +00:00
skodak 481425fadb MFC: MDL-12020 can not bulk delete users with the same email - new username collision 2007-11-04 13:52:30 +00:00
moodler 8453485495 Automatic installer.php lang files by installer_builder (20071103) 2007-11-03 05:09:41 +00:00
tjhunt 5cf2c57a22 Minor whitespace fixups. 2007-11-02 16:19:54 +00:00
stronk7 f2723764f7 There was a mistake in the dir being created. It must be
the backup temp area one. MDL-11912

Merged from MOODLE_18_STABLE
2007-11-02 13:02:37 +00:00
urs_hunkler 2b22a5f423 removed a typo: tabletable > table 2007-11-02 10:40:12 +00:00
stronk7 745a099abf Changed check_dir_exists() behaviour to be more robust
and to work better when used recursively under sites
with open_basedir enabled. Credit goes to René Samselnig. MDL-11437

Merged from MOODLE_18_STABLE
2007-11-02 09:52:42 +00:00
skodak b687218970 MFC: MDL-11996 bulk user upload - improvements, fixes and cleanup - part2 2007-11-02 08:42:36 +00:00
donal72 92a1d319fc Propagate additional error info about XML parse failures 2007-11-02 00:14:43 +00:00
donal72 98547f476f More error info about XML parse failures 2007-11-02 00:12:48 +00:00
stronk7 dddcaf6358 Now PHP code generated by the XMLDB editor automatically
adds calls to upgrade_main_savepoint(). MDL-11698
2007-11-01 23:21:41 +00:00
donal72 98a6fc4a3b Initialize the $message variable properly this time. 2007-11-01 21:30:09 +00:00
donal72 7499f511c8 Revert: Initialize the $message variable 2007-11-01 21:26:55 +00:00
stronk7 359ee558f0 Unsetting one white border.
Merged from MOODLE_18_STABLE
2007-11-01 20:07:55 +00:00
skodak 7b5f66308c MFC: MDL-11996 fixed previous speedup commit for user operations in admin tree 2007-11-01 19:44:32 +00:00
skodak 81c9dd751a MFC: MDL-11996 bulk user upload - improvements, fixes and cleanup - part1 2007-11-01 19:39:38 +00:00
skodak 0a48ba0c0b MFC: MDL-11995 prevent deleting of grade items attached to external activities 2007-11-01 15:09:42 +00:00
thepurpleblob 915e268e62 MDL-11977:
Add an an optional forgotten password handling url
2007-11-01 14:36:25 +00:00
nicolasconnault 5fc40f4208 MDL-8992 Added a simple script from http://mar.anomy.net/entry/2006/11/24/02.12.18/ to the mediaplugin filter output. Works like a charm on all tested browsers 2007-11-01 13:58:40 +00:00
nicolasconnault aa37778ca3 file eolas_fix.js was added on branch MOODLE_19_STABLE on 2007-11-01 13:58:40 +0000 2007-11-01 13:52:15 +00:00
nfreear 482b3d1677 Fixes bug MDL-11994, Accessibility: "Users tagged with ..." should be marked up as a list. Merged. 2007-11-01 12:34:39 +00:00
skodak f018ef4a52 MFC:
MDL-11966 fixed typo in grader report causing fatal errors
MDL-11993 refactored code for item headers and icons
2007-11-01 11:45:03 +00:00
skodak e8fc2358ca file calc_off.gif was added on branch MOODLE_19_STABLE on 2007-11-01 11:45:03 +0000 2007-11-01 11:42:33 +00:00
nicolasconnault 7e33b18807 MDL-11865 upgraded pagelib to using build_navigation() 2007-11-01 08:59:44 +00:00
skodak 219927349a MFC: MDL-11966 implemented dategraded and datesubmitted, tweaked altering of grades depending in hidden grades
MDL-11974 improved gradebook CSS
2007-11-01 08:50:30 +00:00
nicolasconnault f6d8678098 MDL-11912 Creating 1000's layer directory first, then userid directory: no need for recursion 2007-11-01 08:45:57 +00:00
donal72 71494eb0b1 Test for empty dataset to suppress a warning 2007-11-01 06:13:02 +00:00
donal72 3e6e9eaa52 Initialize the $message variable 2007-11-01 05:02:46 +00:00
pichetp 442e308648 MDL-11867 setting real null when response is null in calculated question merged from
head
2007-11-01 00:32:11 +00:00
wildgirl 48f66dd36e MDL-11725 en lang string edit 2007-10-31 21:54:30 +00:00
wildgirl c0d1c8f9cb MDL-11796 help file edit 2007-10-31 21:22:44 +00:00
wildgirl f46a06d08c MDL-11941 help file URL correction 2007-10-31 21:05:23 +00:00
nicolasconnault 6d7ab89b65 MDL-11912 Removed recursive param 2007-10-31 19:04:30 +00:00
tjhunt 2e978de3d1 MDL-10284 - wrong language string used on the quiz view page to inform students of the quiz deadline. I took the opportunity to strip out an unnecessary HTML table, and reviewing uses of the string /quiz(open|close)s?/ found one other inconsistency on the quiz editing form. Merged from MOODLE_18_STABLE. 2007-10-31 17:08:51 +00:00
tjhunt a999da51c5 MDL-11624 - /mod/quiz/index.php too dependant on individual course format names. I basically changed it to do the same as the forum module. Merged from MOODLE_18_STABLE. 2007-10-31 16:42:06 +00:00
nicolasconnault 150692da89 MDL-11912 Removed recursive param 2007-10-31 15:20:58 +00:00
skodak d01930668d MFC: MDL-11966 removed plugin selector when only one plugin available 2007-10-31 09:14:32 +00:00
skodak 809baca60a MFC: fixed numuser regression in overview 2007-10-31 09:00:06 +00:00
moodler 594676271f Automatic installer.php lang files by installer_builder (20071031) 2007-10-31 04:37:58 +00:00
pichetp a8f56ba982 solving MDL-7496 for calculated merged from head 2007-10-31 02:48:30 +00:00
skodak aa4847c757 MFC: MDL-11973 Improved showing of hidden items in ouuser and user report 2007-10-30 21:41:41 +00:00
skodak 29cf643cad MFC: MDL-11951 a little typo - no recursive call intended in has_any_capability() I guess 2007-10-30 20:52:54 +00:00
mattc-catalyst c546706479 Author: Matt Clarkson <mattc@catalyst.net.nz> 2007-10-30 20:45:04 +00:00
tjhunt 3d94c5e08e MDL-6376 - fix minor errors in the previous commit.
More significantly, this patch changes the '1 Students have made 1 attempts' string.

To start with, this code was being produced in five different places, so I made a function to do the work!. Next, as you can see, it is not gramatical. Also, some people find it confusing, as in MDL-6376.

Therefore, it now just says 'Attempts: 1'.
2007-10-30 19:28:05 +00:00
sam_marshall 3724757d96 MDL-11916 Added managegroupevents capability 2007-10-30 16:18:08 +00:00
skodak 11551df2c3 MFC: MDL-11957 improving and cleanup in grade overriding 2007-10-30 11:54:25 +00:00
tjhunt d09ab40142 MDL-11951 - supplemental - need capability checks in the outer if of the file too. 2007-10-30 10:49:25 +00:00
tjhunt 435d7bdba9 Unit tests for MDL-9295 - clean_param with PARAM_URL/PARAM_LOCALURL. Merged from MOODLE_18_STABLE. 2007-10-30 10:46:23 +00:00
tjhunt 7e340b3e8d MDL-9295 - PARAM_URL/PARAM_LOCALURL does not accept http://localhost/ or other hosts on lans. Merged from MOODLE_18_STABLE. 2007-10-30 10:15:27 +00:00
tjhunt 384a9cbda9 Correct misleading comment. Follow-on from the fix to MDL-11462. 2007-10-30 10:10:20 +00:00
toyomoyo 8b405ab59b making multibyte filename appear correctly under IE download 2007-10-30 00:33:45 +00:00
skodak 6543cbde7a MFC: MDL-11955 required scale selection when grade type is scale 2007-10-29 20:36:15 +00:00
skodak 6e0fd47067 MFC: MDL-11954 grader report links to profiles from the same course 2007-10-29 20:25:51 +00:00
skodak 90f36eaf96 MFC: MDL-11904 deny/accept Email settings conflict with text - now .example.com means all subdomains 2007-10-29 20:15:35 +00:00
tjhunt 13beed44aa MDL-11952 - In the course admin block, if the user has moodle/question:managecategory, but no other capabilites, the questions link should go to the manage categories page 2007-10-29 16:58:10 +00:00
tjhunt 1db25b8950 MDL-11951 - Need a link to the Front Page course question bank in the admin tree. 2007-10-29 16:53:41 +00:00
tjhunt 4288cc0e90 MDL-11784 - On the role assign page, list who is assigned the role for roles with only a few assignments. Improved version. Now, it only shows the extra column if some roles have between 1 and 10 assignees, as per Martin D's request. 2007-10-29 15:38:31 +00:00
poltawski fdd91b7098 MDL-11124 - Allowed 'There are no [modulename]' translations. This is currently
hardcoded and can be discovered through the user interface resonably easily.
2007-10-29 10:42:16 +00:00
poltawski 7da47c8128 MDL-11068 - fixed typo 2007-10-29 09:56:21 +00:00
poltawski 2e8b9f7325 MDL-11813 - Use existing group setting strings on course edit form so can be
better translated. Patch from Daniel Miksik
2007-10-29 09:45:38 +00:00
skodak 9a873b571d MFC: MDL-11874 grader report now indicates hidden items (gray title + range) and hidden grades (except when editing) 2007-10-29 08:39:25 +00:00
toyomoyo eab9dead49 MDL-11930, remove lang file for csv export 2007-10-29 02:02:30 +00:00
danmarsden 3a267ca3a0 missed one line.
Fix for MDL-10085  and MDL-8118 Problem with number of Responses in choice wrong, and displayed users incorrect on results. merged from HEAD
2007-10-29 00:22:44 +00:00
poltawski b1e96ca8b2 MDL-11767 SQL error with postgres 2007-10-29 00:20:30 +00:00
danmarsden 360342a41f Fix for MDL-10085 and MDL-8118 Problem with number of Responses in choice wrong, and displayed users incorrect on results. merged from HEAD 2007-10-28 23:28:14 +00:00
poltawski ce249c4de5 MDL-11937 - save 100 database queries in the case of the admin bookmarks block
without bookmarks on non-admin page
2007-10-28 23:03:33 +00:00
skodak a32126839c MFC: MDL-11563 replaced hardcoded permission check from admin_tree_block 2007-10-28 22:36:29 +00:00
skodak 020eae6335 MFC: MDL-11934 grade report in user profile now selectable 2007-10-28 18:11:17 +00:00
skodak d5d95c5e02 MFC: MDL-11927 fixed cookiepaths; patch by Kevin 2007-10-28 14:21:41 +00:00
skodak 038ee13b04 MFC: MDL-11718 report styles moved to report/xx/styles.php - for better consistency with other plugins; other cleanup in user report css; fixed css in user profile 2007-10-28 12:57:17 +00:00
skodak d6beb4690a file styles.php was added on branch MOODLE_19_STABLE on 2007-10-28 12:57:17 +0000 2007-10-28 12:51:16 +00:00
urs_hunkler 893194c625 MDL-11926 :: two comments confused Chameleon. I have deleted the comments and optimized CSS for Chameleon use. 2007-10-28 12:38:44 +00:00
urs_hunkler 55c7250333 MDL-11928 :: calendar width in IE6 && MDL-11730 :: header-home background color fixed 2007-10-28 08:53:46 +00:00
moodler b4f675e1d5 Automatic installer.php lang files by installer_builder (20071028) 2007-10-28 05:14:47 +00:00
skodak 96e3537213 MFC: added groups param to get_numusers() - to be used in oureport; might be handy elsewhere too 2007-10-27 22:06:46 +00:00
skodak 7823acb0c9 MFC: support for styles.php in grade reports 2007-10-27 22:02:47 +00:00
skodak 5e691be585 MFC: MDL-11718 fixed typos in prev commit 2007-10-27 20:38:05 +00:00
skodak b7049c9222 MFC: MDL-11718 minor cleanup 2007-10-27 20:36:34 +00:00
skodak 8941942a02 MFC: MDL-11718 minor fix for grades in user profile 2007-10-27 18:23:38 +00:00
skodak e685d5838d MFC: MDL-11718 partial cleanup in overview report - unfortunately the problems with hidden grades can not be solved here without db changes 2007-10-27 18:00:21 +00:00
skodak 70efa359e2 file settings.php was added on branch MOODLE_19_STABLE on 2007-10-27 18:00:22 +0000 2007-10-27 17:58:36 +00:00
skodak edc0fe896d MFC: MDL-11718 course settings for reports - for now only user report (rank and showing of hidden items) 2007-10-27 15:35:16 +00:00
skodak fbaa57cbf8 MFC: MDL-11718 grader report now does not show column totals if user does not have view hidden grades capability because we can not calculate the totals depending on altered aggregates 2007-10-27 13:15:06 +00:00
skodak 2ee13c5c8b MFC: fixed error when no scale present 2007-10-27 11:42:34 +00:00
nicolasconnault a7212cb9c7 grade_outcome->description doesn't exist 2007-10-27 06:28:39 +00:00
tjhunt e63938ba8a MDL-11917 - Improve the title on the assign/override roles page. 2007-10-26 16:59:49 +00:00
toyomoyo 6597b34eeb MDL-11532, updatesql needs to get run after each 'round' otherwise there's nothing to pull from the context table 2007-10-26 07:56:36 +00:00
toyomoyo c6ed8589e0 MDL-11836, show number of blocks but do not link if no reference to any course 2007-10-26 03:24:29 +00:00
toyomoyo bebdb9b162 MDL-11902, gradebook formula dereferencing problem 2007-10-26 02:06:21 +00:00
tjhunt 677ab5e475 Fix typo. 2007-10-25 14:29:39 +00:00
tjhunt 4a4b110509 MDL-11825 - Force penaltyfactor to 1 for truefalse questions on GIFT import, as is done on the editing form. Merged from MOODLE_18_STABLE. 2007-10-25 09:43:09 +00:00
toyomoyo 5e919c34ee MDL-11893, send email to admin when add_to_log fails 2007-10-25 04:01:38 +00:00
danmarsden 00f65b4e5d MDL-11397 bug with IE 6 not displaying anonymous results correctly.
- also fix for XHTML Strict.

merged from HEAD
2007-10-24 21:29:12 +00:00
toyomoyo 4ad8ec74e7 MDL-11513, adding support for grade letters 2007-10-24 07:38:23 +00:00
whchuang 8e48cb7180 Fixed MDL-10506 Hide/Show Advanced text does not toggle in IE and Safari when edit profile 2007-10-23 22:18:17 +00:00
tjhunt 6a3ba4e585 MDL-11784 - On the role assign page, list who is assigned the role for roles with only a few assignments. 2007-10-23 16:27:06 +00:00
tjhunt b16832dd09 MDL-11881 - User with question permission but not mod/quiz:manage can get a nasty require_capability error. 2007-10-23 16:15:31 +00:00
tjhunt e88133dc12 MDL-11870 - Notices on the quiz view page if the corresponding grade item was deleted. 2007-10-23 07:47:43 +00:00
moodler 841d2ca4c9 Automatic installer.php lang files by installer_builder (20071023) 2007-10-23 05:14:07 +00:00
danmarsden 319e0b83a5 Fix for MDL-9666 totals don't appear when full names are shown. merged from head. 2007-10-22 21:50:47 +00:00
danmarsden 210f57ff8a fix for MDL-11063 - thanks to Wen for the patch. merged from head. 2007-10-22 21:26:16 +00:00
arborrow 7ee7b84e9d MDL-11869 - javascript syntax error was preventing the call to the calc function. Adding in the double slashes around CDATA resolves the problem. (merging into 19STABLE) 2007-10-22 20:37:53 +00:00
tjhunt 7cc3f26d18 MDL-11708 - Zero answers are not allowed in Matching questions - sometimes I hate PHP. Merged from MOODLE_18_STABLE. 2007-10-22 16:57:09 +00:00
tjhunt 8ac54989eb MDL-11824 - Literal asterisk (\*) in shortanswer question not handled correctly by get_correct_responses + Unit tests. Merged from MOODLE_18_STABLE. 2007-10-22 15:37:25 +00:00
urs_hunkler 867354f9ae CSS color "lightgrey" does not exist. I replaced it with the "corresponding" Linux color value #D3D3D3. 2007-10-22 10:35:08 +00:00
nfreear b27db1be63 Fix for reopened bug MDL-7878, "Link identification and skipping" - includes site and course index.php. Merged. 2007-10-22 09:25:52 +00:00
nfreear b39a4fec6a Partial fix for reopened bug MDL-7878, "Link identification and skipping" - affects all course formats + other files. Merged. 2007-10-22 06:51:09 +00:00
toyomoyo a358f9b4e2 fixing some warnings 2007-10-22 03:02:00 +00:00
gbateson cde191082a improve XHTML compatability of HotPot reports; fix termination of <input> tags in JCloze and JQuiz 2007-10-22 01:43:19 +00:00
stronk7 fcad0318e9 Changing some standard colors. Merged from HEAD. 2007-10-21 19:27:30 +00:00
skodak 2f40c9ea94 MFC: MDL-11718 fixed altered aggregation of overridden and locked grades + some speedup and corrections 2007-10-21 13:23:07 +00:00
skodak d5f05bd60e MFC: MDL-11859 student rank and showing of hidden grade items are now configurable + fixed some incorrect include_once 2007-10-21 12:57:35 +00:00
skodak 94707762b5 file settings.php was added on branch MOODLE_19_STABLE on 2007-10-21 12:57:35 +0000 2007-10-21 12:56:20 +00:00
moodler bcdb15f066 Automatic installer.php lang files by installer_builder (20071021) 2007-10-21 04:23:45 +00:00
gbateson 0846150380 improvements to XHTML compatability:
(1) change & to &amp; in URLs;
(2) correctly terminate <input ... /> and <img ... /> tags;
(3) add closing tag for "page" and "content" divs when not using print_footer()
(4) change "<" and ">" to html entities in open text
2007-10-21 02:52:49 +00:00
skodak f39432cafe MFC: MDL-8605 fixed user image restore code 2007-10-20 20:59:20 +00:00
skodak 8809b99a1f MFC: MDL-11857 missing addslashes on idnumber field during backup restore 2007-10-20 19:34:26 +00:00
skodak aaf277889b MFC: MDL-11857 missing addslashes on idnumber field during backup restore 2007-10-20 19:26:53 +00:00
skodak f7266dd323 MFC: MDL-11835 proper labels for aggregation coef - weight and extra credit 2007-10-20 19:13:55 +00:00
skodak ee41a6a7c8 MFC: MDL-11718 fixed incorrect bounds when altering aggregates for hidden grades 2007-10-20 15:50:44 +00:00
skodak 8b378edc14 MFC: MDL-11278 improved forced category settings - refactoring + regrading forced + new setting to hide forced settings in UI 2007-10-20 15:11:48 +00:00
mudrd8mz e3dccebf8d Backporting tabindex support from HEAD. Sorry for adding a new feature into the stable but this is quite useful for translators. 2007-10-20 02:06:12 +00:00
stronk7 e21b7f0a57 Booleans are not always transformed to 0 /1. This was preventing install
under mysqli. Define block->multiple if needed.

Merged from MOODLE_18_STABLE
2007-10-19 17:52:03 +00:00
stronk7 74812cb716 Adding support to course/formats from within the editor. MDL-11842
Merged from MOODLE_18_STABLE
2007-10-19 16:52:06 +00:00
poltawski 7931e74e44 MDL-11766 Flickr/Youtube blocks don't respect http proxy vars 2007-10-19 15:07:02 +00:00
poltawski 612f6992c5 MDL-11840 - curl was set to use CONNECTs for all http requests. This is disallowed
by most http proxies to prevent tunneling. Added some debugging in case of failure.
2007-10-19 14:45:54 +00:00
poltawski 30a16e7e83 MDL-11766 download_file_content is quite broken with proxies - lacking global
CFG definition, so must never have worked, also incorrectly specified proxyhost..
2007-10-19 11:44:04 +00:00
skodak 8b6f55ee7a 2007-10-19 08:53:54 +00:00
skodak 2b0e9d6ef9 file agg_sum.gif was added on branch MOODLE_19_STABLE on 2007-10-19 08:53:55 +0000 2007-10-19 08:51:53 +00:00
skodak 8336513809 file agg_mean.gif was added on branch MOODLE_19_STABLE on 2007-10-19 08:53:56 +0000 2007-10-19 08:51:53 +00:00
toyomoyo 0b0ff32d3c MDL-11167, admin blocks page should not show blocks not placed on course pages 2007-10-19 07:53:09 +00:00
donal72 45bddb6e6d Enable access to Mahara from testclient.php 2007-10-19 00:44:40 +00:00
stronk7 5a27d062ee Commenting some more debug... 2007-10-18 16:02:47 +00:00
stronk7 551f994986 Commenting out some excess of debug info. 2007-10-18 15:52:16 +00:00
skodak 1e5d9d5d5f MFC: userid must be set in new grade too 2007-10-18 10:09:19 +00:00
toyomoyo 1914e3a8f3 grade_grade does not have itemid initialized in grader report 2007-10-18 07:07:59 +00:00
toyomoyo 650044d9a2 sorry fixing conflict marker 2007-10-18 05:51:39 +00:00
toyomoyo fb38e114e7 MDL-11241, adding logs for roles management 2007-10-18 05:50:41 +00:00
moodler 6d19ce3361 Automatic installer.php lang files by installer_builder (20071018) 2007-10-18 05:43:10 +00:00
mattc-catalyst 2bf84bba09 groups/autogroup: Allocate members to groups more fairly
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-10-18 03:00:23 +00:00
skodak 6bfe184be4 MFC: MDL-11718 aggregated grades which depend on hidden grades are now hidden too + cleanup in grader report 2007-10-17 20:40:19 +00:00
tjhunt b85eb9fa4a MDL-11061 - admin notifications about $CFG->wwwroot, which sometimes lead to obscure errors. 2007-10-17 20:20:17 +00:00
tjhunt c5c60abd3e Fix notice. 2007-10-17 14:35:34 +00:00
urs_hunkler 0c3f1da5b6 removed CSSEdit reference line. 2007-10-17 13:52:10 +00:00
urs_hunkler a27b6c2c52 RTL rendering optimized for IE6, IE7, Oper with CSS and Safari 2 with JavaScript. 2007-10-17 13:37:58 +00:00
skodak cdb4e23f90 MFC: MDL-11718 aggregated grades which depend on hidden grades are now hidden too; cleanup in user report 2007-10-17 10:02:51 +00:00
skodak e19f971389 MDL-11658 shared rdef definition - reduced memory usage in cron; MFC 2007-10-17 09:21:48 +00:00
donal72 47405f9b6f Laying groundwork for more Mnet error reporting 2007-10-17 08:14:32 +00:00
donal72 e04584907b Rewrite testclient.php to be a service browser for remote Moodles. This should be useful to people who are trying to connect to the API from non-Moodle hosts, or write software to connect to Moodle. MDL-10214, MDL-10174, MDL-10172, MDL-10171 2007-10-17 08:11:50 +00:00
donal72 3dff7f538b Change reflection methods to only report on methods that are being published to the inquiring host (instead of all methods that could be published). MDL-10214, MDL-10174, MDL-10172, MDL-10171 2007-10-17 08:07:50 +00:00
toyomoyo bef2f86f04 closing this $rs 2007-10-17 07:28:44 +00:00
toyomoyo cf5a890bd6 MDL-11801, chat message not shown 2007-10-17 07:18:14 +00:00
toyomoyo 244d9553ca MDL-11687, the string 'capability' should not be translated in the links to capabilities docs page 2007-10-17 05:36:23 +00:00
toyomoyo f8c11d0afc MDL-11687, the string 'capability' should not be translated in the links to capabilities docs page 2007-10-17 05:30:32 +00:00
toyomoyo bdd77c8326 MDL-11553, reducing the number of bulk user selection buttons and lang changes 2007-10-17 04:29:16 +00:00
toyomoyo c470dada5b MDL-11770, broken userid in add_to_log 2007-10-17 03:01:38 +00:00
toyomoyo 472bce6d12 MDL-11170, blog tagging code broken 2007-10-17 02:54:43 +00:00
tjhunt aeb50096a1 MDL-5262 - PHP notice when sorting on R% coloumn in the Item analysis report - I adopted the simple solution of stopping people sorting on that column, since it is the same as sorting on rcount, I think. 2007-10-16 21:26:03 +00:00
tjhunt 8af53beeec Fix possible notice. 2007-10-16 20:52:12 +00:00
tjhunt ede4316c01 MDL-11794 - Blocks editing on button is not XHTML Strict when produced by page_generic_activity. 2007-10-16 20:43:28 +00:00
tjhunt 49fa880ef6 MDL-11791 - Custom corners broken on the quiz view page because I missed a global declaration, and PHP empty was hiding the problem. 2007-10-16 20:29:37 +00:00
stronk7 7063eb9fbb Move the update of digestmailtimelast to the end of the
loop to allow digests to be sent over multiple cron
executions if something crash in the middle. MDL-11657
2007-10-16 16:08:34 +00:00
urs_hunkler abbad4af13 Added mod-data-view to the custom corners include list for properly displayed custom corners. They where missing arounfd the contetn area.
Replaced strstr with the faster strpos.
2007-10-16 14:54:46 +00:00
tjhunt 40c6886f95 Fix restore notice when a role has no capabilities. 2007-10-16 14:03:08 +00:00
donal72 49ce7ff03c Log error code and text in mnet_server_fault_xml function. MDL-10196 2007-10-16 14:03:00 +00:00
donal72 a4fbad6e80 Label for wwwroot field 2007-10-16 10:20:12 +00:00
donal72 646a6d9481 MDL-11329: fixed text: "Local courses for external users:" 2007-10-16 09:14:47 +00:00
donal72 936450330a More helpful MNet error messages in debug mode 2007-10-16 09:02:01 +00:00
urs_hunkler ac331d6a4a Updates for IE problems, mainly for RTL language display. IE6 still refuses to work properly :-( 2007-10-16 08:56:06 +00:00
donal72 29858f020e MDL-11040: get_complete_user_data doesn't get the complete user data. Replace with get_record to bring over the user's description. 2007-10-16 08:53:16 +00:00
skodak 625faf10a3 MDL-11759 missing RISK_XSS in manage groups capability; merged from MOODLE_18_STABLE 2007-10-16 08:43:54 +00:00
gustav_delius f9144364f4 Fixed yet another error in the same bit of SQL in get_users_by_capability() that made many things not work properly on the course front page. 2007-10-16 08:27:39 +00:00
gustav_delius e19c5c1018 Fixing typo that led to fatal SQL error 2007-10-16 08:20:31 +00:00
donal72 516c425215 Removed a constraint that caused mnet to fail on clusters, vservers and other network configurations where the mnet client's hostname (as specified in the wwwroot) resolves to an IP address that differs from the IP address that it uses to contact other hosts. This should address MDL-10672 2007-10-16 08:00:20 +00:00
toyomoyo 28215f3286 MDL-11679, overview report should only return mycourses 2007-10-16 05:34:10 +00:00
nicolasconnault d815125160 MDL-8605 Upgrade of user folder will not occur if the user folder already exists 2007-10-16 04:54:13 +00:00
toyomoyo 56ce5f0965 fixing a warning 2007-10-16 04:33:23 +00:00
toyomoyo 0e319f934d MDL-9059, admins can't see group events in course 2007-10-16 03:46:43 +00:00
stronk7 35c114a9dc Reverting last commit. This is an EXTERNAL library file and shouldn't
be modified. And it was broken (strange linefeeds). MDL-11779
2007-10-15 22:02:03 +00:00
nfreear 8d62aacbda Follow up for MDL-11430, Flickr & Youtube tag blocks should use list markup - Fix styles. Merged. 2007-10-15 17:01:49 +00:00
nfreear 4a7cd55555 MDL-11775 "Undefined constant 'data_submitted' ..." - it's a function! 2007-10-15 15:02:10 +00:00
nfreear 8608db739d Follow up fix for MDL-11535 "Blog block sql error" - ...MAX(ordering) max_order - adding "AS" 2007-10-15 14:46:34 +00:00
nfreear 4c8aa550dd Follow up fix for MDL-11535 "Blog block sql error" - GROUP BY, added ", tg.name" etc. 2007-10-15 14:20:22 +00:00
thepurpleblob 290084cfdc MDL-11769:
question name is properly truncated to less than 255 characters tom
stop PostGRES choking.
2007-10-15 13:50:16 +00:00
nfreear cc2c883f80 Fixes MDL-11430, Flickr & Youtube tag blocks should use list markup. Merged. 2007-10-15 12:34:13 +00:00
nfreear 7914d49318 Preparation for MDL-11430 - whitespace. 2007-10-15 12:32:42 +00:00
nfreear 4776de0668 Follow up fix for MDL-11436 'Encapsulate "accesshide" HTML class in function', and use. Merged. 2007-10-15 10:06:47 +00:00
tjhunt 478c9e9380 MDL-11762 - Navigation not set up properly for resources - $this->navlinks was not being initialised in the base class. 2007-10-15 07:31:52 +00:00
urs_hunkler 1258810abc removed the javascript to correct the header display :: IE7 hangs. Need to find a different solution. 2007-10-15 07:13:30 +00:00
nicolasconnault ca005e23f7 MDL-10905 iterating properly through readdir() 2007-10-15 05:42:20 +00:00
nicolasconnault ec74fb3501 MDL-8605 putting versions in sync between 1.9 and head 2007-10-15 05:18:09 +00:00
toyomoyo bee3222be8 MDL-10353, adding couse variable to nav bar in calendar preferences 2007-10-15 04:46:05 +00:00
moodler 8241c5e324 Automatic installer.php lang files by installer_builder (20071015) 2007-10-15 04:35:05 +00:00
toyomoyo 47641637e5 MDL-11717, adding dimmed_text a, to dim links as well 2007-10-15 02:02:19 +00:00
gbateson 8ee76d1ffe where the correct responses on a JQuiz multiple choice question all have a score of 0%, the scores will be corrected to 100% 2007-10-15 00:59:03 +00:00
stronk7 86bea5c65e Improving cron to make digests to use much less memory. MDL-11657 2007-10-14 16:13:16 +00:00
urs_hunkler 7a158dac13 corrected IE calendar display, removed CSS bugs. 2007-10-14 16:06:59 +00:00
stronk7 b782e682f0 Backported from HEAD
Drop one index that shouldn't be there. MDL-11751
2007-10-14 09:57:52 +00:00
tjhunt 94f07cd524 Correct misleading error message in upgrade_activity_modules. Spotted while diagnosing MDL-11732. 2007-10-13 22:00:30 +00:00
mark-nielsen eee9477bfd Mergin fix for MDL-11684 from MOODLE_18_STABLE 2007-10-13 03:07:27 +00:00
mark-nielsen c2325b6ffd Mergin fix for MDL-11696 from MOODLE_18_STABLE 2007-10-13 02:34:14 +00:00
mark-nielsen c09019a4b5 Merging fix for MDL-11636 from MOODLE_18_STABLE 2007-10-13 01:56:37 +00:00
urs_hunkler b1abcbd50a MDL-11664 :: IE6 can't display transparent PNGs. Added not transparent gifs instead and changed the background for IE6 to a solid colour. 2007-10-12 21:46:36 +00:00
urs_hunkler ced48de808 MDL-11664 :: added IE6/UE7 special CSS and because that didn't help at all places added JavaScript to correct some wrong calculated width. 2007-10-12 21:42:04 +00:00
nicolasconnault 01d786178d MDL-8605 Backup and restore implementation 2007-10-12 20:24:00 +00:00
nicolasconnault 46387ff2ae file testbackuplib.php was added on branch MOODLE_19_STABLE on 2007-10-12 20:24:09 +0000 2007-10-12 19:13:19 +00:00
tjhunt b34fc1be24 MDL-11741 - Convert core modules to take advantage of recent improvements to build_navigation.
This check-in removes about 400 lines of code. I hope I have not screwed anything up. I would be grateful if people could review this change, and keep an eye on the navigation bar in modules.

Any navigation bar bugs you find in the near future, feel free to file them in the tracker and assign them to me. Thanks.

If not to many problems are found, I think I would like to backport this to 1.9 stable, but I am not sure that is a good idea. Opinions to the General Developer Forum please. I am about to start a thread there.

Backported from head. Will update merged tags in a few hours. I am late for orchestra. Sorry.
2007-10-12 16:09:37 +00:00
tjhunt c971067f91 MDL-11699 - Making one more common case a bit nicer for callers. 2007-10-12 15:11:39 +00:00
nfreear 64b0ce50b7 Follow up fix for MDL-11535 "Blog block sql error" - GROUP BY, added ", tg.flag". Merged. 2007-10-12 11:01:18 +00:00
tjhunt 36f4fa0c2d MDL-11699 - Further, backwards-compatible, improvement to the build navigation API to simplify a common case. Also, further improvements to the doc comment, so it is easy to use. 2007-10-12 10:35:55 +00:00
stronk7 a1d04b878b Adding $Id tag 2007-10-12 09:44:16 +00:00
nfreear 3ab263074c Fixes MDL-11695, Skip block links inaccessible for many keyboard-only users. Merged. 2007-10-12 08:49:58 +00:00
urs_hunkler b024b748c7 MDL-11729 :: Removed commenting out loading of the Chameleon files loading. 2007-10-12 07:52:12 +00:00
moodler 22ee674191 Info about version numbers 2007-10-12 07:47:07 +00:00
toyomoyo 0f132d1bee missing context 2007-10-12 07:40:03 +00:00
toyomoyo c58f9a458e MDL-11717, dimmed_text class for hidden grade items in grader report 2007-10-12 07:17:39 +00:00
Martin Langhoff d54a1b6712 cvsimport fixups 2007-10-12 03:14:42 +00:00
toyomoyo 3ffbc9a3e0 MDL-11715, export form should follow sortorder 2007-10-12 03:14:42 +00:00
toyomoyo 0741bdca11 MDL-11714, removing debuging statement 2007-10-12 01:33:32 +00:00
tjhunt ba79369331 MDL-11699 - Addendum - fix typo in fixup code. Sorry. 2007-10-11 16:43:16 +00:00
tjhunt 0a4025eaa5 Small tidy-up in print_header_simple. 2007-10-11 15:25:14 +00:00
nicolasconnault 1ce63d3fc2 MDL-8605 Preventing new user folder from being created when original folder is empty 2007-10-11 14:18:04 +00:00
tjhunt b9ecfd4957 MDL-9542 - Show final grades from new gradebook in Quiz UI - with help from Petr. 2007-10-11 11:42:03 +00:00
nicolasconnault 16ef809654 Small unit test-related fix 2007-10-11 11:14:03 +00:00
skodak 842ec7fd2b groupings should work now; merged from MOODLE_19_STABLE 2007-10-11 09:16:15 +00:00
nicolasconnault 761447651e Minor changes related to unit testing 2007-10-11 09:15:57 +00:00
nicolasconnault 56a1a88228 MDL-8605 New user directories implemented 2007-10-11 09:01:29 +00:00
toyomoyo 0f106650ee merged fix for MDL-11709, print_header() warning for blogs 2007-10-11 08:14:13 +00:00
toyomoyo b426fd8323 MDL-10353, calender redirection broken when editting and exporting 2007-10-11 05:24:12 +00:00
moodler 8b9f26db55 Automatic installer.php lang files by installer_builder (20071011) 2007-10-11 04:08:20 +00:00
moodler 1e80a6e175 Change version to identify head version (now 2.0 dev) 2007-10-10 17:35:42 +00:00
moodler f5f2b7a30a Bump to Beta 2 level 2007-10-10 16:33:04 +00:00
skodak f2e4a0818a preparation for 1.9 beta 2 - setting correct requires in mods and plugins 2007-10-10 16:09:17 +00:00
stronk7 13bf86a3ba Bump to beta 2 (real branch) 2007-10-10 16:06:12 +00:00
jmg324 38a1e55d8a MDL-10296 adding in the global for https 2007-10-10 16:02:45 +00:00
tjhunt 3270033ab8 MDL-11703 - escaped *'s in shortanswer answers were not matching properly. Merged from MOODLE_18_STABLE. 2007-10-10 15:26:45 +00:00
jamiesensei 6f9ce92696 fix for MDL-11692. There were notices about subquestions not being defined. This seems to indicate that there is a problem elsewhere that somehow matching questions without subquestions are in the site db. But suppressed the notice by testing to see if subquestions is set before looping through the questions. 2007-10-10 15:23:24 +00:00
moodler ba4418ad4e Merged Urs fixes from 1.8 stable and reformatted a bit 2007-10-10 14:57:39 +00:00
moodler 355bf90704 Merged the flexible column patch from Urs (1.11.2.3) to HEAD 2007-10-10 14:31:27 +00:00
moodler 801070c4c5 new string merged from stable 2007-10-10 14:20:38 +00:00
tjhunt 1ba3ad7df5 MDL-11699 - Make build_navigation more helpful by having it optionally build the activity and activityinstance links too, if you pass a $cm object. Note that this only does extra DB queries if you do pass a $cm object, and it does not have all the required fields, but in this case it will winge at you in developer debug mode. If you get your $cm using get_coursemodule_from_instance or get_coursemodule_from_id, which is best practice these days, then you won't have a problem. 2007-10-10 14:00:41 +00:00
skodak 8ddcdd86cb MDL-8248 savepoints in main upgrade.php 2007-10-10 13:14:56 +00:00
skodak 03cedd6283 MDL-11432 eliminated majority of RecordCount uses, added several missing rs_close() - this should help improve perf on some platforms - Eloy says ;-) 2007-10-10 12:19:27 +00:00
skodak 41aa843717 MDL-11694 adding error displaying into installer, it does not affect the debug and error displaying in final installation
MDL-11432 eliminated RecordCount
2007-10-10 11:03:00 +00:00
wildgirl a77679e775 MDL-10713 additional description added to help file 2007-10-10 09:37:35 +00:00
skodak a7709f02b6 MDL-11432 rs->EOF wrapper function 2007-10-10 09:21:13 +00:00
moodler d45181e38d Implemented typo fixes described by ermanno bagnai in MDL-11689 2007-10-10 09:16:43 +00:00
toyomoyo d142077ef1 changing CONTEXT_GROUP to CONTEXT_COURSE for calendar:manageentries capability 2007-10-10 09:03:01 +00:00
skodak 3f7d592598 add proper rs_close() into cleanup_contexts() - we have to close even when now records returned 2007-10-10 08:43:25 +00:00
wildgirl 77be46fdee MDL-6096 help file re-wording 2007-10-10 08:39:59 +00:00
skodak 8a4d32d8a3 MDL-11688 makes sure all course and user contexts exist during upgrade (all contexts when going from in 1.6) - this is needed for grade_letter upgrade; other minor tweaks - the USER->access is now loaded automatically, feedback parameters added 2007-10-10 08:33:06 +00:00
toyomoyo 9031e46f94 MDL-11510, adding missing backup/restore gradebook fields 2007-10-10 08:28:43 +00:00
wildgirl f19204c83d MDL-7610 help file re-wording 2007-10-10 08:28:29 +00:00
moodler f6ee5e041c Just a small fix that would make this SQL work ... no idea what bug it would fix. It's not MDL-9059 2007-10-10 08:18:59 +00:00
skodak eeccaea183 MDL-11686 dropped obsoleted grade tables, removed context_rel related upgrade code 2007-10-10 07:53:35 +00:00
toyomoyo 1c03128e06 MDL-11510, missing gradebook fields in backup 2007-10-10 07:25:41 +00:00
toyomoyo e66481e1eb MDL-11510, adding missing fields 2007-10-10 07:08:50 +00:00
toyomoyo 313fcb6aea MDL-11510, referencing to wrong fields 2007-10-10 07:05:48 +00:00
toyomoyo 864d1f8c2c MDL-11667, adding 2 global variables to set default export decimal point and display format. During export there are 2 new settings for decimal points and display format, default to site setting. Removed letter option because it is a format that you can choose now. 2007-10-10 06:43:23 +00:00
nicolasconnault 8ad36f4cc3 Added copyright notice 2007-10-10 06:34:20 +00:00
nicolasconnault 39536381d5 MDL-11543 Printing nice list of categories for parent category drop-down 2007-10-10 06:21:37 +00:00
moodler 26ce730504 Tidied up border around category listing 2007-10-10 06:16:12 +00:00
nicolasconnault 2c23af9d87 MDL-11543 format_string(parent category name) 2007-10-10 06:04:14 +00:00
nicolasconnault 9c536df7c4 MDL-11543 Refactored editcategory and form 2007-10-10 06:01:54 +00:00
nicolasconnault b7064779f5 Updated copyright notice in header 2007-10-10 05:25:14 +00:00
nicolasconnault 150f64e661 MDL-11608 Removed stripslashes_safe($rename) and changed PARAM_RAW to PARAM_TEXT for rename param 2007-10-10 04:59:35 +00:00
nicolasconnault cd405db239 MDL-11543 Replacing "Site" with "Top" in the list of available parent categories 2007-10-10 04:53:32 +00:00
moodler 04e60f045b Automatic installer.php lang files by installer_builder (20071010) 2007-10-10 04:39:18 +00:00
moodler 09deab0661 Miscellaneous fixes for MDL-11543
- added button to edit current category
 - removed old mini-forms to do the same
 - tidied up various things and CSS as well
2007-10-10 04:05:46 +00:00
moodler f3c3a4d3b1 Added a timemodified field to forum_queue, and we now delete records
that are older than a week before processing digests.

After upgrade it's possible that some posts will be lost this way but
on the other hand it ensures that sites with problems like moodle.org
had will start working again.

We still need a recordset added to the digestposts loop.

MDL-11657
2007-10-10 02:52:25 +00:00
iarenaza 0baafc173a Fix MDL-11632: Multiple files with emtpy lines outside PHP open/close tags
There are multiple issues with Moodle files containing empty or blank lines
(lines consisting of white spaces or tabs only) and/or white space before or
after the PHP open and close tags, notably with config.php and theme files.
2007-10-09 21:43:28 +00:00
nicolasconnault 1f682581a7 MDL-11543 Temporary solution originally proposed by Martin 2007-10-09 17:22:10 +00:00
sam_marshall ca3b6e52d1 MDL-11681 Changed it so current tab no longer is a link to # 2007-10-09 16:56:00 +00:00
skodak 4388027c37 MDL-11674 fixed mysql incompatible SQL in chat cron 2007-10-09 16:46:04 +00:00
skodak 8600cadaea MDL-11660 user_lastaccess cleanup 2007-10-09 16:27:49 +00:00
skodak b51ece5b3b MDL-11660
* user_lastaccess deleted when deleting course
* rewritten deleting of contexts - does not use get_context_instance() anymore because it is much more strict now
* added deleting of grade_letters and settings when deleting course
2007-10-09 16:07:15 +00:00
nfreear e09586c589 Fixes MDL-11676, Skip block links are broken in Internet Explorer 6. 2007-10-09 15:48:48 +00:00
tjhunt 6f3b54c8aa MDL-9076 - Move the 'Add 3 more overall feedbacks' button inside that group of elements on the quiz settings form.
To make this possible, I added an extra argument to the repeat_elements method, which other people may find helpful on other forms.
2007-10-09 15:44:06 +00:00
tjhunt e2833e8700 MDL-11617 - 'Student may review' heading on quiz settings form is now misleading. I have fixed some lang strings and improved the help. Also, finish off the clarification of how various capabilites affect quiz review that was started in MDL-11580. 2007-10-09 15:19:07 +00:00
skodak 4400acd2fb fixed yet more undefined $sqls 2007-10-09 15:11:29 +00:00
nicolasconnault 62ecaed9df MDL-11608 The $rename param was obtained with PARAM_NOTAG, I changed that to PARAM_RAW. I also changed the rename field's value to htmlspecialchars($category->name) 2007-10-09 14:08:05 +00:00
skodak a86840ecc9 do not optimise the $USER fetching - it was broken by mnethostid and would be again in future 2007-10-09 13:43:51 +00:00
skodak 922ddcad2c fixed undefined $modcontext 2007-10-09 13:10:55 +00:00
skodak 6ceb40ad9d fixed missing $sql warning 2007-10-09 13:04:33 +00:00
nicolasconnault 86830be66e MDL-11543 Temporary solution originally proposed by Martin 2007-10-09 12:53:24 +00:00
skodak 128f098418 MDL-11640
* improved handling of dirty contexts in general - caching, switching in cron, marking, loading, etc.
* role_assing() and role_unassign() now marks dirty contexts because we use has_capability() in this function - we can not do it later outside to speedup bulk operations
* fixed some inline docs
* fixed notice from rs closing
* removed cached $CONTEXT from has_capability() - $context is now required parameter; this was hiding serious bugs when context did not exist or ppl passed false as parameter
* removed some ===, we can not use these on function parameters - we must support ints, strings, '', nulls, etc. - this could be a source of really dangerous bugs in future
* some other improvements and fixes - documented inline
2007-10-09 12:49:54 +00:00
thepurpleblob a7bf255c50 MDL-11514:
Link to missing word information and help file removed. There
was no extra help.
2007-10-09 10:26:09 +00:00
thepurpleblob f182f58099 MDL-11515:
Help file is not used.

Merged from STABLE_18
2007-10-09 10:22:40 +00:00
thepurpleblob 6f8481ec0a MDL-11425:
Process the text properly for the category path.

Merged from STABLE_18.
2007-10-09 10:16:01 +00:00
skodak d763511fdd inherit by default decimal points in ranges and averages on grader report 2007-10-09 09:29:45 +00:00
moodler dff9d94d6e Added CSS classes to totals columns (cat and course) so that styles can be applied.
Made them bold by default in standard anc custom_corners.

MDL-11666
2007-10-09 09:16:44 +00:00
toyomoyo eb44aee406 fixing a typo and some half finished comment 2007-10-09 08:56:56 +00:00
toyomoyo 59a7447a70 MDL-11669, adding a new export setting (for xml atm), so that we can choose to export only updated grades 2007-10-09 08:51:49 +00:00
toyomoyo b11d9a9139 MDL-11665, users with no grade:viewhidden capability gets a wrong upgrade count because after deletion of a grade, the grade can be NULL and not hidden at the same time 2007-10-09 05:43:35 +00:00
toyomoyo e3bb6401e1 MDL-10048, revert some changes in courses regaring coloring of courses 2007-10-09 04:02:43 +00:00
stronk7 4b3f69957e Modify notify_login_failures() for better scale. MDL-11661 2007-10-09 00:11:07 +00:00
skodak e072450699 MDL-11578 , MDL-11578 , MDL-11573 :
* renamed Preferences to "My report preferences"
* renamed Site defaults to "Report defaults"
* rename Change site defaults to "Change report defaults"
* reintroduced Inherit option to Grader preferences - Nicolas was right, it is not possible to implement preference overrides without it with our current get_pref inplementation
* new separate option in plugin selector "Course settings"
* moved displaytype, decimals and aggregation position to "Course settings"
* created new table grade_settings + related functions grade_get/set_preference()
* user report now uses grade_seq class instead of grade_item::fetch_all(); added preloading of grade items into grade_grade instances
* other minor bugfixing/cleanup/improvements

Please note that the Grader report preferences and its defaults must be resaved again - sorry.
2007-10-08 23:09:10 +00:00
stronk7 115a43113a ANSI join ON clauses should contain only the join condition. Also,
added prefix to the ORDER BY to prevent duplicate names.
2007-10-08 17:42:46 +00:00
skodak aa87d82cec MDL-11653 undefined rcache in /lib/dmllib.php during upgrades 2007-10-08 17:27:42 +00:00
stronk7 1f5c4ad105 Bump. MDL-11605 2007-10-08 16:33:49 +00:00
stronk7 cef1ea8e8e Adding one new index to cache_text table. User to make cron deletion
of expired records faster. MDL-11605
2007-10-08 16:33:29 +00:00
nfreear c8149f0f4f Fixes MDL-11648, "Required" is inappropriate text for legend in user profile edit form. 2007-10-08 13:55:53 +00:00
nicolasconnault e699389e47 Creating course grade_category and course grade_item when not yet created and overview report is accessed 2007-10-08 09:54:51 +00:00
nicolasconnault d0b83b0033 Making the overview report viewable by student role by default 2007-10-08 09:53:43 +00:00
toyomoyo a506e40c9f dropping context_rel table 2007-10-08 08:51:59 +00:00
ikawhero 91cddbc454 Only include data from field types that are "small" 2007-10-08 08:10:45 +00:00
moodler 4354a3e563 Some fixes to make preferences work correctly (if not set then they are 0) and so now ranges and averages show correctly on grader report when these are set to defaults in preferences MDL-11618 2007-10-08 07:26:29 +00:00
ikawhero 323ccc26b6 Include custom profile fields when setting up a user object 2007-10-08 07:23:18 +00:00
ikawhero 66643c0aa8 New function to return a partial user object with the custom profile fields
set.
2007-10-08 07:21:32 +00:00
moodler d9c1a97188 Cleaner saving of grader report prefs 2007-10-08 07:11:22 +00:00
ikawhero cfdb170609 Check to ensure custom profile fields do not have same name as current
fields in the $USER record
2007-10-08 06:59:00 +00:00
moodler 4baf254f5a Re-ordered some preferences to be a bit more logical 2007-10-08 06:55:34 +00:00
toyomoyo f0b9c95bf7 MDL-11633, changing import to use $mform->getdata() instead of data_submitted() 2007-10-08 06:52:39 +00:00
gbateson 68a5a1244d added escaping of quotes in TimesUp message, so that apostrophes do not cause Javascript errors 2007-10-08 06:45:27 +00:00
moodler 69d0f96a53 Fixed typo from MDL-11642, thanks Gary 2007-10-08 05:11:15 +00:00
toyomoyo 1b39b03a84 MDL-11616, adding activity link back for hidden grade items 2007-10-08 02:34:04 +00:00
toyomoyo a21fed9df5 using correct capability for displaying activity report link in print_user() 2007-10-08 00:42:41 +00:00
diml 2f33e8f031 fixes a bug in resource_get_physical_file(...) when making a ResourceDocument object. 2007-10-07 20:15:32 +00:00
diml b0c3d06acc add an override for system limits (execution time / memory limit) for long
reindexation works (big documents). Set statically to 300 sec and 48M.

TODO : get possibly admin defined values for these limits.
2007-10-07 20:14:17 +00:00
diml 84257f3fe1 changing access resolution for buttons labels 2007-10-07 19:44:59 +00:00
diml f651fb3980 unconsistent file 2007-10-07 19:44:18 +00:00
diml a76b196392 string nl translations for search block 2007-10-07 19:40:47 +00:00
diml 351708dcbb string fr translations for search block 2007-10-07 19:40:15 +00:00
diml 9424e7e0b5 string en translations for search block 2007-10-07 19:39:42 +00:00
diml 404b5d334e adding dutch translation for search engine 2007-10-07 19:36:01 +00:00
diml 39cfb0b068 fix access check function for documents bug $context->instance to $context->instanceid 2007-10-07 19:34:59 +00:00
skodak d622930b39 MDL-11618 removed the inherit override from decimals and gradetype used on grader report preferences + several bug fixes + settings improvements 2007-10-07 18:15:57 +00:00
stronk7 f1dc7614b5 Adding some traces here and there 2007-10-07 17:28:46 +00:00
moodler 9f2ded7678 More passing around of context information to speed up things 2007-10-07 14:53:13 +00:00
moodler 63a11f3c95 Added some hooks to increase debugging in admin/cron.php
$CFG->showcronsql
$CFG->showcrondebugging
2007-10-07 14:52:29 +00:00
skodak e5245c73a5 MDL-11448 FirstClass Authentication does not hold settings and has cosmetic and info leakage issues, patch by Dan Trockman 2007-10-07 14:08:37 +00:00
skodak 1bc8aab1c5 fixed defaults and hardcoded lang strings in performance settings 2007-10-07 14:01:36 +00:00
skodak 1d19804aa3 MDL-11568 prevent warning from $USER->mnehostid when not logged in 2007-10-07 13:46:46 +00:00
skodak 8ce8fc85fc MDL-11304 remerging fixes 2007-10-07 13:31:41 +00:00
moodler 4924f1d280 Removed some blank lines MDL-11632 2007-10-07 13:18:05 +00:00
skodak 8108909a60 MDL-9636 grade import fixes - allow null grades, no importcode collisions and stealing, more validation and other bugfixes 2007-10-07 13:04:49 +00:00
skodak fa234b6739 MDL-11611 reimplemented displaytype and decimals disabling logic in grade item edit form for dispa - now works for new items too 2007-10-07 10:51:52 +00:00
skodak 3405820739 MDL-11622, MDL-11623 xml import/export now uses user idnumber; feedback optional; related bugfixing 2007-10-07 10:22:21 +00:00
moodler 673bc55dc2 Merged blog theme/lang fixes from MDL-10833 2007-10-07 09:27:13 +00:00
pichetp 4bc4ca50a6 checking that there remain $oldwrappedids before deleting them lines 87-..
add         if(is_array($oldwrappedids) && count($oldwrappedids)){
2007-10-06 20:51:28 +00:00
pichetp aa78ab4cb3 missing global $CFG ; line 577
function save_dataset_items($question, $fromform){
global $CFG;
2007-10-06 19:02:26 +00:00
stronk7 d9420631b8 ORPHAN_USER_LASTACCESS_PROBLEM . MDL-11604 2007-10-05 22:27:55 +00:00
skodak 5c8e6cb179 MDL-11621 removed recursion from create_contexts() 2007-10-05 20:47:08 +00:00
skodak 9a81a6060a MDL-11621 new create_contexts() function that makes sure all contexts exist, optionally initialises the paths and depths too 2007-10-05 20:16:51 +00:00
skodak 7d0c81b3ba MDL-11521 fixed problems when creating contexts and aprents does not exist yet
MDL-11527 fixed warning from $CFG->defaultuserroleid when installing and upgrading
+ removed reusing of previous contexts in has_capability() and get_context_instance()  because it was hiding critical errors when context was false, not specified, etc.
+ tweaked roles defaults - faster and defaults are applied when roles exist
+ SYSCONTEXTID may be specified in config.php to eliminate 1 db query
+ static context cache is now reset after rebuilding of context paths
+ path field in context table is now nullable - pg compatibility requirement
+ other minor fixes
2007-10-05 15:06:38 +00:00
skodak bb49f77b84 fixed whitespace 2007-10-05 14:31:57 +00:00
moodler 5b1dbd5cd7 Some SQL fixes to avoid putting 'quotes' around integers (performance) 2007-10-05 13:34:28 +00:00
skodak 0dba6cb2c5 MDL-11576 grader report - if user can not see hidden grades they are treated as NULLs and column totals 2007-10-05 09:47:31 +00:00
moodler c15b86dc95 Pass $modcontext down through the functions so that print_post is more efficient MDL-11606 2007-10-05 07:26:02 +00:00
moodler 2106444076 Get imagealt during outer loops so that print_user_picture is more efficient MDL-11606 2007-10-05 06:47:14 +00:00
moodler 2c894bb92d Efficiency improvements to bring some SQL statements out of loops MDL-11606 2007-10-05 06:36:31 +00:00
moodler b649ef92e3 Small efficiency improvement for print_user_picture() when it does access the db 2007-10-05 06:32:53 +00:00
toyomoyo d292d1d2b0 MDL-11549, print_user() should also check user context when printing activity report link 2007-10-05 06:31:11 +00:00
nicolasconnault 5a81060351 MDL-11500 Catching empty $coursemod when viewhiddensection is false, + corrected type $coursemode => $coursemod 2007-10-05 05:40:56 +00:00
nicolasconnault 323956abd9 MDL-11519 Commented out the Ajax option 2007-10-05 05:37:55 +00:00
nicolasconnault 05a334392c MDL-11525 When courseid is not present in the log entry, showing "Site" instead of $log->info 2007-10-05 04:24:42 +00:00
toyomoyo 2cc649ee22 merged fix for MDL-10353, calendar export not handing course variable correctly 2007-10-05 03:52:17 +00:00
skodak 1223d24a73 MDL-11580 support for hidden state modification in gradebook from activities (quiz now only) - part 1
the hiding/unhiding should be IMO locked in gradebook UI when activity overrides it
2007-10-04 22:57:14 +00:00
wildgirl 452b14b131 MDL-11492 help file re-write 2007-10-04 20:32:09 +00:00
stronk7 44853b8182 Reset possible changes by blocks to time_limit. MDL-11597 2007-10-04 17:55:59 +00:00
stronk7 5e867b23b9 Reset possible changes by modules to time_limit. MDL-11597 2007-10-04 17:42:30 +00:00
skodak 4f30c61dc8 MDL-11599 missing return statement 2007-10-04 17:09:34 +00:00
tjhunt 01600b5190 MDL-11580 - refinement to Yu's checkin, including removing the $CFG->openuniversityhacks.
Also, reviewing the new code made me realise that the code in mod/quiz/report/overview/report.php was a mess, so I cleaned it up a bit.
2007-10-04 15:57:09 +00:00
moodler 0371f8e52f Added some default roles that should have moodle/grade:viewhidden
related to MDL-11580
2007-10-04 15:45:37 +00:00
nicolasconnault 3126103b74 Re-enabling inherit options for range and average rows in grader report 2007-10-04 15:07:08 +00:00
nicolasconnault 78a2d9f05f Re-enabling inherit options for range and average rows in grader report 2007-10-04 09:30:16 +00:00
moodler c727acb64b Just a little tidying up in the user report (padding) 2007-10-04 09:21:23 +00:00
skodak 4a3dfd9af1 MDL-11582 switch category item only if it is really there - forgot to add courseitem into condition 2007-10-04 09:00:29 +00:00
skodak 6f0078e5a0 moving the class instantiation a bit earlier so that we can safely modify it 2007-10-04 08:48:04 +00:00
skodak 3e0e2436de MDL-11582 switch category item only if it is really there 2007-10-04 08:36:34 +00:00
toyomoyo fb72e817d9 MDL-11580, hide quiz grades when user has no grade:viewhidden capability and quiz is still open, need $CFG->openuniversityhacks flag set 2007-10-04 08:22:55 +00:00
nicolasconnault 5961dbfb10 MDL-11576 Added the groupsql clause to has_hidden_grades 2007-10-04 08:16:13 +00:00
nicolasconnault 6df5b04ec7 MDL-11576 New grade_item method has_hidden_grades(), which returns a simple count of hidden grades for the item. 2007-10-04 08:02:00 +00:00
nicolasconnault 9f2e50fc0f Instantiating a full $grade_item object, otherwise the get_displaytype() method is not available and causes a fatal error 2007-10-04 07:44:13 +00:00
toyomoyo 7f0648510a MDL-11544, tags migrate script postgres db problem 2007-10-04 07:06:54 +00:00
nicolasconnault a7c3671a92 MDL-11581 Implemented gradedisplaytype in user reports 2007-10-04 07:02:44 +00:00
moodler 0b38a2a330 Latest tags file 2007-10-04 06:44:51 +00:00
moodler 4533997ff7 FIxed a string name which changed 2007-10-04 06:06:07 +00:00
gbateson b3687f28f1 use target="$CFG->framename" instead of $CFG->frametarget when HotPot navigation is set to "Moodle navigation frame"so that Moodle does not get stuck in sub frame 2007-10-04 05:32:27 +00:00
toyomoyo d9a23b785f merged fix for MDL-10353, after setting preferences user should return to same course view 2007-10-04 05:13:28 +00:00
moodler c5ebd94b29 Automatic installer.php lang files by installer_builder (20071004) 2007-10-04 05:12:43 +00:00
skodak d75731c6ac prevent returning of invalid array from get_course_managers() 2007-10-03 22:26:05 +00:00
skodak e98871a2c2 MDL-11587 new grade_seq class similar to grade_tree but flat 2007-10-03 21:14:58 +00:00
skodak 9376f5a66a MDL-11583 fixed use of capability moodle/grade:manageletters - now works in plugin selector 2007-10-03 20:24:59 +00:00
skodak 8dd5c1ee2f MDL-11585 false is not allowed default in admin_setting_configselect constructor 2007-10-03 20:02:12 +00:00
stronk7 fce3ef94e8 Moving some uses of deprecated functions to recordsets
in cron. MDL-11571 and MDL-11487.
Fixed wrong call to cleanup_dirty_contexts() and changed
to gc_cache_flags(). Please review. MDL-11347
2007-10-03 18:39:38 +00:00
mudrd8mz 2dbc40f452 MDL-11344 Reverting commit 1.145 and keeping deprecated $string['editlang'] for backwards compatibility. 2007-10-03 16:39:08 +00:00
stronk7 59bef7283d Moving 3 functions from datalib to deprecatedlib. Only used
by admin/cron.php. First step of MDL-11571 and MDL-11487
2007-10-03 16:31:20 +00:00
skodak 3d811bc167 MDL-11143 fixed defaultfrongpageroleid typo and fixed notices during install and upgrade cause by undefined $CFG->defaultfrontpageroleid 2007-10-03 14:38:55 +00:00
skodak 0e4da9e34f fixed context parameter in has_capability() call 2007-10-03 14:16:04 +00:00
skodak 3fda6eb2fe fixed incorrect use of forum contexts in search/documents/* 2007-10-03 14:13:13 +00:00
exe-cutor 1432ac143d Adapted README due to attribute requirement change 2007-10-03 12:36:48 +00:00
moodler 1afb11e70b Fixed longtimenosee unenrolments. user_lastaccess and role_assignments were growing with uneccessary entries, to the point where memory limits were reached and in the end NO unenrolments were happening at all.
See  MDL-11571
2007-10-03 12:24:06 +00:00
nicolasconnault ece966f06e MDL-11482 Resolved the sum icon issue (added a new x-bar icon) and resolved a dependency problem in moodlelib 2007-10-03 12:22:25 +00:00
moodler c8bb8644c4 Don't use the 100 limit for debugging in anything lower than DEBUG_DEVELOPER mode 2007-10-03 12:04:02 +00:00
skodak c626c2f460 MDL-11566 site summary now optional 2007-10-03 10:35:34 +00:00
moodler e873679b8a Fixed some notices but this needs review from Petr MDL-10383 2007-10-03 09:12:01 +00:00
toyomoyo af5c201302 MDL-11553, bulk user actions selection buttons do not work as expected 2007-10-03 08:26:13 +00:00
toyomoyo 2f5b642ef4 MDL-11535, error in block sql group by clause 2007-10-03 06:20:23 +00:00
moodler 75d97dad4e Automatic installer.php lang files by installer_builder (20071003) 2007-10-03 05:07:25 +00:00
jamiesensei be801b8b3a MDL-11139 "Need to pass courseid or cmid to this script when moving questions between categories " added COURSE to globals in function that redirects browser to contextmoveq page. 2007-10-03 04:42:57 +00:00
toyomoyo 45b39af803 MDL-10353, in view.php we should not supply default course, otherwise calendar filters will not be set up properly (course filter wrong) 2007-10-03 04:21:53 +00:00
moodler 2125f23e19 Make sure that the role names gets filtered in get_assignable_roles() 2007-10-03 03:33:57 +00:00
moodler 997436fa36 Fixed the list of role names (order and filters) MDL-11143 2007-10-03 03:31:31 +00:00
jamiesensei 489984a7a2 fix for fatal error in tabs.php because of missing global var contexts. 2007-10-03 03:16:27 +00:00
skodak 178bcb7523 MDL-11568 warnings - can not use $USER->property when not logged in - quick fix, please review last commits 2007-10-02 23:08:00 +00:00
skodak 1f41940f20 MDL-11523 fixed - moving categories and courses around breaks paths and depths in context table + some notice fixes 2007-10-02 22:34:12 +00:00
skodak 9d9c5f15b5 only whitespace beautification 2007-10-02 21:45:49 +00:00
skodak 0b7a912035 MDL-11143 unimportant change 2007-10-02 21:45:02 +00:00
skodak 8e5da17a44 MDL-11562 supportname and supportemail are are now initialized after admin user setup
MDL-11566 only site shortname, fullname and desc are required/displayed during installation
MDL-11567 fixed upgradesettings redirects if error in settings
MDL-11143 defaultfrontpageroleid moved to Frontpage settings page (easier to find), speedup
2007-10-02 21:38:53 +00:00
tjhunt 75afe0e7e4 PHP docs for choose_from_menu function. Merged from MOODLE_18_STABLE. 2007-10-02 18:49:04 +00:00
whchuang 3838d99a86 added missing string definition for sectionerror. Fixed MDL-10766 2007-10-02 17:59:06 +00:00
skodak c57be126c4 DONAL, PLEASE START USING OUR DB EDITOR! the last commit did have invalid XML, incorrect next/prev attributes, different data in install.xml and upgrade.php; the main reason to have this editor was to prevent this type of critical errors ;-) 2007-10-02 16:50:43 +00:00
skodak 266f6b5900 MDL-11555 temporary patch for too long index on mysql - in mysql the limit is 333 unicode chars
move the gradebook cleanup to the end of upgrade.php - please keep it there
2007-10-02 16:20:45 +00:00
donal72 1ce61506e5 Version bump for roaming themes. Mods are to mnet_host table. MDL-11545 2007-10-02 16:15:14 +00:00
donal72 1673e13423 Choose the correct theme for SSO-authenticated users. Roaming themes 2007-10-02 16:14:39 +00:00
donal72 22882b6617 Add force_theme and theme attributes to peer class for Roaming Themes 2007-10-02 16:12:41 +00:00
donal72 fcf24328ca New files for config of MNet roaming themes 2007-10-02 16:10:19 +00:00
donal72 d53b8d4bbb Display new tabs for the 'Themes' config page in mnet 2007-10-02 16:09:17 +00:00
donal72 2aa1f9bdd9 Instantiate some new strings for roaming themes 2007-10-02 16:08:46 +00:00
donal72 5859f9bbd4 Some strings for roaming themes 2007-10-02 16:07:10 +00:00
donal72 38d507af71 Fix for version no. (date) in upgrade.php 2007-10-02 15:44:36 +00:00
donal72 ac4e96fccd New database fields in mnet_host for roaming themes 2007-10-02 15:43:11 +00:00
skodak 777b7ed2d1 adding caps for new gradebook settings into has_admin_caps() perf hack in block_admin_tree 2007-10-02 15:33:09 +00:00
skodak 78fa15afc1 fixed typo in last commit - undefined $sql 2007-10-02 15:24:19 +00:00
tjhunt 325898c61e MDL-11552 - Oops, I missed one bit when merging from OU Moodle. 2007-10-02 13:32:51 +00:00
tjhunt aad9f920b1 MDL-11552 - Look for the name of an admin report inside the plugin's own lang dir before falling back to the main admin.php lang file. 2007-10-02 13:30:51 +00:00
moodler 38cb976c80 Removing un-needed DISTINCT here actually solves MDL-11546
(after discussion with Martin Langhoff in Skype)
2007-10-02 09:45:00 +00:00
nfreear 806ebc150c Fixes MDL-11161, Activity type text ... beginning of activity links in Screen Reader...moved to end (also MDL- 7436) 2007-10-02 09:36:47 +00:00
martinlanghoff 5903fbf5e7 accesslib: dirty context handling now uses cache_flags
get_dirty_contexts() and mark_context_dirty() now use cache_flags
infrastructure. Remove deprecated cleanup_dirty_contexts() - this is
now handled by gc_cache_flags() in a more generic way.
2007-10-02 08:46:27 +00:00
martinlanghoff bafd7e78e9 moodlelib: Introducing the cache_flags functions
These are functions for handling the volatile entries in the
cache_flags table.

 get_cache_flags() - get array of current flags
 set_cache_flag()  - set a single flag
 unset_cache_flag() - unset a single flag
 gc_cache_flags() - garbage-collect expired flags
2007-10-02 08:39:44 +00:00
martinlanghoff e4a5c864b5 version bump: introducing cache_flags table to store volatile time-bound flags
We are intending to use them for dirty context paths, lightweight
session entries for auth/ldap, and other similar uses...

MDL-11347
2007-10-02 08:38:19 +00:00
martinlanghoff ba2984bf2b dmllib: more consistent err handling for execute_sql() and others
Silent errors in execute_sql() have been causing us lots of grief.
Turns out that if you have dblogerror set, it _will_ write it to the
logs.

DMLlib wasn't consistent. Most "modern" codepaths were calling both
debugging() and the dblogerror idiom. So we make all calls to
$db->Execute() consistent.

(Some exceptions remain, mostly for hardcoded SQL, such as the SET
statements when we connect...)
2007-10-02 08:34:10 +00:00
gbateson caf971045a added 4 new functions for Moodle 1.9 gradebook: "hotpot_get_user_grades", "hotpot_update_grades", "hotpot_grade_item_update" and "hotpot_grade_item_delete" 2007-10-02 07:46:49 +00:00
moodler 0719c922ef Fixed a notice relating to customcorners not being initialised 2007-10-02 07:16:09 +00:00
donal72 e945004fd1 Bugfix caused by typo in /mnet/lib.php: This issue will have broken mnet for many users. 2007-10-02 06:45:40 +00:00
moodler 5f2a203fa0 Applied DISTINCT as per Martin Langhoff's solution in MDL-11381
user/index: ensure each user appears only once in participants list

Regardless of the number of enrolments, ensure we list a single entry
per user using DISTINCT. Much easier to manage than a GROUP BY.
2007-10-02 06:18:30 +00:00
toyomoyo 165088f687 change participants of frontpage course to display all users, if current user has capability MDL-11143 2007-10-02 03:37:30 +00:00
mattc-catalyst f476ae28eb MDL-11538: lib/olson - bugfix, olson time-zone import doesn't deal with rule changes in the future
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-10-02 01:43:07 +00:00
gbateson b2ae61320b use new function "hotpot_stripslashes()" instead of PHP's "stripslashes()" to remove slashes after preg_replace with "e" modifier, because when MSSQL Server is installed, PHP's "stripslashes()" does not remove slashes, even if the Moodle database is not MSSQL 2007-09-30 04:21:52 +00:00
skodak 8df73369ce MDL-11517 reserved word MOD used in table alias in questions backup code 2007-09-29 16:26:13 +00:00
skodak 446f9d888a MDL-11516 removed Call-time pass-by-reference when using get_question_options() 2007-09-29 16:18:01 +00:00
skodak b5116f2afd MDL-11510 added missing fields in new gradebook backup 2007-09-29 16:07:52 +00:00
skodak b0dcd1288f MDL-10383 added new subarray into $SESSION->activegroup which store active group in groupings for users with accessallgroups permission - defaults to 0 on first use; this should solve the problem when user has accessallgroups only in one activity 2007-09-29 13:48:41 +00:00
skodak 41b7618ba2 MDL-11462 fixed PARAM_URL inline focs, uncommented old regex in URL validation library - official TLD not required anymore 2007-09-29 11:01:34 +00:00
skodak 5cf5e181dd MDL-11504 added grade_letter -> grade_letters migration - will not be executed on dev sites where grade_letters already exists :-( 2007-09-28 21:58:02 +00:00
skodak d926630485 MDL-11504 fixed defaults in grade_items/display; added decimals and display to grade_items_history 2007-09-28 21:00:31 +00:00
skodak 284abb0925 MDL-11495 grade letter setting improvements:
* in_null for decimals defaults checks
* store letter settings only in database - no cfg settings
* separate configuration page for letters only - pluginselector+admin tree
* new capability to manage grade letters - similar to scales and outcomes
* added grade_letters db index
* grade letters related minor bugfixing
2007-09-28 20:12:43 +00:00
nfreear 5f5faac04a Fixes MDL-11496, SQL error when deleting a unit via the (ou) Publisher - delete groupings. 2007-09-28 12:57:15 +00:00
skodak dafbc521ba MDL-11495 removed GRADE_DECIMALS_DEFAULT null constant, is_null() used instead for tests, -1 used in menu options 2007-09-28 11:08:44 +00:00
nicolasconnault 34d6a78987 MDL-11406 Removed lang files from block folder, and put them in en_utf8 and fr_utf8 2007-09-28 08:46:25 +00:00
nicolasconnault e9096dc2ca MDL-11480 Reviewed, tested, and pplied Petr's patch. 2007-09-28 07:55:51 +00:00
toyomoyo 84b6310d00 adding a fieldset 2007-09-28 07:25:09 +00:00
toyomoyo db4ff7f8bc minor fixes/typo for notes 2007-09-28 07:21:48 +00:00
toyomoyo 667e08ef42 minor fixes for bulk user actions, adding ?>, using delete_user() function to delete users, etc 2007-09-28 03:07:03 +00:00
toyomoyo e5ea84faba MDL-11478, fixing a notice 2007-09-28 01:53:45 +00:00
stronk7 6bb919860b Passing $course to require_login() provides correct and
automatic navlinks to the course. MDL-11452
2007-09-27 23:37:42 +00:00
nicolasconnault 9fa46707f3 MDL-11456 the .grade-report-grader table {} style was cascading down to the popups (which use tables, alas...), so I created a number of css classes which now control color, font etc for caption and feedback cells of the popup. 2007-09-27 18:00:25 +00:00
stronk7 b199b236ba _new is _blank 2007-09-27 15:10:52 +00:00
jmg324 ef0bd87b3f generate_email_supportuser needs to set maildisplay for email_to_user to include proper support details. 2007-09-27 12:38:40 +00:00
skodak ae8adf77c0 MDL-10791 format_float() now supports non-localised output too (. decimal separator forced) 2007-09-27 09:58:40 +00:00
skodak 95aa0af862 MDL-11472 fixed harcoded mdl_ prefix in sql queries 2007-09-27 08:41:19 +00:00
skodak 42626376f3 MDL-11442 removed last instances of global $course 2007-09-27 08:18:28 +00:00
jamiesensei 11a6096775 fixed closing of popup on saving question which was broken and also added closing of popup on cancel. 2007-09-27 08:17:09 +00:00
jamiesensei cb14dd6316 modifiedby and timemodified is now set when a question is created as well as createdby and timecreated instead of being left as zero 2007-09-27 07:41:58 +00:00
skodak 662a057c77 MDL-11451 adding default ipaddress restriction and 7 days lifetime for user key 2007-09-27 07:06:17 +00:00
skodak d0cbeafbcb MDL-11451 fixing silly typo in cap name 2007-09-27 06:56:51 +00:00
tjhunt 411efaee25 MDL-5327 - When making up a default question name from the question text, strip any HTML tags. Merged from MOODLE_18_STABLE. 2007-09-27 06:54:17 +00:00
skodak 0a3bdfaf79 MDL-11451 grade publishing security/privacy improved - new capabilities needed for publishing, by default allowed only for admins; added warning to publishing option 2007-09-27 06:51:54 +00:00
toyomoyo 349a4aea81 fixing a typo 2007-09-27 03:02:01 +00:00
toyomoyo 0893aa30e8 when no gradebook roles is set, there are lots of sql breakages so we should check gradebookroles first 2007-09-27 02:29:46 +00:00
toyomoyo 4d7e30b3d8 modifying get_user_by_capability to handle requests on frontpage courses and sub contexts. MDL-11143 2007-09-27 01:46:41 +00:00
tjhunt 3b0ee367a7 MDL-11466 - failing to check for the case $rs = false in the accesslib performance improvements. Credit for the fix goes to Gareth Morgan. 2007-09-26 21:31:54 +00:00
tjhunt 771b1a46f7 MDL-9331 - Problem with the tables on the quiz index page. Merged from MOODLE_18_STABLE. 2007-09-26 20:45:23 +00:00
tjhunt 2d8bfda03f MDL-5086 - Improve the formatting of the question import and export help so that the code samples fit. Merged from MOODLE_18_STABLE. 2007-09-26 20:13:47 +00:00
tjhunt 4879c1ab03 Tweak the styles for <pre> tags in help files. These are mostly used for code samples, and they have a grey background and are shown in a different font, so the indent I am getting rid of is not necessarly to make the structure of the document clearn, and usually just means that the code sample does not fit. Merged from MOODLE_18_STABLE. 2007-09-26 20:10:08 +00:00
skodak d7a61f65c1 MDL-10985 improved form validation in xml grade import 2007-09-26 19:34:54 +00:00
skodak 89489cfe94 MDL-11460 2007-09-26 19:25:50 +00:00
tjhunt fba3ea31bc MDL-8682: Pressing enter when answering a short answer question can submit the wrong one. To fix this, I have disabled the enter key unless the keyboard focus is on a submit button (or inside a text box or HTML editor).
MDL-9451: Quiz answers can be lost if user navigates before page reloads. I am not totally sure I have fixed this, but I hope so. I moved the printing of the hidden form field with the list of questions on the page to the end of the form, so no answers will be processed unless the whole form loaded. Note that you could still lose data, but only if the page takes a really long time to load and you answer the first question and click submit before the whole quiz is loaded.

MDL-11463: The quiz uses two different timers, which is silly. I have removed the javascript that was ocasionally used to put a timer in the browser's title bar. Now we only use the one in the page for all cases.

Because MDL-8682 also needed javascript, I renamed timer.js to quiz.js so it could be a library of all the quiz's JavaScript, and started including it properly with require_js.
2007-09-26 18:15:31 +00:00
skodak 1843999a77 MDL-10985 merged the xml and xmlurl grade import plug-in 2007-09-26 18:11:48 +00:00
tjhunt c6f9234ce3 Comment out an if (ajaxenabled()) check that was stopping any javascript included with require_js before print_header from being included, (but not js included afterwareds). See
http://moodle.org/mod/forum/discuss.php?d=81050 for discussion.
2007-09-26 17:48:27 +00:00
skodak 8925adab08 fix of disabledIf fix :-( 2007-09-26 17:30:24 +00:00
skodak b6b1d1cac1 MDL-11460 new function moodleform->get_file_content($elname) in case we need to get content of uploaded files 2007-09-26 16:53:26 +00:00
skodak 4b282c641f fixed disabledif conditions 2007-09-26 16:49:37 +00:00
tjhunt f59dba8497 MDL-11398 - Random questions sometimes ended up with names different from the cateogry they were actually picking from. Also, the same random questoin could be used in more than one quiz, in which case editing that question would change two quizzes unexpectedly. The fix is:
* Don't let the user set the name for random questions.
* Instead force the name to be "Random (catname)" (localised) whever the question is created or saved.
* When a category is renamed, rename all the random questions in it.
* Remove the restriction that Jamie seems to have added in 1.9 that was preventing the category of random questions from being edited.
2007-09-26 16:10:38 +00:00
nfreear d2bd42498c Follow-up for MDL-1149 Accessibility: Current week/topic is NOT indicated non-visually. Reorder. 2007-09-26 12:53:04 +00:00
nfreear b741d2ef95 Fixes "Notice: Undefined property: stdClass::$hideactivitytypenavlink..." 2007-09-26 12:44:35 +00:00
nicolasconnault 206f995349 Fixing OU report issues 2007-09-26 12:25:16 +00:00
moodler ee8652f3de Not a pretty fix but it gets the preferences out of the way where users won't keep hitting the wrong submit 2007-09-26 11:42:36 +00:00
moodler 2f99f1da14 Fixed the HTML editor being too wide for the messaging window MDL-11242 2007-09-26 11:21:54 +00:00
sam_marshall cdaa941032 MDL-11455 renamed function I just added, to make it more consistent (sorry) 2007-09-26 11:19:41 +00:00
sam_marshall 18d43e964b MDL-11455 Added function and option to grouplib (also corrected another comment) 2007-09-26 11:13:09 +00:00
skodak c22e335d80 MDL-9636 fixed many sql injections in grade import code 2007-09-26 11:02:36 +00:00
nfreear 07916f13cc Follow-up for MDL-1149 Accessibility: Current week/topic is NOT indicated non-visually, only in styling. Prefer "This week" to "Current week" 2007-09-26 10:57:46 +00:00
skodak 235b07fb64 MDL-9636 grade_items are now limited to current course only - can not import into other courses anymore 2007-09-26 10:54:09 +00:00
sam_marshall d15da061a1 Corrected inaccurate comment (said 'group IDs' when it actually returns group objects) 2007-09-26 10:16:25 +00:00
tjhunt 44888f691a Add $Id$ tags. 2007-09-26 10:13:23 +00:00
tjhunt 8d503f7557 Get rid of duplicate $Id$ tags. 2007-09-26 10:11:13 +00:00
tjhunt 7e7b6825ef MDL-11446 - when a set of radio buttons is a required field, don't colour the lables of all the individual radio buttons red. 2007-09-26 10:02:00 +00:00
skodak e9dea7af66 MDL-9636 corrected the creation of new manual grade items, added source parameter 2007-09-26 10:00:51 +00:00
skodak a700b5deee MDL-10985 import from remote xml file with key login option 2007-09-26 09:42:28 +00:00
tjhunt 4827029b92 MDL-11454 - hard-coded mdl_ prefix. Also, wrong logic in is_siteadmin in accesslib.php. 2007-09-26 09:40:28 +00:00
gbateson 88fe6acf9e change CONTEXT_MODULE to CONTEXT_COURSE in order to fix "Invalid context creation for level 50 instance" error on "mod/hotpot/index.php" caused by get_context_instance(CONTEXT_MODULE, $course->id) in "mod/hotpot/lib.php" 2007-09-26 07:22:06 +00:00
toyomoyo a6df7ee6fa get_default_frontpage_role_access() should prolly not load overrides below course level 2007-09-26 07:19:30 +00:00
toyomoyo 4e1fe7d109 MDL-11143, adding a new setting "defaultfrontpageroleid" where you choose a role for all users on the front page 2007-09-26 07:12:38 +00:00
moodler 5dec234de7 Allow the Admin tree block to be displayed on the My Moodle page.
Reported in NZ workshop.     MDL-11450
2007-09-26 02:33:43 +00:00
gbateson b64748eb54 corrected include path for "moodleform_mod.php"; changed $course->id to $COURSE->id; 2007-09-25 21:43:39 +00:00
nicolasconnault d32100a522 Fixing OU report issues 2007-09-25 19:32:29 +00:00
tjhunt f22bc9dbcb MDL-10402 - udpate the Main glossary help file, to clarify the position with Main glossaries since Moodle 1.7. 2007-09-25 17:18:08 +00:00
sam_marshall 4d8e340715 MDL-11443 Added groups_get_grouping_name to match groups_get_group_name 2007-09-25 15:52:33 +00:00
nfreear 6285f8a882 Fix MDL-7436 Accessibility "Indicate type of resource in the name of the resource" 2007-09-25 15:15:07 +00:00
nfreear 42ead7d7cd Fix MDL-7436 Accessibility "Indicate type of resource in the name of the resource" 2007-09-25 14:59:16 +00:00
tjhunt f8f95b454a MDL-10898 - Option to back up only selected role assignements when backing up a course with users. 2007-09-25 14:44:53 +00:00
nicolasconnault 31a6c06c46 MDL-11433 Implemented grade_items.decimals instead of user preference in grader report. 2007-09-25 14:40:49 +00:00
tjhunt c0ca082d2f Remove spurious characters from some SQL statements. 2007-09-25 14:39:42 +00:00
skodak 6510b0f09c MDL-11415 fixed our non-standard lang attributes in html purifier 2007-09-25 14:34:13 +00:00
skodak 0352cd2ffa MDL-11413 I hope now it is correct solution 2007-09-25 14:02:53 +00:00
skodak e2fa911b73 MDL-11440 working fix for require_user_key_login() 2007-09-25 12:31:39 +00:00
nfreear f4a01ab61f MDL-1149 Accessibility: Current week/topic is NOT indicated non-visually, only in styling. 2007-09-25 12:05:36 +00:00
nfreear e9b9c1d810 MDL-1149 Accessibility: Current week is NOT indicated non-visually, only in styling. 2007-09-25 12:00:51 +00:00
nfreear 0d0afd968d MDL-11436, Encapsulate "accesshide" HTML class in function, and use. Merged. 2007-09-25 11:34:40 +00:00
nfreear 1d75edd0ae MDL-11436, Encapsulate "accesshide" HTML class in function. 2007-09-25 11:33:30 +00:00
skodak 5e2fbccb33 no text formating in grade xml export for now - we need the original values for reimport 2007-09-25 11:02:12 +00:00
nicolasconnault b39b58fe45 MDL-11433 Correcting non-null and default value (Default will be NULL) 2007-09-25 09:47:40 +00:00
skodak f44762bd6f MDL-11434 $CFG->filelifetime = 0 has no effect; patch by Chris Fryer 2007-09-25 09:37:58 +00:00
nicolasconnault 52cb2e4716 MDL-11433 Added decimals field to grade_items table 2007-09-25 08:35:16 +00:00
nicolasconnault 1796708d81 Replacing GRADE_REPORT_GRADE_DISPLAY_TYPE... by GRADE_DISPLAY_TYPE... 2007-09-25 08:22:20 +00:00
stronk7 e4a2d75456 group/db isn't a source of xml files anymore. MDL-11431 2007-09-24 22:32:31 +00:00
stronk7 126984a047 Second pass. Questions. Some more default comments are out. MDL-11385 2007-09-24 22:20:37 +00:00
stronk7 fcdea90774 Second pass. Modules. Some more default comments are out. MDL-11385 2007-09-24 22:17:05 +00:00
stronk7 28271c7205 Second pass. Some more default comments are out. MDL-11385 2007-09-24 22:10:13 +00:00
mattc-catalyst acf000b077 MDL-11419 - groups: interface enhancements + new features:
* Display the grouping a course module belongs to on the course page - for course managers only.
    * When adding users to groups, display the groups a user already belongs to.
    * Added an overview report that shows groupings, groups and members for a course.
    * Added a dialogue to automatically create groups and assign members based on either the number of desired groups or the number of desired users per group.
2007-09-24 21:55:15 +00:00
stronk7 964170c69c One more default and useless comment deleted. MDL-11385 2007-09-24 19:36:24 +00:00
skodak 535c0080c3 MDL-10781 reimplemented tags upgrade code: uses recordsets; no calls to tag/lib.php functions - those would break if we changed db structure; no ordering in blog tags - we did not respect the tag order before, this way it is much faster 2007-09-24 19:18:48 +00:00
stronk7 7529139a8d First pass. Deleting some default comments. MDL-11385 2007-09-24 19:08:00 +00:00
skodak a075996572 fixed notice during upgrade from 1.8 2007-09-24 19:00:39 +00:00
stronk7 4a78d22fc3 Deleting some default comments that the XMLDB editor was
generating here and there. Only the table one remains. MDL-11385
2007-09-24 18:40:49 +00:00
nfreear e0b033d5f8 Partial fix of reopened MDL-7436 Accessibility: "Indicate type of resource in the name of the resource" 2007-09-24 17:26:40 +00:00
skodak 138e480e4d very minor - fixing incorrect include_once('tabs.php') - this is not a library file 2007-09-24 17:20:08 +00:00
skodak 86c2f9e0da MDL-10729 Active tabs are now marked active 2007-09-24 17:12:56 +00:00
nfreear 468c120ae9 Partial fix for reopened MDL-7474, Accessibility: "Provide alt text for ascending/ descending icons in glossary" 2007-09-24 17:09:37 +00:00
nfreear 9d42692aad Partial fix reopened for MDL-7493, Accessibility: Make sure 'Show hide block' button-link visible under Windows High Contrast. 2007-09-24 16:39:05 +00:00
skodak ee6eac332c MDL-10833 some more course theme fixes; merged from MOODLE_18_STABLE 2007-09-24 15:50:34 +00:00
tjhunt b92ffdf9ac Whitespace cleanup. 2007-09-24 15:45:29 +00:00
skodak 651f7cf277 MDL-10833 course theme in live logs fixed 2007-09-24 15:39:29 +00:00
skodak 6db001b535 MDL-11413 revisited 2007-09-24 15:24:21 +00:00
skodak f2fdc8ebe7 MDL-11071 Added disabledif logic to groupings/groups common dialogue 2007-09-24 15:07:00 +00:00
tjhunt 80fdc53efd Related to MDL-10916 - saving Cloze questions in Moodle 1.9 generates Notices because of changes to questionstupe_base::save_question. 2007-09-24 14:18:47 +00:00
tjhunt 4ab4dcb27a MDL-10916 - Import and Export of Cloze question misses out "generalfeedback" column. Merged from MOODLE_17_STABLE. 2007-09-24 14:17:23 +00:00
jamiesensei 87dfa4d26f MDL-11423 removed a stray print_object call 2007-09-24 13:23:58 +00:00
skodak 9a9b501187 MDL-11422 fixed duplicate title attribute 2007-09-24 11:11:48 +00:00
urs_hunkler c7a66cc4e1 MDL-11370 :: added a global var $THEME->customcornersopen to track properly closed custom corners divs. In function print_footer I added a check if some custom_corneres divs are still open and eventually close them. 2007-09-24 11:08:02 +00:00
ikawhero 540286f1f2 Fixing typo. 2007-09-24 03:02:16 +00:00
skodak 5978010dd2 MDL-11358 final grade from gradebook is now shown in assignments - students see only final grades from gradebook 2007-09-23 16:05:41 +00:00
skodak b0eb99121f MDL-11417 usermodified now stored properly in grade_grades table when update_(raw|final)_grade() used 2007-09-23 15:57:36 +00:00
skodak 353f3f2037 MDL-11416 support for nonsortable columns in table lib 2007-09-23 15:54:33 +00:00
skodak a3fbd4943d MDL-11357, MDL-11358 adding formating of numeric final grade (for now takes the setting from user report), adding usermodified field to returned grading info 2007-09-23 15:51:21 +00:00
skodak 5b242699b7 MDL-11415 imported htmlpurifier 2.1.2 2007-09-23 15:47:26 +00:00
skodak 024ef5288a MDL-11414 fixed handling of log urls (problem reported by Andreas Nolden) 2007-09-23 13:13:13 +00:00
skodak 09c42a363d MDL-11413 improved text cleaning (problem reported by Andreas Nolden) 2007-09-23 12:28:03 +00:00
skodak 4b533b2791 MDL-11413 improved text cleaning (problem reported by Andreas Nolden) 2007-09-23 12:20:29 +00:00
skodak 465b310d2b prevent error when somebody changes scale or grading type - old value does not fit the new scale 2007-09-23 12:09:16 +00:00
skodak bff475e412 overridden flag is now used to track the last time of modification - going to use it in assignments to print the correct time/date 2007-09-22 21:39:28 +00:00
skodak fcac8e513a MDL-11357, MDL-11358 cleanup and improvements in public grade API - new function grade_get_grades() that returns all grading information (grade item data, outcomes and user grades); other minor improvements and bugfixes; updated assignment to use new grade API 2007-09-22 20:21:44 +00:00
skodak 9f01047ae9 MDL-11363 minor doc improvement 2007-09-22 18:50:46 +00:00
skodak 3ab3dfd562 MDL-11363 fixing defaults of new optional fields of grade classes - now properly applied when creating new instances too 2007-09-22 18:46:51 +00:00
skodak 3f2b0c8aba MDL-11363 merged tables grade_grades with grade_grades_text - it is now possible to define fields as required and optional
finally fixed formula validation in calculation edit form
2007-09-22 11:39:59 +00:00
stronk7 d3bf058b69 Deleting the Db migrate to UTF-8 button. It isn't there anymore. 2007-09-22 09:52:35 +00:00
tjhunt ec2692a699 MDL-11316 - Extra slashes appearing in the correct answer of shortanswer questions when they contain a slash. Merged from MOODLE_18_STABLE. 2007-09-21 18:28:45 +00:00
stronk7 2f67d1f809 Some strings for the new xmlstrictheaders setting. MDL-11216 2007-09-21 17:35:07 +00:00
stronk7 8cf6cb9018 Now XML strict headers are controlled by new setting
(xmlstrictheaders) separating it from debug->developer. MDL-11216
2007-09-21 17:28:16 +00:00
stronk7 29c5c63e42 Adding new setting to control XML headers. MDL-11216 2007-09-21 17:27:14 +00:00
tjhunt 8cf0f100b8 MDL-11392 - Stupid bloody requirement to call addslashes between loading data from the database and saving it back, because we don't use placeholder. Was breaking question bank upgrade. 2007-09-21 17:10:39 +00:00
tjhunt 095b599a7f MDL-9952 - Cant escape # by using \ in a Cloze question. Merged from MOODLE_18_STABLE. 2007-09-21 16:18:06 +00:00
tjhunt a4faed6925 MDL-10030 - the logic controlling whether students were allowed to see the review screen was wrong. 2007-09-21 16:01:40 +00:00
tjhunt 8368d97916 MDL-3731 - Help file for the Item Analysis report does not explain why Disc. Coeff. is sometimes reported at -999.00. Merged from MOODLE_18_STABLE. 2007-09-21 13:28:53 +00:00
tjhunt f0bb0a8738 MDL-10338 - quiz index page does not work in weekscss format. Merged from MOODLE_18_STABLE. 2007-09-21 11:10:37 +00:00
tjhunt b5a16eb72e MDL-6376 - Include quizzes on the MyMoodle page. Initial implementation by Stephen Bourget, with refinements by Tim Hunt. The logic for which quizzes are listed is very similar to the lesson module. 2007-09-21 11:05:04 +00:00
nicolasconnault 0d43714b98 MDL-11328 Added the missing variable 2007-09-21 11:02:30 +00:00
nicolasconnault caa0886a9d MDL-11351 Removed a redundant check for a multiLang JS variable 2007-09-21 09:13:02 +00:00
stronk7 81267fcb15 Bump. Now we are using a permanent temp table. MDL-11347 2007-09-21 08:53:22 +00:00
stronk7 5cf8d1d9fc temp table usage is out and now we are using the
new permanent context_temp table. Update for
Oracle added, extra NOT EXISTS cluse to avoid
insertion of duplicate records in potential
concurrency and minor refinements. MDL-11347
2007-09-21 08:52:43 +00:00
stronk7 d5d2f8a6f0 Adding the new context_temp permanet table to be used
by build_context_path() . MDL-11347
2007-09-21 08:48:51 +00:00
nicolasconnault 2f6c662f41 MDL-11379 and MDL-11380 fixed 2007-09-21 07:52:52 +00:00
moodler 6421ee7191 Update for latest functions 2007-09-21 05:21:29 +00:00
moodler bac6d28a6f Fixed the definition of SYSCONTEXTID when it's not 1 (like moodle.org) 2007-09-21 04:55:14 +00:00
moodler 7e17f43b1c Just a small change to make this function a bit more robust, there's still a bug here though 2007-09-21 04:33:50 +00:00
moodler a365ee56cf Fix for subscription and tracking buttons to remove links and improve accessibility and reduce crawler problems http://tracker.moodle.org/browse/MDLSITE-263 2007-09-21 02:52:51 +00:00
tjhunt c033e37f16 Notices on restore. 2007-09-20 15:57:02 +00:00
tjhunt db451e99f6 XHTML Strict. 2007-09-20 15:35:19 +00:00
tjhunt e63faf2b50 MDL-10376 - since roles and capabilities came along, the quiz was not very gracious if you were logged in as guest, or really logged in on the server, but using guest access to look a a particular course, or were enrolled in a course, but in a role that did not let you preview or attempt quizzes. This patch should clean up the logic for all these cases. 2007-09-20 15:14:24 +00:00
tjhunt c5ccb82c61 XHTML Strict in question state history table. Merged from MOODLE_18_STABLE. 2007-09-20 15:10:04 +00:00
nicolasconnault bfbfdb5350 MDL-11350 allowvisiblecoursesinhiddencategories was not used fully in the determination of the course's visibility 2007-09-20 13:15:26 +00:00
skodak 4bf0d891f9 removing bosoleted unit tests: manual grade items do not use item numbers, id number is not generated automatically 2007-09-20 12:30:24 +00:00
skodak d3f24f5534 fixed short php tag 2007-09-20 12:26:58 +00:00
jmg324 874851f610 MDL-10296 made print_user_picture cater for https possibility in user/edit 2007-09-20 09:18:24 +00:00
toyomoyo 05a71b3341 change restore code to use the more efficient get_user_courses_bycap 2007-09-20 09:16:49 +00:00
toyomoyo 3c13c1eacc removed a slow call from restore code, this is a trouble maker if you have a lot of courses. 2007-09-20 08:58:12 +00:00
skodak eedae98ef2 MDL-11357 removed _grade_updated() from activities and grade_item class 2007-09-20 07:43:57 +00:00
skodak ecbf2954da MDL-11347 adding comments with description of UPDATE related problems; minor whitespace and coding style changes 2007-09-20 07:37:50 +00:00
toyomoyo 1dd3930b6c fixing a javascript error when ajax is not enabled 2007-09-20 07:20:15 +00:00
martinlanghoff 85cab9d8cd eaccelerator: never set the mode if we failed to init 2007-09-20 06:51:13 +00:00
moodler 5f0314ab24 Make the accesslib upgrade trigger a redirect 2007-09-20 06:49:52 +00:00
moodler 0b9dcf3df4 Bumping the date and the context path upgrade in case anyone was stuck from yesterday MDL-11347 2007-09-20 06:47:14 +00:00
martinlanghoff 78c3ec2fe8 Revert - dmllib: check $MCACHE->status() before using it 2007-09-20 06:45:29 +00:00
martinlanghoff 369a572502 dmllib: check $MCACHE->status() before using it 2007-09-20 06:42:57 +00:00
toyomoyo b8ab75ea09 fixing 2 warnings 2007-09-20 05:59:26 +00:00
toyomoyo 9ec6ecb933 changed join onto context table to an outer join because some contexts could be missing during listing of participants 2007-09-20 05:54:32 +00:00
moodler bb2c22bda5 I renamed these to help general readability of accesslib:
$ad -> $accessdata
    has_cap_fad ->  has_capability_in_accessdata()
    aggr_roles_fad  -> aggregate_roles_from_accessdata()

Resolves MDL-11173
2007-09-20 04:52:54 +00:00
moodler 8762a5b118 Automatic installer.php lang files by installer_builder (20070920) 2007-09-20 04:22:39 +00:00
martinlanghoff 21f10eb03e accesslib: load_all_capabilities() - remember to check_enrolment_plugins()!
When setting up accessdata for a newly-logged-in user, call the
enrolment plugins. Thanks to Matt Clarkson for the heads up.

Affects: MDL-11180
2007-09-20 03:23:12 +00:00
toyomoyo ba82dd3134 group should probably be passed into get_role_users() 2007-09-20 03:11:51 +00:00
toyomoyo 68ad444b15 fixing a calendar warning 2007-09-20 03:04:53 +00:00
toyomoyo edeed697de fixing a warning in calendar 2007-09-20 02:57:17 +00:00
toyomoyo 8397874d1b fixing a warning when variable is not an object 2007-09-20 02:45:59 +00:00
martinlanghoff 55a814399f accesslib:build_context_path() refer to dbfamily instead of dbtype
so mysql's various drivers can be used.
2007-09-20 02:45:57 +00:00
toyomoyo 163a5eee2c MDL-11356, set display of grade items to database default (-1) 2007-09-20 02:39:25 +00:00
martinlanghoff d20559f3e4 accesslib: build_context_path() - better UPDATE SQL
A bit of cleanup on the SQL we use for updates. Unfortunately, MySQL
uses non-SQL-standard syntax for updates reading or updating multiple
tables. After much testing across Pg and MySQL, I boiled it down to
the minimal differences -- but we still have different SQL.

The timings for this on a large reference install, calling
build_context_path(true):

 - MySQL incompatible 1s
 - Petr's fixes 60s -- DB complains of too many writes
 - This commit 24s  -- DB complains of too many writes

Also - fixed a remaining problem with $emptyclause

Affects MDL-11347
2007-09-20 01:03:35 +00:00
martinlanghoff 92b34bdd6c accesslib:build_Context_path() fix $emptyclause
We need 2 different empty clauses, one for updates, anotherone for
selects.
2007-09-20 00:16:22 +00:00
martinlanghoff 413a19dd4c accesslib:build_context_path() - fix $emptyclause to avoid Oracle's dirty hack
accesslib is now clean of Oracle's dirty hack. Thanks Eloy for the idea.

MDL-11347
2007-09-19 23:46:37 +00:00
stronk7 351e55fba6 Delete one excess parenthesis... Applying Bryce's patch to MDL-11347 2007-09-19 22:40:58 +00:00
skodak 203d964a4a MDL-11347 yet more beautification proposed by Eloy 2007-09-19 19:20:18 +00:00
skodak b37453d73d MDL-11347 yet more beautification proposed by Eloy 2007-09-19 19:13:49 +00:00
skodak 40c670d416 MDL-11347 improving sql syntax - thanks Eloy for comments 2007-09-19 19:01:32 +00:00
mudrd8mz d456b18f7b Fixes MDL-11327. Error when trying to include a non existing file. 2007-09-19 17:58:03 +00:00
tjhunt 314fc083d9 MDL-10824 - spaces in javascript URLs are not strictly valid. Merged from MOODLE_18_STABLE. 2007-09-19 17:44:52 +00:00
skodak 554bda0538 MDL-11347 fixed context c in update which Tim's pg did not like much 2007-09-19 17:40:20 +00:00
skodak 1e550d2f65 MDL-11048 fixing some notices and changing the list of correlated tags to comma separated format without apostrophes 2007-09-19 17:34:19 +00:00
tjhunt 1ced9d7b73 MDL-10903 - Wrong capability checked in get_all_instances_in_course should be moodle/course:viewhiddenactivities, not moodle/course:viewhiddencourses. Merged from MOODLE_18_STABLE. 2007-09-19 17:06:31 +00:00
tjhunt 260812ba06 MDL-10972 - The lang string 'fullname', which is normally used for course fullnames, was being used for a person's full name in some quiz reports. This dual usage is not translatable into all languages. Merged from MOODLE_18_STABLE. 2007-09-19 15:52:27 +00:00
skodak 2e0eade37f MDL-11347 temporary patch for mysql trouble in build_context_path() 2007-09-19 15:51:04 +00:00
skodak 3772df8dee MDL-11354 ipaddress typo in mnet environment.php 2007-09-19 15:44:31 +00:00
tjhunt 6ef56c991f MDL-6043 - supplimental - make corse reset function update quiz open and close dates. Thanks to Shamim Rezaei for the implementation, which I edited slightly. 2007-09-19 15:38:14 +00:00
nicolasconnault 41f22daa71 MDL-11353 Completed the implementation. This included a new method in grade_item: get_displaytype(), since that value could be set to default, and we must then look up to course, then site values. And the get_letter() method in grade_grade has been modified to first check the grade_letters table. All works like a dream! 2007-09-19 15:37:46 +00:00
nicolasconnault ac5b0a4919 MDL-11339 Moved the gradedisplaytype element from user prefs to the display element of the grade_item settings 2007-09-19 14:28:26 +00:00
nicolasconnault 109bf12cda MDL-11340 Finished! 2007-09-19 14:12:34 +00:00
nicolasconnault bc6969ddeb MDL-11340 Almost complete: Just need the "Add grade letter" button 2007-09-19 13:49:26 +00:00
nicolasconnault dbdffd2c96 MDL-11340 Almost complete: Just need the "Add grade letter" button 2007-09-19 12:45:44 +00:00
tjhunt fca490bca0 MDL-6315 - When processing a manul grading action, if both the comment and the score are blank - as might be the case on the 'Grade all' page of the manual grading when the teacher uses it to grade some, but not all of the students - then do not record the question as graded. Merged from MOODLE_18_STABLE. 2007-09-19 10:56:24 +00:00
tjhunt 6c554fc9b8 XHTML Strictness. Merged from MOODLE_18_STABLE. 2007-09-19 10:32:09 +00:00
tjhunt 01c4e87acf MDL-11095 - Use absolute path to include tabs.php, not a relative path, for greater robustness. Merged from MOODLE_18_STABLE. 2007-09-19 10:26:39 +00:00
moodler 95ffcee0bf Only show SQL feedback during full forced update (ie upgrade) 2007-09-19 09:55:31 +00:00
moodler c122ad2a49 Just enabling SQL feedback so that errors like we're seeing in MySQL right now are exposed 2007-09-19 09:43:13 +00:00
moodler 47592ea851 New tags file 2007-09-19 08:57:31 +00:00
skodak caee703562 adding missing closing } 2007-09-19 08:53:24 +00:00
stronk7 c2f8bff82c Now assignment submodules are handled by the XMLDB editor. Pending commit. 2007-09-19 08:04:11 +00:00
martinlanghoff dcd6a7755f accesslib: update PHPDoc with intro to code
Explain what we mean by _fad(), $ad and $ctx. Might help resolve MDL-11173
2007-09-19 07:57:10 +00:00
martinlanghoff 4c4fc4ffb1 accesslib: janitorial - use $ad for accessdata everywhere
Make sure we always say $ad when we talk about accessdata. This patch
fixes a few leftover bits and pieces...
2007-09-19 07:56:56 +00:00
martinlanghoff f2a7ad77ec accesslib: cleanup_dirty_contexts() - also forget about CAST()s 2007-09-19 07:56:43 +00:00
martinlanghoff 70981363bf accesslib: get_dirty_contexts() - fix race condition, forget about CAST()s
In one tiny patch we do two things.

First, we fix the race condition around dirty context and accessdata
timestamps -- it is saner to offset the check than to offset the
recording of the change (as an earlier patch did).

    On a cluster, you still need NTP.

Second, we do away with CAST(). Ideally, the values should be compared
as ints but it's hard to get a CAST() syntax that is portable enough
to work on all our supported DBs. And Eloy pointed out (and I
corroborated testing) that we'll never have problems with the string
length, as our timestamps are always 10 chars as a string... and the
day they go to 11 chars we'll hit the unix Year-2038 bug.
2007-09-19 07:56:30 +00:00
martinlanghoff 99be2a7fad accesslib: build_context_path() now sets path/depth for other blocks
Blocks not on the coursepage should have their context "hanging" from the
site context. get_context_instance() was doing this correctly, but not
build_context_path().
2007-09-19 07:56:14 +00:00
martinlanghoff 348648a2a5 Revert "accesslib: mark_context_dirty() - fix race condition"
This reverts commit 2b65045c5e8259f5997b3bbf457ec9d05027a93c.
2007-09-19 07:55:59 +00:00
martinlanghoff ac0b19ffe9 lib/setup: Cleanup warnings in apacheloguser handling 2007-09-19 07:55:46 +00:00
martinlanghoff c6f01310ad weblib: print_user_picture() fix typoed classname when faking user object 2007-09-19 07:55:29 +00:00
martinlanghoff 91d39e7392 user/index: switch to recordsets to use less memory
Memory usage was still high for long userlists. Use recordsets
to manage memory growth.

Note that we are still collecting a long long HTML table in memory
before we print it, so the footprint of the html itself is bit of an
issue.
2007-09-19 07:55:15 +00:00
martinlanghoff b6ac3623ce user/index: Fetch participants' contexts with the search
With this patch, we fetch participants contexts in the main search
query. This cuts 1DBq per participant for the display.

Might fix MDL-11222 'global teacher viewing participants issues' where
we are getting OOM'd with many users.
2007-09-19 07:55:00 +00:00
martinlanghoff 45ea1afb16 accesslib: make_context_subobj() now expects ctxlevel, and fix all callers
make_context_subobj() was not providing a contextlevel property, and
no callers fetched the field. This comes from its humble origins where
it was only ever called for course objects. These days it's used in
many other situations, so this patch DTRT and

 - fixes make_context_subobj() expect a cxtlevel and turn it into
   contextlevel

 - fixes all callers (accesslib, datalib) to provide it
2007-09-19 07:54:37 +00:00
martinlanghoff b1cff118c7 datalib:get_courses_wmanagers() handle empty $CFG->coursemanager more gracefully
Having no roles set as coursemanager is a valid setting.
get_courses_wmanagers() should not produce invalid SQL on it...
actually, it should not even try to get the course managers.
2007-09-19 07:54:23 +00:00
martinlanghoff aba5f469f6 accesslib: get_user_access_sitewide() was skipping rdefs
The SQL query that would fetch rdefs not associated with any ra was
not being executed. Duh! For example, a user with a teacher RA sitewide
would never be affected by a role override at the category
level, because it was not being loaded into accessdata.
2007-09-19 07:54:06 +00:00
martinlanghoff 53fb75dc1f accesslib: get_user_access_bycontext() fetches all relevant rdefs
get_user_access_bycontext() was narrowing down too much the rdefs it
was fetching. With this patch, it now correctly retrieves the rdefs for
new roles assigned in lower contexts, and also correctly retrieves
rdefs present in the course context (fixing MDL-11220).

This also means that we now do the job in 2 DB queries (instead of 3),
and we move a bit more data, but those rows are actually needed ;-)
2007-09-19 07:53:49 +00:00
martinlanghoff 37875ac5b7 calendar/lib: calendar_set_filters() use pre-fetched context and course recs
Showing the calendar block was causing 2 DB queries per course the
user is enrolled in. Instead, use the data available in the array that
is passed as a parameter, and spare the DB a ton of needless traffic.

Fixes MDL-11221 Calendar not using context stuff from get_my_courses

Author: Martin Dougiamas
2007-09-19 07:53:33 +00:00
martinlanghoff 853a093ec5 course/index: remove call to rebuild_context_rel()
Very last caller to rebuild_context_rel() and any XX_context_rel()
function. move_category() already takes care of calling
context_moved(), which does the required context.path maintenance.

Addresses MDL-11219
2007-09-19 07:53:17 +00:00
martinlanghoff dd14fecfa4 accesslib upgrade: remove stray build_context_rel(), force path rebuild
Fixes problems during upgrades from 1.7x/1.8.x to mdl19-perf.
2007-09-19 07:53:00 +00:00
martinlanghoff 8f9a180282 weblib: build_navigation() try to avoid pointless capchecks
Prevent calls to has_capability() in build_navigation() from messing
with upgrades.

Most calls to has_capability() in weblib should be moved to the callers.
2007-09-19 07:52:42 +00:00
martinlanghoff 6b4d8c4d58 course/lib: print_course() fix bug when $course->managers was not set
Fix a thinko in a variable assignment that prevented us from grabbing
the correct roles as managers. Addresses Yu's report at
MDL-11182 admin shows up as teacher.
2007-09-19 07:52:27 +00:00
martinlanghoff c7a8ec8cf0 accesslib: has_cap_fad() respect local-context-wins permissions rule
The initial implementation of has_cap_fad() just added the permission
values regardless of the locality of the context. This patch adds
support (read: fixes bug) for the "local context wins" rule.

Additionally, it removes a related bug where we were exiting early
if we found a CAP_PROHIBIT, ignoring the $doanything flag.
2007-09-19 07:52:06 +00:00
martinlanghoff 5b9e50caf0 course/lib: print_my_moodle() - ask get_my_courses() for the summary
get_my_courses() now defaults to a much leaner dataset, but accepts an
array of "additional" fields we want. So ask nicely for the summary,
so that we can print_course() later with it.
2007-09-19 07:51:50 +00:00
martinlanghoff bbfed0ec61 datalib: get_my_courses() honour $fields array
If the caller passes a fields array, then merge it as we say we will do.
2007-09-19 07:51:36 +00:00
martinlanghoff b9e9491a89 accesslib: get_my_courses() fix when called when empty sort
get_my_courses() was failing if called with an empty sortorder on a
cached courselist. Fix.
2007-09-19 07:51:19 +00:00
martinlanghoff 5f6b9c09b7 index.php: drop unused $hidesitecourse parameter when calling print_courses()
And this is the only user of print_courses() that mentions it
explicitly. Other callers have been checked and don't need or use the
sitecourse.
2007-09-19 07:51:02 +00:00
martinlanghoff 6c54240a61 course/lib: print_courses() drop $hidesitecourse parameter
The $hidesitecourse and related code seem to be dead code. An audit of
the callers did not turn up any interesting/valid use of it.
2007-09-19 07:50:41 +00:00
martinlanghoff 49cd4d7934 Revert "course/lib: print_courses() - no need to worry about sitecourse"
This reverts commit d7816749a4ceda352a2fac6e82d7f02f435473ed.
2007-09-19 07:50:28 +00:00
martinlanghoff 1d28d87b35 accesslib - Ensure newly-created categories have a context
New categories need a context immediately, and for top-level
categories, they also need to taint the "root" context to trigger
a reload of $USER->access.

This fixes problems with creation of initial courses(MDL-11178),
duplicate misc categories, etc.
2007-09-19 07:50:05 +00:00
martinlanghoff 015e19287b Revert "textlib: Don't require_once() class.t3lib_div.php which we never use"
Turns out class.t3lib_cs.php depends on class.t3lib_div.php. Will drop
the two commits before we go into HEAD.

This reverts commit 5768bf6fb4dfa334dc81a80d26111904c4d13abd.
2007-09-19 07:49:49 +00:00
martinlanghoff 1dcf763428 accesslib: get_user_access_bycontext() remove 2 unused var declarations (trivial) 2007-09-19 07:49:35 +00:00
martinlanghoff 55c47e48a9 course/lib: print_courses() - no need to worry about sitecourse
get_courses_wmanagers() excludes the sitecourse, so we no longer
check for it. And check explicitly for an empty course array.
2007-09-19 07:49:23 +00:00
martinlanghoff e89f157b0a datalib: get_courses_wmanagers() exclude the sitecourse
Should never return the sitecourse - so we exclude it explicitly.
2007-09-19 07:49:10 +00:00
martinlanghoff c9e42aaa99 course/index: Bring back Petr's MDL-9647 simplify dealing with headers/footers in admin sections
I had mistakenly reverted some of Petr's changes.

Fixes MDL-11179 19PERF: Notice on /course/index.php as admin
2007-09-19 07:48:56 +00:00
martinlanghoff 987e7eb19a accesslib: is_siteadmin() bugfixes
Fixed two horrid bugs in is_siteadmin(). Both userid and the check for
matching cpabilities lines were wrong.
2007-09-19 07:48:43 +00:00
martinlanghoff 9f560a0ccb accesslib: fix SQL CAST()s to work on MySQL and PostgreSQL
CAST() target types aren't very portable. Use DECIMAL which works
for MySQL and Pg.

DECIMAL does seem to be supported in Oracle - but the syntax seems
different. We may still need a compat function.
2007-09-19 07:48:31 +00:00
martinlanghoff 9264620341 accesslib: remove has_capability_including_child_contexts()
No code is calling it, and it never appeared in any release.
2007-09-19 07:48:19 +00:00
martinlanghoff 0df35335ba moodlelib: isediting() uses $PAGE->user_allowed_editing(), drop editcourseallowed()
With this commit, isediting() checks with the page if the user is
allowed editing. And as the last caller of editcourseallowed() is gone,
remove it.
2007-09-19 07:48:03 +00:00
martinlanghoff f7016edcb9 index: use $PAGE->edit_course_allowed() instead of editcourseallowed()
$PAGE->edit_course_allowed() has been reworked and is faster/smarter
than editcourseallowed(). It can also be made more specific on a
per-page-type basis.
2007-09-19 07:47:49 +00:00
martinlanghoff 9a55125ef6 blocks/admin_tree: applicable_formats() is called as a class method
Can't find it documented anywhere, but applicable_formats() is only
ever called as a class method, so it cannot say $this. Instead, say
block_admin_tree::has_admin_caps().
2007-09-19 07:47:38 +00:00
martinlanghoff 2e159efb1c Revert "datalib: Introducing sql_intarray_to_in()"
We don't need sql_intarray_to_in(), use implode() instead.

This reverts commit 3ef7fc54d9df780c837c64a8ace1fc565d6d7744.
2007-09-19 07:47:26 +00:00
martinlanghoff 41709a387f accesslib: replace join() and sql_intarray_to_in() with implode()
implode() is the PHP-ish way of saying this. join() is too Perlish and
may get confused (or misgrepped) with a SQL JOIN.
2007-09-19 07:47:11 +00:00
martinlanghoff 0c13a90844 textlib: Don't require_once() class.t3lib_div.php which we never use
The largest of the 2 typo3 libs we ship in Moodle is never used. So
don't even parse it.

This takes Moodle's "default homepage" from 1.8MB to 1.6MB of PHP.
Tiny, but every bit helps...
2007-09-19 07:46:54 +00:00
martinlanghoff 2a2057736e moodlelib: moodle_request_shutdown() prints included files
If MDL_PERFINC is defined, we now print to errorlog a listing
of the files included, their size, and then a total size.

The total size isn't the most important metric, though it does give us
a good idea of how much PHP the PHP engine is parsing for us. The main
cost is still in the seeks involved.

Even when using precompilers -- our best-case scenario -- each include
or require forces at least 2 stat()s to compare timestamps in the php
file vs the precompiled file. If the working set fits in buffers we are
fine, but our 60+ stat() calls per page is quite a bit.
2007-09-19 07:46:39 +00:00
martinlanghoff 0146bd4190 blocks/admin_tree: Show the block if some admin privs present...
Dan Poltawski said:
> Previously users with different permissions could have granular
> access to the admin menu for the items they have access to, so
> limiting to only users with moodle/site:config would break that.
> Although I agree that that menu is slowww to render and needs
> fixing. Perhaps permissions for the various elements could be
> gathered and checked first

This commit addresses the problem checking for all the caps that are
mentioned by code in /admin (according to grep, at least). Some light
testing with the "moodle/user:create" seems to work properly.

This burdens us with maintaining the list in has_admin_caps() -- less
than ideal, but easier than rewriting /admin.
2007-09-19 07:46:24 +00:00
martinlanghoff 18b1d84820 accesslib upgrade: admin/upgradesettings may need to load_all_capabilities()
This shouldn't happen, but sometimes admin/upgradesettings needs to
reload_all_capabilities(). So do it.
2007-09-19 07:46:12 +00:00
martinlanghoff f667ecfe3d accesslib 1.9 upgrade: homepage check to see if we need to upgrade
This check adds a DB query _only when the upgrade is pending_. So
for a few minutes at the most.
2007-09-19 07:45:45 +00:00
martinlanghoff c24f4599c3 accesslib rework: Upgrade block to populate context.path and friends
Note: this upgrade changes how accesslib works.
2007-09-19 07:42:42 +00:00
martinlanghoff 394074424a accesslib: Introducing is_siteadmin() to reliably check for siteadmins
is_siteadmin checks a few key capabilities to suss out if the user is
an admin. The main virtue of the function is that it does not use
the accesslib infrastructure -- it reads directly from the DB, which
is useful for the 1.9 accesslib upgrade.
2007-09-19 07:30:09 +00:00
martinlanghoff 67ab1aecfb admin/index: Populate the context path JIT for the new admin user
With this call to build_context_path() the admin rights of the new
user are loaded just before they are first needed.
2007-09-19 07:29:55 +00:00
martinlanghoff d4bec85829 accesslib: get_user_courses_bycap() fix to deal with empty $order
If we are passed an empty string for $order, still create valid
SQL. Some callers in 1.9 seem to not care about order, passing
an explicit ''. Shocking! ;-)
2007-09-19 07:29:43 +00:00
martinlanghoff 1e460fdfc2 accesslib: remove references to deprecated context_rel table and insert_context_rel()
These references to the deprecated functions were erroring out. Remove
them.

Note however that other role related cleanups done as part of
MDL-10679 "improvement to context_rel table and load_user_capability()"
are kept.
2007-09-19 07:29:31 +00:00
martinlanghoff ad72d0d702 admin/cron: move accesslib stuff to occasional cleanups, add build_context_path()
The accesslib cleanups aren't needed every 5. Also, add
build_context_path() and instructions on how to run it
as build_context_path(true) to force a path rebuild.
2007-09-19 07:29:20 +00:00
martinlanghoff ad4c7473a9 accesslib: build_context_path() is now much much cheaper
We now populate the context.path only where it's empty,
this means that we take 0.15s instead of 0.6s. More importantly,
we avoid thrashing the DB's indexes pointlessly.

We also support Oracle and its dirty hack here.

And the function now has a $force parameter that can be used to
actually overwrite the paths/depths in case they've been corrupted.
2007-09-19 07:29:07 +00:00
martinlanghoff 2960a5525a backup/restore_form.html: tiny XHTML compliance fix
There is something _weird_ about the table setup on this page
and I cannot figure it out. This change "fixes" it in that
FF stops complaining.

However, the fix looks very broken to me.
2007-09-19 07:28:54 +00:00
martinlanghoff 44f1636ee2 datalib: get_categories() - remove PostgreSQL-ism 2007-09-19 07:28:43 +00:00
martinlanghoff a72921ae68 accesslib: Use sql_compat() to remove unportable PostgreSQL-isms 2007-09-19 07:28:31 +00:00
martinlanghoff 2dff3a0681 accesslib: get_assignable_roles() reworked to be constant-queries
get_assignable_roles() was calling user_can_assign() (cost of 1~2 DBq)
once-per-role. Instead, we can do a single DB query that answers
all our questions in one go.

On a Moodle w 8 roles defined, saves 19 DB queries for the course page
for teachers/admins.

NOTE NOTE NOTE! With this patch we drop the insane strip/escape bit.
Only the caller knows if this is for display on html or for other uses,
so we'll be true and not mangle the data.

A review of all callers in 1.8 shows no problem - the strings were being
strip/escaped already.
2007-09-19 07:27:46 +00:00
martinlanghoff dfbf98cdb3 course/index: minor context-related fixes
- The code uses the system context a lot. Declare
   $sysctx at the top and use it.

 - If the category has a context property, use it
   (saves 1 DB query per category displayed)

The DB costs of this page in editing mode are

 - ~100 DB queries for fix_course_sortorder()

 - ~50 DB queries for the categories listing

If we rewrite both to lose the recursion, we could resolve the
page in perhaps 5 DBq.
2007-09-19 07:27:31 +00:00
martinlanghoff 40fb8aa69a datalib: get_categories() returns context, supports !shallow
With this patch, get_categories() now adds a nice context
sub-object to the returned object, which means callers can
save DB traffic.

It now also supports "deep" retrievals, which means we can
rewrite the course categories display pages to avoid
costly recursion.
2007-09-19 07:27:20 +00:00
martinlanghoff c5d13b689f datalib: fix_course_sortorder() - minor optimisation
Don't update fields unnecessarily. Cuts 3 DB queries per category
on course/index page (45 in a 15 category setup).

fix_course_sortorder() should be fixed to avoid recursion.
2007-09-19 07:27:08 +00:00
martinlanghoff 4dde1463ee course/lib: print_courses() and print_course() rework
print_course() can now recognise a $course object that already has a
$course->context obj and a $course->managers array, which means that
there will be no DB access triggered by print_course().

(Backwards compat is retained so it still works the old way for
callers that get a single course printed anyway (during enrolment
for example.)

And print_courses() now uses get_courses_wmanagers(), and passes the
returned $course objects to print_course().

With this patch, a homepage listing 9 courses (with varying numbers of
teachers) sheds 63 DB queries (88 to 25). A course listing page with
3 courses sheds 9 (33 to 24).

On a single server overall time spent serving the homepage is reduced just
a little bit (262ms to 238ms) -- on a clustered environment, less DB queries
mean much lower latency and DB costs.
2007-09-19 07:26:54 +00:00
martinlanghoff 70f158789e datalib: Introducing get_courses_wmanagers() for print_courses() usage
For an efficient print_courses() we need to grab in a constant number
of queries...

 - course data
 - "course manager" role assignments
 - user records for the coursemanagers' fullname()

So here we do it in 2 DB queries. The 2nd one (grabbing RAs and user
records) can be expensive if we are dealing with a large number of
courses.

Which we shouldn't - When the number of courses is large the course
listing doesn't come this way anyway...
2007-09-19 07:26:42 +00:00
martinlanghoff 431cad0d62 course/lib: print_course() bugfix when $rusers is empty 2007-09-19 07:26:27 +00:00
martinlanghoff 3cdf0dd253 accesslib: get_parent_contexts() bugfix 2007-09-19 07:26:15 +00:00
martinlanghoff 420bfab156 accesslib: has_capability() now loads sub-course accessdata for $ACCESS
When querying capabilities of non-logged-in users, has_capability()
will now load accessdata for the subcontexts as needed.

Without this patch, below-the-course RAs and rdefs were ignored when
checking caps for a user different from $USER. I don't think it is
ever done in current moodle code, so the problem wasn't visible.

In any case - it's fixed ;-)
2007-09-19 07:26:02 +00:00
martinlanghoff 21e2dcd946 moodlelib: require_login() rework
A bit of rework around require_login()

 - Fixed a subtle bug in the check whether a user can see sitecourse
   hidden activities

 - Save 1 DBq and 2 includes per call by only calling
   get_auth_plugin() only when needed.

 - Grab the contexts we are interested in only once and keep them in
   variables.
2007-09-19 07:25:49 +00:00
martinlanghoff 3c2dbf376e accesslib: Fix dirty paths checks on PHPv4
$DIRTYPATHS and its derivatives are all arrays. Not objects.

Drop the silly -> notation.
2007-09-19 07:25:37 +00:00
martinlanghoff 41017705c3 accesslib: phpdoc update get_child_contexts() 2007-09-19 07:25:25 +00:00
martinlanghoff ad833c4283 accesslib: rm get_role_context_capability() and update phpdoc
Remove unused function.
2007-09-19 07:25:10 +00:00
martinlanghoff 7ac2bd55eb accesslib: remove role_add_lastaccess_entries(),role_remove_lastaccess_entries()
Both of them are dead code in 18_STABLE and HEAD. And if
role_add_lastaccess_entries() is ever used on a large site it will
hammer the DB to bits.

Remove before anyone is foolish enough to try it.
2007-09-19 07:24:57 +00:00
martinlanghoff efd6fce585 accesslib: require_capability() phpdoc notes 2007-09-19 07:24:43 +00:00
martinlanghoff 0315aeb02f accesslib: get_parent_cats() goes away too...
Not used anymore, and very inefficient.

If you need something like it, use course_category.path
just like we use context.path .
2007-09-19 07:24:26 +00:00
martinlanghoff 8612e194e8 accesslib: remove get_role_caps() merge_role_caps()
Both unused, and not part of the external API.
2007-09-19 07:24:14 +00:00
martinlanghoff 03160d776c accesslib: remove validate_context()
No longer used anywhere. Not really useful outside of accesslib, so no
point in keeping it.
2007-09-19 07:24:02 +00:00
martinlanghoff 56743fabc9 accesslib: get_context_instance() - ignore clearcache
"cleacache" is no longer needed, and nothing is calling it.

Still - handle it as a noop to avoid erroring out with custom/contrib
code.
2007-09-19 07:23:41 +00:00
martinlanghoff 564870b7b8 accesslib: get_parent_contexts() reworked to use context.path
Now that we can use $context->path trivially, and avoid touching the db
for data we already have... Just Do It!
2007-09-19 07:23:30 +00:00
martinlanghoff 5f38222405 accesslib: remove insert_context_rel(), build_context_rel() and others
The context_rel table is not used anymore. Get rid of all references
to it.

TODO: Drop the orphaned table - but we'll do that on HEAD.
2007-09-19 07:23:15 +00:00
martinlanghoff 8e9fa6b1a2 accesslib: mark_context_dirty() - fix race condition
We had a 1s race condition where a user could get their rights loaded
at the exact time an admin is changing roles/caps and see the "old"
data. Or even see a half-updated view of the access controls.

Yuck.

So we fix the race condition backdating the dirtyness. Cheap, but
effective. And then we backdate it some more to cover for minor clock
flutter on clusters (you still need ntp however!).
2007-09-19 07:23:01 +00:00
martinlanghoff 16cb1ef759 accesslib: mark_context_dirty() don't mark it there is no path 2007-09-19 07:22:49 +00:00
martinlanghoff 2ee469b3b8 datalib: add_to_log() fix a bug and better error handling
All the $db->Execute calls now do proper err handling, and send their
message to debugging().
2007-09-19 07:22:37 +00:00
martinlanghoff 84a34f6ed3 blocks/admin_tree: exit early for non-admins
Saves >10DBq and 18 includes at the homepage for all nonadmin users.
For non admin users, this makes the homepage _much_ more lightweight.

  Before: inc 101  DBq 51 time 1.2s
  After:  inc  76  DBq 36 time 0.2s

So this commit shaves 1 full second for the non-logged-in homepage.

Still pretty bad on the includes, but shaved a good 25 files and 15 DBqs.
2007-09-19 07:22:24 +00:00
martinlanghoff d4c4ecb808 accesslib: get_user_access_sitewide() fix invalid SQL for users without RAs 2007-09-19 07:22:12 +00:00
martinlanghoff 2965f8fdb8 datalib: get_admin() - cache in a static var
get_admin is called a zillion times during cron, and is a tiny
bit of data we can safely keep around... so...

(shaves 2 queries per email we send!)
2007-09-19 07:22:01 +00:00
martinlanghoff 472b647aa5 user/view: show user courses that are hidden, with dimmed class
If the $USER can see them, there is no reason to hide courses that
may be hidden. But show them dimmed to indicate so.
2007-09-19 07:21:47 +00:00
martinlanghoff b00cb46b27 datalib: get_my_courses() now returns invisible courses if visible to $USER
So admins can see the appropriate user listing in the profile page.

In fact, probably _all_ the visibility checks should be done by callers.
Hmmm...
2007-09-19 07:21:35 +00:00
martinlanghoff 62a7a32d79 accesslib: has_capability() - fix warnings about FULLME constant 2007-09-19 07:21:23 +00:00
martinlanghoff f0d3bb9e9c mod/chat: chat_update_chat_times() smarter
If cron hasn't run for a few days, it would take
several runs for chat_update_chat_times() to get things back on track.

Now it's all fixed in one go, saving a bit of DB traffic. It all adds
up...
2007-09-19 07:21:09 +00:00
martinlanghoff b78f4cbd31 mod/chat: reduce number of queries in cron.
Delete stale msgs in one DB query rather than in 1-per-chat-instance.

(From 600 DB queries to 1 on a site with 600 chat instances.)

Also - a walkthrough of chat_update_chat_times(), which seems buggy.
2007-09-19 07:20:52 +00:00
martinlanghoff 1a9b67874f accesslib: has_capability() now supports fake $USER for forum cron
has_capability() can handle the fake user that forum cron sets up
and will load the appropriate accessdata into $USER->access.

This makes forum cron work again. A test comparison between before
this patchseries yields:

With 1 forum post, sent total 24 times
 - Before 11 000 DB queries (approx)
 - After     506 DB queries

With 6 forum posts, sent a total of 452 times
 - Before 47 876 DB queries
 - After   8 256 DB queries

There is a very high variability, but we are going from 100-500
queries per sent email to 18-21 queries per sent email. The
variability probably stems from 2 of the 6 posts being in a 200-user
forum.

Still huge - by the time we are sending the email, we should know
everything we need to know about the user, the forum/thread/post and
the form. The average should be well below 1 DB query per email sent!
2007-09-19 07:20:24 +00:00
martinlanghoff a5d81e5e5e user/index: make use of the smarter print_user_picture() -
Switch to using the smarter codepath in print_user_picture. Saves
20 DB queries in the normal page. One per user acct.
2007-09-19 07:20:01 +00:00
martinlanghoff f312c5925f course/participants: fix sort order when last access is null 2007-09-19 07:19:46 +00:00
martinlanghoff aebfa1546e weblib: print_user()/print_user_picture() optimisations
print_user_picture() was forcing an unneeded dbquery
if you need an imagealt. And who doesn't need one these days.

So - teach print_user_picture() to take either $userid
_or_ $userobj as the first parameter. If that first
parameter has the fields we need, never touch the db.

In other words, only touch the DB as a last resort.

There is a bit of ugliness in testing whether we have
the fields or not, because these fields are inconsistently
with/without NOT NULL in the DB definitions. So we cannot
use isset() because it barfs on nulls. And we cannot use empty()
because it will match both on "missing key" and ''.

And while at it, silence warnings that we are missing string
for the year(s). Also fixes a missing string bug in really boring
courses that noone's visitied in many years ;-)
2007-09-19 07:19:35 +00:00
martinlanghoff 1cf2e21b6e moodlelib: require_login() - rework course/category visibility checks
Reworked the logic of the visibility checks so that we evaluate in a
chain:

   - can view course   (visible or user can see hidden)
   - can view category (visible or user can see hidden)

Without this patch, users that could see hidden categories could not get
into courses inside of them.

While at it, fix reference to the old $USER->switchrole
2007-09-19 07:19:20 +00:00
martinlanghoff 3511647c44 datalib:course_parent_visible() rework, remove category_parent_visible()
Reworked course_parent_visible() to always return in a constant
number of db queries (2 worst case) regardless of nesting depth.

The rewritten version has a small cache, but if you are going to
walk many courses, it's still 1~2 DB queries per category seen,
so the right thing to do is to check it in the caller, as seen
in get_my_courses().
2007-09-19 07:19:05 +00:00
martinlanghoff 82c62d1b17 datalib: get_my_courses() - add course visibility checks
Reworked gmc to perform the course visibility checks. These are
very cheap if $CFG->allowvisiblecoursesinhiddencategories is true.

However, where we have to enforce category visibility, it adds a bit
of work. In simple terms, it adds a DB query to read all the categories,
and extra checks to make sure we are doing the right thing WRT

 - course visibility   vs the permission to see hidden courses
 - category visibility vs the permission to see hidden categories

and still do it quickly.
2007-09-19 07:18:54 +00:00
martinlanghoff 956b2f102e accesslib: get_user_courses_bycap() also returns categorypath
Costs next to nothing according to testing, and allows us to walk
the categories very cheaply. We'll need this in get_my_courses()...

What a cheapskates I am...
2007-09-19 07:18:37 +00:00
martinlanghoff 3d034f77a8 accesslib: has_cap_fad() - merge switchrole with defaultuserrole
If you are a teacher in course X, you have at least
teacher-in-X + defaultloggedinuser-sitewide. So in the
course you'll have techer+defaultloggedinuser.
We try to mimic that in switchrole.

Thanks to Petr for pointing me to a similar fix in CVS.

Probably related: MDL-10945
2007-09-19 07:18:23 +00:00
martinlanghoff ceaf847554 accesslib: remove unused static var 2007-09-19 07:18:10 +00:00
martinlanghoff 56d219eaef accesslib: remove deprecated load_defaultuser_role() 2007-09-19 07:17:57 +00:00
martinlanghoff 20aecba887 moodlelib:remove_course_contents() does not need to 'clearcache'
Now that delete_context() marks things dirty, we no longer
need to clearcache. Which is deprecated anyway.
2007-09-19 07:17:45 +00:00
martinlanghoff e7c8160b6f accesslib: delete_context() now appropriately marks the context dirty. 2007-09-19 07:17:34 +00:00
martinlanghoff 57770b87d0 Interactive enrolment/unenrolments: make sure we unset mycourses 2007-09-19 07:17:23 +00:00
martinlanghoff 55e68c29c8 accesslib: load_all_capabilities() must clear USER->mycourses 2007-09-19 07:17:08 +00:00
martinlanghoff 7293b3c6bd accesslib: drop rdef mangling part two
We had quite a bit of leftover rdef and ra mangling.
Be more thorough and clear it up.

While at it, make load_user_accessdata() and load_all_capabilities()
more consistent.
2007-09-19 07:16:56 +00:00
martinlanghoff 955679bcf3 moodlelib: require_login() - assign tempguest role using load_temp_role()
And remove the explicit handling of deprecated $USER->capabilities
2007-09-19 07:16:43 +00:00
martinlanghoff 343effbede accesslib: intro load_temp_role() for temporary guest access
Loads a "ghost" role assignment, and all the needed rdef data
into an accessinfo array.

Also minor phpdoc update on get_role_access()
2007-09-19 07:16:29 +00:00
martinlanghoff 3ac81bd159 accesslib: drop rdef mangling for default role - check in has_cap_fad()
There are some exceptions when checking for caps that are inherited
from the default role. Move the check into has_cap_fad() and stop
mangling the data we put in $ad[rdef].

We now also set $ad[dr] to record default roles added.

This will later allow us to share rdef across many users in $ACCESS.

Affects:
  load_user_accessdata()
  has_cap_fad()

While at it, document has_cap_fad() a bit.
2007-09-19 07:16:18 +00:00
martinlanghoff 33b6014f72 accesslib:load_all_capabilities() - fix guest user setup for multi-enrol
When setting things up for the guest user, the RA entry in accessdata
was not multi-enrol-friendly. Must have glossed it over in the
multi-enrol rework.
2007-09-19 07:16:04 +00:00
martinlanghoff 51be70d2e2 accesslib/moodlelib: check $USER->access[rsw] for roleswitches 2007-09-19 07:15:50 +00:00
martinlanghoff 0e801c6c9d course/unenrol: check $USER->access[rsw] for role switches 2007-09-19 07:15:38 +00:00
martinlanghoff 92e531681d accesslib: Document accessdata, public api, stale accessdata 2007-09-19 07:15:27 +00:00
martinlanghoff 31c2de8234 accesslib: rename "sess" and "accessinfo" to accessdata
The name for new data structure holding access control data
is "accessdata". And we have a new moniker "fad", short for
"from accessdata".

So
 - has_cap_fromsess()    -> has_cap_fad()
 - access_inaccessdata() -> path_inaccessdata()
 - aggr_roles_fromsess() -> aggr_roles_fad()
 - $sess   -> $ad
 - $access -> $ad

Consistency, save typing, shorter codelines...
2007-09-19 07:15:12 +00:00
martinlanghoff 0c24aa1929 accesslib:require_capability() revamp to check for USER->access
$USER->capabilities is deprecated.
2007-09-19 07:14:59 +00:00
martinlanghoff 0d8a77c978 accesslib:context_moved() remove debugging msgs 2007-09-19 07:14:48 +00:00
martinlanghoff 88903eeab9 course/index: Move categories around using move_category()
Use the newfangled move_category() when moving categories
around, to ensure we Do The Right Thing in the backend,
decoupled from UI stuff.
2007-09-19 07:14:34 +00:00
martinlanghoff 19f601d178 course/lib: move_courses() calls content_moved(), intro move_category()
move_courses() now calls content_moved() which will take care of any
accesslib-required changes. And introducing move_category() which
also calls content_moved() when needed.
2007-09-19 07:14:23 +00:00
martinlanghoff b4ab7f2ec9 accesslib:content_moved() fix bug in depth handling
the depth was getting a bit out-of-control when moving
up the tree. Fix it...
2007-09-19 07:14:11 +00:00
martinlanghoff a372aab507 course: Changing a course cat from course/edit calls context_moved()
Changes to course cat from the main course settings form now calls
context_moved(), and accesslib data is properly maintained.
2007-09-19 07:13:57 +00:00
martinlanghoff ca92b39158 accesslib: create_context() fix to also populate the depth
Set the depth field correctly.
2007-09-19 07:13:45 +00:00
martinlanghoff e4fec27340 accesslib: Introducing context_moved() - call after moving courses/coursecats
With the new accesslib, moving courses and categories has a major
impact on enrolments and unenrolments.

At _least_ we need to signal accesslib that it has happened. So here
is context_moved() for exactly that.

Open to refactoring later into something along the lines of

 - move_course()
 - move_category()

However, at this stage the most important of those two: move_course()
does not fit very well with the code in course/edit. So keep it simple
for now.
2007-09-19 07:13:33 +00:00
martinlanghoff c633af7a5a course/edit: mark the course contextpath as dirty to force a reload
Combined with the path creation in create_context() we can now create
a course, enter and edit it immediately. Amazing.

Like - 21st century technology.
2007-09-19 07:13:20 +00:00
martinlanghoff e40413befa accesslib: create_context() now populates the path of new contexts
... and it populates the context cache too.

Unfortunately, it needs an INSERT followed by an UPDATE. Other than
a stored procedure, I don't know how to deal with this better.

(We could save the SELECT though! that's a thought...)

OTOH, we are getting so much mileage out of the path field
that it's probably a hit we have to take in the chin and move on.
2007-09-19 07:13:08 +00:00
martinlanghoff 4881f2d329 accesslib: simplify and speedup create_context()
Callers _must_ do their homework before calling create_context().
This allows us to save 2/3 queries per call (!!!).

As it stands, callers are all in accesslib anyway.
2007-09-19 07:12:56 +00:00
martinlanghoff 3d3def3a4e course/unenrol codepaths mark the context dirty - bugfix
Oops. one if() branch was missing the mark_context_dirty(). Fixed.
2007-09-19 07:12:43 +00:00
martinlanghoff 54f9d9aee7 accesslib:reload_all_capabilities() - force a reload of mycourses
unset $USER->mycourses to force a reload of mycourses too.
2007-09-19 07:12:33 +00:00
martinlanghoff d32dd61154 enrol/paypal: mark the contextpath as dirty on unenrolment
so the unenrolment is effective immediately.
2007-09-19 07:12:22 +00:00
martinlanghoff f055618837 enrol/mnet: mark context as dirty after unenrol
So the unenrolment is effective immediately.
2007-09-19 07:12:10 +00:00
martinlanghoff 2d0de2d88b deprecatedlib: Legacy interactive enrol/unenrol codepaths mark the context dirty
My heart is not so cold. These old buddies also need love and care...
2007-09-19 07:11:56 +00:00
martinlanghoff a9d4ea7849 All interactive enrol/unenrol codepaths mark the context dirty
Manually enrolling and unenrolling self, and other users should
transparently set the context dirty. So walk all callers to
role_assign() and role_unassign() and mark the context dirty
where appropriate.

OTOH, most automated-backend enrol/unenrol mechanisms should not.
The backend lookups that happen when you login are well covered
by the login/enrolment process, and don't need to be marked dirty.
2007-09-19 07:11:42 +00:00
martinlanghoff df75ca2289 cron: call cleanup_dirty_contexts() 2007-09-19 07:11:31 +00:00
martinlanghoff ef989bd95e accesslib: Introduce (and use) reload_all_capabilities()
If accessinfo is stale, we need to reload it without losing
out "interesting" state -- transparently for the end user.

That means preserving active role switches, loginas (site and course
level), etc. The logic for that is encapsulated in
reload_all_capabilities().

Also affected:
 - has_capability() which now calls reload_all_capabilities()
 - role_switch() - minor tidyup
2007-09-19 07:11:18 +00:00
martinlanghoff 2123166d62 accesslib: get_user_courses_bycap() fix bug introduced by refactor
The refactor that created make_context_subobj() triggered a bug.
Smack in the hand to the sloppy programmer using variables outside
of the context they were meant to be used in!
2007-09-19 07:11:04 +00:00
martinlanghoff e6560e39d7 admin/roles: context-specific role changes mark the context as dirty
And will force a reload of $USER->access for logged-in users that need
to read _this_ context. Much lower impact - still not a great idea to
edit assignments/caps on very busy courses, but impact should be low.
2007-09-19 07:10:52 +00:00
martinlanghoff b3dc845cab admin/roles: sitewide role changes mark site context as dirty
And will force a reload of $USER->access for all logged-in users
on their next request.

We will have to tell admins of large sites to avoid making role changes
at busy times, as it does generate extra load.
2007-09-19 07:10:37 +00:00
martinlanghoff 148eb2a749 accesslib: Introduce $DIRTYCONTEXTS, $USER->access[time],is_contextpath_clean()
has_capability() now (ab)uses a new global: DIRTYCONTEXTS where we
load the contexts that have changed since since $USER->access[time]

The shallow/easy checks are done in has_capability(), deeper checks
go into the newfangled is_contextpath_clean().

The only complication now is to reload the relevant caps without losing
switches, loginas, etc...
2007-09-19 07:10:24 +00:00
martinlanghoff 0d25cd3a81 accesslib: Introduce functions to deal with dirty contexts
The accessinfo held in $USER->access can easily get out of
sync with reality if and admin has removed our access,
or expanded it after we loaded our accessinfo.

To handle this, we'll use the config_plugins table with an
'accesslib/dirtycontexts' plugin signature to store the paths of
recently changed contexts. To handle those dirrrty entries, here
we introduce

  get_dirty_contexts() - for lib/setup
  mark_context_dirty()
  cleanup_dirty_contexts() - for cron
2007-09-19 07:10:09 +00:00
martinlanghoff 690c946c15 get_role_users() callers rework to use the new $gethidden 2007-09-19 07:09:50 +00:00
martinlanghoff 47b18c1c12 group/assign: fixed performance of assigning users to groups
- page would not display on a course with 600 users
2007-09-19 07:09:36 +00:00
martinlanghoff 3bf13d05f5 course/lib:print_course() smarter calling of get_role_users()
And saves a few dbqueries too...
2007-09-19 07:09:24 +00:00
martinlanghoff 867f957fc5 accesslib:get_role_users() revamp
Now get_role_users() joins with contexts and roles too, so we can
push more work into it, and simplify the callers.

One important change is that the $view flag gets reworked into
$gethidden, pushing the cap check to the caller.

This commit is followed by a cleanup of the callers...
2007-09-19 07:09:13 +00:00
martinlanghoff 8fe9c4de51 datalib: get_courses_search() remove dead code 2007-09-19 07:09:01 +00:00
martinlanghoff 026579bbc3 course/search.php: smarter about contexts, bugfix in pagination
Save a ton of queries about contexts, and a bugfix in how we are
calling the pagination for get_courses_search().
2007-09-19 07:08:50 +00:00
martinlanghoff 2c64f65cd3 datalib: get_courses_search() learns to be smart about contexts...
Join against contexts, save bazillion context lookups...
2007-09-19 07:08:37 +00:00
martinlanghoff 679b617967 categories: Categories page and get_courses_page() - smarter about context
This patch saves 1600 context lookups on a 1600 course category. rcache
does help a bit with small categories, but on large setups, this is
not sustainable.

And it's not needed either. We have the data right at our fingertips.
Just get it when it's cheap...
2007-09-19 07:08:24 +00:00
martinlanghoff c1b7a5e537 accesslib: introducing make_context_subobj() - and refactor callers
We had many copies of the subcontext building bit. Time to
abstract it, and fix callers...
2007-09-19 07:08:12 +00:00
martinlanghoff d0009dff7d accesslib: Fix dup enrolment entries in get_user_access_bycontext() and get_user_access_sitewide()
Avoid duplicate entries in the ra array. Now it works too!
2007-09-19 07:07:59 +00:00
martinlanghoff 4d8ab2749e accesslib: get_context_users_bycap() draft for course participants...
Introducing get_context_users_bycap() which gets the data in
2 DB queries, takes around 10ms on my laptop, and returns
the records with a nice context property attached.

Note Note Note: right now, some user recs do not have a context
associated, so are _not_ returned. So this awaits Matt's fix
to contexts maintenance to be 100% accurate...
2007-09-19 07:07:45 +00:00
martinlanghoff fe3141e00b get_my_courses() - bugfix in sitewide-login-as support.
Oops. The supportfor login-as was buggy now with sitewide
loginas. Now works in both.
2007-09-19 07:07:34 +00:00
martinlanghoff ae1555ae2e get_my_courses(): Support course-level login as
A walkthrough of course-login-as functionality shows that is
Just Works, except that get_my_courses() was showing all the
courses. So we fix it.

And cleanup load_all_capabilities() - things just work
transparently.
2007-09-19 07:07:21 +00:00
martinlanghoff 2219374865 accesslib: remove some functions we do not need anymore
This is *the* scary commit. No more scaffolding, no more
training wheels. Remove the legacy has_capabilty_old() and
several supporting functions.

   has_capability_old()
   capability_search()
   is_parent_context()
   roles_context_cmp()
   load_user_capability()
   capability_prohibits()

I've grepped far and wide. Noone else uses the supporting
functions anywhere in-the-known-universe. If I could not
find it, it does not exist.

[Thankful that cvs/git/whatever will hold on to them
 if I end up having to regret this.]
2007-09-19 07:07:08 +00:00
martinlanghoff 204a369c1e accesslib: Intro global $ACCESS and load_user_accessdata()
This patch introduces a new global $ACCESS that will cache
accessdata (our ra/rdef array) for users that are _not_ the
logged in user.

Most of the time it will be empty (luckily).

Each new user we have to get "in" costs us 3 or 4 cheap
dbqueries at the moment, so it is not that bad.

has_capability() now calls load_user_accessdata() if the
call is for a non-logged-user. So $ACCESS is autopopulated
transparently.

This also means that has_capability no longer calls
has_capability_old(). Yay!

With this patch, user/view.php for looking at a user in a course...

  Before: 62 dbqueries, 10.3MB, 0.7s
  After:  49 dbqueries,  8.5MB, 0.3s
2007-09-19 07:06:55 +00:00
martinlanghoff d7d4b0e572 course/view: roleswitch checks moved to the course page
Implemented all the relevant checks for role_switch().

accesslib's role_switch() doesn't do any UI-related checks any more,
being a backend lib call. These belong here.
2007-09-19 07:06:44 +00:00
martinlanghoff 6cc59cb21b accesslib: add support for multi-enrolments
I had dropped support for multi-enrolments on the same context.

 Oops!

This patch reinstates it, changing the semantics of the 'ra'
array leaves from an int to an array of ints.

So no instead of

   $USER->access['ra']['/1/12/543'] = 5

we have

   $USER->access['ra']['/1/12/543'] = array(5)

the functions that build the array, and the array walkers have
been updated. This touches...

  Writing RAs
    load_all_capabilities()
    get_user_access_sitewide()
    get_user_access_bycontext()

  Reading RAs
    has_cap_fromsess()
    aggr_roles_fromsess()

Thanks to Matt Clarkson for mentioning multi-enrolments!
2007-09-19 07:06:30 +00:00
martinlanghoff b1178725a8 weblib: switchroles_form() user_login_string() handle the new switchroles
The switched role data bits have moved to a
different place in the session. Trivial to fix here.
2007-09-19 07:06:17 +00:00
martinlanghoff 1c886b238d accesslib: role_switch() supports unswitching by passing $roleid=0
It is a good idea, silly of me to remove it...
2007-09-19 07:06:03 +00:00
martinlanghoff 6a8d9a387d accesslib: has_cap_from_sess() now supports role switching
With this commit we now have very fast support for
roleswitching, based on $sess[rsw] entries.

And a bit of phpdoc. This is function, and the
datastructure it walks, is the heart of of it.
2007-09-19 07:05:48 +00:00
martinlanghoff 6f1bce30b1 accesslib - role_switch() revamp, introduce get_role_access_bycontext()
First stage of role_switch() rewrite - role_switch() sets up
a rsw entry in $USER->access, and makes sure we have the
appropriate role definitions in rdef.

That is where get_role_access_bycontext() comes into play -
gets all the rdef entries in one cheap sql query.

... though there may be many of them...

TODO:

 - fix callers of role_switch()
 - teach has_cap_fromsess() to read the rsw entries
2007-09-19 07:05:32 +00:00
martinlanghoff b5a645b4eb accesslib: Draft get_context_users_byrole()
Draft - use for the course participants list page

 Uses 1 DB query (cheap too - 2~7ms).

 TODO:
 - implement additional where clauses
 - sorting
 - get course participants list to use it!

 returns a users array, both sorted _and_ keyed
 on id (as get_my_courses() does)

 as a bonus, every user record comes with its own
 personal context, as our callers need it straight away
 {save 1 dbquery per user! yay!}
2007-09-19 07:05:21 +00:00
martinlanghoff 352f6f74fc get_my_courses() and get_user_courses_bycap() field handling and caching
- Field handling moves back to get_my_courses() and now we have
  almost all the fields that the old get_my_courses() did
  (except for summary, which is *huge*) so get_my_courses() asks
  for a lot of fields, but the get_user_courses_bycap() defaults
  are _much_ leaner now.

  I think this makes sense ;-)

- get_my_courses() now caches the course ids for the currently logged in
  user in $USER->mycourses -- as a _string_. This is magnitudes more efficient
  than having it as an array.

The cache makes a difference, but it's not very visible on
normal pageloads (with my courses block, for example).

However, over 100 iterations, for a user with 50 enrolments in a site
with 6K courses, we go from 4.3s to 0.6s. And the DB queries are *cheap*.

            $tt = microtime(true);
            for($n=0;$n<100;$n++) {
                get_my_courses($USER->id, 'sortorder ASC');
            }
            error_log("took " .  (microtime(true) - $tt));
2007-09-19 07:04:59 +00:00
martinlanghoff 2e059c7709 accesslib: get_user_courses_bycap() - make $doanything work in the optimised path
OMG! Bugfix!
2007-09-19 07:04:37 +00:00
martinlanghoff 573674bf47 accesslib: get_user_courses_bycap() is less of a piggy now...
get_user_courses_bycap() replaces get_courses_bycap_fromsess().

Using a combination of in-DB enrolments and in-session capability
checks, we narrow down the courses we fetch from the DB for checking.

This patch adds a small DB query, and has has a moderate impact on
the timings observable on my laptop (~300ms?), but reduces
*significantly* the bandwidth used, which in cluster environments
with frontends separate from backends has a serious impact.
2007-09-19 07:04:23 +00:00
martinlanghoff aeb3916b7a datalib: get_my_courses() - some fixes to the data we return
strangely, get_my_courses() is expected to return the
array keyed on id, which messes up the sorting

So let's do it ;-)
2007-09-19 07:04:10 +00:00
martinlanghoff e1d5e5c181 accesslib: get_my_courses() rework, new get_courses_bycap_fromsess()
get_my_courses() goes from a bazillion queries (500 in some sample
cases) to 1 for the logged-in user, and 4 for a non-logged-in user.

One of those queries brings a *lot* of data across (all rows from
mdl_course) so there is room for serious optimisation.

  However, this clocks at ~300 ms on my laptop, costly, but not
  the end of the world. If your PHP-DB link has bandwidth probs
  it might be a problem.

A few important changes to get_my_courses()

 - (Compat ALERT!) the default fields are less than before --
   (will be followed by patches that fix the callers!) our defaults
   had grown to quite a bit because of the crazy caching scheme it had

 - the $fields parameter is to name _additional_ fields you need, and
   ideally wants them passed as an array. Will cope with old-style
   strings too.

 - the returned courses have an extra property "context" that is
   a fully valid context object, so if the caller needs to perform
   further accesslib checks, we save a query per course down the road

The work is done in the newfangled get_courses_bycap_fromsess()
which is brute-force but fast. I'm sure we can optimise the common
cases a lot in it if we try. It'd be worthwhile to

  - reduce the rows we grab - that's really boneheaded

  - if we copy and tweak the logic of has_cap_fromsess() in it
    it can be made even faster
2007-09-19 07:03:49 +00:00
martinlanghoff 13a794757e accesslib: has_capability() - useful debugging bit... 2007-09-19 07:03:34 +00:00
martinlanghoff 018d4b52b7 accesslib: get_user_access_bycontext() fetches overrides in subcontexts, intro aggr_roles_fromsess()
The main thing here is that overrides in subcontexts are
now read correctly (and still cheaply) into the access array.

Also

 - introducing aggr_roles_fromsess() with gives you a list of
   the relevant roles that affect the user in this context

 - we clear out $USER->access on login/logout

 - get_user_access_bycontext() gets a few optimisations too...
2007-09-19 07:03:19 +00:00
martinlanghoff e0376a6241 accesslib: default, guest and notloggedin roles work properly now
Changes around load_user_capability() and has_capability() to make
the default role fallbacks and guest/nonloggedin roles work.

This commit also introduces the concept of having a magic
context next to the root context in $USER->access[ra], as

 $USER->access[ra][/1] = 1 (admin roleid)
 $USER->access[ra][/1:def] = 7 (loggedinuser roleid)

and has_cap_fromsess() now checks for that magic context
as well.
2007-09-19 07:02:57 +00:00
martinlanghoff 74ac5b66cb accesslib: has_capability() now works for the logged in user
With this commit, the new has_capability works for the logged
in user correctly.

 - load_all_capabilities() no longer calls load_user_capability()!
   6K dbqueries less on login... ;-)

 - When delving into a context we haven't loaded yet, we call
   get_user_access_bycontext()

 - Introduce: get_user_access_bycontext()

 - Several fixes in get_user_access_sitewide()
   (renamed from get_user_sitewide_access())

 - Fixes in has_cap_fromsess()

 - Introduce access_insess() to check if we have to call
   get_user_access_bycontext() for the context
2007-09-19 07:02:44 +00:00
martinlanghoff 7f97ea29bf accesslib: initial has_capability() rewrite
- has_capability() renamed has_capability_old() and we fallback
   when we cannot answer the question

 - has_capability() works great for the course-and-above contexts
   for the logged in user - does not touch the DB

 - works based on $USER->access which has a pretty compact view
   of the user's access rights...

TODO:

 - deal with contexts below the course - here we need to
   trigger the role-assignment and role-defs load when needed

 - deal with "other" contexts that hang from the system context

 - deal with global roleswitch, local roleswitch
2007-09-19 07:02:31 +00:00
martinlanghoff 6dd34e935d lib/setup: declare SYSCONTEXTID to have the system context handy 2007-09-19 07:02:18 +00:00
martinlanghoff a9bee37ea1 accesslib: Introducing get_user_sitewide_access($userid)
This function carefully fetches all the data needed to
handle site/category/course access for a given user
as cheaply as possible.

It currently takes 3 db queries.
2007-09-19 07:02:04 +00:00
martinlanghoff 41883f79ca datalib: Introducing sql_intarray_to_in()
Trivial function to turn an array of ints into a string
usable in an IN sql clause.
2007-09-19 07:01:53 +00:00
martinlanghoff a1244706be user_set_preference(): minor optimisation
Don't update if the values already match...
2007-09-19 07:01:41 +00:00
martinlanghoff 1f3c9d097f accesslib: Introducing build_context_path()
which populates the context.path and context.depth fields
2007-09-19 07:01:27 +00:00
martinlanghoff a9fcd13a77 datalib:add_to_log() - avoid schema lookups, pace updates to user and user_lastaccess
* All updates to user.lastaccess and user_lastaccess.timeaccess are paced to
60s of the last update on the same record -- this should reduce the heat
on those tables.

* Updates/inserts to user_lastaccess are down with raw SQL to avoid costly
schema lookups on every request.
2007-09-19 07:01:04 +00:00
martinlanghoff e1e1f49820 pagelib: Course page - preload child contexts and smarter user_allowed_editing()
With this patch we preload the child contexts for the course
and hold on to them. This means that in one DB query we have all the contexts
we are going to need.

The checks for user_allowed_editing() move from weblib:update_icon() to
user_allowed_editing(), where we cache the result, and in the process save
50% of the cap checks by testing separately blocks from modules (doh!).

Still, the cap checks here are very inefficient...

With the last 3 patches, a course page with default blocks and 9 modinstances
goes from 157 to 86 db queries when logged in as a non-editing user (guest,
student). As admin it drops from 88 to 81.

Conflicts:

	lib/pagelib.php
2007-09-19 06:53:09 +00:00
martinlanghoff 0532aec946 weblib:update_course_icon() - remove access control from here
Access control for the course icon display should happen
at the page level, as we'll need to ask "can edit?" quite
a few times in the page.

The fact that this is weblib should be a good hint that
functions that print html should not be doing access control...
2007-09-19 06:52:52 +00:00
martinlanghoff 19bb8a0517 accesslib:get_child_contexts() reworked to use context.path
Using context.path, now get_child_contexts...

 - always takes 1 query
 - populated the context_cache
 - returns full records
 - when called with an category, it won't
   recurse into the children of courses

Also

 - All callers in accesslib changed to the new
   calling convention

A normal course page with a std blocks and a few
activities sees around 100 queries less with this patch.

Note: this commit is slightly different on HEAD/19 and on
MOODLE_18_STABLE, as groups-related tables have changed.
2007-09-19 06:52:34 +00:00
martinlanghoff 17b0efae11 accesslib: Introducing cleanup_contexts() and use it in cron
The newly minted cleanup_contexts() walks the context table
matching contexts with the tables they are referencing and
clearing any leftover contexts.
2007-09-19 06:50:53 +00:00
toyomoyo 40e0bea5cc minor fix for count of users 2007-09-19 03:48:44 +00:00
toyomoyo 60410add64 MDL-11324, only display users with moodle:course/view capability when assinging in module context or lower 2007-09-19 03:31:22 +00:00
stronk7 cb4bfe06b1 Now assignment_submissions->data1 & data2 are nullable. MDL-11268 2007-09-18 22:20:13 +00:00
stronk7 51ac73da3e Minor improvements to messages window for wood. 2007-09-18 18:57:59 +00:00
skodak 06ea7db0c3 MDL-1883 info for 3rd party developers in DEBUG_DEVELOPER mode 2007-09-18 18:50:14 +00:00
skodak 85c9ebb926 MDL-1883 improved perf when editing scales - new function xxx_scale_used_anywhere() 2007-09-18 18:37:58 +00:00
stronk7 423c029090 Fix some HTML in messages (wrong <a> and roundcorners support) 2007-09-18 18:24:52 +00:00
urs_hunkler 5228aa27cc enhancements for messages: remove header and footer with CSS. increase user top frame height via JavaScript to view the whole user image. 2007-09-18 17:10:32 +00:00
nicolasconnault e480c18cf1 MDL-11312 Added new grade_letters table, and new grade_items.display field. 2007-09-18 14:26:15 +00:00
thepurpleblob ad2cd664d7 Typo!
Merged from STABLE_18
2007-09-18 12:30:19 +00:00
tjhunt c767d3b7d3 MDL-11317 - Slashes displayed in incorrect responses for short answer questions. Fix by adding stripslashes in the appropriate place. Merged from MOODLE_18_STABLE. 2007-09-18 12:15:22 +00:00
jamiesensei 8f0f605ddf moved question_make_default_categories function to questionlib.php since it is needed by other modules outside the question bank editing interface. 2007-09-18 11:23:29 +00:00
jamiesensei 41b6d0011c MDL-11318 formslib now respects a template for an element if it is set. But since formslib uses the templates to insert help buttons for setAdvanced functionality etc. if you use templates you will lose this functionality. 2007-09-18 09:35:44 +00:00
moodler d13d30ef78 The "alias" role names were not being used in the role assign screens. Now they are. MDL-11323 2007-09-18 08:35:12 +00:00
toyomoyo 79c2d039d5 added a string for backup/restore 2007-09-18 07:14:37 +00:00
toyomoyo 461af59ac1 MDL-11234, if role definitions matches, restore role mapping should be allowed with or without role assign capabilities 2007-09-18 07:00:57 +00:00
moodler 9a9be7cbaf Automatic installer.php lang files by installer_builder (20070918) 2007-09-18 04:21:57 +00:00
toyomoyo e5d30fdcc9 added needsupdate flag into backup/restore, added a new switch for restore on/off for grade histories, fixed some NULL related warnings 2007-09-18 04:03:02 +00:00
moodler ae0441ac75 iAdded a string for preview rows in exports 2007-09-18 03:38:33 +00:00
moodler 567883c836 Cleaned up the display of the export pages 2007-09-18 03:36:47 +00:00
moodler 8a34e1d7ca Some layout for the grades export download link / buttons 2007-09-18 03:24:28 +00:00
stronk7 bc2019dd79 Adding Id to file 2007-09-17 22:10:22 +00:00
stronk7 e3f042fbd6 Added data_decode_content_links_caller() and data_decode_content_links()
to provide interlinking capabilities to restore. MDL-9576
2007-09-17 21:58:55 +00:00
iarenaza bb4e530b93 MDL-11299 - Make objectClass string comparison case insensitive.
LDAP serves accept attribute names in a case insensitive way, so don't
force the users to use any particular spelling.
2007-09-17 21:30:20 +00:00
stronk7 e1b1f331d1 Adding data_encode_content_links() to backup, so data module
links are encoded to be transported in backup files. Part of MDL-11268.
2007-09-17 17:59:54 +00:00
diml f1776f8f9b mismatched code version in file. 2007-09-17 17:45:29 +00:00
nicolasconnault 678e8898aa MDL-11282 Just displaying a simple notice, and continuing with the regrading. 2007-09-17 17:39:35 +00:00
nicolasconnault 42b122281b MDL-11275 2007-09-17 17:32:20 +00:00
nicolasconnault a5b8be622c MDL-11275 added (submissions). Also fixed :
Issue:
    Teachers can edit grader report preferences (including switches for quickgrading and
    quickfeedback), but do not have access to the "Turn editing on/off" button, so they
    can't do quickgrading.
Solutions:
    1.Decouple the quickgrading and quickfeedback modes from the editing mode,
        and turn them on/off through the preferences page. New capability: moodle/grade:edit
        * preferences: don't show quickgrading if no capability grade:edit
        * If quickgrading is switched off as a preference and user doesn't have manage cap, show edit icons around grades when in editing mode
2007-09-17 17:31:48 +00:00
tjhunt 07a7d85924 MDL-11267 - Anywone who can view quiz reports can delete student attempts. Merged from MOODLE_18_STABLE. 2007-09-17 16:17:24 +00:00
moodler dca9fc5346 Fixing a string I thought I fixed before ... 2007-09-17 15:32:24 +00:00
tjhunt 4da81e7342 MDL-11310 - Multichoice edititing form should have space for 5 answers by default. Merged from MOODLE_18_STABLE. 2007-09-17 14:39:52 +00:00
thepurpleblob 450802d3bd MDL-11104
Markdown updated to latest version.
2007-09-17 12:37:51 +00:00
thepurpleblob 9e89dbba2e MDL-11104:
Added some extra information for markdown-extra features.

Merged from STABLE_18
2007-09-17 12:30:22 +00:00
thepurpleblob 8cc7d98a31 Forgot to take out duplicate question count check.
Merged from STABLE_18
2007-09-17 11:01:53 +00:00
thepurpleblob 2c6d2c888c MDL-11279:
Code was not properly checking for empty category.
Check moved to right place and proper print_error() function called as appropriate

Merged from STABLE_18
2007-09-17 10:57:49 +00:00
toyomoyo 5bb8a8154e MDL-11084, "s in grade comments causes problems 2007-09-17 06:53:24 +00:00
moodler bb02b375d0 FIxed wierd blue line in forum posts 2007-09-17 05:39:20 +00:00
moodler afad76f2ad Automatic installer.php lang files by installer_builder (20070917) 2007-09-17 04:54:36 +00:00
toyomoyo 4581501ede MDL-11276, average calculations are inaccurate in percentage form due to double rounding 2007-09-17 04:25:51 +00:00
moodler b8011a8570 Fixed popup window call (eg from email) 2007-09-17 04:25:38 +00:00
toyomoyo cb68af8b89 removing extra number_format(), format_float() already calls number_format() 2007-09-17 02:15:51 +00:00
skodak 1519cdeb39 MDL-10820 Fixed double quotes in SQL statements 2007-09-16 21:48:47 +00:00
skodak 18ff5a61b6 MDL-11230 fixing wrong include for tags library - always use require_once() instead of include() when dealing with library files! 2007-09-16 21:43:08 +00:00
skodak d4be9d6d08 MDL-11046 multiple tag/edit.php issues - see bug report 2007-09-16 21:37:28 +00:00
skodak 9c9d307627 MDL-11301 tag autocomplete on edit page works again 2007-09-16 21:24:13 +00:00
stronk7 63d69d5481 Delete one unused table when grading online assignment submissions. 2007-09-16 21:06:56 +00:00
stronk7 84970b96fd Stylise online assignment word count. 2007-09-16 21:06:01 +00:00
skodak 70e9b59d22 MDL-11300
1/ potential sql injection through tag types - missing param type + can add new types + usually no addslashes before update of tags
2/ paging does not work at all
3/ missing param type definitions
4/ not xhtml strict compliant
5/ CSRF - missing sesskey checks
6/ UI code in tag/lib.php - should be in manage.php or other file
7/ missing localization of types - default/standard
2007-09-16 20:19:19 +00:00
stronk7 d371392a7b Fixing assignment submission visualization for wood. 2007-09-16 20:13:30 +00:00
skodak fce1ff5aa1 MDL-11297 adding new PARAM_TAG - numeric tags not allowed 2007-09-16 19:31:56 +00:00
stronk7 7a2957d3e9 Hide the metacourse dropdown menu if the course
isn't a metacourse and general XHTML compliance. MDL-9922

Merged from MOODLE_18_STABLE
2007-09-16 19:26:13 +00:00
skodak 2d7e3f9b7e fixed undefined notice 2007-09-16 18:54:11 +00:00
skodak 8e1ec6be58 MDL-11298 use textlib_get_instance() instead of new textlib() 2007-09-16 18:49:41 +00:00
skodak 4eb718d801 MDL-11048 + MDL-11297 improved tag normalisation, more security 2007-09-16 18:41:57 +00:00
stronk7 111e12615b Prevent some warning when restoring site courses... MDL-10054 MDL-10118
Merged from MOODLE_18_STABLE
2007-09-16 18:34:22 +00:00
stronk7 bac43d633c Show the roll dates option only if the backup course has a start date
(some formats like main page, social..., haven't it and rolling dates
from 0 produces crazy dates. MDL-10125

Merged from MOODLE_18_STABLE
2007-09-16 17:34:54 +00:00
skodak bcef031984 MDL-11297 adding new PARAM_TAG and PARAM_TAGLIST that are needed for blog and interest tags 2007-09-16 14:20:32 +00:00
skodak e8515774c3 MDL-11048 adding new method to textlib strtotitle() - please note that is may not be usable in all locales, it might also produce different results when mbstring available 2007-09-16 11:45:30 +00:00
skodak 1c54b2bb31 improved accessibility of user edit page - adding help icons, removing incorrect static help from interest, improving interests strings 2007-09-16 09:39:03 +00:00
skodak a0478c0a18 fixed incorrect coding style {} 2007-09-16 09:27:00 +00:00
skodak c1658cc559 fixed warning - must initialise objects properly 2007-09-16 09:25:35 +00:00
skodak e6eea4f2f4 MDL-9574 + MDL-9607 fixed undefined $user->id in personal context 2007-09-16 09:21:29 +00:00
stronk7 69f2e553e3 Fixed wrong link to log report. Shouldn't these links be in php
code instead of lang files? MDL-11281

Merged from MOODLE_18_STABLE
2007-09-16 08:30:19 +00:00
moodler d9818fbbc4 Automatic installer.php lang files by installer_builder (20070916) 2007-09-16 04:12:52 +00:00
iarenaza 59b567692d Remove additional check when dealing with hidden courses in LDAP enrolment.
The check is superfluous and uses an inexistant variable ($type) that
was removed when we switched to role based enrolment.

Fixes MDL-11098 MDL-10282 and MDL-8346.
2007-09-15 21:38:13 +00:00
skodak 8fafbc0ea3 MDL-11296 fixed incorrect detection of duplicate scales in course 2007-09-15 21:17:11 +00:00
skodak 43c137ac23 applying the same patch to advcheckbox - Fixes MDL-8627, "HTML QuickForm displays (some?) disabled elements in a non-accessible way", overrides parent::getFrozenHtml. 2007-09-15 19:43:01 +00:00
skodak e193724e38 MDL-11295 editorshortcutshelpbutton breaking xhtml strict 2007-09-15 19:36:31 +00:00
skodak 6b5c722df5 MDL-9542 new function needed for showing of final grades in Quiz + minor changes in grading public API used by modules 2007-09-15 19:24:10 +00:00
skodak 31314c1270 fixed wrong $options - this->keepdrop_options used instead 2007-09-15 13:23:28 +00:00
skodak fa1d88eb33 MDL-10277 Force password change cannot be unchecked once selected 2007-09-15 09:42:24 +00:00
skodak ce4ff1c9cc MDL-11292 fixed Cannot create child auth plugins - patch by Mark Nielsen; used inlude_once() when searching for functions/methods in files 2007-09-15 09:29:58 +00:00
nicolasconnault b159da787a MDL-11282 Using notice_yesno(), but not sure how to provide a backlink with the cancel action... 2007-09-14 19:32:50 +00:00
nicolasconnault e171963b3e MDL-11278 Implementation is complete, but grade_categories records in DB are not affected by global settings. This way, when global settings are switched back to "Do not Force", the original category settings will be in place. 2007-09-14 17:21:30 +00:00
nicolasconnault cd9e4ec472 MDL-11278 Admin settings page completed, implementation of settings in the gradebook coming up next. 2007-09-14 10:40:49 +00:00
tjhunt 83d22f7064 MDL-11271 - The closing bracket "}" can't be used in cloze question type. Now, you can excape a closing } with a backslash. Do feedback, as well as answer. Merged from MOODLE_18_STABLE. 2007-09-14 09:42:53 +00:00
tjhunt 9c61c44fc1 MDL-11271 - The closing bracket "}" can't be used in cloze question type. Now, you can excape a closing } with a backslash. Merged from MOODLE_18_STABLE. 2007-09-14 09:34:52 +00:00
tjhunt ace1bf9d8e MDL-11284 - Can't save edited questions 2007-09-14 09:33:30 +00:00
nicolasconnault 53461661ae MDL-11278 Admin settings page completed, implementation of settings in the gradebook coming up next. 2007-09-14 08:54:46 +00:00
toyomoyo 00374cc5f0 MDL-11274, hide grades in the grader report if the current grades has no viewhidden capability 2007-09-14 08:43:10 +00:00
nicolasconnault 098042baea Issue:
The number of submissions in the Group average and Course average calculations
    should be shown in brackets. (submissions) should be added after the Group average
    and Course average labels.
Solution:
    new grader report preference (Display number of grades in average cells).
2007-09-14 06:57:30 +00:00
moodler 2c7a9bd2af Fix the location of the link to the site-wide grading preferences 2007-09-14 06:51:57 +00:00
moodler 6308b91c13 Changing string for Overall average (was logged under MDL-11233 even though that's not strictly the correct bug) 2007-09-14 05:45:38 +00:00
stronk7 c926560086 Now using one cross-db solution to be able to
simulate the status boolean ins assignment
submissions. MDL-8164 & MDL-10846
2007-09-13 17:51:48 +00:00
tjhunt e8666d9abb MDL-11081 and MDL-11211 - Implement quiz_question_list_instances. The lach of this function was causing a horrible dataloss bug: MDL-11211. Fix thanks to Janne Mikkonen, refined by me. Merged from MOODLE_16_STABLE. 2007-09-13 17:29:08 +00:00
tjhunt 8472a14d71 MDL-11213 - Quiz preview attempts show up in item analysis. Fix thanks to Jean-Michel Vedrine. Merged from MOODLE_18_STABLE. 2007-09-13 16:25:00 +00:00
nicolasconnault aae94377b7 Issue:
Only students should appear in the tutor report, however
    sorting by Surname results in the tutor being included, which we don't want.
Solution:
    Confirmed as a bug and filed in tracker: http://tracker.moodle.org/browse/MDL-11233

Issue:
    Clicking on Hide Groups reveals the results for all students
    and all tutors and course staff appear. A tutor should only be able to see
    the results for their tutor group
Solution:
    Prevent tutors from ever seeing student grades from other groups: use existing capabilities
        moodle/site:accessallgroups = off AND moodle/grade:viewall = on

Issue:
    Preferences tab should not be available to users without gradereport/grader:manage capability
Solution:
    Hide the tab completely

Issue:
    Apply different style to average cells
Solution:
    Add css classes to the different average cells, and write a default style in css file.

Issue:
    The Average under group average might be better labelled Course average.
Solution:
    Rename to "Complete average"
2007-09-13 15:11:16 +00:00
nicolasconnault c421ad4b2e MDL-11233 Corrected typo in grader report lib, and added a second sort parameter for lastname and firstname sorts, to add consistency to result sets. Non-students no longer appear in the list 2007-09-13 13:44:35 +00:00
tjhunt d9935f2985 MDL-11231 - Missing "correct" tick in Close question with answer '0'. Merged from MOODLE_18_STABLE. 2007-09-13 10:47:05 +00:00
nfreear c5898fad45 MDL-11160, Cron exhausts memory on "Removing expired enrolments ..." - changing nested foreach to JOINs with while(..rs_fetch_next_record). 2007-09-13 09:13:00 +00:00
moodler 43ee1454df Added Zoomspider as allowed to enter when opentogoogle is open 2007-09-13 08:59:31 +00:00
moodler e7aa5a8800 Patch as suggested by Eloy in MDL-11237 to work around a nasty PHP bug in PHP 5.20 2007-09-13 06:42:49 +00:00
nicolasconnault 83d387c290 MDL-11238 Removed reference to $grade_grade->feedback and replaced with grade_grade_text->feedback. Also instantiated the $grade_grade object properly instead of just get_record(), so that its set_hidden() method could be accessible. 2007-09-13 04:02:55 +00:00
diml 789d27eae6 changes reindexing strategy : deletes records rather than create back table
search db model transfered to block_search. No db model needed here.
2007-09-12 21:23:55 +00:00
diml cf8ef35e5f changes reindexing strategy : deletes records rather than create back table
checkDB() and checkTableExists() in indexlib.php are obsolete
table name synced with search block install.xml table name
2007-09-12 21:22:15 +00:00
nicolasconnault b1b6ebf437 Replacing the capability gradereport/grader:manage with moodle/grade:manage 2007-09-12 15:02:06 +00:00
nfreear a98a90163e Fixes MDL-8627, "HTML QuickForm displays (some?) disabled elements in a non-accessible way", overrides parent::getFrozenHtml. 2007-09-12 11:17:35 +00:00
sam_marshall d75c6556c7 MDL-11224 Updated UFO Flash JS library from 3.20 to 3.22, preserving minor Moodle-specific change (and added comment to top about it!) 2007-09-12 10:14:12 +00:00
donal72 c824d47823 Uninitialized variable 2007-09-12 03:25:43 +00:00
martinlanghoff ff991c055a admin/cron: if $PERF->dbqueries is set, profile modules...
The cron() function of some modules can be a huge drag on the
server. Capture profiling data...
2007-09-12 02:57:58 +00:00
martinlanghoff cf1348caae PERF logging - move handling to moodle_request_shutdown()
By moving the performance profile logging to the very
end of PHP processing, we cover more pages, notably those
that don't end up with a footer or a redirect, like file
serving.

This should improve quality of our performance logs, and
help catch some piggies...
2007-09-12 02:57:26 +00:00
martinlanghoff 3446daa3da redirect() - log performance profiling info
Many heavy pages end in a redirect. Log their profiling data!

Thanks to Matt Clarkson for spotting the problem.
2007-09-12 02:57:08 +00:00
martinlanghoff 6b6eea5575 admin/modules: Avoid calling rebuild_course_cache()
rebuild_course_cache() over all courses is extremely expensive,
not suitable for interactive calling. Better to clear modinfo
and let course/view.php repopulate it as needed.

With this patch we clear out modinfo _only_ for courses affected
by the module we show/hide/delete.
2007-09-12 02:56:50 +00:00
martinlanghoff d863419245 course/index: move orphan fixups to an optimised fix_coursecategory_orphans()
Move the fixups for orphan courses to the newly minted
fix_coursecategory_orphans() -- and optimise it to take only 1 dbquery for
the common case.

If we do find lots of orphans, we issue 2 updates per orphan.

This cuts down dbqueries drastically - we used to have 2x the number of
courses in the site.
2007-09-12 02:56:36 +00:00
martinlanghoff f8ea60777c fix_course_sortorder(): fix breakage with large categories, saner error
Two improvements for fix_course_sortorder()

 - If the category has more courses than the shift range
   use a larger shift range to avoid overlapping with itself

 - If things do go wrong during the per-course sortorder updates,
   rollback and try and call ourselves with a 'safe' flag.

Still - far from perfect. Probably the global sortorder approach
is broken. The sanest way is to rework things to always join against
course_categories and order by the combined sortorders.
2007-09-12 02:56:16 +00:00
stronk7 dc6cc11a72 Annihilate one wrong use of getNameForObject() now
that we are able to detect REAL check constraints names
2007-09-11 19:39:28 +00:00
stronk7 da40b0beab And now, the unused getStandardNameForObject() is out. Back to the
exclusive getNameForObject() function, ONLY USED TO CREATE NEW
OBJECTS, NEVER TO GUESS THE NAME OF EXISTING ONES. MDL-9356
2007-09-11 19:37:13 +00:00
stronk7 3d74e77aae Now we aren't guessing check constraint names
but getting the real ones under Oracle. MDL-9356
2007-09-11 19:08:11 +00:00
stronk7 92529a70fa Now we aren't guessing check constraint names
but getting the real ones under MSSQL. MDL-9356
2007-09-11 19:07:17 +00:00
stronk7 f0dfc20124 Now we aren't guessing check constraint names
but getting the real ones under PostgreSQL. MDL-9356
2007-09-11 19:06:38 +00:00
stronk7 3e38ceb837 Added some new test to check double creation
and deletion of enums (check constrainsts). MDL-9356
2007-09-11 18:35:23 +00:00
stronk7 f090314f46 General cleanup of debugging messages.
Now change_field_enum() introspects DB and detects
if the enum existed or no, as needed. MDL-9356
2007-09-11 18:33:23 +00:00
thepurpleblob bad6ba65ae Missing a stripslashes() so TeX functions didn't work
Merged from STABLE_18
2007-09-11 14:55:34 +00:00
thepurpleblob 07caf142d7 MDL-10092:
Decode HTML entities before processing.

Merged from STABLE_18
2007-09-11 13:55:33 +00:00
jamiesensei 15822170d4 removing require that is not needed 2007-09-11 09:01:21 +00:00
jamiesensei 479cca8a1e fix to make breadcrumbs module independent 2007-09-11 08:23:00 +00:00
diml 515887c4d8 db scheme note for search engine 2007-09-11 08:09:02 +00:00
diml 0a4c172ce7 ensuring php5.0 php4.3 compatibility in cron runs 2007-09-11 08:03:40 +00:00
jgutierr25 c39e721374 Pb with autologinguest 2007-09-11 07:54:55 +00:00
nicolasconnault 6619eba40b MDL-10383 Reverting Petr's boolean cast on the array of allowed groups. It makes it impossible to get the "Group event" option in the calendar. 2007-09-11 07:29:48 +00:00
stronk7 af1192b159 Now both check_constraint_exists() and find_check_constraint_name()
are working under mysql, postgresql and mssql. 1st step of MDL-9356
2007-09-10 22:42:04 +00:00
stronk7 faa1a939f0 Now Oracle is also able to detect its check constraints per field. 2007-09-10 22:30:26 +00:00
stronk7 7abc6e09c0 Adding two new functions to search for check constraints from ddl stuff.
Unused and unfinished for now. I need them in CVS.
2007-09-10 22:22:23 +00:00
stronk7 a347e5e439 Preparing getCheckConstraintsFromDB() to retrieve the check constraint
defined for one field. Not used yet but I need it in CVS now.
2007-09-10 22:00:24 +00:00
diml 5c8f580358 Fixes wildcard exception occurence on deleting resources. 2007-09-10 19:48:31 +00:00
diml 1b4bb51edb add new itemid field for indexing subitems. 2007-09-10 17:26:10 +00:00
diml 7d0b446a6c let lethal exceptions from Lucene passthrough and the cron script finish normally 2007-09-10 17:25:35 +00:00
stronk7 15999a9351 Allow the upgrade_plugins() function to autodetect if the header
has been printed, so it runs in "embedded" mode. Useful to run
submodule installation/upgrade in the same page than the parent. MDL-11183
2007-09-10 17:13:12 +00:00
moodler 8c0aa4fd62 Removed unnecessary WHERE statement in SQL MDL-11146 2007-09-10 14:55:32 +00:00
jamiesensei 15b83581ce test for has_capability before displaying choosecoursefile control as if user does not have permission then control is useless. 2007-09-10 13:28:18 +00:00
tjhunt 5b875ebf82 Take out duplicate $Id$ CVS tags. 2007-09-10 11:07:39 +00:00
moodler 1c0ccfd6bd Fixed notice when using textlib 2007-09-10 07:02:52 +00:00
nicolasconnault 2de7b82759 MDL-10723 Another file that escaped the update 2007-09-10 04:58:09 +00:00
stronk7 4215e41ecb Extending getCheckConstraintsFromDB() to support a new parameter
used to filter what field in the table we want to know
its check constraints
2007-09-09 16:28:16 +00:00
stronk7 4cc68ea184 Now mysql returns getCheckConstraintsFromDB() in a compatible
way (array of name & description objects) with the check
constraints found in the table
2007-09-09 16:09:00 +00:00
stronk7 3ab03633c3 Fix excess of slashing in course names when restoring. MDL-11151
Merged from MOODLE_18_MERGED
2007-09-08 22:58:50 +00:00
stronk7 205847badf Fix link in email to new admin report. MDL-7850
Merged from MOODLE_18_STABLE
2007-09-08 22:49:13 +00:00
stronk7 9cd54788d6 Adding some strings for the new backups report. MDL-7850
Merged from MOODLE_18_STABLE
2007-09-08 22:45:45 +00:00
stronk7 73d753c79d Redirecting old backup log to the new one. MDL-7850
Merged from MOODLE_18_STABLE
2007-09-08 22:41:27 +00:00
stronk7 834479c28c Adding new report to display scheduled backup logs. MDL-7850
Merged from MOODLE_18_STABLE
2007-09-08 22:36:29 +00:00
skodak ffc536af8e MDL-7380 converted various places to use new groups API 2007-09-08 20:53:05 +00:00
moodler 4084eb45e2 Automatic installer.php lang files by installer_builder (20070908) 2007-09-08 03:57:39 +00:00
diml b7a2cc89dd add postgress model for search 2007-09-07 18:56:17 +00:00
diml 12262b41ec fixes docdate bad default value format. Was '0', should have been 0. 2007-09-07 18:54:47 +00:00
diml 07c0c46fac enhance cron response when disabled. 2007-09-07 18:52:00 +00:00
diml 1bf5043ce9 fixes bad path in checkDB() 2007-09-07 18:51:16 +00:00
jmg324 f359b6121c MDL-11159 adding a name to block config form for javascript support 2007-09-07 14:49:30 +00:00
thepurpleblob d93a90dcfd MDL-11147:
Debug screen now supports LaTeX/Ghostscript renderer.

Merged from STABLE_18
2007-09-07 14:24:18 +00:00
nfreear c2136cde22 MDL-11158, "& needs fix to &amp; in ... for 'en' and other language packs" 2007-09-07 13:53:28 +00:00
skodak d9bf198292 MDL-10939 converting news_item block too 2007-09-07 09:43:14 +00:00
jamiesensei d0508099c6 oops. Stray 'as' used for table name alias in SQL. 2007-09-07 08:01:08 +00:00
moodler 5477ab7422 Automatic installer.php lang files by installer_builder (20070907) 2007-09-07 04:38:10 +00:00
toyomoyo 694d100512 merged fix for MDL-11111 number of search results is not always correct in the role assignment view 2007-09-07 03:16:25 +00:00
pichetp 7ba1111637 Correcting a little error: datesetitem = array(); instead of datasetitem = array();
line +-550 $question->dataset[$datasetname]->datasetitem = array();
2007-09-07 02:38:02 +00:00
moodler d53a428683 Added string needed for RTL 2007-09-07 02:20:50 +00:00
stronk7 31eeb488e5 Bump. Dropping one UNIQUE index over NULLable columns. It isn't
cross-db at all. So we make the composite index not unique
to get speed benefits but the unique constraint is
controlled programatically.
2007-09-06 18:31:39 +00:00
stronk7 4a039315d7 Dropping one UNIQUE index over NULLable columns. It isn't
cross-db at all. So we make the composite index not unique
to get speed benefits but the unique constraint is
controlled programatically.
2007-09-06 18:31:13 +00:00
nfreear 77d574a8c5 SQL: Added 't.rawname' to GROUP BY clause following warning 2007-09-06 11:30:53 +00:00
skodak b2bc96d10b MDL-7380 added new groups API functions for use in course related pages (very similar to functions for activities) + fixed grade code to use these new functions 2007-09-06 10:19:24 +00:00
toyomoyo 8005d470b9 merged fix for MDL-11064, users can't see teacher's profile 2007-09-06 07:09:36 +00:00
toyomoyo 15e3eb6053 merged fix for MDL-9613, spliting the queries into 2 for site/course block respectively 2007-09-06 06:25:40 +00:00
toyomoyo dae9e82d88 MDL-11128, creating grade items after restoring from a pre 1.9 backup 2007-09-06 05:04:55 +00:00
mattc-catalyst 263017bbdd MDL-10888: groupings - mod/workshop - add grouping support 2007-09-06 01:35:37 +00:00
stronk7 f12d645a8d Bump backup version! 2007-09-05 23:12:31 +00:00
stronk7 ce1b964592 Fixed bug commented in my previous commit. Was caused by the
commit itselfl. My fault. (blush)
2007-09-05 23:08:52 +00:00
stronk7 a2cdd7645e Now restoring groups is cross-db (the detection of existing groups)
(NOTE: There is one pending bug about restoring old groups to 1.9.
       Commented to Petr. Added here because I've to go NOW!)

Merged from MOODLE_18_STABLE
2007-09-05 19:19:34 +00:00
skodak c2efb50142 MDL-11130 added aggregation inside all subcategories + added graded/all aggregation option 2007-09-05 19:15:21 +00:00
stronk7 e9ecf33932 Repeated fields aren't necessary at all since Moodle 1.7
and, in fact, they throw error if using limits! MDL-9592

Merged from MOODLE_18_STABLE
2007-09-05 15:46:16 +00:00
nfreear f8b9ac7418 MDL-11134, Accessibility: move help link into <label>, so it won't be ignored in JAWS forms mode. 2007-09-05 14:34:33 +00:00
moodler d61d8c09ce Removed hardcoded string 'course grades category' 2007-09-05 09:17:19 +00:00
toyomoyo 6ef84f6f48 some fixes for user report 2007-09-05 04:39:07 +00:00
stronk7 16a208f9e6 Now the Oracle XMLDB generator detects changes of precision
in NUMBERs without decimals (virtually INTs) and is able to perform the
change of precision properly

Merged from MOODLE_18_STABLE
2007-09-04 23:18:41 +00:00
stronk7 367b80f5ee Added one new test to change precission of a numeric field
to a smaller one. It breaks Oracle in its current status.

Merged from MOODLE_18_STABLE
2007-09-04 22:13:30 +00:00
skodak eb8599199e MDL-11069 reimplemented grade export flag handling 2007-09-04 21:56:30 +00:00
stronk7 6db368e117 PostgreSQL doesn't like aliases in update statements.
Changing to the whole name as prefix.
2007-09-04 17:51:51 +00:00
jamiesensei 5d5a477f1a removing redundant string fetches 2007-09-04 13:28:50 +00:00
jamiesensei 6943c3b9ca removed stray echo statement 2007-09-04 12:42:03 +00:00
jamiesensei 9fc3100f27 fix for MDL-11106 Images not showing up in shared categories 2007-09-04 11:55:10 +00:00
moodler 277e548de2 Standard RSS icon from MDL-4732 2007-09-04 09:23:21 +00:00
moodler b6c2b618eb DOn't use AJAX if it isn't enabled 2007-09-04 07:28:14 +00:00
moodler edea42f96a Don't show message popups for guests 2007-09-04 06:47:02 +00:00
moodler f4d24ff5c3 Updating grades will update the grade_item too 2007-09-04 05:56:19 +00:00
moodler fb81abe154 1) Refresh grade item when grades are saved (I was getting assignments with no names in the gradebook)
2) Tidy up how messages are shown after quick grading
2007-09-04 05:50:04 +00:00
jamiesensei 3a4a9233ce fix for some problems with page params 2007-09-04 05:44:14 +00:00
moodler d3d1fe07e4 Fixed logic 2007-09-04 02:48:04 +00:00
stronk7 57da8fd51a Global change in the way to calculate widths and heights to
render the IMS iframe properly. Should be working ok both under
normal and rounded-corner themes and under FF, Safari and IE
2007-09-03 23:25:35 +00:00
stronk7 8011f7c575 Improved ims styles + working under rounded-corner themes. 2007-09-03 23:20:51 +00:00
stronk7 060323a0dd Clossing the content div round corners properly. 2007-09-03 19:41:55 +00:00
stronk7 fe1d2ce09d Now the "content" rounded corners are "ID-entificable". Needed to
calculate some heights in the IMS resource type. Note it's only
the "content" id. All the rest of rounded boxes haven't IDs at all.
2007-09-03 19:36:46 +00:00
stronk7 e62148d600 Adding one new optional parameter to custom_corner functions, used to
apply ids to all the divs used to render corners. Defaults to null, so
those ids won't be added if unespecified.
2007-09-03 18:57:12 +00:00
jamiesensei 1672b5462f removing qcreate directory that I accidentally committed to HEAD when trying to commit changes to the NEWMODULE template. 2007-09-03 13:09:04 +00:00
jamiesensei 594019f793 bit more detail for what needs renaming 2007-09-03 13:03:20 +00:00
jamiesensei 0d6e8291a0 MDL-11108 some PHP notices on upgrade of sites to 1.9 where there are no question categories set up 2007-09-03 11:51:25 +00:00
poltawski 325744cb14 MDL-9851 - RSS block links previously used to open in new window. Restoring this
behaviour. Had to tweak the cleaning to ensure the JS hack for XHTML complaint new
window gets through. Merged from MOODLE_18_STABLE
2007-09-03 10:26:44 +00:00
moodler 3a81da563b Blog entries publish state now defaults to site if possible, to avoid all those drafts! (yuk) 2007-09-03 09:13:56 +00:00
moodler d66790b782 Better links for managing tags 2007-09-03 08:56:12 +00:00
moodler b95e4f142f Don't show any links at all to guest users 2007-09-03 08:44:05 +00:00
moodler cb1e9c7463 Don't allow guest users to follow tag links 2007-09-03 08:39:34 +00:00
moodler 277fe19dc1 Don't let guests ever be edited 2007-09-03 08:36:31 +00:00
moodler 62e3b9d833 MIssing string added 2007-09-03 08:26:17 +00:00
moodler f458e359ab Fixed deletion of tags 2007-09-03 08:24:18 +00:00
moodler 5b1059bb9f Better solution for MDLSITE-152 2007-09-03 07:57:56 +00:00
moodler acc7a2fabe FIx the links that were removed by format_string in 1.8 MDLSITE-152 2007-09-03 07:55:28 +00:00
moodler f389ceff2a Don't try to use YUI when AJAX is not enabled 2007-09-03 06:15:58 +00:00
jamiesensei 35241c761a MDL-10952 update help files for new question code 2007-09-03 05:30:38 +00:00
moodler d3d0e9a43e Fix a string 2007-09-03 02:56:07 +00:00
moodler 96fbb0daee Fixed some missing strings 2007-09-03 02:55:08 +00:00
stronk7 8d4d08a772 Better resizing under all browsers (more accurate) 2007-09-02 23:07:27 +00:00
stronk7 10edb2a075 Now the customcorners (T/F) flag is passed to the
resizeiframe() script. Next-step: perform some
extra calculations there to resize the iframe
properly under customcorners.
2007-09-02 12:14:08 +00:00
stronk7 4b82ca47e8 Avoid notice... 2007-09-02 12:05:17 +00:00
stronk7 3d20a60eca Reverted (to save space) and added customcorners support. 2007-09-02 11:52:12 +00:00
stronk7 95f35a3db1 Using print_footer() again in IMS display.
(cannot rely anymore on harcoded footer,
due to custom_corners themes).
2007-09-02 11:33:48 +00:00
stronk7 fe116110ab Now, the repository is able to set the resource->name if
it haven't been manuall defined. Part of MDL-10878.

Merged from MOODLE_18_STABLE
2007-09-02 10:51:38 +00:00
stronk7 dfd535fac9 Now, under MySQL, a check of wrongly signed ints is also performed. MDL-11038 2007-08-31 23:44:37 +00:00
stronk7 5a298d3ad2 Added one new string to explain the signed ints hunting under MySQL. MDL-11038 2007-08-31 23:43:20 +00:00
skodak 9c8d38fa97 MDL-11092 events are not used for changed raw grades anymore + minor cleanup in handling of raw grades (now used only for modules or other external plugins that produce grades) 2007-08-31 22:42:05 +00:00
stronk7 abd3025272 Fix a bunch of SIGNED fileds that should be UNSIGNED. Credit goes to Petr.
Part of MDL-11038
2007-08-31 19:27:04 +00:00
urs_hunkler 66e294019e merged from 1.8 - corrected right column - had id "left-column" 2007-08-31 19:05:26 +00:00
skodak caffc55a84 MDL-11082 big refactoring in grade export - export tracking and grade formatting still not finished 2007-08-31 18:42:50 +00:00
nicolasconnault 76ca1ff134 MDL-11075 Now saving to temp file, then outputting using filelib's readfile_chunked() method. Also cleaned up whitespace in filelib.php (blame vim!). 2007-08-31 13:54:13 +00:00
skodak f4d30b222b MDL-11082 Improved groups upgrade performance 1.8x -> 1.9; thanks Eloy for telling me how to do it correctly with SQL ;-) 2007-08-31 12:43:15 +00:00
skodak 1e12457560 adding current groupid to grade_export class - soon to be used in plugins 2007-08-31 12:22:58 +00:00
jgutierr25 5128f0b3fa problem with autologinguest 2007-08-31 09:49:15 +00:00
toyomoyo fc69d5577a MDL-10933, only 1 manual grade item can be added 2007-08-31 08:41:04 +00:00
toyomoyo 294a176fc7 fixing a typo 2007-08-31 08:21:16 +00:00
skodak 0f5660f721 MDL-11069 new graded_users_iterator - should later improve memory use + performance 2007-08-31 07:33:45 +00:00
nicolasconnault 0e2d708efc MDL-11034 Implemented the global enablepublishing and refactored the handling of userkey for each export plugin. Also added a dump.php file in each plugin directory, although this could easily be refactored into 1 file in the parent folder, pointing to each plugin's export.php file for output differences. 2007-08-31 05:55:30 +00:00
toyomoyo 9133f939e8 rename fetch_entries() to blog_fetch_entries() 2007-08-31 05:46:33 +00:00
toyomoyo 636dbc33a0 fixing a typo, adding a missing string in query 2007-08-31 05:38:46 +00:00
moodler 1aebe71e02 Removed a config.php we don't need, and some bad character at the top 2007-08-31 05:33:00 +00:00
moodler 9f26cce6da MOre cleanups for notes interface 2007-08-31 05:22:44 +00:00
toyomoyo ebbf8c16c6 tag instance table could be used for other types, itmetype needs to be specified in blog fetch() code 2007-08-31 05:17:35 +00:00
moodler cdcaa9f2d3 This block can be anywhere 2007-08-31 04:58:03 +00:00
moodler 807188ebaa More tidying up of notes appearance 2007-08-31 04:52:24 +00:00
moodler e0c9a62d54 Cleaned up notes some more 2007-08-31 04:42:07 +00:00
moodler 7e7f6fda3b Big cleanups of the code for neatness and performance 2007-08-31 04:35:42 +00:00
nicolasconnault e9fe953ff4 MDL-11034 Added the new CFG setting: enablepublishing 2007-08-31 04:35:06 +00:00
moodler feb79469c8 Fixed up some spacing issues 2007-08-31 04:06:22 +00:00
moodler 83e70cc299 Some cleaning up of the notes interface and conversion from DOS to unix 2007-08-31 04:05:11 +00:00
moodler 3a1ac34002 Fixed some notices on some custom pages 2007-08-31 03:45:59 +00:00
moodler a84902827e Fix the link CSS I just added 2007-08-31 02:47:48 +00:00
moodler 6cbf4bd4fc Tidying up to make headings more consistent across boxes 2007-08-31 02:44:57 +00:00
moodler 2773ced471 Tidied up tags display a bit 2007-08-31 02:40:44 +00:00
moodler 44842cc6e2 Added link to see all related blogs (on tags page) 2007-08-31 02:29:10 +00:00
moodler 1f813a5db4 Fixed the tag links on blog posts to go back to the main tags page 2007-08-31 02:25:29 +00:00
toyomoyo 81c07f5ebf admins should see all tags 2007-08-31 02:17:42 +00:00
toyomoyo 84895c5321 fixing timewithin login 2007-08-31 02:06:24 +00:00
mattc-catalyst 14237364b0 MDL-10888: groupings - mod/forum - bugfix, missing $currentgroup 2007-08-30 21:01:57 +00:00
koenr ee92adc3ff and now with content of version 1.2 2007-08-30 20:19:58 +00:00
luizlaydner 9ee998a5ff - now using local version of YUI, not yahoo?s server 2007-08-30 18:09:58 +00:00
luizlaydner 11492da340 - small css fix 2007-08-30 18:09:01 +00:00
luizlaydner b13d130132 - small fix 2007-08-30 17:56:58 +00:00
luizlaydner 2a484a6eff - fixing some issues of MDL-11048 2007-08-30 17:26:31 +00:00
luizlaydner ab86d9c772 - fixing some issues of MDL-11048 2007-08-30 17:14:24 +00:00
moodler f88b7a4382 Fixed a bug checking context in groups 2007-08-30 16:18:35 +00:00
moodler 56c2ef2533 Fixed obvious typo causing notice 2007-08-30 16:09:13 +00:00
skodak 11745964a5 MDL-11069 grade export refactoring + removing internally calculated totals (we have already various totals in categories and calculations can be used too for that) 2007-08-30 15:03:51 +00:00
moodler 8a275c7242 Fixed missing include hmm 2007-08-30 09:59:59 +00:00
moodler 01d0a97128 Clean up code a bit and don't show entries when there are none 2007-08-30 09:54:12 +00:00
moodler 53bde3e1be Make blog links pretty 2007-08-30 09:49:50 +00:00
toyomoyo 93bbdd5031 making blogs respect global tags flag 2007-08-30 09:13:36 +00:00
toyomoyo 061f14b275 fixing counter for (name filters) manage tag page, adding last 10 blogs to tag/index.php 2007-08-30 08:37:53 +00:00
skodak 0bfbab47e6 minor refactoring in grade export lib - part 2 2007-08-30 08:26:04 +00:00
skodak 350770f466 minor refactoring in grade export lib 2007-08-30 08:24:07 +00:00
skodak c901b7a652 fixing regressions in grade export 2007-08-30 08:19:44 +00:00
nicolasconnault 74af2ea5ef MDL-10984 Adding publishing switch to txt and ods export formats 2007-08-30 07:44:42 +00:00
nicolasconnault f57bdb559d MDL-10984 more language strings 2007-08-30 07:22:31 +00:00
moodler 91e7ad594b Tidy up the link display page a bit 2007-08-30 07:12:03 +00:00
moodler 7b0d5cd551 Merged fixes for MDL-7425 from 1.8 stable 2007-08-30 06:01:57 +00:00
toyomoyo 79081e871b modifying manage tags page to print user names, allowing modifying of tag types, minor css 2007-08-30 05:34:31 +00:00
toyomoyo a41e687f1e removing duplicate, thanks mits 2007-08-30 02:23:36 +00:00
toyomoyo 1c63e17429 putting a link on admin menu to manage tags page. Fixing some upper/lower cases 2007-08-30 02:11:55 +00:00
toyomoyo d92e2906cc MDL-11054, removing dead links 2007-08-30 01:45:38 +00:00
skodak f6c80923bf MDL-10921 LDAP Auth to Active Directory requires LDAP_OPT_REFERRALS option set 2007-08-29 20:42:41 +00:00
skodak 2d675a2331 MDL-11023 silence warnings in PHP 4.x - the last param was added in PHP 5.0.2; merged from MODOLE_18_STABLE 2007-08-29 20:20:10 +00:00
koenr edb18a0db9 reverting partly MDL-10883 2007-08-29 20:20:00 +00:00
skodak dd383bd9a7 MDL-11058 changeme password not always required to be changed 2007-08-29 18:19:04 +00:00
skodak e436033fb8 MDL-11026 private user key - implement ip restrictions 2007-08-29 18:06:18 +00:00
skodak ca82569b5b grade export form refactoring 2007-08-29 16:47:16 +00:00
stronk7 6b0caaee81 Now module confguration (records from config) is deleted
when a module is deleted. MDL-11056
2007-08-29 15:14:18 +00:00
stronk7 8d7fb1bacd And we don't need to call assignment_upgrade_submodules()
from the update scripts any more. The standard plugin
architecture for modules support that. MDL-11029
2007-08-29 14:50:41 +00:00
stronk7 e9d46b8187 Now assignment submodules are installed/upgraded properly
(using the standard plugins architecture) MDL-11029
2007-08-29 14:42:39 +00:00
stronk7 c617b6f3b6 Changed the online submodule to work under the new install/upgrade code 2007-08-29 14:38:34 +00:00
skodak 53ed410ad3 MDL-11053 Course object not escaped before insert - patch by Aaron C Spike 2007-08-29 13:53:11 +00:00
skodak d93d67b7ac MDL-11051 grade export - do not use quickforms elements directly 2007-08-29 13:00:10 +00:00
skodak a5bc4e6ef5 MDL-11050 grade export must use formslib properly - no data_submitted()! 2007-08-29 12:38:23 +00:00
nicolasconnault 0f78c4de3d MDL-11028 GUI complete, language strings complete, user key creation done. Validation is not yet coded. 2007-08-29 11:43:48 +00:00
stronk7 b16393cb07 Adding the $Id tag to some scripts to allow better changes detection.
(soory, I deleted a few trailing spaces within comments...)
2007-08-29 10:48:44 +00:00
stronk7 d6125c4ad5 By default, when creating new fields... they are unsigned. 2007-08-29 10:24:36 +00:00
toyomoyo f8ae1f86c5 MDL-10963, group average code broken, count_ungraded is ignoring groups altogether. 2007-08-29 04:05:56 +00:00
jamiesensei 0647e82b57 check for viewall / viewmine permission for each question in a category selected for export. 2007-08-29 03:04:01 +00:00
moodler 0495bd9124 Old fixes for printing tag cloud I didn't checkin 2007-08-29 02:00:42 +00:00
stronk7 1d45238e36 Double "yours", my mistake. :-P 2007-08-28 23:34:24 +00:00
stronk7 61829e2c5f fixed one copied/pasted string 2007-08-28 23:32:49 +00:00
stronk7 498a550d01 Adding one utility to detect and propose DB changes in
order to have all the int(10) fields properly defined. MDL-11038

Test, test, test!!!
2007-08-28 23:03:40 +00:00
stronk7 fc40517570 Added some strings for the new Check Bigints utility. MDL-11038
(and reviewed a few more encouraging to backup before proceed)
2007-08-28 22:57:43 +00:00
skodak d575afb836 MDL-11027 user key manager for grade exports - adding forgotten ownership test 2007-08-28 21:57:34 +00:00
skodak eed8e3054b MDL-11027 user key manager for grade exports 2007-08-28 21:54:18 +00:00
skodak d515beab01 MDL-10320 assignment types that are not installed are not restored anymore + fixed warning when no attempts present 2007-08-28 21:06:01 +00:00
stronk7 4149e289b6 Fix mnet_hosts->applicationid (from 1 to 10). MDL-11042 2007-08-28 18:27:00 +00:00
skodak d374613bce MDL-11037 restore status ignored and reset in several places in restore code 2007-08-28 16:30:39 +00:00
stronk7 8baf4a77d0 Now Moodle >= 1.9 requires PostgreSQL >= 8.0. MDL-11033
Merged from MOODLE_18_STABLE
2007-08-28 15:35:48 +00:00
nicolasconnault 29e959a581 MDL-9005 Fixed this and another multilang issue (module name in preview didn't filter multilang tags either). 2007-08-28 13:21:15 +00:00
moodler d726e8c948 Fixed a mistaken checkin (never copy the CVS directory!) :-) 2007-08-28 08:48:00 +00:00
moodler d797e50f78 New tags block 2007-08-28 08:43:11 +00:00
toyomoyo 474373aa96 MDL-11017, changed blog edit page to use modified get_item_tags() 2007-08-28 08:32:38 +00:00
skodak 61c6071f40 MDL-10984 support for user private keys when accession scripts without normal sessions 2007-08-28 08:29:40 +00:00
toyomoyo a683deeca6 merged fix for MDL-10818, do not display graph if user has no permission 2007-08-28 07:04:41 +00:00
moodler beb67c0526 New string for tags block 2007-08-28 06:38:39 +00:00
moodler 42cc453778 Added new tags block for all tags 2007-08-28 06:38:21 +00:00
moodler 342c60229d MOre tags in search box 2007-08-28 06:14:38 +00:00
moodler ea6401875e Don't show block table layout when there are no blocks 2007-08-28 06:11:23 +00:00
moodler 5099a71166 Tag cloud is now definitely sorted by rawname MDL-10982 2007-08-28 06:07:50 +00:00
moodler 41d4eea80f Automatic installer.php lang files by installer_builder (20070828) 2007-08-28 05:46:41 +00:00
luizlaydner 62066cdd27 - fixed tag cloud 2007-08-28 05:42:21 +00:00
luizlaydner 4d4dac8113 - fixed tag cloud 2007-08-28 05:25:09 +00:00
toyomoyo b004316052 removing some files 2007-08-28 04:58:36 +00:00
moodler 704ba13c1f Undoing this navigation change AGAIN 2007-08-28 04:53:35 +00:00
toyomoyo c4956945c1 MDL-11016, MDL-11015 improvements to the tag, tag_instance and tag_correlation tables 2007-08-28 04:11:58 +00:00
jamiesensei 522b89d1aa allow selection of category in any context when adding a question in question_form 2007-08-28 03:36:17 +00:00
mattc-catalyst d8c9d8a150 MDL-10888: - groupings - mod/scorm - updated to support groupings 2007-08-28 02:54:37 +00:00
toyomoyo dc155ceb57 MDL-10181, adding subtracting mechanism for bulk user opertaions, and add some help 2007-08-28 02:23:10 +00:00
mattc-catalyst 07aa205712 MDL-10888: groupings - mod/survey - updated to use groupings 2007-08-28 00:12:01 +00:00
mattc-catalyst 0ffa2c950e MDL-10888: groupings - mod/lesson - updated to support groupings 2007-08-27 23:05:42 +00:00
mattc-catalyst 6d5b7706da MDL-10888: groupings - mod/choice - updated to support groupings 2007-08-27 21:52:35 +00:00
nicolasconnault 9837bd1d2c MDL-7574 Applying Matthew Davidson's patch. 2007-08-27 16:59:04 +00:00
stronk7 ec2e146dc5 New tables must have the id unsigned.
Merged from MOODLE_18_STABLE
2007-08-27 14:43:30 +00:00
nicolasconnault 2dcccb0fad MDL-10918 Applying Aaron's patch. 2007-08-27 14:01:41 +00:00
stronk7 b7f90666e5 Delete some html and body tags... 2007-08-27 13:56:40 +00:00
nicolasconnault 97599c0a38 MDL-10984 Added 3 elements to the Grade Export GUIs, and a stub for action to be taken when the 'publish' checkbox is ticked (for xml export only ATM). 2007-08-27 12:23:50 +00:00
moodler 4c43863561 Display tags as raw names 2007-08-27 09:51:27 +00:00
moodler 432038e084 The home page is the only exception to the rule of navigation 2007-08-27 09:40:14 +00:00
toyomoyo 833dcdea9f blog should print rawname instead of name of the tag 2007-08-27 09:21:31 +00:00
toyomoyo 0e80ffb293 dropping tables in xml 2007-08-27 09:14:19 +00:00
toyomoyo bd1f4559f7 MDL-10956, convert blogs to use the same tags (and convert old tags) 2007-08-27 08:46:00 +00:00
toyomoyo d526725b8d MDL-10181, help files should not be modified, a new file has been created 2007-08-27 07:24:35 +00:00
moodler e0935231f9 Automatic installer.php lang files by installer_builder (20070827) 2007-08-27 05:59:04 +00:00
moodler 0ae31f38fb Removed unnecessary BR 2007-08-27 05:17:11 +00:00
moodler c77f9f07db Don't include AJAX libraries is AJAX is off across the site 2007-08-27 04:36:09 +00:00
toyomoyo a4232e9500 adding timemodified to tag_instance table (to get blog blocks working) 2007-08-27 04:21:59 +00:00
mattc-catalyst 5ada3c8e3a MDL-10888: groupings - mod/quiz - add groupings support 2007-08-27 03:56:39 +00:00
mattc-catalyst 38553f9754 MDL-10888: groupings - fix SQL error 2007-08-27 03:54:59 +00:00
moodler 3aa3cf3d21 Some tweaks to the appearance of messaging window 2007-08-27 03:22:16 +00:00
mattc-catalyst a12e11c13a MDL-10888: groupings - mod/chat - update to work with groupings 2007-08-27 02:28:35 +00:00
mattc-catalyst ba3dc7b4a8 MDL-10888: groupings - mod/assignment - updated to support groupings 2007-08-26 23:50:08 +00:00
mattc-catalyst e683967738 MDL-10888: groupings - added function to get all grouping members, cleaned up some notices 2007-08-26 23:47:24 +00:00
skodak dda6370707 MDL-10635 fixed incorrect capability value check in has_capability_including_child_contetxt() 2007-08-26 16:55:46 +00:00
skodak 5cfbec3f01 MDL-10635 using the same checks for visibility of edit button on the frontpage 2007-08-26 16:03:09 +00:00
skodak b286b86097 MDL-11004 missing capability check in main manu block on the frontpage 2007-08-26 15:58:48 +00:00
skodak 97928ddf00 MDL-11003 adding of first activity on frontpage does not work - incorrect section 2007-08-26 15:30:51 +00:00
skodak b571c6b37b MDL-10995 eliminated some get course record calls - reused $COURSE instead 2007-08-26 08:24:50 +00:00
skodak 47ba005d0d MDL-10995 course parents cache size now limited 2007-08-26 07:58:20 +00:00
skodak 273eb2f5aa MDL-10999 Cannot Insert or Edit a Label 2007-08-26 07:44:14 +00:00
moodler 68d711f47f Fixed one more string MDL-10989 2007-08-26 05:51:21 +00:00
moodler 5464c36277 Fixes for grade plugincapability names MDL-10989 2007-08-26 05:49:59 +00:00
moodler 3ab8ee6e9b New strings for grade stuff MDL-10989 2007-08-26 05:48:24 +00:00
moodler 11db59da04 Automatic installer.php lang files by installer_builder (20070826) 2007-08-26 05:44:41 +00:00
skodak 3bf618ce0d MDL-10995 implemented caching of course and category parents - eliminates substantial number of db queries - mostly during login and on course page 2007-08-25 19:25:17 +00:00
skodak 5785266f9e MDL-10995 removing previous patch; testing a better one just now 2007-08-25 14:35:54 +00:00
skodak 8496a9c911 MDL-10995 improved capability_search():
* eliminated fetching of course - $COURSE used if id matches
* parent category structure is cached in static array
2007-08-25 12:22:15 +00:00
skodak e6260a456b MDL-10635 improved performance of update_course_icon() and friends; fixed parameter of iseditting() - removed $userid which was not used and did not make much sense there anyway 2007-08-25 11:28:37 +00:00
moodler 46e64c68f6 Automatic installer.php lang files by installer_builder (20070825) 2007-08-25 04:04:44 +00:00
gbateson c8e1555d63 fixed results not being because of commented out "interceptFeedback" (probably left over from debugging) 2007-08-25 01:54:30 +00:00
luizlaydner 3a597ace9c - tag names can be altered now in tags management page 2007-08-24 17:28:54 +00:00
nicolasconnault 54c0f82b1d MDL-10970 Reverted changes 2007-08-24 12:45:16 +00:00
moodler 47bdda9db7 Need some dimmed styles 2007-08-24 08:24:01 +00:00
toyomoyo 3c334a7a81 hide hidden grades from users with no capability in user report 2007-08-24 07:14:23 +00:00
moodler c3bd9e9553 Fixed home page navigation 2007-08-24 06:56:03 +00:00
nicolasconnault 3565ff92e4 MDL-10970 Someone was using
$locations = array('location1');
$locations += array('location2', 'location3', 'location4');

to save the hassle of doing one $locations[] = 'location1'; for each location.

But += doesn't add any entry if the key of the new array already exists in the original array. So, using my example, the resulting array would be:

$locations: array('location1', 'location3', 'location4');
2007-08-24 06:01:15 +00:00
moodler 658d357c61 Automatic installer.php lang files by installer_builder (20070824) 2007-08-24 05:52:46 +00:00
toyomoyo b01d6b4cfa rounding to the correct decimal places 2007-08-24 05:40:28 +00:00
toyomoyo 3e6e529fa4 MDL-10911, setting tag:create and tag:edit to allow for user role and admin role 2007-08-24 05:39:37 +00:00
toyomoyo 4c8d9481df display a grade item's category 2007-08-24 05:02:51 +00:00
toyomoyo 157ed1d1e5 links gradeitems to activities 2007-08-24 04:55:54 +00:00
moodler 33bd434d07 FIxed some XHTML bugs 2007-08-24 04:26:19 +00:00
nicolasconnault 364fffda3b MDL-10723 Removed all uses of print_navigation() throughout moodle, the function call is now entirely deprecated. 2007-08-24 04:22:30 +00:00
moodler 3c883fcb72 Latest tags 2007-08-24 04:03:47 +00:00
moodler 3a59bfd1e0 Moved cache directory for flickr and youtube stuff 2007-08-24 03:44:31 +00:00
moodler 1acd661d07 Committing Luiz's code for MDL-10968 to add ordering for the tags 2007-08-24 03:20:12 +00:00
moodler dd8f4910ed Hide role assign button from pinned blocks (always) MDL-9723 2007-08-24 02:17:28 +00:00
mattc-catalyst e0bc99e4db MDL-10888: groupings - added some caching of repetative queries 2007-08-23 22:18:53 +00:00
nicolasconnault 74df435726 MDL-10969 2007-08-23 18:01:27 +00:00
nicolasconnault ba7472ccdf MDL-10910 Corrected two errors committed while fixing MDL-10870 2007-08-23 15:08:14 +00:00
nicolasconnault d02240f302 MDL-10870 A few more files with old style navigation strings. 2007-08-23 14:58:15 +00:00
mchurch 00472a2235 Moving get $cm outside of the 'forum_enabletimedposts' condition as it is needed even if this isn't set. 2007-08-23 14:25:42 +00:00
moodler 68da9722db Merged new mime-types and icons for Microsoft files MDL-9940 2007-08-23 06:50:37 +00:00
moodler 3be1eb5238 Merged rss fix from 1.8 MDL-10960 2007-08-23 06:14:26 +00:00
moodler c24993cd3c Automatic installer.php lang files by installer_builder (20070823) 2007-08-23 05:53:25 +00:00
moodler 6cf890e36b Remove timelimits from rebuild_course_cache() MDL-10954 (merged from 1.8) 2007-08-23 05:46:07 +00:00
moodler 4ae6d1ed41 untick teachers by default, merged from 1.8 MDL-10946 2007-08-23 05:16:16 +00:00
mattc-catalyst 27978302ad MDL-10888: groupings - mod/wiki - add support for groupings, use new groups functions 2007-08-23 04:56:39 +00:00
koenr c8614ed9e0 MDL-10883 - removing 3th party modules strings and never used strings 2007-08-22 20:42:18 +00:00
koenr e60b75dbd5 MDL-10883 - removing 3th party modules strings and never used strings 2007-08-22 20:32:53 +00:00
skodak 3d616aa07e MDL-10922 relative paths to images in installer 2007-08-22 20:22:22 +00:00
skodak 3a233b85c5 MDL-10947 https was replaced with httpss when wwwroot already is https credit goes to Tobias Marx 2007-08-22 19:36:24 +00:00
skodak c331cf23c5 MDL-10945 fixed block capability checks in switch role mode 2007-08-22 19:20:20 +00:00
moodler 57a260d9a5 New key MDL-10953 2007-08-22 16:40:41 +00:00
poltawski 25a7d98066 MDL-10573 - moodle/block:view wasn't working with switch roles or block_list class 2007-08-22 10:35:28 +00:00
toyomoyo 58a0097f39 do not backup/restore course grade item/category, instead, just fetch it. Pointing all orphan categories and grade items to the course grade item 2007-08-22 09:02:32 +00:00
jamiesensei f3771632e8 MDL-10849 "During question bank upgrade, add course shortname to category name, if it is moved to the site level" 2007-08-22 08:22:06 +00:00
moodler 09164d709e Fixes to make forum RSS generation more efficient MDLSITE-244 2007-08-22 07:38:38 +00:00
toyomoyo a7db355af1 MDL-10181, user management improvement fixes and new features 2007-08-22 06:17:11 +00:00
toyomoyo 66af2bf186 fixing a broken get_context_instance() call 2007-08-22 05:51:04 +00:00
jamiesensei afb36bca44 MDL-10938. 'only strings from lang files can be used as feedback in environment check. Some way is needed to include data from custom check function - a $a param to pass to get_string'. Custom check for questions uses new functionality to print more complex strings as feedback. 2007-08-22 04:28:26 +00:00
mattc-catalyst 8a67b03fce MDL-10888: groupings - make get_all_instances_in_course respect groupmembersonly 2007-08-22 04:20:42 +00:00
jamiesensei 57dce727cd fixed a spello in a string 2007-08-22 04:19:04 +00:00
toyomoyo 0f07c40e01 MDL-10911, setting moodle/tag:create to allow as default for the authenticated user role 2007-08-22 03:27:57 +00:00
moodler 17dbb715dc Automatic installer.php lang files by installer_builder (20070822) 2007-08-22 02:42:22 +00:00
mudrd8mz a98fe27240 Fixes notices produced by PHP when saving new strings into _local without corresponding master translation. 2007-08-21 23:10:18 +00:00
skodak 5adad31057 MDL-10937 upgraded html purifier to 2.1.1 2007-08-21 22:06:47 +00:00
luizlaydner 3d436d8ac5 - user gets warned that if he cannot create a new tag 2007-08-21 21:39:33 +00:00
skodak 90afcf3280 MDL-10260 added new user_delete() hook into auth plugins; refactored user delete code = new function delete_user() in moodlelib.php + improved cleanup in core tables when deleting user 2007-08-21 20:52:36 +00:00
mudrd8mz 1510efa2e5 New strings and modifications in the lang.php 2007-08-21 15:18:57 +00:00
mudrd8mz d9f4ba6f23 MDL-9361 lang.php is now able to edit language in third party modules and plugins. 2007-08-21 15:17:37 +00:00
skodak e102e78a10 MDL-10930 added mysqli support into installer; it needs install files refresh 2007-08-21 10:40:59 +00:00
thepurpleblob 39dc779aa9 MDL-10929:
User search will now additionally return users based on an exact match
to their username.
2007-08-21 10:36:46 +00:00
thepurpleblob 12e80b7bad MDL-10928:
Markdown library updated to latest version (Markdown Extra 1.1.4)
2007-08-21 09:54:49 +00:00
skodak d014b69b92 MDL-10927 implemented cron support in assignment plugins 2007-08-21 09:53:35 +00:00
skodak 1fc8777426 MDL-10056 Fixed deleting of assignments when original plugin not present 2007-08-21 09:20:42 +00:00
moodler 5d82704e37 More bug fixing for parent links in posts 2007-08-21 07:39:57 +00:00
jamiesensei 6d1083c52f fix for some xhtml syntax errors. 2007-08-21 06:55:48 +00:00
moodler f8417d6240 Bump 2007-08-21 05:53:43 +00:00
toyomoyo fc3ebc9d43 reversing previous change as it breaks page layout 2007-08-21 05:52:28 +00:00
toyomoyo bf2956a9ba merged fix for MDL-9777, correcting usage of layout-table 2007-08-21 05:48:18 +00:00
mattc-catalyst 010a47bf7d MDL-10888: groupings - mod/forum - update to use new standard_coursemodule_elements() 2007-08-21 05:03:48 +00:00
toyomoyo 5080d619a3 changed subscription/unsubscription to links if javascript is enabled, and button if javascript is disabled 2007-08-21 04:12:03 +00:00
moodler 9b0e0fa628 Merged new file from 1.8 MDL-10920 2007-08-21 03:40:20 +00:00
moodler 30d76014d8 FIxed language file location, merged from 1.8 MDL-10920 2007-08-21 03:38:45 +00:00
mattc-catalyst 43b49d039d MDL-10888: groupings - make 'jump to...' menu respect groupmembersonly flag 2007-08-21 03:18:19 +00:00
toyomoyo bd98251220 fixing typos 2007-08-21 02:58:27 +00:00
mattc-catalyst cdc8337734 MDL-10888: groupings - mod/forum - add support for groupings, use new groups functions 2007-08-21 02:27:46 +00:00
toyomoyo eddcae23a2 fixing some typos 2007-08-21 02:11:05 +00:00
skodak c219eec3cf MDL-10846 reverting commit - waiting for Eloy :-( 2007-08-20 22:27:38 +00:00
skodak 2ff4411414 MDL-10846 Sorting submitted assignments by status makes all assignments disappear 2007-08-20 22:21:46 +00:00
mattc-catalyst 135219ef8a MDL-10919: mod/database - fix SQL error caused by invalid groupid 2007-08-20 22:18:49 +00:00
skodak 9ca302560c MDL-10846 Sorting submitted assignments by status makes all assignments disappear 2007-08-20 22:18:18 +00:00
skodak c77515523c MDL-10896 Not scrolling back to section from which resource has been deleted 2007-08-20 21:59:26 +00:00
mattc-catalyst dcd8db6864 MDL-10888: Groupings - add support for groupmembersonly flag.
Make the following respect the groupmembersonly flag:

- Course front page
- Activities block
- Recent Activity, including full report
- Calendar
2007-08-20 21:30:40 +00:00
skodak 5d59cbe918 MDL-10914 support for groupings in Database module 2007-08-20 21:16:43 +00:00
nicolasconnault d7890a8d0b MDL-10177 Thanks Joseph for pointing out that mistake. $newtext is now initialised as a clone of $text and used everywhere, so that plugins can be used sequentially. 2007-08-20 17:41:06 +00:00
samulik f87696bbd1 MDL-10859 - Documenting $CFG-logsql 2007-08-20 15:59:18 +00:00
thepurpleblob 88e5f3578e MDL-9345:
Hard coded error message "cannot view profile" put into the errors file in
the language pack. Where it should be :-)

Merged from STABLE_18
2007-08-20 15:15:18 +00:00
skodak 7e4fdf2515 MDL-10383 - some more disabling of groupingid's when $CFG->enablegroupings empty - adding some explanation comments 2007-08-20 14:20:36 +00:00
skodak c0d4238d01 MDL-10383 - some more disabling of groupingid's when $CFG->enablegroupings empty; this should allow using of $cm->groupingid in modules without extra checks for $CFG->enablegroupings 2007-08-20 14:18:55 +00:00
skodak 055f21850a MDL-10914 support for groupings in Database module 2007-08-20 14:04:10 +00:00
skodak 9d66deb3ce MDL-10383 - some more refactoring and new grouping related functions for modules 2007-08-20 13:56:39 +00:00
mudrd8mz 2cf0ece41b Removing an old and unused string. 2007-08-20 13:30:24 +00:00
skodak 777da4d56c MDL-10913 fixed incorrect use of data_update_instance in presets code 2007-08-20 12:53:44 +00:00
jamiesensei 56beb4e262 removed some use of AS for table aliases in SQL. 2007-08-20 11:12:11 +00:00
jamiesensei a7f6dc55fa Adding lang strings for new question capabilities and removing some old ones. 2007-08-20 10:58:11 +00:00
Martin Langhoff 0ed81c4f9c cvsimport fixups binary files 2007-08-29 13:10:26 +12:00
Martin Langhoff 359abcacab cvsimport fixups binary files 2007-08-29 13:10:20 +12:00
Martin Langhoff 13534ef716 cvsimport fixups 2007-08-29 13:10:11 +12:00
nfreear 59aa15d650 MDL-5400 "Accessibility modifications..." - fixing the 4 themes that don't use <h1>. 2007-08-20 10:52:57 +00:00
thepurpleblob 13e88db4a2 MDL-10819:
GIFT now exports grade fractions for numeric questions

Merged from STABLE_18
2007-08-20 10:36:30 +00:00
thepurpleblob c1828e0b19 MDL-10689:
No questions imported if "stop on error" selected and there are invalid grades.

Merged from STABLE_18
2007-08-20 10:06:57 +00:00
toyomoyo 066bfbfe77 MDL-10181, user management improvements, adding improvements to bulk user upload (with minor bugs) and other changes 2007-08-20 08:51:35 +00:00
nicolasconnault 2619224c8a MDL-10177 Applied lovely hack (not ugly!) suggested by Pablo. It's lovely because it solves an ugly design error in the previous code: modifying a parameter variable in the function body. 2007-08-20 08:40:46 +00:00
ikawhero 831d450e3f Adding custom profile fields to the signup page.
The only two authentication plugins this affects are email and ldap.
2007-08-20 08:30:34 +00:00
nicolasconnault 33a34cd4d0 MDL-10875 Corrected bug in averaging plus a couple of typos 2007-08-20 07:29:05 +00:00
skodak e04ff2d559 MDL-10383 adding new standard elements method - modules now must specify what they support (groups/groupings/groupmembersonly); by default only groupmode selector is enabled 2007-08-20 07:27:04 +00:00
toyomoyo f9bb6a98d8 category grades and course grades should not be dependent on restore_userdata_selectee 2007-08-20 06:20:53 +00:00
toyomoyo 7e09821038 MDL-10884, import is copying all grade_items into course, creating duplicate course grade_item. Other backup/restore fixes 1) if user_data is not selected, grade_item will still be copied but the grades and grades_text are ignored. 2) Grade histories not imported during import. 2007-08-20 04:15:49 +00:00
moodler 8ec96cb172 Added readme to explain things a bit 2007-08-20 03:54:20 +00:00
moodler e9261e0fc0 Added installer string names here so others can maintain it 2007-08-20 03:48:37 +00:00
jamiesensei 688cc5d01c Fix for MDL-10776 "Moodle Faulty navigation in questions categories when editing questions or exporting/importing categories" 2007-08-20 03:36:07 +00:00
jamiesensei 8a3b3e66bd MDL-10812 changed 'Modified' string to 'Last Saved' since as pointed out often someone might press the save button after viewing a question without making any modifications. 2007-08-20 02:55:27 +00:00
toyomoyo 1dc08b85b1 MDL-4384, fixed undefined function call, hide the add sub category form in non-editing mode 2007-08-20 01:59:50 +00:00
skodak b299029264 fixed syntax error 2007-08-19 21:07:15 +00:00
thepurpleblob d510ec64b6 MDL-10902:
Whoops! Overwrote question object. Variable name changed
Thanks to Adriane Boyd for spotting that one.

Merged from STABLE_18
2007-08-18 09:33:45 +00:00
nicolasconnault 0be6f67819 MDL-10870 All files updated to new build_navigation() method. Most are untested, because they are not easily accessible within a moodle site. 2007-08-17 19:09:11 +00:00
thepurpleblob 45b68eef6c MDL-10876:
Import/Export format select list is now a (required) list of radio
buttons, with no default
2007-08-17 15:15:21 +00:00
tjhunt 1a05537338 MDL-10897 - Backup is horribly inefficient when getting the users to include 2007-08-17 15:03:06 +00:00
tjhunt 2a4e13c5e7 MDL-10894 - Make block add/remove and edit permissions more consistent 2007-08-17 13:07:23 +00:00
skodak bb5b72244a MDL-10890 all require_login() in modules reviewed and fixed use of $cm 2007-08-17 12:49:28 +00:00
skodak a104debf4f MDL-10892 modules explicitly declare support for groupmembersonly; the grouping and groupmembersonly elements are now marked as advanced; only Resource supports groupmembers only now 2007-08-17 12:29:18 +00:00
skodak f8e3d5f0c2 MDL-10888 groupmembers only checks in require_login() 2007-08-17 12:15:32 +00:00
nicolasconnault e295df447f MDL-10870 All files updated to new build_navigation() method. 2007-08-17 11:18:58 +00:00
jamiesensei 88c8015ea0 fixing some problems with multichoice file link find and replace code for multichoice qtype. 2007-08-17 10:50:52 +00:00
jamiesensei 4119b7ba53 help file for new site files backup feature. 2007-08-17 10:47:49 +00:00
jamiesensei 863be1a95c Added a help button to the backup form. 2007-08-17 10:03:18 +00:00
tjhunt c389b50482 MDL-10863 - multichoice question type won't upgrade to 1.9 beta because MySQL sometimes treats enum constants case-insensitively. 2007-08-17 10:01:34 +00:00
jamiesensei 1a73a3d84e Fixes for some notices because of unitialized vars and elements that may not be present in older backup xml. 2007-08-17 10:00:00 +00:00
tjhunt af999b9095 Temporary fix for MDL-9356 becuase it was blocking a bug I needed to fix. Eloy, please review carefully when you get back from holiday. 2007-08-17 09:59:54 +00:00
jamiesensei 7c1c94872e Fix for notice on first page of restore. 2007-08-17 09:53:00 +00:00
thepurpleblob 4433fff5a8 Moved check for plugin import/export to the start rather than the end
Merged from STABLE_18
2007-08-17 09:47:51 +00:00
toyomoyo df6d3c66ae merged fix for MDL-10037, hide hidden user's blogs from course view 2007-08-17 08:16:11 +00:00
skodak 24f41672ba MDL-10383 - adding UI for new grouping settings into course and mod edit forms + fixed section handling on mod edit page + other minor cleanup 2007-08-17 08:05:04 +00:00
nicolasconnault f1af7aaaf5 MDL-10870 All files updated to new build_navigation() method. 2007-08-17 07:25:47 +00:00
toyomoyo d8c684de7e replacing round() with number_format (for a number betweem 0-100), because round does not respect decimal places, e.g. round(90.50, 2) = 90.5 2007-08-17 06:28:12 +00:00
toyomoyo 54c7e5e064 removing old broken sql 2007-08-17 06:15:35 +00:00
nicolasconnault 66b079ae94 MDL-10870 Missed an instance of old nav in admin/lang.php 2007-08-17 05:19:20 +00:00
toyomoyo 3ace5ee456 merged fix for MDL-10856, mp3 filter does not work for uploaded html files 2007-08-17 04:57:52 +00:00
nicolasconnault b0a16fbe6d Fixed small glitch in admin->users->permissions->define roles page, where the manage tab didn't show as selected when that page was shown. 2007-08-17 04:43:45 +00:00
nicolasconnault f3d3f3e809 MDL-10870 Missed an instance of old nav in login/index.php 2007-08-17 04:29:12 +00:00
moodler 2db01bec9e Slight change to "show parent" link (backto how it was) 2007-08-17 03:42:07 +00:00
moodler 87a462eadb Fixed navigation for forums where parents are chosen 2007-08-17 03:35:34 +00:00
toyomoyo 6488cec8ab reversing a change that's making multiple mp3s not to work 2007-08-17 02:07:26 +00:00
jamiesensei 79bb720200 Fixed MDL-10855 'Calculated question error: undefined stdClass::$nextpageparam' and some other calculated question bugs. 2007-08-17 01:06:02 +00:00
skodak 778918fd71 MDL-10383 - some more refactoring/cleanup, enablegroupings experimental admin setting, tabs in groups UI 2007-08-16 21:14:03 +00:00
skodak 2d4376fd66 fixing syntax error 2007-08-16 20:29:42 +00:00
nicolasconnault 09cef06a10 MDL-10873 If both site default and user pref are empty for studentsperpage, we assume that paging is not wanted, so all paging functionality is switched off in the report. 2007-08-16 18:09:49 +00:00
nicolasconnault 4f8783fe91 MDL-10873 Now deleting the preference from user_preferences if the value submitted is empty. The grader report will then revert to the site default 2007-08-16 17:53:08 +00:00
nicolasconnault 65634a81b8 MDL-10853 Fixed this bug plus others in the resource class 2007-08-16 17:38:50 +00:00
nicolasconnault a164fd5d80 MDL-10870 A few more fixes to the file.php page's navigation 2007-08-16 16:53:55 +00:00
skodak 178f965883 MDL-10383 - fixing missing else typo 2007-08-16 15:52:52 +00:00
nicolasconnault 73c24ef80b MDL-10870 All files updated to new build_navigation() method. 2007-08-16 15:01:25 +00:00
skodak 5bf243d131 MDL-10383 - groups/groupings refactoring nearly finished ;-) 2007-08-16 11:06:48 +00:00
jamiesensei 610ef0930f oops. Removed stray die; that was in the code for debug purposes. 2007-08-16 10:44:07 +00:00
nfreear 8946d96403 MDL-9890 "Help should be well-formed..." - replacing abused (nested) <blockquote> and <ul> with <div class="indent">, especially in install.html, and other validation errors. 2007-08-16 10:21:36 +00:00
skodak 62d6383803 MDL-10383 - groups/groupings refactoring and improvements - basic UI for groupings implemented 2007-08-16 09:28:18 +00:00
toyomoyo baea72ec48 some changes for better capabilities list display 2007-08-16 08:48:53 +00:00
toyomoyo 56f8d57f76 added a string for category name 2007-08-16 08:36:35 +00:00
moodler 2150fe08e8 Fix some XHTML and untranslated text 2007-08-16 07:42:28 +00:00
moodler bafc13f9aa Fixed up some layout issues XHTML 2007-08-16 07:35:44 +00:00
moodler 63ddad295a Fixed some XHTML problems 2007-08-16 07:29:27 +00:00
moodler 04cdca2926 Bumping to distinguish this from the Beta release 2007-08-16 06:50:23 +00:00
moodler 491d29002e Automatic installer.php lang files by installer_builder (20070816) 2007-08-16 06:37:57 +00:00
ikawhero c1d1549f03 New strings for custom profile fields. 2007-08-16 06:27:03 +00:00
toyomoyo ab52e4fa0f merged fix for MDL-10856, mp3 filter not working in uploaded html files 2007-08-16 05:29:13 +00:00
jamiesensei ba18b21d2e Fix for MDL-10852 Cannot edit existing questions 2007-08-16 05:25:00 +00:00
jamiesensei ffba1f0bec added some comments 2007-08-16 05:20:35 +00:00
jamiesensei 9f1017a0be correct logic error that broke caching. 2007-08-16 05:19:33 +00:00
toyomoyo 3aafb7d9d2 merged fix for MDL-10818, do not display broken graph when user has no permission to view actities graph 2007-08-16 04:05:31 +00:00
moodler 82ebf2af31 Fixed a typo, thanks Joseph MDL-10866 2007-08-16 02:20:39 +00:00
skodak ddff2fa806 MDL-10383 - yet more groups and groupigns refactoring, cleanup and bugfixing - grouping edit form now works 2007-08-15 23:51:07 +00:00
skodak c4e953e69e MDL-10383 - group edit form refactoring and minor bugfixing 2007-08-15 20:33:17 +00:00
skodak 2c386f82e5 MDL-10383 - deprecated get_groups(), user_group() and ismember() 2007-08-15 20:21:01 +00:00
skodak 1d68419596 MDL-10383 - deprecated groups_members_from_sql and friends - we do not need them anymore because we reverted to 1.7 style groups in 1.9 2007-08-15 19:28:11 +00:00
tjhunt 2288211e7c MDL-10841 - show all feedback to multiple choice questions on the review page. 2007-08-15 16:22:54 +00:00
skodak dd24722b47 MDL-10862 add delete_profile_image() function + whitespace + removed redundant function calls + docs 2007-08-15 14:00:35 +00:00
tjhunt 583e93ca27 Clarify comment. 2007-08-15 13:43:27 +00:00
ikawhero 62ebb00033 Additional settings for the custom profile fields 2007-08-15 13:37:52 +00:00
tjhunt a462602a06 MDL-10858 - Edit field sizes for overall feedback are silly. Merged from MOODLE_18_STABLE. 2007-08-15 12:45:23 +00:00
skodak fe3a91e7f1 MDL-10383 - fixed stupid bug from last commit, sorry 2007-08-15 12:21:45 +00:00
tjhunt 1e05bf54b2 Space beteen category name and count. 2007-08-15 12:06:21 +00:00
jamiesensei 0cbddd850b MDL-10857 broken link in navlinks for question bank pointing to mod/modname/view.php with cmid param instead of id param 2007-08-15 11:36:01 +00:00
nicolasconnault 66ef0471ae MDL-10838 Applied standard table classes and scopes to tr, th and tds of the grader report. Also fixed a bug with the display of grand averages when a group is selected and the average column is set to aggregate all grades. 2007-08-15 11:15:39 +00:00
jamiesensei f6ea3132c1 small commenting change 2007-08-15 11:08:37 +00:00
jamiesensei 20f500dc4d Fix for MDL-10847 No categories showing in category tab when editing a quiz / questions on PHP 4 2007-08-15 11:04:35 +00:00
skodak e0aac7f323 MDL-10383 - some more groupings related restore problems fixed - groupings are now restored before course sections+course_modules - groupingsids now restored properly in course_modules table; fixed object initialization; fixed typos when restoring course modules that were causing missing group mode 2007-08-15 10:43:25 +00:00
moodler 6b726eb486 Just fixed some notices and formatting while debugging other stufff 2007-08-15 09:25:27 +00:00
toyomoyo ca5d523bef MDL-4384, description for course categories 2007-08-15 08:28:40 +00:00
nicolasconnault 7d7029f57d MDL-9137 Changed course names to links to the user reports for each course, and changed grade to rounded percentage. 2007-08-15 07:19:20 +00:00
nicolasconnault 92df185d85 MDL-10837 Added the export_letters checkbox to the txt export form (it was the only one overriding the grade_export form) 2007-08-15 06:40:55 +00:00
moodler ecc764d511 Latest tags for head 2007-08-15 05:59:02 +00:00
toyomoyo 8c40e0919d fixing grader report paging bar when groups are present 2007-08-15 05:47:34 +00:00
moodler 0d7b6bb3e1 Beta version 2007-08-15 05:41:23 +00:00
toyomoyo 1bef49587d moving user bulk operations to admin/user/ 2007-08-15 05:30:49 +00:00
moodler 47f12ec61f Undoing the default user icon change.
History lesson:

1) We used to have a silhouette image similar to this
2) I had feedback from an academic who had been abused as a child by her father, who felt very strongly that such an image would stir up bad feelings in anyone who had a similar background (it stopped her from using Moodle).
3) The default image is supposed to be something you don't like, so you change it!

I'm open to changing it but I think we might need a community vote on it or something.
2007-08-15 02:46:59 +00:00
toyomoyo 68853d0dd3 MDL-10181, bulk user action and language pack fixes 2007-08-15 02:36:47 +00:00
skodak 379eaebde1 MDL-10383 - backup/restore of new groups&groupings finished 2007-08-14 20:35:04 +00:00
tjhunt acda04bfb9 MDL-10834 - Restore of quiz module may create calendar events without a date/time. Fix thanks to Derek Woolhead. Merged from MOODLE_17_STABLE. 2007-08-14 13:33:39 +00:00
nicolasconnault 89f33581ba MDL-9628 At the suggestion of Tim Hunt, interchanged the position of grade letter select elements with percentage selectors, in the grader report preferences form. 2007-08-14 11:54:44 +00:00
jamiesensei 00de7c984c fix for notice about undefined urls property. 2007-08-14 11:50:57 +00:00
nicolasconnault 386dd21edc Changed the default user icon for something better. Much better. Not the best I could find, but better. 2007-08-14 11:49:13 +00:00
jamiesensei a54fd2dd4d fix for notice about undefined urls property. 2007-08-14 11:41:47 +00:00
nicolasconnault 4642a0c1f0 MDL-10829 idnumbers lang string 2007-08-14 08:33:20 +00:00
nicolasconnault 4ccb300e63 MDL-10829 Help page for the calculation field and interface 2007-08-14 08:30:10 +00:00
toyomoyo 2343156711 adding searchtext support when assinging group members, also made retrieving non-members faster 2007-08-14 06:41:16 +00:00
nicolasconnault b31a9f3dbb MDL-10829 Added get_grade_item() to the grade_item class, for cases when we don't whether an object is a category or a grade_item. The new interface for viewing and adding idnumbers (no editing) is 99% finished. Help strings still to do. 2007-08-14 06:05:07 +00:00
moodler 7714b19d81 Automatic installer.php lang files by installer_builder (20070814) 2007-08-14 06:04:50 +00:00
jamiesensei e7e62d45be Fix for MDL-10823 Access to question edit page denied from quiz preview screen. 2007-08-14 04:22:05 +00:00
moodler b6aeb9ba31 backup/restore Support for 4 new fields in data module 2007-08-14 04:21:16 +00:00
moodler 7db989230f Added "notification" field, currently unused, to allow MDL-8377 2007-08-14 04:13:58 +00:00
jamiesensei af49b38948 small fix for breadcrumbs link 2007-08-14 02:56:43 +00:00
jamiesensei 9f877cb072 fix for MDL-10835 Results and Preview Tabs broken - requred param 'cmid' missing (for quiz with no questions) 2007-08-14 02:50:56 +00:00
toyomoyo ab3444d79d fixed a warning when group members have no grades 2007-08-14 02:13:08 +00:00
moodler b58db965b4 Removed some pass-by-references to remove notices 2007-08-14 02:11:33 +00:00
skodak 2524b0f24c MDL-10383 - major groups patch - see bug i ntracker for more details - authors: Nick, Matt, Enrique and me 2007-08-14 00:50:00 +00:00
nicolasconnault 9f4b0c6e22 Little strings... 2007-08-13 18:36:42 +00:00
nicolasconnault d638075d2a Fixed a little typo 2007-08-13 18:35:28 +00:00
nicolasconnault be7c069360 MDL-10829 Added get_idnumber() for both category and item classes 2007-08-13 18:34:57 +00:00
jamiesensei 681666abe7 fix for MDL-10826 ' Moodle Impossible to delete a course because of non-existent question_delete_activity() ' 2007-08-13 13:58:04 +00:00
moodler a0501fc36a Make sure require_login is being called from reports MDL-10833 2007-08-13 13:45:14 +00:00
moodler 665f8762ae Fixed theme and require_login MDL-10833 2007-08-13 13:40:35 +00:00
moodler 36d3e28d30 Fixed course theme and require_login MDL-10833 2007-08-13 13:39:32 +00:00
moodler 7bf6da27a2 Added a missing string from backups 2007-08-13 13:38:35 +00:00
moodler f12621d332 Fixed course theme MDL-10833 2007-08-13 13:36:52 +00:00
moodler 76655d6ff1 Make course themes work on course settings page MDL-10833 2007-08-13 13:35:29 +00:00
thepurpleblob 83601351d7 Should be $COURSE not $course 2007-08-13 13:26:16 +00:00
thepurpleblob a1bed32fa5 Typo: should be $COURSE not $course it seems 2007-08-13 13:21:22 +00:00
thepurpleblob 7cb30aca20 Typo, should be $COURSE not $course 2007-08-13 13:19:42 +00:00
poltawski 96ddd87297 MDL-10832 ../config.php was refffering to a bad config file and causing
havoc, have changed to more robust method of reffering to filename
2007-08-13 12:54:56 +00:00
tjhunt dc5c68519e Notice on quiz config.html page. 2007-08-13 11:19:51 +00:00
poltawski 7e874772a3 MDL-10573 - Added a capability for viewing blocks, this allows role-based control of block
display.

Changed context capability check so that CONTEXT_BLOCK capabilities can also come from the
moodle core capability definitions
2007-08-13 10:08:15 +00:00
moodler 94783496f1 Added some robustness because on at least two occasions the mnet_localhost_id has been spontaneously reset to a new entry, which causes havoc as no-one can log in. MDL-10828 2007-08-13 09:53:04 +00:00
toyomoyo 0da010f792 grade items in xml export should not be checkable if they have no idnumbers 2007-08-13 09:29:12 +00:00
nicolasconnault 98240e51a6 MDL-10797 Merged lang strings into lang/en_utf8/admin.php and error.php 2007-08-13 08:58:37 +00:00
toyomoyo f6eb15ade1 adding preview rows for export 2007-08-13 08:50:17 +00:00
nicolasconnault 5f1f6b28b7 MDL-10490 Adding a couple of language strings 2007-08-13 08:26:33 +00:00
nicolasconnault 86655fb693 MDL-10490 Finished coding and testing. 2007-08-13 08:22:56 +00:00
toyomoyo 7e8311d491 MDL-10669, strings should not be removed from lang pack for backward compatibility 2007-08-13 06:35:22 +00:00
moodler e3a1ea05b7 Fixes for XHTML Strict 1.0 2007-08-13 06:28:08 +00:00
moodler b7ff675cac Some XHTML strict fixes 2007-08-13 06:21:35 +00:00
moodler e62950cacc Fixed some XHTML issues 2007-08-13 06:17:54 +00:00
toyomoyo 0005b99627 MDL-10691, merged fix, slow forum_role_unassign 2007-08-13 05:39:44 +00:00
nicolasconnault 0eeada790c MDL-10490 Implemented grade letters in export. Needs testing. 2007-08-13 04:19:01 +00:00
luizlaydner d71ea8ce19 - a lib for php4 that is good substitute for simplexml 2007-08-13 04:17:10 +00:00
moodler 1879ef2b5a Properly merged fixes from 1.8 2007-08-13 04:07:37 +00:00
luizlaydner d4c603dbbd - removed simplexml from youtube block, now using another parsing library 2007-08-13 04:05:55 +00:00
toyomoyo b4191a358f missing a ?> 2007-08-13 02:57:05 +00:00
luizlaydner 53a717cf3f - corrected tag-user-table floating problem in firefox 2007-08-13 02:57:03 +00:00
nicolasconnault 3cf6a6d5a4 MDL-10725 Fixed breadcrumb 2007-08-13 02:48:39 +00:00
toyomoyo 32fe29c7f3 MDL-10821, making configdata nullable 2007-08-13 02:38:10 +00:00
toyomoyo f23dea666c replacing _NULL_ with $@NULL@$ during backup/restore 2007-08-13 02:23:10 +00:00
toyomoyo f37cc4bb35 MDL-10817, adding unique key courseid-coutcomeid during creation of grade_outcomes_courses 2007-08-13 02:11:59 +00:00
moodler 8ee4253761 Removing PHP5-ism again 2007-08-12 18:04:26 +00:00
moodler ecfac80878 Added new blocks for flickr and youtube to tags (thanks, Luiz!) MDL-10169 2007-08-12 16:53:24 +00:00
moodler e3ff328b09 Added new flickr and youtube blocks (for the tag pages). Very nice, Luiz! 2007-08-12 16:50:59 +00:00
jamiesensei 8bdd8660bf See http://moodle.org/mod/forum/discuss.php?d=77564#p345310 Questions link not showing up. 2007-08-12 16:09:57 +00:00
stronk7 92b564f494 Change xmldb debugging to use the central debugging() function. 2007-08-12 15:58:08 +00:00
jamiesensei fd3772dc94 MDL-10805 custom check was causing error on installation because dmllib functions are not available yet. 2007-08-12 15:07:08 +00:00
jamiesensei b36e36aa05 removed all ASes from table aliases in question / quiz code - MDL-10344 2007-08-12 13:57:57 +00:00
urs_hunkler c9a512d6d6 MDL-10704 and MDL-10793 corrected also the second letter-spacing merged from 1.8 2007-08-12 12:49:43 +00:00
urs_hunkler 1ba93774b5 MDL-10704 - removed letter-spacing to avoid the Khmer rendering issue :: merged from 1.8 2007-08-12 10:44:32 +00:00
urs_hunkler 3b9b99e018 $THEME->htmleditorpostprocess merged from 1.8 2007-08-12 09:58:23 +00:00
urs_hunkler 210a323e1b merged, corrected validation errors, reformated rtl.css to Moodle standard formatting 2007-08-12 09:30:31 +00:00
moodler 501e725ec4 Moved AJAX settings into standard menus (not experimental any more) 2007-08-12 06:29:19 +00:00
moodler 6e6996ba7e Merged directory listing CSS fix frm stable 2007-08-12 06:17:58 +00:00
stronk7 4aa8037436 Finally, the parenthesis were causing problems too. MDL-10808 2007-08-11 22:58:17 +00:00
stronk7 b4c0ce9fcb Wrong default specified (and detected!). Fixed. 2007-08-11 22:06:46 +00:00
stronk7 b4464372af Detect CHAR + NOT NULL FIELDS + '' (empty) defaults. They shouldn't be in
XMLDB definitions at all. Convert the default to the proper one and
output it via xmldb debug.
2007-08-11 21:50:25 +00:00
stronk7 b794dc20c0 Instead of looking for current default value, fetch from
the generator the *real* default value that the table will have.
2007-08-11 21:47:22 +00:00
skodak 2c5e52e286 fixed typos in docs 2007-08-11 18:13:07 +00:00
moodler fc4e126030 Merged zip file exception into HEAD MDL-9478 2007-08-11 15:01:47 +00:00
moodler c9bd927055 Fixed the comparison of text to integer (Eloy's credit, see MDL-10808 ) 2007-08-11 14:33:55 +00:00
moodler 871ab9a3e2 Removed usage of table aliases with "as" as per MDL-10808 2007-08-11 14:28:36 +00:00
moodler e2c8fe7b09 Removed old db stuff MDL-10572 2007-08-11 14:07:02 +00:00
moodler 0c5e6027d2 I merged all changes over from 1.8 to HEAD.
None of it looked too serious but I'VE NOT TESTED THIS AT ALL.

MDL-10366
2007-08-11 12:58:08 +00:00
luizlaydner b3541b6aef - clearing up 2007-08-11 04:08:41 +00:00
luizlaydner 938e7302e2 - added tag:editblocks capability 2007-08-11 03:42:26 +00:00
luizlaydner 98b5789d43 - added tag:editblocks capability 2007-08-11 03:25:23 +00:00
stronk7 efd261ce5b XMLDB_TYPE_CHAR + XMLDB_NOTNULL must not have any default applied. 2007-08-11 00:55:21 +00:00
stronk7 690b644d06 Changing ocurrences from search_documents to block_search_documents. MDL-10572 2007-08-11 00:23:29 +00:00
stronk7 056eb98627 Fixing the table (renaming + proper defaults). MDL-10572 2007-08-11 00:19:51 +00:00
stronk7 89a9688099 MSSQL requires to drop defaults before performing
one change of type and, sometimes, a change of length.
2007-08-11 00:15:25 +00:00
stronk7 8e3f40fbbb And Moodle 2.0 requires Moodle 1.9 to be running. Testing... MDL-10722 2007-08-10 22:23:23 +00:00
stronk7 7f2d3ec0c3 Added new check to be able to compare current and target
moodle versions. Executed only on upgrade (not at install). MDL-10722
2007-08-10 22:19:40 +00:00
skodak dc35d3ac02 MDL-10365 removing userid - not used in grade_grades_text 2007-08-10 21:12:32 +00:00
skodak 31f626f8c3 MDL-9551 minor cleanup 2007-08-10 21:04:15 +00:00
skodak b0663fd8ed MDL-9550 minor cleanup 2007-08-10 21:03:23 +00:00
skodak 3bfabe6e1a MDL-9549 minor cleanup 2007-08-10 21:01:46 +00:00
skodak e75f3463a1 MDL-9548 minor cleanup 2007-08-10 21:01:02 +00:00
skodak b60b2ce6c4 fixed typos 2007-08-10 20:59:25 +00:00
skodak 531fa830a6 MDL-9552 support for new gradebook in scorm 2007-08-10 20:58:09 +00:00
stronk7 3955fd588a Now handling of BYTEA (blobs) under PostgreSQL are working properly
(delegating to ADOdb to perform the correct escaping and so on)
2007-08-10 16:10:36 +00:00
tjhunt d402153a54 MDL-10581 - Each attemtp builds on last & multi-page quizzes was casuing grading errors. Merged from MOODLE_18_STABLE. 2007-08-10 15:22:28 +00:00
tjhunt ceeae340f9 MDL-10799 - Question types do not accurately determine whether their state has changed or not. Merged from MOODLE_18_STABLE. 2007-08-10 15:21:29 +00:00
skodak 76317c73a2 MDL-10791 improve handling of localised floating point numbers in moodle; replaced/fixed some float_format() that were used instead of round(); expect some more patches soon 2007-08-10 15:00:35 +00:00
nicolasconnault bc430af20d MDL-9137 Fixing errors in the overview report 2007-08-10 14:58:21 +00:00
tjhunt a8bb516dce lang files in plugin folder support for gradebook plugin types. 2007-08-10 12:21:55 +00:00
tjhunt da3802dbae MDL-10786 - Short Answer questions will not allow 0 as the sole answer. Merged from MOODLE_18_STABLE. 2007-08-10 10:48:58 +00:00
tjhunt df4c79e232 Accessing wrong field of $mod from course.modinfo. Merged from MOODLE_17_STABLE. 2007-08-10 10:37:30 +00:00
tjhunt 37d00ed467 Fix notice. 2007-08-10 10:00:06 +00:00
nicolasconnault aa330ebb0d MDL-9137 Added the overview report 2007-08-10 09:34:50 +00:00
moodler 9591bc3c9e Changed applicable_formats to remove certain blocks from the tags pages 2007-08-10 09:33:21 +00:00
nicolasconnault 53a16616b8 MDL-9137 Added the overview report 2007-08-10 09:28:37 +00:00
moodler c91146b995 fixed get_format_name() bug and some cleaning up 2007-08-10 09:26:56 +00:00
jamiesensei ddaff15dfc removing TODO type comment that was already done. 2007-08-10 07:58:48 +00:00
jamiesensei 070af8ed32 fixing reversion of lang string that happened during MOODLE_19_QUESTIONS merge 2007-08-10 07:56:02 +00:00
thepurpleblob 228b6f6b1d MDL-10785:
empty() changed to !isset()

Merged from STABLE_18
2007-08-10 07:17:46 +00:00
nicolasconnault 060d1e1792 MDL-9628 More category collapse updates 2007-08-10 05:49:46 +00:00
moodler 4603b8d60c Merged message -> email fixes from stable 2007-08-10 05:24:31 +00:00
toyomoyo e814e7d79c MDL-10770, support null fields in backup/restore 2007-08-10 05:22:20 +00:00
stronk7 87f47bec94 Fixing one SQL that could cause problems with coincidences
in the associative array. MDL-10787

Merged from MOODLE_18_STABLE
2007-08-10 01:46:17 +00:00
stronk7 8207a81190 MSSQL blobs doesn't like quoted binaries. MDL-9835
Merged from MOODLE_18_STABLE
2007-08-10 00:56:41 +00:00
stronk7 27baf81851 Fixed bug when inserting strings beginning by single quotes. MDL-10788
Merged from MOODLE_18_STABLE
2007-08-10 00:50:04 +00:00
stronk7 d792519749 Adding some comments about latest local changes. MDL-10788
Merged from MOODLE_18_STABLE
2007-08-10 00:48:00 +00:00
jamiesensei 515ed4c3ee merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 22:44:14 +00:00
jamiesensei 271e6decda merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 21:51:09 +00:00
jamiesensei 3bee1ead40 merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 21:50:59 +00:00
skodak e8a46dcc2c MDL-10109 fixed aggregate outcomes depends_on() incorrect condition 2007-08-09 21:37:28 +00:00
stronk7 88cd967851 Fixed insert/update of Oracle xLOBs. Credit goes to Rita Scholes. MDL-9835
Merged from MOODLE_18_STABLE
2007-08-09 18:17:48 +00:00
stronk7 365a18e4b8 Reverting deleted addslashes(). They are needed for proper testing after all.
Merged from MOODLE_18_STABLE
2007-08-09 18:11:48 +00:00
stronk7 0e60e586cf Merging latest test changes from MOODLE_18_STABLE 2007-08-09 18:03:26 +00:00
nicolasconnault c30fafbf16 MDL-9628 Added a bit of informational verbose to the hiddenuntil and locktime icons in the grader report. 2007-08-09 16:57:26 +00:00
nicolasconnault 384960dd68 MDL-9628 Simplified and improved the expanding/collapsing of categories. There are now three view types: full, aggregates only and grades only. 2007-08-09 16:41:39 +00:00
skodak f60c61b1b2 improved hiding support in grade/ 2007-08-09 16:19:06 +00:00
tjhunt e3fa6587ee Helper method to help when calling print_error from a question type. 2007-08-09 15:38:35 +00:00
jamiesensei dfcdf0726b fixed syntax error in last commit that fixes MDL-10768 2007-08-09 15:05:15 +00:00
thepurpleblob 64de04fb09 Added hooks to qtype import/export 2007-08-09 14:12:12 +00:00
moodler 2311afc2a0 Merged MDL-10771 from 18 stable 2007-08-09 13:30:10 +00:00
skodak 1827c8264d hmm, now it should be final - forgotten part 2 2007-08-09 12:52:15 +00:00
skodak fed7cdc9c4 hmm, now it should be final 2007-08-09 12:45:36 +00:00
skodak ddc2098247 final locking API cleanup 2007-08-09 12:44:10 +00:00
skodak 6c9f672529 MDL-10757 adding some more table indexes for grades code 2007-08-09 12:29:05 +00:00
stronk7 4f6bd3b9c1 Increasing the displayed size of course->shortinfo to 20. MDL-10026
(bigger but enough smaller than the fullname field)
2007-08-09 12:26:43 +00:00
skodak 90274c7329 MDL-10757 adding some more table indexes for grades code 2007-08-09 12:07:16 +00:00
stronk7 8851fdf92d Changed one place where the old course->shorname size was still 10. MDL-10026
Credit goes to Josh Benner by finding it.
2007-08-09 12:05:56 +00:00
urs_hunkler a8ab4e2535 cleanup after changed rtl CSS file handling 2007-08-09 11:47:24 +00:00
skodak 173403cf4f MDL-10757 adding table indexes needed in grade cron 2007-08-09 11:11:56 +00:00
skodak 1f4a032092 fixed minor problems in prev commit 2007-08-09 11:10:13 +00:00
moodler 4f4e85189b Renaming to rtl.css so it will be included 2007-08-09 10:13:13 +00:00
moodler f31701c4ab Removing the langdir stuff from themes 2007-08-09 10:09:34 +00:00
skodak 26101be8e0 improved grade locking cron 2007-08-09 10:07:47 +00:00
skodak 2650c51ef4 locktime cron support - not much efficient though :-( 2007-08-09 09:38:14 +00:00
moodler 02b394e47e Use rtlbg.gif for reversed tabs MDL-10768 2007-08-09 09:06:03 +00:00
moodler 65252ecc4a Reverse background for right-to-left tabs MDL-10768 2007-08-09 09:05:10 +00:00
skodak fb0e357051 various locking improvements and fixes, cron locktime support stilll missing 2007-08-09 09:03:14 +00:00
moodler 1a5bcabd3c Fixed determination of right-to-left MDL-10768 2007-08-09 09:03:14 +00:00
moodler 128377e5e2 New styles JUST for right-to-left languages. It's always included last after the other standard files so that it can override other styles. It should only be be used for layout related to this (left vs right). 2007-08-09 09:00:54 +00:00
tjhunt 215bd82630 Fix typo. Thanks to Adriane Boyd. 2007-08-09 09:00:30 +00:00
toyomoyo d8cfc15848 restore and fixes for grade history tables, not fully working because of MDL-10770 2007-08-09 08:58:15 +00:00
moodler 99238bf4d4 Fixes for RTL languages during install MDL-10768 2007-08-09 08:57:52 +00:00
moodler 04f1efd423 DOn't assume direction, use the theme variables for arrows MDL-10768 2007-08-09 08:50:19 +00:00
moodler 9216897888 Removing the space will make this string print better in RTL languages MDL-10768 2007-08-09 08:49:05 +00:00
moodler 49e7a95a4c Removing the space will make this string work better in RTL languages MDL-10768 2007-08-09 08:48:11 +00:00
moodler b4483b9107 Switch arrows in blocks when in RTL mode MDL-10768 2007-08-09 08:47:09 +00:00
moodler 7982426d1b Fiexed order of time elements for RTL MDL-10768 2007-08-09 08:44:29 +00:00
moodler 2730730381 Added support for right-to-left languages in html editor MDL-10768 2007-08-09 08:42:36 +00:00
moodler 8047ab1d9d Using right_to_left() function MDL-10768 2007-08-09 08:41:08 +00:00
moodler b211809549 More support for right-to-left languages MDL-10768 2007-08-09 08:40:02 +00:00
moodler ed5d0baabc OK NOW the email notice is fixed :-| 2007-08-09 08:08:06 +00:00
moodler 932be04628 Patch for left-right buttons in course view MDL-10768 2007-08-09 07:50:21 +00:00
skodak 45d670f7ab adding forgotten aggregateoutcomes changes 2007-08-09 07:34:56 +00:00
moodler 2b85d965a5 Merged 1.8 fix for groups in choice activity 2007-08-09 06:27:22 +00:00
martinlanghoff c7c57cfbf2 Add context.path and context.depth fields for accesslib optimisation 2007-08-09 06:14:21 +00:00
moodler 6f4cea05d2 Some old new strings 2007-08-09 05:45:42 +00:00
stronk7 ac20257aae Now sybase quotes are properly handled by the lang editor. Part of MDL-9835
Merged from MOODLE_18_STABLE
2007-08-08 22:18:17 +00:00
poltawski a4459c2dd8 MDL-10749 - fixed short php tag 2007-08-08 19:48:14 +00:00
poltawski 6431903ac9 DL-10753 Removed BOM marker 2007-08-08 19:40:42 +00:00
stronk7 5ba3928959 Fixed two places where course->shortname was harcoded to 15. MDL-10026 2007-08-08 19:39:56 +00:00
nicolasconnault d4795a0792 MDL-9628 When a timestamp is selected for locktime or hiddenuntil, the grader report now shows a new icon (lock or eye in front of a calendar), with a tooltip showing the selected date. Very useful :-) 2007-08-08 15:48:20 +00:00
thepurpleblob 392238d626 Was not checking error return from plugin export properly 2007-08-08 15:23:11 +00:00
nicolasconnault 0949a66947 New tiny icons: Calendar, outcomes, hideuntil and locktime. The calendar icon was also created in 16x16 version 2007-08-08 12:53:35 +00:00
skodak 410753fbb0 course name used if name given to course category 2007-08-08 12:28:15 +00:00
tjhunt f5e9cb1e9c MDL-10759 - Bogus get_context_instance call in quiz_print_recent_mod_activity. Merged from MOODLE_17_STABLE. 2007-08-08 11:30:50 +00:00
thepurpleblob a41e328736 MDL-6367:
First shot at import/export support in plugins.
2007-08-08 10:45:09 +00:00
skodak d7ef47b3f1 removing $grade_item param from grade_grde methods - not needed anymore, assignment to grade_item property used instead
fixed typo in grade refresh code
2007-08-08 10:27:29 +00:00
nicolasconnault 8f6e4392d2 Adding latest version of overlib with all plugins, into its own directory. Updated lib/javascript.php to point to this instead of the old one, which is still in lib/overlib.js 2007-08-08 09:42:11 +00:00
nicolasconnault ca96d0c4ad MDL-10724 Finished help strings for scale and outcome edit forms 2007-08-08 09:09:46 +00:00
stronk7 476501240b Bump. MDL-10026 2007-08-08 09:06:38 +00:00
stronk7 341426f0ac Changing course->shortname to 100c under all DBs. Part of MDL-10026 2007-08-08 09:06:09 +00:00
toyomoyo e5aae9775f some fixes and restore for grade histories, not finished 2007-08-08 08:42:28 +00:00
skodak aea4df411e MDL-10544 support for outcomes showing/hiding in grader report 2007-08-08 08:31:04 +00:00
toyomoyo 9e5fe95780 removing an extra include 2007-08-08 07:51:55 +00:00
toyomoyo 4d25a59e3f user the grader report for user activity reports 2007-08-08 07:50:32 +00:00
nicolasconnault 4d910cad01 MDL-10724 Finished help strings for grade and outcome item edit forms 2007-08-08 06:12:55 +00:00
nicolasconnault ece2a77dcf MDL-10724 Finished help strings for category edit form 2007-08-08 04:35:27 +00:00
jamiesensei 62f34fdb20 fix for some notices in insert_category_ids function. 2007-08-08 03:29:29 +00:00
luizlaydner 9f7882159b - corrected layout in tag\index.php 2007-08-08 03:11:52 +00:00
skodak 0658afc9a1 fixes for overriding of scales, outcomes and minor access control tweak 2007-08-07 22:50:32 +00:00
skodak ffe6eb276a removing debug delay 2007-08-07 21:27:50 +00:00
skodak dc3ca94c92 added group access checks in grade edit form 2007-08-07 21:26:59 +00:00
wildgirl 0a788db702 MDL-10487 lang string fix 2007-08-07 21:02:40 +00:00
skodak 27b1735bf9 adding more capability checks into grade edit form and grader - should be finished now; TODO: group access for teachers 2007-08-07 20:33:09 +00:00
nicolasconnault 1c537f4846 MDL-10724 Started help strings for category edit form 2007-08-07 19:59:18 +00:00
nicolasconnault 072f3c47de MDL-10724 Finished help strings and files (4 new) for item edit form 2007-08-07 16:29:53 +00:00
tjhunt 727e38b0b2 MDL-10737 - Increase size of short answer text entry box. Merged from MOODLE_18_STABLE. 2007-08-07 12:39:32 +00:00
moodler aac4c3807f Fixed names of total columns 2007-08-07 09:03:53 +00:00
moodler 58d9b706d8 New strings and some changed 2007-08-07 09:02:40 +00:00
skodak d3c3da1b77 MDL-9628 non-existent grades can be locked/hidden/edited :-) 2007-08-07 08:30:25 +00:00
urs_hunkler 5730bc6119 MDL-8109 - merged from 1.8 2007-08-07 07:34:21 +00:00
toyomoyo c3260b0714 MDL-10181, user management improvements, adding bulk user operations, code is not finished 2007-08-07 07:26:58 +00:00
skodak e46f4d110d MDL-10549 fixed outcoems appearing in assingment when not used 2007-08-07 07:25:06 +00:00
toyomoyo ea326cf190 adding some more tables to be stored in temp id backup table to help with grade history tables restore 2007-08-07 07:15:48 +00:00
stronk7 40e3aa6081 Id tag added + whitespace cleaning
Merged from MOODLE_18_STABLE
2007-08-06 23:21:48 +00:00
stronk7 fe06493b72 Whitespace cleanup - was unmerged. 2007-08-06 22:39:22 +00:00
stronk7 ad11fd886f Whitespace cleanup in workshop help files - was unmerged 2007-08-06 22:22:48 +00:00
stronk7 ee876648b0 XHTML strict! - Merging from 18_STABLE 2007-08-06 22:19:20 +00:00
stronk7 6817efbc2f Added Id tag 2007-08-06 22:16:36 +00:00
skodak 15a511597e MDL-10738 finished hiding support in grade and item edit page 2007-08-06 20:51:09 +00:00
urs_hunkler 1632679d7f merged 2007-08-06 19:47:37 +00:00
urs_hunkler 9577f56311 merged 2007-08-06 19:39:08 +00:00
poltawski be23993798 MDL-10624 Reverting forum part of last commit - it wasn't needed, I wasn't testing
correctly. merged from 18_STABLE
2007-08-06 19:17:36 +00:00
nicolasconnault 0605ad5092 MDL-10724 Added the help buttons to the item edit form 2007-08-06 18:52:12 +00:00
poltawski 87c2d37d82 Fixed typo in previous commit 2007-08-06 18:47:57 +00:00
poltawski 2515adf9ea MDL-9431 & MDL-10624 - we're not removing some tracking records from the
database when we unassign roles - remove forum_subscriptions & user_lastaccess

Merged from MOODLE_18_STABLE
2007-08-06 18:45:35 +00:00
stronk7 40859bd5e1 Added Id tag
Merged from MOODLE_18_STABLE
2007-08-06 18:29:56 +00:00
stronk7 bd5d0ce540 MDL-8119 : Improvements to logging where Mnet hosts are involved
Merged from MOODLE_18_STABLE
2007-08-06 18:19:15 +00:00
stronk7 6cdd0f9c93 Adding Id tag + copyright notice.
Merged from MOODLE_18_STABLE
2007-08-06 17:55:44 +00:00
luizlaydner 22792afb0d *** empty log message *** 2007-08-06 17:51:48 +00:00
skodak 2b0f65e23c MDL-10223 module grades are now refreshed after unlocking 2007-08-06 15:18:54 +00:00
moodler 6200420dc6 Merged fix for MDL-10732 from stable 2007-08-06 15:11:06 +00:00
moodler 5c5085bada Merrged some comment fixes from stable 2007-08-06 14:56:24 +00:00
moodler a9900c73ec Merged unsubscribe link in email fixes from stable 2007-08-06 14:55:02 +00:00
tjhunt 3d3867b69a MDL-10730 - After submitting a question in adaptive mode, go back to that question, not the top of the page. Code thanks to Tony Gardner-Medwin, based on my suggestion. 2007-08-06 14:10:46 +00:00
poltawski 630f31b75c MDL-10714 - tweak language to explain allowdeleting feature correctly 2007-08-06 13:38:58 +00:00
poltawski 148e093abb MDL-10715 - remove inappropiate 'upload not allowed' options on upload assignment types!
Merged from MOODLE_18_STABLE
2007-08-06 13:28:40 +00:00
tjhunt 0675e5eb8f MDL-9519 - incorrectuse of language strings in quiz. Merged from MOODLE_18_STABLE. 2007-08-06 13:22:59 +00:00
skodak 29d509f59a MDL-10109 optional aggregation of outcomes together with grades 2007-08-06 12:05:45 +00:00
moodler e754b3e058 Just hiding the calculation field from the edit forms until we do something better with it. Inthe meantime, use the main calcualtion form. 2007-08-06 09:42:47 +00:00
nicolasconnault be55a047dc MDL-9628 Added title attributes to quickgrading and quickfeedback input elements, and gave the quickfeedback input a dashed 1px black border to distinguish it easily from the grade input. 2007-08-06 09:02:22 +00:00
skodak eedd3aa27b edit tree now respects aggregationposition preference 2007-08-06 09:01:18 +00:00
nicolasconnault 859c72599f MDL-9628 Fixed sorting 2007-08-06 08:10:37 +00:00
moodler 72ce416cd7 Fixed notice about $USER when not logged in 2007-08-06 07:53:31 +00:00
nicolasconnault ca145cc84e MDL-9628 Removed superfluous & in URL (part of $report->baseurl) and reversed the default sortitem order from ASC to DESC (highest grade first). 2007-08-06 06:07:23 +00:00
nicolasconnault a067e30df5 MDL-9775 Reverting Urs' dot, so that martin can play around with this issue. 2007-08-06 05:49:49 +00:00
moodler c74fd1e85c Added grade.php file to make MDL-10674 work 2007-08-06 05:38:58 +00:00
moodler 4c67d26eda Added grade.php so that MDL-10674 works 2007-08-06 05:31:17 +00:00
mattc-catalyst a64b66ddcf MDL-7043: fix insert link functionality to allow linking to images again
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-08-06 04:38:59 +00:00
moodler 2fb21c7e61 Automatic installer.php lang files by installer_builder (20070806) 2007-08-06 03:46:48 +00:00
stronk7 fd9162abef fix insert_record() call using arrays instead of objects
Merged from MOODLE_18_STABLE
2007-08-05 22:51:07 +00:00
stronk7 4a8e7db55e $dataobject in insert_record() and update_record() must be objects.
Added code to detect, fix and debug array situations. Related to MDL-9751.

Merged from MOODLE_18_STABLE
2007-08-05 22:40:10 +00:00
urs_hunkler 11d6ec1355 merged from 1.8 - $thumbwidth not calculated 2007-08-05 16:42:31 +00:00
koenr 903dcaba78 added missing <p> MDL-9941 2007-08-05 13:33:55 +00:00
koenr 48356d2e62 INHERIT -> NOT SET MDL-10162 2007-08-05 13:30:47 +00:00
koenr 9b2f3e3194 "new" is out of Mexican Peso since 1996 MDL-9086 2007-08-05 13:25:44 +00:00
urs_hunkler d63ef3b83b MDL-10408 - added checks for propertyIsEnumerable for MooTools compatibility 2007-08-05 12:15:27 +00:00
urs_hunkler 48bfa2e0c9 Nicolas' changes to custom_corners has broken the theme. I decided to use the same method as clearfix by adding a "." and not a "&nbsp;". Some additional CSS is needed either way. 2007-08-05 10:31:57 +00:00
moodler 71593f3e9c iMerged theme fix from 18 2007-08-05 05:44:13 +00:00
stronk7 42fa499221 Prevent one warning
Merged from MOODLE_18_STABLE
2007-08-04 18:48:35 +00:00
stronk7 d660c423fd Support some strings from within the auth plugin lang files added. MDL-10694
Merged from MOODLE_18_STABLE
2007-08-04 17:18:14 +00:00
moodler e25b9d5ece Automatic installer.php lang files by installer_builder (20070804) 2007-08-04 05:36:57 +00:00
luizlaydner 19e41f75f2 - added tag_cron() to cron.php 2007-08-04 01:51:18 +00:00
luizlaydner 5557c75a9f - added block support for tag pages 2007-08-03 21:41:09 +00:00
skodak f615fbaba0 MDL-10711 adding deleting of grade data when deleting module or course 2007-08-03 19:25:22 +00:00
nicolasconnault f2c883562d Gradebook unit tests review 2007-08-03 15:10:25 +00:00
skodak 39bb937a6a MDL-10549 finally found the cause of incorrect layout - invisiblefieldset strikes again 2007-08-03 14:56:32 +00:00
skodak a330e1ae5d MDL-10549 aligning outcomes the same way as grades on submissions page == right 2007-08-03 14:38:22 +00:00
skodak 38f4c3fc4b MDL-10549 css fixes - alignment in popup grading in ff still not ok, hmmm 2007-08-03 14:32:26 +00:00
tjhunt 90a36f8cdf MDL-10709 - Shortanswer resonses should be trimmed before being saved in the database. Merged from MOODLE_18_STABLE. 2007-08-03 14:26:46 +00:00
skodak e79541a3b7 fixed updating of idnumbers 2007-08-03 14:12:38 +00:00
skodak 1a35ee51ac MDL-10549 css fixes - work in progress 2007-08-03 14:03:32 +00:00
urs_hunkler c02345e398 added spaces before the divs too for req and adv icon alignment.
added ftoggler class to the labels and fcontainer div within the fieldset to be able to toggle the fieldsets open and collapsed with a JS framework.
2007-08-03 13:28:03 +00:00
skodak fbaa56b22d MDL-10549 adding support for disabling outcomes 2007-08-03 13:22:31 +00:00
skodak 4f51f48fdf reverting last commit 2007-08-03 13:08:05 +00:00
donal72 b4daa48f1e Link to profile editing should not appear on remote-users' profiles (except for the user himself). 2007-08-03 12:28:33 +00:00
nicolasconnault 206ab18470 MDL-9775 Added &nbsp; inside the <div></div> for class="bt" and class="bb", for custom corners theme
MDL-10702 Finished fixing the CSS
2007-08-03 11:55:28 +00:00
urs_hunkler cbdb3705ce Added a space before divs too 2007-08-03 11:51:14 +00:00
donal72 2f33c23492 MDL-9288 : An additional addslashes() that was in Petr's patch but didn't get committed. Tested and required. 2007-08-03 11:16:22 +00:00
urs_hunkler 620cd35d39 Added a space behind advancedimg to correct aligning in forms :: second approach, the first one didn't work in IE 2007-08-03 11:00:11 +00:00
tjhunt 99ebfea247 MDL-10690 - Make quiz name a manditory field. Merged from MOODLE_18_STABLE. 2007-08-03 10:33:29 +00:00
donal72 0e2bcc6a55 Additional lang strings for Mahoodle 2007-08-03 10:17:18 +00:00
donal72 987addd949 Bugfix: Link back to parent Mahara site didn't work 2007-08-03 10:16:23 +00:00
urs_hunkler e4d0193411 Added a space behind advancedimg to correct aligning in forms. 2007-08-03 09:30:36 +00:00
toyomoyo 9107bee680 MDL-10365, adding backup support and GUI for grade history tables, no restore yet 2007-08-03 08:55:26 +00:00
donal72 c80934aa48 MDL-9314 : Fix typo $access / $accessctrl 2007-08-03 08:54:57 +00:00
skodak 1eb05d980c improved aggregation - items without value (none + text) are not aggregated; faster regrading of categroies with no grades; lang typo fixed 2007-08-03 08:41:20 +00:00
skodak 41486d1c40 MDL-10702 fixing handling of slashes in grade forms 2007-08-03 08:12:06 +00:00
nicolasconnault febf921c78 MDL-10702 Removed the false param from outcomeitem.php $mform->get_data(false) 2007-08-03 07:18:15 +00:00
moodler 087f9bc6d7 Automatic installer.php lang files by installer_builder (20070803) 2007-08-03 07:03:47 +00:00
gbateson b9cb227378 changes to add new mod_form.php script to add/update hotpots 2007-08-03 05:06:30 +00:00
moodler aa4a987145 Merged fix for MDL-10700 from 18_STABLE 2007-08-03 03:30:23 +00:00
moodler 9d0d661cc5 Updated with latest release 2007-08-03 03:20:30 +00:00
toyomoyo 59fe9db0e5 utilities js needs to be called before connection for YUI 2.3.0 to work 2007-08-03 03:03:05 +00:00
stronk7 5930cded47 Added space to perform correct N' queries under MSSQL. MDL-10423
(plus general whitespace clean)

Merged from MOODLE_18_STABLE
2007-08-02 23:39:28 +00:00
skodak cc03871ba3 MDL-10549 outcomes quickgrading in assignment
TODO: fix html and CSS
2007-08-02 22:38:52 +00:00
luizlaydner 327136f735 - improved the layout of the list of user in a tag page 2007-08-02 17:23:42 +00:00
nicolasconnault 6d762c249c MDL-10109 Completing unfinished refactoring. Thanks Petr :-) 2007-08-02 15:13:09 +00:00
nicolasconnault 2d6df44f7f MDL-10109 Only creating new category when at least 2 grade_items (inc. outcome or normal grade) 2007-08-02 14:33:29 +00:00
moodler 1a85d89a0b Fixed index upgrade 2007-08-02 14:25:58 +00:00
nicolasconnault 61defed9f2 MDL-10109 New category gets created without problem, and the outcomes are created and added as children of that category. The normal grade_item, if present, is also added before the outcomes.
There is only one issue which is probably not directly related to this issue: When these new objects are created, the changes take a few page loads to appear correctly in the grader report. Sometimes I even had to open the Category and item edit page and then the grader report again before the correct changes would appear and remain that way afterwards
2007-08-02 14:22:20 +00:00
moodler 32ef914951 Recreate index as unique 2007-08-02 14:20:37 +00:00
luizlaydner 26d8649f99 added a record_exists check before creating tags and tag_instances 2007-08-02 14:16:45 +00:00
skodak 8942ac90ff MDL-10105 fixed cm idnumber in gradebook upgrade 2007-08-02 11:22:13 +00:00
skodak c521e8e403 MDL-10105 some more idnumber fixes 2007-08-02 11:07:44 +00:00
skodak 602433133e MDL-10105 idnumber uniqueness tested before insert in UI now - both modedit and item edit pages 2007-08-02 10:38:18 +00:00
toyomoyo 489a965500 MDL-10336, upgrading YUI to 2.3.0 2007-08-02 09:13:40 +00:00
nicolasconnault 75bde3cc0d MDL-10109 Adding missing global $CFG 2007-08-02 08:32:49 +00:00
toyomoyo c345bb584a MDL-10679, improvement to context_rel table and load_user_capability 2007-08-02 08:28:29 +00:00
moodler 72c31c778d First pass at cleaning up this form, though it probably should be made vertical instead (see how time goes) 2007-08-02 07:57:15 +00:00
moodler 1966aa49b9 Added outcomes link back again 2007-08-02 07:39:24 +00:00
donal72 1bef950e2e Sharpen up call to 'dangerous' functions. 2007-08-02 05:35:19 +00:00
moodler 2a598439eb Change the default tab of outcomes page 2007-08-02 05:34:48 +00:00
donal72 68bcd355af Rename the 'promiscous' mode to 'dangerous' as promiscuous is used elsewhere. 2007-08-02 05:27:06 +00:00
donal72 4fc66605f2 Minor mnet keyswap bugfix 2007-08-02 05:16:59 +00:00
moodler c4a71837f3 Removed outcomes and scales links (Use grades instead) 2007-08-02 05:13:15 +00:00
moodler 3a64057689 Bigger image for big screens 2007-08-02 02:50:53 +00:00
luizlaydner 4f81c51d35 - Added to support for rawname column, so it is possible to keep the original casing of tag names.
- a bit of refactoring
2007-08-02 02:47:20 +00:00
donal72 b26a847bbe Minor mnet bugfixing. 2007-08-02 00:19:43 +00:00
skodak 11a149995e MDL-10364 improved calculation form 2007-08-01 21:48:10 +00:00
tjhunt 3a41f324cc Fix notices on the admin page. 2007-08-01 16:54:39 +00:00
nicolasconnault 1815b45c1b MDL-10676 Added linking activity icons to grader report headers, based on user preference /config setting. 2007-08-01 14:52:14 +00:00
skodak c738c61c44 fixed links broken while renaming tree.php to index.php 2007-08-01 14:31:51 +00:00
nicolasconnault 2e3987a935 MDL-10674 and MDL-10675 finished 2007-08-01 14:08:50 +00:00
thepurpleblob c56abad900 MDL-10680:
subquestions/subanswers needed swapped for matching questions

Merged from STABLE_18
2007-08-01 13:44:35 +00:00
skodak 9127bc5dbf outcome related fixes 2007-08-01 12:40:38 +00:00
thepurpleblob 4d3145f3d3 MDL-10585:
MDL-10584:
Present more factually correct message when a guest attempts to enrol.
Provide a mechanism for specifying which role in a course holds the
enrolment key.

Merged from STABLE_18
2007-08-01 11:52:05 +00:00
thepurpleblob 583d4cec4f MDL-10585:
MDL-10584:
Present more factually correct message when a guest attempts to enrol.
Provide a mechanism for specifying which role in a course holds the
enrolment key.
2007-08-01 10:56:50 +00:00
moodler b20ce924ee Just trying some default settings here MDL-10529 2007-08-01 09:07:42 +00:00
moodler de053a0144 SLight changes to strings, not enough to warrant new stinrgs 2007-08-01 09:00:52 +00:00
moodler 621739e7e4 Now emails use the new supportemail, supportname and supportpage settings in emails sent out MDL-10529 2007-08-01 09:00:21 +00:00
moodler 3917c07e35 Added supportpage as well, while I'm at it. MDL-10529 2007-08-01 08:25:41 +00:00
moodler dceaf5bf33 New text for support email stuff 2007-08-01 08:22:47 +00:00
moodler 9610a4fae3 Added new settings supportname and supportemail MDL-10529 Admin is no longer to be used as main contact 2007-08-01 08:05:55 +00:00
nicolasconnault fafe1cd23e MDL-9628 Reverting to using gradebook plugin module names in navigation 2007-08-01 07:41:13 +00:00
toyomoyo ed3cdf07fc scales should be (courseid, scale) unique, since it's already abused it's not possible to add a unique in db, so we add additional check in GUI. Duplicate scale, course causes mapping problems in backup/restore 2007-08-01 07:40:40 +00:00
nicolasconnault 826c5f8635 MDL-9628 Refactoring the building of navigation array for gradebook pages 2007-08-01 06:47:35 +00:00
toyomoyo df9f4b0f07 fixing scale backup/restore 2007-08-01 06:24:15 +00:00
toyomoyo 6cdaa1f43b adding grade_outcomes_courses into backup and restore 2007-08-01 05:55:36 +00:00
gbateson 1094f0637f add extra parameter to "hotpot_print_show_links" function so that links can be printed (the default action) or returned to the calling function as a string 2007-08-01 05:35:29 +00:00
gbateson 620aca0ac2 set"reportusers" to PARAM_ALPHANUM, so that it can accept userids and group names 2007-08-01 05:33:49 +00:00
gbateson b2909a8e18 further fix for javascript errors: getElementById -> document.getElementById 2007-08-01 05:29:01 +00:00
gbateson 33934912cc correct 2 javascript errors: "getELementById not defined" and "parseint not defined" 2007-08-01 05:20:46 +00:00
moodler 9988d1b7a7 When editing old outcomes when outcomes are switched off, just treat them like an ordinary scale item 2007-08-01 04:50:39 +00:00
moodler f3b783f407 Hide outcomes from mod update when outcomes are not enabled 2007-08-01 04:40:56 +00:00
moodler a2a136b8ad Hide some outcomes stuff when $CFG->enableoutcomes is off 2007-08-01 04:34:08 +00:00
moodler 33c35353dd Don't show outcomes at all if it's not enabled. 2007-08-01 03:57:28 +00:00
toyomoyo 1f496dedfe enforcing unique constraint on (courseid, shortname) pair on outcomes 2007-08-01 03:17:00 +00:00
skodak 3a5ae6602b MDL-10544 basic support for outcomes grading in modules - implemented in assignment popup grading (TODO: fix html and css there) 2007-07-31 22:56:29 +00:00
stronk7 56c28adb97 Simple outcomes icon 2007-07-31 22:55:34 +00:00
stronk7 b030054c1c Using new outcomes icon + whitespace cleaning. 2007-07-31 22:54:46 +00:00
skodak 678a79caa5 adding grade_outcomes description;
fixing field lengths in outcome and scale forms
2007-07-31 21:10:20 +00:00
skodak 24881e5dd0 fixed insert trouble with standard outcomes - thanks Eloy 2007-07-31 20:26:37 +00:00
stronk7 0f870a49ea Properly close the "rolesform" div. Now the form validates both
with roles dropdown and without it.
2007-07-31 20:10:05 +00:00
stronk7 6aad3d297e Fix one-character-wrong-indentation. Nothing important. 2007-07-31 19:34:20 +00:00
stronk7 97d937a416 Added explanation to block_rss_client_timeout. MDL-9292. Credit goes to Mike! B-) 2007-07-31 19:19:41 +00:00
stronk7 f0aae42f41 rss_client cron added. Min time between executions set to 5 mins. And
online fetching will use a double caching time, so chance of caching
feeds by the cron process will be near 100%. MDL-9292
2007-07-31 18:52:38 +00:00
stronk7 9c6808457e Moving block_rss_timeout to block_rss_client_timeout. Work in progres... 2007-07-31 17:05:50 +00:00
stronk7 20185f7d8b Moving block_rss_timeout to block_rss_client_timeout and
making it work as minutes (was seconds).
2007-07-31 17:03:51 +00:00
moodler 9d1e218576 Fixing copyright years 2007-07-31 17:02:43 +00:00
moodler 80c3fd51ee Merged fix for doc links MDL-10670 from 1.8 stable 2007-07-31 16:19:53 +00:00
skodak 71ee4471ac MDL-10544 outcome adding from modedit 2007-07-31 14:34:11 +00:00
moodler e36fe14acc Removing csv export because txt already does it 2007-07-31 14:28:08 +00:00
moodler 423b2f006a Some cleanups, moving buttons, false links etc 2007-07-31 14:04:13 +00:00
moodler 60e2592702 Reordered the list a bit 2007-07-31 13:51:07 +00:00
nicolasconnault bb3f9f08dd MDL-10550 Using Petr's new grade_outcome::fetch_all_available() method to get the outcomes for the report. 2007-07-31 13:34:36 +00:00
skodak 7fdcc3b092 fixed whitespace 2007-07-31 13:05:00 +00:00
skodak 2fa3ea10f1 edit/outcomeitem.php - fixed selection of outcomes to show only available course outcomes 2007-07-31 13:04:35 +00:00
skodak 4c2402b2f8 minor scale related changes, added fixed update() into grade_outcome class 2007-07-31 12:52:17 +00:00
skodak 3818937e4a more Edit/Outcomes improvements - new course column for standard outcomes; outcomes_course consistency checks; removed debug delays 2007-07-31 12:03:45 +00:00
skodak b4ff0358ea added more return tracking to scale links in Edit/Outcomes 2007-07-31 11:01:10 +00:00
skodak 0297e313ce improced assigning of used course outcomes, added return tracking to scale links in Edit/Outcomes 2007-07-31 10:57:05 +00:00
moodler aab22042fb Added links to sclaes from outcome editing page 2007-07-31 09:15:39 +00:00
skodak 042596946b tabbed Edit/Outcomes interface, link from course admin block, added manage outcomes capability, other cleanup 2007-07-31 09:10:35 +00:00
toyomoyo b2af9c5895 some more fix on grade outcome scaleid, should be working now 2007-07-31 09:04:36 +00:00
toyomoyo a51512c9bc some fixes for gradebook backup/restore, still buggy when viewing outcomes/report, fixing 2007-07-31 08:26:17 +00:00
moodler 1e1c51a3b7 Changes to user profile pages to edit/display interest tags 2007-07-31 08:09:46 +00:00
moodler d5581d97d8 New styles for tags 2007-07-31 08:09:20 +00:00
moodler 90b74b557d New strings for tags capabilities 2007-07-31 08:09:04 +00:00
moodler d142af3ab0 New strings for tags 2007-07-31 08:08:03 +00:00
moodler 9db103e9c5 Strings for tags admin 2007-07-31 08:07:15 +00:00
moodler e9250d8c50 Added object_array_unique() needed for tags 2007-07-31 08:06:39 +00:00
moodler c933a06065 First checkin of tag system from GSOC student Luiz Cruz
It's a very simple first version.

TODO for 1.9:

   - Store rawname of each tag as well as normalised version and treat accordingly
   - Add blocks to the tag interest pages
2007-07-31 07:51:32 +00:00
moodler 705789bda6 Upgrades to tag tables 2007-07-31 07:34:03 +00:00
nicolasconnault 23281a6ac3 MDL-10550 Reverted some of Petr's changes, and added styling to the table. 2007-07-31 07:26:13 +00:00
moodler 7964206412 Added tables for new tags 2007-07-31 05:59:32 +00:00
toyomoyo f29146dd44 adding a print_heading() call 2007-07-31 04:24:39 +00:00
toyomoyo 0b06f5666d fixing course outcomes edit page to not use user preference but proper grade_outcomes_courses table, because course outcomes should not be a user preference 2007-07-31 04:09:00 +00:00
toyomoyo 014834e40b fixing print_grade_plugin_selector() to point to edit/courseoutcomes 2007-07-31 03:28:30 +00:00
toyomoyo cc7915781e adding courseoutcomes, removing favoutcomes 2007-07-31 03:23:07 +00:00
toyomoyo 2c3bfac9e8 removed and placed in courseoutcomes 2007-07-31 03:20:53 +00:00
toyomoyo edc91676f1 fixing the average query to use subquery so that userids can be distinct, this prevents duplication of grades in case of multiple roles for same user 2007-07-31 03:19:32 +00:00
moodler 521d54ecea Replaced the grade_outcomes_courses table that was deleted by accident 2007-07-31 02:28:51 +00:00
stronk7 9838bfa6b2 Prevent some notices... 2007-07-30 23:50:04 +00:00
stronk7 b595c18cca search cron was killing the rest of cron tasks!
Merged from MOODLE_18_STABLE
2007-07-30 23:42:16 +00:00
stronk7 afd1ec0223 Now the block->cron attribute is updated in the block table both
at install and upgrade (previously it was set only at install).

Plus general cleanup of whitespace.
2007-07-30 23:31:17 +00:00
skodak 173a9d21ea various grade outcomes and scales improvements, fixes, changes and refactoring
added new favoutcomes plugin settings page - to be used later, this replaces the grade_outcomes_grades table
admin settings - outcomes and scales both have settings page now
2007-07-30 22:56:45 +00:00
tjhunt d349d4f0e1 MDL-10661 - another bloody invisiblefieldset bug. Merged from MOODLE_18_STABLE. 2007-07-30 22:14:32 +00:00
stronk7 29b71de660 Delete some trailing whitespaces... 2007-07-30 19:13:19 +00:00
urs_hunkler 78b90296f7 MDL-10645 :: removed the quotes around $navigation" within print_navigation($navigation). 2007-07-30 18:43:43 +00:00
stronk7 13c59ebc0f Fixed one minor XHTML problem 2007-07-30 17:20:42 +00:00
stronk7 88dffda52c Cleaning some trailing spaces here and there. 2007-07-30 17:11:55 +00:00
tjhunt 5fceb049cc Use of get_html_head_contributions was causing unwanted interaction bewteen question types. Switched to using a class variable. 2007-07-30 17:04:46 +00:00
stronk7 5460bdd884 Since now, Moodle 2.0 will require PHP 5.2. MDL-10390
Merged from MOODLE_18_STABLE
2007-07-30 16:49:40 +00:00
nicolasconnault e751b5602e MDL-9664 Attempting to address the issue. I need feedback from many people on this, so this commit is only a temporary fix. 2007-07-30 16:43:12 +00:00
stronk7 2b22db69c3 Re-adding some strings that were lost when stripping BOMB 2007-07-30 15:16:22 +00:00
stronk7 e5736382ec Re-adding some strings that were lost when stripping BOMB 2007-07-30 15:12:01 +00:00
stronk7 f05e24491a Re-adding some strings that were lost when stripping BOMB 2007-07-30 15:06:52 +00:00
nicolasconnault 84338bde48 MDL-10637 Applied Eloy's suggested fix to the BOMs in the files he detected on his oh-so-aware Mac :-) 2007-07-30 11:51:37 +00:00
tjhunt de266537a7 MDL-10300 - cleaning incorrectly applied to overall feedback. 2007-07-30 10:33:43 +00:00
tjhunt 00719c02d6 MDL-10656 - Way to control when Overall feedback is displayed, independantly of the other sorts of feedback. Also, improve the layout of those settings on the quiz editing form. 2007-07-30 10:05:11 +00:00
nicolasconnault 56cef27dab MDL-10210 Updated the admin settings page for the grader report. 2007-07-30 09:46:01 +00:00
tjhunt 46ee31748d Change the config.html form to match changes made in mod_form ages ago. Oops! 2007-07-30 09:41:31 +00:00
tjhunt 9fd26d1042 Eliminate commented code. 2007-07-30 09:36:39 +00:00
nicolasconnault 8933d48cf4 MDL-10210 Added help text for fields of 'text' type: "Leave this field empty to use the site default (currently $a)" 2007-07-30 09:01:14 +00:00
toyomoyo 7b61efbefe bug fix and hopefully faster grade average calculation 2007-07-30 08:50:26 +00:00
nicolasconnault 28c955150e MDL-10210 Re-organised the gradebook preferences, and now displaying site defaults inside the dropdown menus instead of the labels. 2007-07-30 07:12:33 +00:00
toyomoyo 9ade462ce1 fixing broken paging bar 2007-07-30 06:58:46 +00:00
toyomoyo 268366744a adding jumpto menu for import and export 2007-07-30 06:28:41 +00:00
toyomoyo 082443a9d3 adding jump menu 2007-07-30 06:23:24 +00:00
toyomoyo 3e176d9de2 adding function get_fieldset_select() MDL-10181 2007-07-30 04:36:05 +00:00
toyomoyo 57a80eb6a3 fixing notes style 2007-07-30 04:31:26 +00:00
toyomoyo 4e4889f28d fixing some strings 2007-07-30 04:30:19 +00:00
moodler fc2ee492d1 Automatic installer.php lang files by installer_builder (20070730) 2007-07-30 04:29:24 +00:00
toyomoyo 1cf124a7de merged fix for MDL_10640, adding missing index for mdl_role_capabilities table during upgrade 2007-07-30 02:42:17 +00:00
skodak 78ad5f3ff0 MDL-10544 placeholder for outcome edit forms grade/edit/outcome/
MDL-10650 scales code moved to grade/edit/scale/
refactoring in grade/edit/
2007-07-29 23:02:03 +00:00
urs_hunkler 70244cc2cd MDL-10075 - changes done following Petr's patch and optional_param with default ltr 2007-07-29 20:46:05 +00:00
skodak cb5105a872 MDL-9960 more support for NULLs in db values + unittests 2007-07-29 15:20:51 +00:00
skodak 31fa03861f fixed grade category unit tests 2007-07-29 13:58:57 +00:00
skodak 514a3467a4 MDL-10636 reverting last commit 2007-07-29 13:22:50 +00:00
stronk7 21fed7a3ed Minor change from 0 to null in formats. More correct and compatible
with previous (0) implementation. MDL-9911
2007-07-28 16:04:52 +00:00
stronk7 35dc61d374 Updating PEAR-Excel lib doc. MDL-9911 2007-07-28 15:15:26 +00:00
stronk7 8e268b268b Updating PEAR-Excel package to 0.9.1 MDL-9911 2007-07-28 15:14:16 +00:00
nicolasconnault f04873a9ea MDL-10636
Attempting to fix a number of bugs related to backup/restore for gradebook
2007-07-28 09:23:32 +00:00
moodler 300cede9d7 Automatic installer.php lang files by installer_builder (20070728) 2007-07-28 06:02:11 +00:00
stronk7 6237acc230 Adding one Moodle note about the local hack performed. MDL-9911
Merged from MOODLE_18_STABLE
2007-07-28 00:17:25 +00:00
stronk7 3fef791551 Moodle hack to make the excel generation lib really better
under UTF-8. Credit goes to Thomas Robb. MDL-9911

Merged from MOODLE_18_STABLE
2007-07-28 00:04:44 +00:00
mchurch 0ea0369669 Bug #MDL-10632, fixing the use of 'delete_event'. 2007-07-27 18:39:54 +00:00
nicolasconnault 9ba38673fa Fixed bugs and typos in grade backups 2007-07-27 13:38:06 +00:00
tjhunt bb7053f3d8 MDL-10627 - "No message plugins installed" warning on admin page on head 2007-07-27 11:31:34 +00:00
dwoolhead 98907dbaaa Correct display of unittest results for IE 2007-07-27 11:13:22 +00:00
tjhunt a2cd1ed6ff MDL-10626 - Change HTML of checkboxes etc., to make it easier to style forms 2007-07-27 11:05:34 +00:00
tjhunt a4bcb27f0e Improvements to sql_bitand, etc. so that the caller does not have to worry about operator precidence. 2007-07-27 09:24:20 +00:00
nicolasconnault 1bf35770e6 Repaired the language file that was causing the printing of a weird UTF-8 character in admin page 2007-07-27 06:18:39 +00:00
toyomoyo 3527464679 when unassign users in course, if user has no more course:view capability left, he should be removed from all groups in course 2007-07-27 05:43:05 +00:00
toyomoyo bf4bb28d4f MDL-10557, adding format_string() to support multilang filter usage on grade item names 2007-07-27 02:28:59 +00:00
toyomoyo b0e1ed348a MDL-10557, adding format_string prior to return of grade item name in order to support multilang filger 2007-07-27 01:59:47 +00:00
stronk7 6287423e4a Adding not needed - but better - missing break 2007-07-26 18:06:11 +00:00
stronk7 fd5d527925 Adding some sql_bitXXX() functions to be able to generate
cross-db bitwise operations. Not fully tested yet but I need
this in CVS to be able to test under Oracle.
2007-07-26 17:45:08 +00:00
thepurpleblob 1b36a58597 MDL-10239:
Improper check for correct answer in true/false questions
2007-07-26 15:08:16 +00:00
thepurpleblob 46d798182a This new moodle_url thing (which is really confusing by the way)
had broken the page. The selected category was being ignored.
Fixed, but possibly not in the most elegant way!!
2007-07-26 13:50:59 +00:00
thepurpleblob 7d43178bf2 This new moodle_url thing (which is really confusing by the way)
had broken the page. The selected category was being ignored.
Fixed, but possibly not in the most elegant way!!
2007-07-26 13:43:25 +00:00
thepurpleblob a783cec297 Possible error passing course id from page to page resolved 2007-07-26 12:38:28 +00:00
tjhunt d5ab1b0cf4 Minor tidyup. 2007-07-26 12:04:34 +00:00
tjhunt 8995ddda2a MDL-10619 - Quiz password form does not work. 2007-07-26 11:39:04 +00:00
thepurpleblob 301317e987 Whoops - parameters need to match category check and display of course. 2007-07-26 11:04:28 +00:00
thepurpleblob 9782846235 MDL-9123:
Check that the selected category is allowed.

Merged from STABLE_18
2007-07-26 10:56:13 +00:00
nicolasconnault e96cb4feaa MDL-10550 Fixed small bugs 2007-07-26 08:49:53 +00:00
nicolasconnault 41b477217d MDL-10210 Removed the loading of the $CFG versions of the preferences when the user versions are set to default. This means that a value set to default always stays at default unless it is changed manually. 2007-07-26 07:58:00 +00:00
moodler eabbdb0ee5 Automatic installer.php lang files by installer_builder (20070726) 2007-07-26 05:08:10 +00:00
toyomoyo 16677200a3 adding some strings 2007-07-26 03:09:13 +00:00
toyomoyo 6872debcc8 merged fix for MDL-10564, wrong userid used in get_my_courses() for blogs 2007-07-26 02:47:44 +00:00
toyomoyo 787fb606a6 merged fix for MDL_9804, course shortname limited to 15 chars on forms 2007-07-26 02:30:18 +00:00
skodak f10fac9669 MDL-10544 basic UI for outcome item adding/editing implemented - todo: calculation support, lang strings, bugfixing...
whitespace cleanup
2007-07-25 22:12:17 +00:00
skodak 4faf5f99be MDL-10478 reworked collapse/expand for grade categories 2007-07-25 19:57:47 +00:00
tjhunt be161556ce OU Bug 2867 - Overview report keeps forgetting the 'Display options' settings. Merged MOODLE_18_STABLE. 2007-07-25 17:08:41 +00:00
nicolasconnault 438a5aa9ad MDL-9628 Moving Basic support for compact view from report class to grade_category class, internal to the grade_tree recursive construction 2007-07-25 15:04:31 +00:00
urs_hunkler e7bbdbbaa1 added paddign-top:1em for removed <br /> in sitelink 2007-07-25 14:58:40 +00:00
urs_hunkler 3572b8b1ee removed <br /> in sitelink 2007-07-25 14:50:37 +00:00
thepurpleblob 6f83b034e0 MDL-10604:
Add ability to add sub categories directly from category screens.

Merged from STABLE_18
2007-07-25 14:02:27 +00:00
thepurpleblob ba5c5f210a MDL-10604:
Add ability to add sub categories directly from category screens.

Merged from STABLE_18
2007-07-25 13:57:26 +00:00
thepurpleblob 7d59f03afd MDL-10604:
Add ability to add sub categories directly from category screens.
2007-07-25 13:54:25 +00:00
tjhunt 33dfb53e09 Fix whitespace. 2007-07-25 12:34:21 +00:00
tjhunt 362b172c18 Tabs to spaces. 2007-07-25 12:01:57 +00:00
urs_hunkler a08d370b51 changed old getElementById(id).submit() to the new submitFormById(id) call. 2007-07-25 11:19:42 +00:00
nicolasconnault 48b5d8f38b MDL-9628 Basic support for compact view 2007-07-25 09:33:08 +00:00
toyomoyo 675bfda8ae changing to more cross-db compatible is null 2007-07-25 09:12:31 +00:00
toyomoyo fc61f64b72 some fixes for grade outcomes 2007-07-25 08:57:59 +00:00
moodler f3db3cfc38 New capability gradereport/outcomes:manage and implementation in tabs 2007-07-25 07:53:09 +00:00
toyomoyo 938de499da adding some capabilities to outcomes 2007-07-25 07:51:01 +00:00
moodler b9c70b99de Fix selected tabs 2007-07-25 07:34:00 +00:00
moodler 5d2dfba2a8 IMproved tabs 2007-07-25 07:25:46 +00:00
toyomoyo e41442e47f some outcomes code 2007-07-25 07:24:04 +00:00
moodler 78091c4572 Bumping versions to fix capability upgrade 2007-07-25 07:09:12 +00:00
moodler 05b4211927 A little more info when upgrading plugins 2007-07-25 07:08:07 +00:00
moodler 344e5c5397 Bump to fix capability upgrade 2007-07-25 06:28:50 +00:00
toyomoyo e99c48d856 adding a new key 2007-07-25 03:14:17 +00:00
toyomoyo c0bd9f4865 split into course.php and site.php 2007-07-25 02:03:49 +00:00
skodak 2cc773f5fa MDL-10579 implemented capability checks in grader report, minor refactoring, whitespace cleanup 2007-07-24 21:20:29 +00:00
tjhunt e344003ad6 MDL-10589 - make the forum subscribe link a post form button. 2007-07-24 17:17:52 +00:00
tjhunt 40ce63cbb7 MDL-10588 - refactor the code for printing the 'subscribe/unsubscribe from this forum' link into one place. 2007-07-24 17:06:29 +00:00
nicolasconnault cb7fe7b4b8 MDL-9628 First attempts at trimming grade_tree after fetching, for expanded/contracted categories (compact view mode). So far, so good ... 2007-07-24 16:33:52 +00:00
moodler 0c811aa77a Changing string from "select a plugin" whcih is developer specific 2007-07-24 16:29:18 +00:00
nicolasconnault acdc8e8a9c MDL-10550 Refactoring, fixing a few bugs in edit/item_form.php and more work into the outcome report 2007-07-24 14:26:05 +00:00
tjhunt 962d013395 Oops, typo in one half of the previous commit. See, that is why duplicated code is bad for maintenance! 2007-07-24 10:43:23 +00:00
tjhunt 49b53f26e0 Elimintate duplicated code and simplify some logic. Ironically, do it twice in two separate places, becuase there is some more large-scale code duplication in this file that I am not even going to attempt to fix. 2007-07-24 10:39:10 +00:00
tjhunt 3a5e1d064e Get rid of pointless 'TODO document' comments. 2007-07-24 10:37:00 +00:00
nicolasconnault e2537ca3ea MDL-10550 Finished first draft of the outcomes report. 2007-07-24 10:08:46 +00:00
skodak e77bcaa30d MDL-10579 capabilities for grade import plugins 2007-07-24 09:30:46 +00:00
skodak c71fea5986 fixed cap names for grade:view* 2007-07-24 09:23:43 +00:00
skodak 54690a0894 MDL-10579 capabilities for grade report plugins 2007-07-24 09:20:37 +00:00
tjhunt a7a8973866 MDL-10533 - forum search results were having format_text applied twice, which was breaking things like glossary links. 2007-07-24 09:10:21 +00:00
skodak 89bd8357e9 MDL-10579 capabilities for grade export plugins 2007-07-24 08:51:45 +00:00
moodler 5ca1655863 Just small changes 2007-07-24 08:16:43 +00:00
mark-nielsen 862bd9cd9c Attempting to make the form more compact by merging yes/no fields as an enable checkbox after another field to enable/disable the feature 2007-07-24 08:12:12 +00:00
moodler 807d0c3199 String for outcomes report name 2007-07-24 08:11:34 +00:00
skodak 0a89e2a003 MDL-10579 fixed comment 2007-07-24 07:46:58 +00:00
skodak 7a6b7acf76 MDL-10579 more capability checks in grades code + refactoring of grade_tree 2007-07-24 07:45:15 +00:00
toyomoyo 5d71ece008 adding some new files for grade outcomes 2007-07-24 07:43:46 +00:00
toyomoyo c3bc8c6a23 could not point to settings.php, renaming 2007-07-24 07:41:33 +00:00
mark-nielsen 124b1091fa Moved some printing out of the center column (keeps blocks and center column content aligned) and cleaned some white space 2007-07-24 07:13:14 +00:00
mark-nielsen 16a7ab9826 Merged in changes for MDL-9923 from MOODLE_18_STABLE 2007-07-24 07:04:33 +00:00
mark-nielsen acf85537ee Implemented MDL-10558 - Also took this as an opportunity to create two new methods to reduce code redundancy in the lesson save routines. 2007-07-24 06:33:53 +00:00
moodler f91ef4eb2a Automatic installer.php lang files by installer_builder (20070724) 2007-07-24 06:10:01 +00:00
nicolasconnault 5df8b07016 Added and corrected a number of language strings. 2007-07-24 05:27:46 +00:00
mark-nielsen 4342dc32c5 Implemented feature request MDL-10568 - lesson_print_overview() hook 2007-07-24 05:23:54 +00:00
stronk7 b264019bcb Drop the latest TEXT default existing since XMLDB debut. MDL-6218 2007-07-23 23:28:26 +00:00
mudrd8mz 16d86fda3d Introducing two new functions lang_standard_locations() and lang_extra_locations() as a part of solving MDL-9361.
TODO rewrite the code to work with array returned by these functions.
2007-07-23 22:48:06 +00:00
mudrd8mz 2327394d60 * MAJOR CHANGE: lang.php now uses two new core capabilities. With them, site admin may control who is able to edit master language packages (nobody by default) and who is able to customize local translation (legacy:admin by default). See MDL-10576 for details.
* More GUI improvements and code cleaning
2007-07-23 22:31:19 +00:00
skodak 65dd61bda6 MDL-10579 Implement capability checks in grade import/export/report/edit pages - work in progress
refactoring - reports now use real index.php
2007-07-23 22:20:07 +00:00
stronk7 7229af7890 Re-applying one fix that was fixed some time ago (rev 1.52) and
lost 2 revisions later (rev 1.54). It's only HEAD and not critical.
Now there aren't TEXT columns with DEFAULT clauses at all in xml files!
2007-07-23 19:58:06 +00:00
skodak 2a55410b18 MDL-10576 two new lang pack editing capabilities 2007-07-23 19:50:20 +00:00
skodak dd45888a24 MDL-9511 adding/renaming grading capabilities 2007-07-23 19:22:48 +00:00
tjhunt 9d308cb4d0 Improve javadocs. 2007-07-23 16:54:16 +00:00
stronk7 e3fc108e41 Let's use the default (cached) list of fields here. MDL-10571
Merged from MOODLE_18_STABLE
2007-07-23 16:34:41 +00:00
tjhunt 21976af149 Starting work on MDL-10533 - Eliminate one totally evil abuse of $SESSION. Also, document forum_print_post. 2007-07-23 16:00:36 +00:00
stronk7 374bb2b6c5 Now the my page retrieves all the fields (modinfo included) from the course,
so print_overview() calls are working again.  MDL-10232

Merged from MOODLE_18_STABLE
2007-07-23 15:52:19 +00:00
poltawski c31f631baa MDL-9742 - converting tabs to spaces 2007-07-23 15:38:31 +00:00
tjhunt 5aed30094d Fix whitespace, and round times to the previous multiple of the 'step' option, if necessary. 2007-07-23 14:55:35 +00:00
nicolasconnault ba92364c8b MDL-10550 2007-07-23 14:33:02 +00:00
urs_hunkler 65c7a378cd MDL-10556 :: absolute positioning removed - I am powerless against Microsofts ignorance 2007-07-23 11:40:39 +00:00
jgutierr25 6dfddff7ce *** empty log message *** 2007-07-23 11:37:21 +00:00
dwoolhead 1d5bdcd2e4 MDL-10574 Backup and restore event table modulename column 2007-07-23 10:20:15 +00:00
moodler 850e7ac564 Merged fix for full link to post in search results , from stable 2007-07-23 09:11:57 +00:00
toyomoyo bdf3bbd198 if limit is specified on first call, ignore it, retrieve all, so that we can cache all entries, but only return the required number of entries at the end 2007-07-23 08:56:26 +00:00
toyomoyo 182c21f139 making get_my_courses() respect $limit 2007-07-23 08:38:07 +00:00
toyomoyo 4e67c97b7d link to outcome editting interface 2007-07-23 08:23:25 +00:00
moodler e2008be287 Various language string fixes for grade reports 2007-07-23 08:13:59 +00:00
moodler d0cdfa0f91 Language files for default grade plugins 2007-07-23 07:54:29 +00:00
toyomoyo e7746cf4f8 adding some outcome files 2007-07-23 07:49:52 +00:00
toyomoyo 16108ca68a MDL-10565, removing wrongly placed duplicate language file 2007-07-23 06:29:04 +00:00
stronk7 e5797cd4ad Small improvement. Reducing the list of fields returned
by get_my_courses().

Merged from MOODLE_18_STABLE
2007-07-22 23:02:04 +00:00
stronk7 0315a841a3 some minor changes for better IE experience 2007-07-22 22:45:13 +00:00
poltawski 47f6428969 MDL-7835 - add emailstop to user upload 2007-07-22 21:56:04 +00:00
skodak 42ff9ce68b MDL-10111 migration of data into new gradebook; added new lib/db/upgradelib.php file (should be used by new groups upgrade code too) 2007-07-22 21:43:47 +00:00
poltawski 63b1cf1fe2 MDL-10343 - abort early when can't create temporary tables when syning users
from LDAP
2007-07-22 21:33:31 +00:00
urs_hunkler 99daae0c7a MDL-10556 IE7 has CSS position absolute problems. Solved with IE inline JS expression. 2007-07-22 19:20:23 +00:00
urs_hunkler 8b992903d7 MDL-10556 IE has position absolute problems. set to relative 2007-07-22 19:18:56 +00:00
skodak d049fd45a5 MDL-10566 do not redirect when dubug message printed; do not redirect also in DEBUG_ALL mode when error found - the DEBUG_DEVELOPER is not used by all developers all the time ;-) 2007-07-22 17:34:41 +00:00
skodak 31a170930d added proper rs_close($rs) 2007-07-22 16:02:57 +00:00
stronk7 993b052886 Small improvement. Reducing the list of fields returned
by get_my_courses() in this block.

Merged from MOODLE_18_STABLE
2007-07-22 10:30:28 +00:00
stronk7 ae7dc0d1e0 New cross-db version of the big union query used by get_my_courses() function.
I've tested both the "IN" subquery and the "FROM" subquery and, under sites
with more courses, the "FROM" one seems to perform slightly better. MDL-9381

Merged from MOODLE_18_STABLE
2007-07-22 00:56:42 +00:00
skodak 23207a1a6a MDL-10563 item excluding implemented;
improved/fixed grade edit page;
some other improvements and cleanup
2007-07-21 14:24:39 +00:00
skodak eacd3700f4 aggregation improvements; fixed aggregation of course category when changing type; old gradebook upgrade wip (untested) 2007-07-21 10:09:57 +00:00
skodak 9acbd7269c MDL-10364 improved internal formula format 2007-07-21 08:43:51 +00:00
thepurpleblob 713b2a2f71 MDL-10531:
GIFT now handles Essay and Description type questions. See help/docs.

Merged from STABLE_18
2007-07-21 07:48:56 +00:00
thepurpleblob d53dd78ad1 MDL-10531:
GIFT now handles Essay and Description type questions. See help/docs.
2007-07-21 07:40:59 +00:00
thepurpleblob e8825e724b MDL-10531:
GIFT now handles Essay and Description type questions. See help/docs.

Merged from STABLE_18
2007-07-21 07:39:22 +00:00
stronk7 4f8cf5bb5f Align properly buttons and drop-down in navigation menu. 2007-07-20 23:44:59 +00:00
stronk7 dd04665779 Final improvements for glossary. Seems ready for 1.9dev. 2007-07-20 23:38:24 +00:00
tjhunt 606f71c97d Fix whitespace. 2007-07-20 17:40:09 +00:00
tjhunt bfbafdfe74 MDL-7925 - it happened again. Stupid bloodly forms lib. I have no idea what it was playing at. Merged from MOODLE_18_STABLE. 2007-07-20 17:10:35 +00:00
skodak c186c7b2cb MDL-10524 minor simplification of median aggregation + fixed aggregation names in lang 2007-07-20 13:54:58 +00:00
thepurpleblob 61fbd0fb52 MDL-10396:
Add an option and a check to (optionally) prevent users being enrolled
in hidden courses.

Merged from STABLE_18
2007-07-20 13:03:19 +00:00
nicolasconnault 90d3960c6d MDL-9633 Fixed ranking in user report. Also enabled group mode on/off to alter total users. This required a refactoring of the grouping code into grade_report abstract class. 2007-07-20 09:34:35 +00:00
thepurpleblob 830ba6ea46 MDL-10157:
Turn the diagnostic prints into error_logs. The more normal "course skipped"
message now requires DEBUG_ALL or greater before it is generated at all.

Merged from STABLE_18
2007-07-20 08:57:05 +00:00
nicolasconnault d5f0aa0196 MDL-9628 Fixed typos and added language strings. Corrected a bug that prevented a decimalpoints of 0 from being used (empty($decimalpoints)) -> is_null 2007-07-20 07:31:13 +00:00
nicolasconnault 5b508a08ae MDL-10345 Refactored grade_report_grader::get_groupavghtml() and grade_report_grader::get_gradeavghtml() into one method: grade_report_grader::get_avghtml($grouponly=false) 2007-07-20 05:53:55 +00:00
moodler 7a31d38fd8 Automatic installer.php lang files by installer_builder (20070720) 2007-07-20 05:39:50 +00:00
nicolasconnault c0c1e7c2ad MDL-10414 Corrected tabindex order 2007-07-20 05:00:07 +00:00
mattc-catalyst cd54510d42 lib/accesslib: Performance optimisation
- On postgres query time drops from ~600ms to ~35ms in some
  instances, in other instances performance is around the same
  as old the implementation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-20 04:05:34 +00:00
stronk7 06ec822832 Just fixing one comment 2007-07-19 21:33:21 +00:00
skodak d14ae855a2 MDL-10524 fixed aggregation for course item + other minor improvements 2007-07-19 17:36:36 +00:00
stronk7 d18634d3fd Splitting white-wood backgroud into two different backgrounds,
one to be used with blocks (darker) and the other for
contents (brighter). Suggestion from Urs!
2007-07-19 17:20:38 +00:00
mchurch 09ba8e56a9 Adding 'get_coursemodule_info' to the standard available functions for assignment types. As a minimum, this allows assignment types to add their own icon (like resource does). 2007-07-19 16:59:51 +00:00
tjhunt 5d5ae618a8 MDL-8056 - one if statement was missed during Matt Clarkson's/Eloy's commit on 15th July 2007. Merged from MOODLE_18_STABLE 2007-07-19 16:51:17 +00:00
urs_hunkler 33762ff3da corrected display of blocks without title 2007-07-19 11:06:19 +00:00
tjhunt e584e7c84e Improve display of preview attemtp summary on quiz view page. 2007-07-19 10:27:54 +00:00
skodak 29a5680ef7 MDL-10527 changed overridden UI logic 2007-07-19 10:04:08 +00:00
toyomoyo f1117649bf adding enableoutcomes flag 2007-07-19 09:02:50 +00:00
skodak 3ee5c20149 MDL-10525 renaming class grade_grades and grade_grades_text - singulars for all grade class names 2007-07-19 08:15:19 +00:00
toyomoyo 2717b64523 adding the grade_outcomes_courses table 2007-07-19 07:35:21 +00:00
toyomoyo 6ad71d66c8 merged fix for MDL-10445, adding of blocks on user blog page not possible 2007-07-19 06:06:28 +00:00
moodler 69ea5e1722 Added support for flv files in resources MDL-9739 2007-07-19 05:51:33 +00:00
moodler 699a8fbe02 Automatic installer.php lang files by installer_builder (20070719) 2007-07-19 05:45:29 +00:00
moodler 759bc3c89a Added support for flv 2007-07-19 05:43:33 +00:00
moodler b15f06224b FIixes to show MP3 player properly MDL-9739 2007-07-19 05:19:24 +00:00
toyomoyo 60ace1e114 merged fix for MDL-10149, preventing the deletion of the last admin role 2007-07-19 05:19:05 +00:00
moodler d670dbee90 Fixed navigation on embedded media 2007-07-19 03:45:30 +00:00
toyomoyo 69b0088cd9 merged fix for MDL-10461, timemodied in role assignments not preserved 2007-07-19 03:37:53 +00:00
stronk7 604015c878 Adding style to one more header. 2007-07-19 00:02:13 +00:00
skodak 5c13c6cc87 MDL-10520 reverting previous commit - the db setup+upgrade code must be fixed first 2007-07-18 21:37:30 +00:00
nicolasconnault 064105e357 Automatic grading Google Summer of Code project (Epaile assignment module) by Arkaitz Garo, First commit. 2007-07-18 21:13:53 +00:00
urs_hunkler 7784025672 added returns to make debugging easier 2007-07-18 21:08:21 +00:00
urs_hunkler e1d02e7e0f corrected an error in the sideblock structure for custom corners 2007-07-18 21:06:40 +00:00
skodak ba74762bda regular whitespace cleanup in grade code 2007-07-18 19:56:07 +00:00
skodak e1d2692a73 fixed problem with quickgrading overriding nonexistent grades with no grade 2007-07-18 19:53:24 +00:00
urs_hunkler 966c9a686c corrected a wrong closing div 2007-07-18 19:51:11 +00:00
skodak 9580a21f1c MDL-9137 added new aggregation needed for upgrade - weighted + extra credit
minor item edit form cleanup
fixed minor bug in grader/lib.php
2007-07-18 19:29:32 +00:00
skodak 3a935caf4d MDL-10517 Use of addslashes in assignment/lib.php 2007-07-18 18:42:45 +00:00
stronk7 72c7ee0c4d Avoid some nested boxes in calendar block 2007-07-18 18:38:28 +00:00
urs_hunkler 0dc89caf21 added clearfix to class settingsform to correct collapsing 2007-07-18 15:53:07 +00:00
urs_hunkler 53c914f8e2 added a wrapper div to be able to handle content shorter than the side columns 2007-07-18 15:41:26 +00:00
nicolasconnault 8c5a416edd MDL-10478 Added category preference aggregationview. This one is linked with the more global preferences and $CFG. However, a category-specific preference needs implementing: grade_report_categorystate{$catid}, which equals GRADE_CATEGORY_EXPANDED or GRADE_CATEGORY_CONTRACTED. I've written a stub in grade/report/grader/lib.php around line 492 for pruning out the grade_tree according to these prefs.
We'll also need to implement the actions for the -/+ icons.
2007-07-18 14:54:35 +00:00
tjhunt b60af635df MDL-10515 - Change HTML to make it easier to style multiple choice questions. Merged from MOODLE_18_STABLE 2007-07-18 13:57:24 +00:00
nicolasconnault 32b97bb24a MDL-10490 Letter type implemented 2007-07-18 11:34:55 +00:00
thepurpleblob 808b3dbeb3 MDL-10496:
Correct role capability requirements had not been included, so menu
was not displayed for roles with only category update and/or bacup
selected (assigned at site level)

Merged from STABLE_18
2007-07-18 09:14:28 +00:00
moodler 939b226a2b Fixed up help button texts MDL-9628 2007-07-18 09:07:50 +00:00
moodler e15d4dd0e0 Move the "default role" into enrolments section MDL-10511 2007-07-18 08:57:28 +00:00
skodak af15f9cc53 MDL-10439 yet another attempt to fix definition_after_data() - see the bug report for sample usage 2007-07-18 08:48:28 +00:00
toyomoyo 5ea4345b72 fixing 2 typos 2007-07-18 08:39:50 +00:00
toyomoyo 5c2aa19894 adding capabilities check 2007-07-18 08:13:09 +00:00
toyomoyo 3446013d45 MDL-10480, implement average grade selection 2007-07-18 08:03:38 +00:00
toyomoyo 61f774e8f6 merged fix for MDL-10469, users with doanything has no courses showing 2007-07-18 07:02:54 +00:00
toyomoyo 1ad2f41253 negative grades might be used so use null check instead. might break other db so might need a sql_null() function or something similar 2007-07-18 06:21:55 +00:00
moodler a5431b72b0 Automatic installer.php lang files by installer_builder (20070718) 2007-07-18 06:17:19 +00:00
nicolasconnault 5e623a335f MDL-10345 Fixed bug that changed a null scale finalgrade to 1 due to passing through bounded_number(1, null, 3) 2007-07-18 05:17:45 +00:00
nicolasconnault 8c4d80f130 MDL-10392 completed: the finalgrade value wasn't assigned to the grade_grades object when its update() method was being called. 2007-07-18 03:57:50 +00:00
nicolasconnault e7536c9222 MDL-10479 Done, but would be nice to middle-align the user names vertically. 2007-07-18 03:34:55 +00:00
nicolasconnault 025bc8d0b1 MDL-10477 Fixed a small bug in grade/edit/item.php , where I was testing for
if (!empty($data->pref_gradedisplaytype))

which returned false if the value was set to 0. I just changed !empty to isset and it fixed it.
2007-07-18 03:14:06 +00:00
toyomoyo e4add64dff putting a space before { 2007-07-18 02:02:48 +00:00
skodak ce86745870 MDL-10481 fixing broken form defaults - sorry 2007-07-17 19:38:27 +00:00
nicolasconnault eff97ae081 minor edit 2007-07-17 19:28:22 +00:00
nicolasconnault db4c796818 MDL-9628 Refactored display "Raw" string into "Real" to avoid confusion with raw vs final grades 2007-07-17 19:04:50 +00:00
stronk7 01516fd39a And key fields are lowercased too. End of MDL-10413
Merged from MOODLE_18_STABLE
2007-07-17 18:57:31 +00:00
stronk7 470617ba0a And index fields are lowercased too. Part of MDL-10413
Merged from MOODLE_18_STABLE
2007-07-17 18:55:51 +00:00
stronk7 40f5b3011a Ensuring we always retrofit lowercase tables. Part of MDL-10413.
Merged from MOODLE_18_STABLE
2007-07-17 18:49:22 +00:00
nicolasconnault e50ce569d9 MDL-10481
Two new preferences: averagesdecimalpoints and rangesdecimalpoints
Two new constants: GRADE_REPORT_PREFERENCE_INHERIT and GRADE_REPORT_PREFERENCE_DEFAULT with string values
removed GRADE_REPORT_GRADE_DISPLAY_TYPE_INHERIT in favour of the above
Added a number of language strings.
2007-07-17 18:46:21 +00:00
tjhunt 4f2c86ad81 OU bug 3463 - warnings when you start an attempt in 'each attempt builds on last' mode. 2007-07-17 15:27:59 +00:00
skodak 83ae2001b9 MDL-10481 minor form cleanup - added prefix for preferences in element names, added header + temporary debug delay before redirect 2007-07-17 15:22:18 +00:00
nicolasconnault 501e0e346e MDL-10481 Elements added to form. item preferences not yet recognised by report. 2007-07-17 14:53:10 +00:00
skodak 2a8c101f69 MDL-10065 move lib/simpletest/grade/simpletest elsewhere
+ fixed categroy locking unittest and minor problem with return value
2007-07-17 14:25:20 +00:00
thepurpleblob e8513d2ca0 MDL-10395:
Course managers are now displayed in the order that the user
selects in the Define Roles page.
2007-07-17 14:07:56 +00:00
thepurpleblob d717df34e0 MDL-10495:
Course Managers role's now in same order as Manage Roles screen.
2007-07-17 13:13:35 +00:00
jgutierr25 df5b8b8895 test if auth cas activated and no parameters 2007-07-17 12:08:26 +00:00
jgutierr25 017f1a617d *** empty log message *** 2007-07-17 11:46:19 +00:00
moodler 7396696823 Moving simpletest to grade directory 2007-07-17 08:50:34 +00:00
toyomoyo ffe8ee5506 allow comments, lock checking for xml plugin 2007-07-17 08:40:35 +00:00
moodler 6eb7645289 latest tags 2007-07-17 07:54:36 +00:00
skodak 128c87a442 MDL-10439 call definition_after_data() from moodleform constructor only when form submitted 2007-07-17 07:48:58 +00:00
nicolasconnault 2f61fc0ee6 MDL-10477 Implementing rangesdisplaytype, finishing off this task 2007-07-17 07:41:52 +00:00
skodak cea2542bfe MDL-10111 aggragationcof for weighted categories and extra items in old gradebook 2007-07-17 07:24:35 +00:00
skodak d30c44814b MDL-10438 inline docs added, moved $gpr into grade class 2007-07-17 06:09:03 +00:00
skodak 0610812aca MDL-10438 inline docs added 2007-07-17 05:52:42 +00:00
nicolasconnault 32ec523e68 removed accidentally added backup file 2007-07-17 05:25:31 +00:00
toyomoyo b263e53907 fixing broken headers 2007-07-17 03:32:10 +00:00
toyomoyo b9dba084ea merged fix for MDL-10475, adding override for legacy student roles before dropping studentcanpost 2007-07-17 02:47:48 +00:00
moodler 554e339b97 Latest tags file 2007-07-17 02:30:08 +00:00
urs_hunkler f0e4a5ee4f Added check if $PAGE is set. Seams that $PAGE is not set on all pages. 2007-07-16 20:59:38 +00:00
stronk7 85250cb314 Adding some course->xxxx missing fields to backup & restore. MDL-10444
Merged from MOODLE_18_STABLE
2007-07-16 20:18:26 +00:00
nicolasconnault bb384a8e29 MDL-10477 Mainly the percentage grade display type 2007-07-16 19:46:54 +00:00
urs_hunkler fc1f65794c #admin-report-courseoverview-index .invisiblefieldset { display: block; } 2007-07-16 19:25:11 +00:00
skodak 3af29899bf MDL-10438 return tracking in grading forms; new grade plugin selector 2007-07-16 18:58:09 +00:00
skodak c35075db50 MDL-10482 incorrect texarea height 2007-07-16 14:50:25 +00:00
tjhunt 46a29ccfec Add id="responseform" to the question preview form tag, to match the quiz form, to make life easier for Javascript on questions. Idea thanks to Adriane Boyd. 2007-07-16 13:32:52 +00:00
tjhunt efe256e4a9 Stop the 'remove rqp' environment message from appearing after the question type is gone. 2007-07-16 13:23:13 +00:00
nicolasconnault 02d1e2cfa9 MDL-9629 New setting and language strings. Also using constants from gradelib in settings.php and preferences_form.php for grader report. 2007-07-16 09:18:02 +00:00
toyomoyo 66b9da277c average class/group should not take non-graded students into consideration 2007-07-16 09:03:23 +00:00
skodak a8578a933b fixed css broken by edit_tree.php to tree.php renaming 2007-07-16 07:32:51 +00:00
skodak b8e9305e70 use min max bounds in update_final_grade() 2007-07-16 07:16:08 +00:00
toyomoyo ccb3f9d984 MDL-10474, fixing division by 0 2007-07-16 07:14:40 +00:00
moodler e95e2f4ccf MDL-9628 FIxed the CSS for category headers 2007-07-16 07:06:51 +00:00
moodler 36e53792c5 Changed "Grand totals" to "averages" everywhere 2007-07-16 07:04:52 +00:00
moodler fbb004324a SOme tidying upup of CSS MDL-9628 2007-07-16 06:24:09 +00:00
toyomoyo 622474db27 page param should not be in the baseurl for group selector, otherwise when you go to page x and switch groups you can end up being on a blank page with no paging navigation 2007-07-16 06:20:03 +00:00
moodler 6164921133 Changes "show scales" everywhere to "show ranges" 2007-07-16 06:17:45 +00:00
moodler c688d933eb FOr showing ranges in the gradebook 2007-07-16 06:14:23 +00:00
toyomoyo e242040e3d putting a clear div 2007-07-16 06:10:50 +00:00
jamiesensei bb90bf3fb2 when element is frozen should not escape html entities in htmleditor. 2007-07-16 06:04:20 +00:00
toyomoyo ac04f85d82 fix for MDL-10345, use averages instead of totals 2007-07-16 06:01:19 +00:00
moodler 63d6efa23e Restored a glovbal declaration for SESSION (to make sortoder work again) 2007-07-16 05:56:52 +00:00
moodler 06954a036c Use a private CSS class for this table to be more flexible 2007-07-16 05:40:18 +00:00
moodler ee81379ee3 Report selection is now sticky due to user preference, and tidied up code a bit 2007-07-16 05:34:36 +00:00
nicolasconnault f7998fbc55 MDL-9633 Added report class for user report 2007-07-16 04:09:00 +00:00
moodler 540c411934 MOved the main link to reports.php 2007-07-16 04:04:49 +00:00
stronk7 ea16f9b2dc Now the glossary->allowcoments setting is respected. MDL-8056
Credit goes to Matt Clarkson. Thanks.

Merged from MOODLE_18_STABLE
2007-07-15 22:27:16 +00:00
skodak 8ce0363638 MDL-8096 fixed & in htmlarea httpsrequired parameter - xhtml strict fix 2007-07-15 15:15:30 +00:00
skodak 76a50d1767 fix for upgrade trouble caused by recen grade import table changes - it was IMO easier to recreate the tables instead of fixing the upgrade code 2007-07-15 13:38:39 +00:00
stronk7 e9371f46d1 Most probable default value for applicationid is 1 (moodle). 2007-07-14 22:40:41 +00:00
stronk7 3fd7eae4c9 Deleting duplicate applicationid field, adding one missing fk and
minor reordering of logic of mnet stuff.
2007-07-14 22:38:35 +00:00
stronk7 6392a62dad Moving mnet_application somewhere before mnet_host
and creating missing FK in mnet_host
2007-07-14 22:29:17 +00:00
mjollnir_ 808fae8f05 fixing a small syntax oddity that breaks get_my_courses in postgres. quoting " means escape table, not string 2007-07-14 19:36:59 +00:00
stronk7 d3f31bf2d9 Big reordering of table creation, following all dependencies (FKs)
Small fix in some FKs pointing to wrong tables. Nothing else changed.
2007-07-14 19:20:43 +00:00
stronk7 0f3fcb64b4 Reordering a bit mnet_application table and fixing missing tag that
was preventing installation of head.
2007-07-14 18:46:03 +00:00
nicolasconnault 1a61400873 Optimising the grader report 2007-07-14 04:18:35 +00:00
nicolasconnault 1fdab481c2 MDL-9633 Refactored the index.php page into a child class of grade_report 2007-07-14 03:46:24 +00:00
mjollnir_ 2520258128 Merged Donal's changes to MNET to allow moodle to also network with mahara.
changelog follows

    [MNET-manual] added version.php, install.xml and upgrade.php patches
    Route remote users back to their home server without going through jump.php and land.php
    Display app-specific strings in the user view
    Display the application icon in the Remote Host block
    Hide the 'logs' tab if the application under review is not Moodle
    Hide the 'logs' tab if the application under review is not Moodle
    Update user record to note that picture == 1 once a picture has been
    transferred.
    Change 2 to uri - is this fluid?
    Add application paramter to bootstrap function
    Find the application
    Workaround for PHP5.2.2 bug: http://bugs.php.net/bug.php?id=41293
    $HTTP_RAW_POST_DATA was not being populated
    Ensure we get an application for our Peer
    Update the URI to use for MNET
    The default 'wantsurl' should be empty
    Use the appropriate 'land' url for the remote application
    Add hidden form elements for 'application'
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
2007-07-14 03:00:12 +00:00
mchurch 82d3334acd Tracker #MDL-9353 - Paypal cost of course not visible in course settings. 2007-07-13 20:31:26 +00:00
nicolasconnault 388234f4c5 Optimising the grader report 2007-07-13 19:02:40 +00:00
tjhunt ed8bebce5a MDL-10452 - start quiz UI is confusing if you have quiz:preview capability. Change the 'start/continue attempt button' to say 'start/continue preview' in this case. Merged from MOODLE_17_STABLE. 2007-07-13 15:58:42 +00:00
nicolasconnault 774d92ebce MDL-10392 changed feedback language strings to grade language strings 2007-07-13 13:03:07 +00:00
nicolasconnault 18effef46b MDL-10414 Implemented tab indices (student_grades, then student_feedbacks, from left to right and top to bottom) 2007-07-13 11:24:13 +00:00
nicolasconnault bd6c9ddb46 MDL-10286 Updated overlib.js (2 years diff!) and enabled overlib for HTML feedback format 2007-07-13 10:09:51 +00:00
skodak b121b54432 one more category locking fix 2007-07-13 09:12:23 +00:00
skodak 7a7a53d32a updated category locking to work the same as hiding - locking of category now locks all children too 2007-07-13 09:05:36 +00:00
skodak 938e00b6cb grade_tree minor cleanup - grades not included anymore; fixed categroy item position in grader report 2007-07-13 08:59:46 +00:00
thepurpleblob e53ff7f60a MDL-10380:
Check for randeredmatch plugin done using array_key_exists() for PHP4
compatibility
MDL-10317:
Question name is now the question ID, rather than the question text.
2007-07-13 08:36:14 +00:00
toyomoyo c55dee3fa9 MDL-10181, user management improvements fixes 2007-07-13 08:26:47 +00:00
moodler 0a5a42ed76 Automatic installer.php lang files by installer_builder (20070713) 2007-07-13 08:19:15 +00:00
jamiesensei c0056e2227 fix for MDL-10440 IE7 and IE6 on win xp error when changing "disable" state of "Start date" 2007-07-13 08:14:37 +00:00
nicolasconnault 4256a13437 MDL-10386 Quickfeedback and quickgrading fixed! It wasn't setting $needsupdate to true when the grade_grades didn't yet exist in DB. 2007-07-13 08:08:53 +00:00
toyomoyo b435527321 MDL-9363, some fixes for grade import, not finished! 2007-07-13 08:06:30 +00:00
skodak fb46b5b6ef fixed == typo, thanks Nicolas and Yu 2007-07-13 07:51:10 +00:00
nicolasconnault eea6690ac0 MDL-9628 Refactored variables and method from grader_report into grade/report/lib.php, and renamed grade_report.php to grade/report/grader/lib.php. Updated links to these files. 2007-07-13 07:05:04 +00:00
moodler 6c4af359b9 I fixed up the database creation 2007-07-13 06:44:31 +00:00
nicolasconnault e662a443e7 MDL-9628 Renamed edit_* to * and updated links to these files 2007-07-13 05:54:30 +00:00
nicolasconnault 6fb39a98f2 MDL-9628 Renamed edit_* to * 2007-07-13 05:53:16 +00:00
nicolasconnault 8ba894e049 renaming constant 2007-07-13 05:41:04 +00:00
nicolasconnault 936f135023 MDL-9628 New constants in gradelib.php: GRADE_EDIT_URL and GRADE_EDIT_DIR
Also renamed $report->get_user_pref() to $report->get_pref() , because the returned preference may come from $CFG if it isn't defined as a user preference.
2007-07-13 05:26:45 +00:00
toyomoyo 85c7bd5bcd adding feedback to grade import temp table and rename rawgrade to
finalgrade
2007-07-13 05:01:32 +00:00
moodler 4d46304821 Merged "no posts" string fix from stable 2007-07-13 03:05:17 +00:00
skodak 79eabc2ab2 major grade editing fixes and improvements - grader form now knows if grade is editable; fixed broken quickgrading; feedback format is handled the same way as in the rest of moodle - automatically converted to FORMAT_HTML when editor enabled; fixed calculation of grades that was breaking locking 2007-07-12 22:31:20 +00:00
skodak fefe8b06a1 MDL-10364 initial calcualtion edit form 2007-07-12 20:12:07 +00:00
skodak 46fa681022 MDL-10364 initial calcualtion edit form 2007-07-12 20:12:06 +00:00
skodak 920a0fb2eb MDL-10437 moved editing forms to grade/edit/ directory - these should be shared by all reports, there were too many files in grader directory anyway 2007-07-12 19:40:28 +00:00
skodak 95d6df779c MDL-10364 calcualtion icon fix 2007-07-12 17:46:38 +00:00
nicolasconnault e5161d0cdd MDL-10386 More refactoring (grade_report_grader->get_user_pref($pref_name)) 2007-07-12 17:42:23 +00:00
skodak 9d452f139f MDL-10364 calcualtion validation improvements 2007-07-12 17:36:18 +00:00
skodak 9029762c3c MDL-10364 calcualtion validation improvements 2007-07-12 17:23:29 +00:00
skodak 64480c7dff always initilize arrays! 2007-07-12 17:03:52 +00:00
nicolasconnault 4ba9941c4b MDL-10386 Refactored the grader report file (index.php), and extracted the grade_report_grader class out of it. The index file now only calls upon the class' main methods. Certain elements and code blocks in the class can be abstracted for other reports (such as the paging, sorting arrows and several general purpose variables). 2007-07-12 16:36:38 +00:00
skodak 06d7c6d6b2 fixed object initialization 2007-07-12 15:42:50 +00:00
skodak 68d2023487 MDL-10433 Upgrade: undo_groupings() causes warnings (before groupings exist) 2007-07-12 15:31:49 +00:00
nfreear 11d97de1b2 Part fix of bug MDL-10332 "Data module not filtering list by group on .." - restore bug. 2007-07-12 14:12:35 +00:00
diml 714ee0b618 language file for search bloc (EN) 2007-07-12 12:33:55 +00:00
diml 918fb61f41 renew of the global search engine 2007-07-12 12:32:15 +00:00
skodak 3f7ebaf5bd item and category edit forms minor improvements 2007-07-12 09:20:08 +00:00
skodak 4bc2486747 MDL-10382 adding some more checks to prevent JS errors when hardFreezing elements with disabledIf conditions 2007-07-12 09:17:55 +00:00
toyomoyo 9c25957a13 fixing formslib usage and locked implementation 2007-07-12 08:48:02 +00:00
skodak 943e3dcdd2 MDL-10382 new fix, I hope it works now 2007-07-12 07:57:26 +00:00
toyomoyo 15a11fe3aa adding a <br/> to offset the group selector's float left 2007-07-12 06:59:00 +00:00
toyomoyo 7e3c9767db grade edit form, and adding set_locktime for grade_grades and grade_item 2007-07-12 06:42:44 +00:00
jamiesensei df2c2310e5 Reverted previous fix for MDL-10382 Allow removing of elements with disabledIf conditions - "This fix has broken disabledIf in many forms. The problem is that if the dependentOn element is an element in a group then elementExists will return false." 2007-07-12 06:01:17 +00:00
skodak ed30fa8e8a MDL-10394 grade_grades field overridden backup/restore support 2007-07-11 18:06:23 +00:00
skodak adcbb43a25 MDL-10422 fixed missing include 2007-07-11 17:59:13 +00:00
skodak 454cf87189 MDL-10421 $fields= typo 2007-07-11 17:27:46 +00:00
nicolasconnault 474bad4698 MDL-9628 Enabling multiple feedback and grades update. Feedbacks now working, but grades don't (at least scales don't) 2007-07-11 16:54:11 +00:00
urs_hunkler 91a23ef0a1 MDL-10409 - .invisiblefieldset display: inline issue 2007-07-11 15:20:45 +00:00
skodak a4820aef30 fixed notice in update_raw_grade 2007-07-11 14:53:47 +00:00
skodak de359e3c2e fixed notice in update_final_grade 2007-07-11 14:33:09 +00:00
thepurpleblob 1d1e8f2bab MDL-10380:
Modified check for existence of renderedmatch plugin so that it sees it properly.
Bodged weird parameter passing issue so that correct answer choices are found.
2007-07-11 13:57:59 +00:00
thepurpleblob c569a97541 MDL-10415:
Documentation for Aiken format added back, plus a few other minor improvements.
2007-07-11 09:58:11 +00:00
thepurpleblob f0c1799e43 MDL-10415:
Aiken format returns/
2007-07-11 09:18:32 +00:00
moodler 708d13d159 Add some caching to get_list_of_timezones 2007-07-11 09:11:44 +00:00
moodler 0768af851b Deleted excess call ... MDL-8451 2007-07-11 09:10:01 +00:00
toyomoyo ae483dadca MDL-9983, missing upser_updated event 2007-07-11 09:05:17 +00:00
toyomoyo 2054475538 non-working edit_grade_form 2007-07-11 09:01:55 +00:00
exe-cutor 73f1e3b28b Merged changes from stable 2007-07-11 08:30:01 +00:00
exe-cutor f309632a05 Merged changes from stable version 2007-07-11 08:04:12 +00:00
nicolasconnault 6e30bd442d MDL-10392 updated links to edit_grade form, corrected the loop for table rows, which only initialised the $element object at the end of the loop
MDL-10211  Removed showfeedback preference
MDL-10286 Changed tooltip so that it surrounds the grade in a span when edit mode is off, and surrounds the edit icon otherwise
MDL-10287 Deleted edit_feedback and edit_feedback files and links to this form
MDL-10368 Removed show/hide feedback toggle
2007-07-11 07:30:04 +00:00
toyomoyo 38b9e8a8ed moving some functions out to lib so they can be used in other reports 2007-07-11 05:07:39 +00:00
moodler 3fad470e9a FIxed a notice 2007-07-11 02:45:40 +00:00
toyomoyo 7f6ab87f30 this float is causing grader report and user report footer to not display properly 2007-07-11 02:44:53 +00:00
urs_hunkler 7ea2be69b8 MDL-8812 - one more of these display: inline issues with invisiblefieldset :-( Can someone replace this problematic solution with another one - please! after correcting the property to display:block the search button moves below the search field when the text gets longer or the block width very narrow. 2007-07-10 20:29:27 +00:00
nicolasconnault cd20e11c28 minor fix 2007-07-10 18:41:28 +00:00
skodak c86caae78a MDL-9137 new grade_grades field overridden; item edit form fixes; other minor fixes and improvements 2007-07-10 18:08:24 +00:00
toyomoyo de7d838841 MDL-10385, use langconfig specific decimal point and thousand separator when printing grades. Grade validation for grademin/grademax range 2007-07-10 09:01:19 +00:00
skodak 98353ff194 MDL-9137 new grade_grades field overridden 2007-07-10 08:55:06 +00:00
skodak f3d528cf43 removing settings upgrade code that is not needed 2007-07-10 08:09:44 +00:00
skodak 6b6f345266 MDL-6855 fixing id in new grade tables to be unsigned in unut tests 2007-07-10 07:57:58 +00:00
skodak 8c6c185a1c do not use role functions in upgrade scripts if roles not setup yet 2007-07-10 07:46:19 +00:00
skodak 197ba19cae MDL-6855 fixing id in new event and grade tables to be unsigned 2007-07-10 07:35:43 +00:00
skodak d24b38e00e fixed typo 2007-07-10 07:34:05 +00:00
moodler f18f4df814 Automatic installer.php lang files by installer_builder (20070710) 2007-07-10 06:26:06 +00:00
toyomoyo a160cf0b17 fix for MDL-9983, trigger certain events out of the core to modules 2007-07-10 02:33:38 +00:00
diml 2f338ab5b0 global search review and extension for physical files 2007-07-09 21:12:16 +00:00
diml cf0b12ac83 Lucene Zend Implementation update (better handle of UTF8) 2007-07-09 21:05:40 +00:00
diml 8cfbeb8159 Lucene Zend Implementation update (better handle of UTF8) 2007-07-09 20:57:29 +00:00
diml 3d65ef2d8d search engine lang file (EN-UTF8) 2007-07-09 20:54:36 +00:00
diml ddce7c1ade search engine lang file (FR-UTF8) 2007-07-09 20:54:18 +00:00
nicolasconnault ce0c946a1f MDL-10386
- Renamed grade_report_shownotes preference to grade_report_showfeedback
- Added grade_report_quickgrading and grade_report_quickfeedback preferences
- Re-organised the grade_get_icons() function: The icons are all prepared first,
    then the preferences and conditions are applied to the selection of icons.
    This allows for a third $icons parameter, an array of icon names, which
    explicitly sets which icons should be returned by the function, regardless
    of preferences and options.
- Identified and fixed MDL-10391 bug with updating boolean user preferences (advcheckbox used)
2007-07-09 19:59:45 +00:00
stronk7 72e42141cf Now SQL sentences are all together and with proper terminators.
Tested against MySQL, PostgreSQL and MSSQL. MDL-7357
2007-07-09 18:03:47 +00:00
stronk7 67dc1f78c6 Reverting to previous version to respect cross-db. Final
tested solution arriving in hours. MDL-7357

Merged from MOODLE_18_STABLE
2007-07-09 17:17:13 +00:00
nicolasconnault d490d87c22 MDL-10368 Finished implementation of toggle actions, and added icons near each toggle. Also added a few css rules for display. 2007-07-09 14:54:32 +00:00
skodak bc7afe29c3 fixed loggeduser foreign keys 2007-07-09 13:58:17 +00:00
nicolasconnault 73a5d828ce MDL-10368 Added quick toggles 2007-07-09 13:24:36 +00:00
nicolasconnault 27626e7147 MDL-9268 Removing "turn feedback on" button in favour of the new user/cfg preference grade_report_shownotes; Re-displaying the calculation icons 2007-07-09 11:58:24 +00:00
jgutierr25 f535ea21fd *** empty log message *** 2007-07-09 08:49:47 +00:00
toyomoyo 75c2ecc88e merged fix for MDL-9337, hidden teachers are visible when not enroled 2007-07-09 07:42:46 +00:00
toyomoyo e513826187 MDL-9983, adding triggers for certain events, no handler implemented 2007-07-09 06:43:33 +00:00
toyomoyo 52bb13dc9f adding group support for get_role_users 2007-07-09 06:22:56 +00:00
toyomoyo f87b1451c3 MDL-10346, adding a row for grade range between headers and grades 2007-07-09 05:49:30 +00:00
moodler 95b31d202b Merged formatting fix for MDL-7357 2007-07-09 03:56:58 +00:00
toyomoyo 9477c1ecca merged fix for MDL-9613, broken SQL in online user block 2007-07-09 02:54:35 +00:00
stronk7 80c85b0c5d Now tested against Oracle too. Adding option to XMLDB Editor interface. MDL-7357
Merged from MOODLE_18_STABLE
2007-07-08 23:58:05 +00:00
stronk7 d63375cde5 First cut of the utility embeded in the XMLDB Editor used to
check any Moodle server looking for missing indexes. Tested
under MySQL, PostgreSQL and MSSQL. No frontend available
until tested for Oracle. MDL-7357

Merged from MOODLE_18_STABLE
2007-07-08 23:24:49 +00:00
stronk7 060bbac9ef Adding some new strings to the XMLDB editor. MDL-7357
Merged from MOODLE_18_STABLE
2007-07-08 23:14:22 +00:00
skodak d5fab31f08 grade category edit form improved, fixed aggregation 2007-07-08 21:37:55 +00:00
skodak 854386bc04 MDL-10382 Allow removing of elements with disabledIf conditions 2007-07-08 21:31:14 +00:00
skodak d3f14e423d MDL-10364 fixed de/normalization of calculation formulas in item edit form 2007-07-08 19:24:41 +00:00
skodak 5132aa7fd5 fixed default needsupdate property 2007-07-08 18:18:32 +00:00
skodak 004081182d MDL-10226 fixed item unit tests 2007-07-08 15:14:26 +00:00
skodak 5656785b6f MDL-10226 fixed categroy unit tests 2007-07-08 15:07:16 +00:00
skodak 15b462da4b MDL-10226 fixed breakage in grade computing 2007-07-08 15:03:46 +00:00
skodak b82caceafe fixed typo 2007-07-08 14:58:23 +00:00
skodak f8e6e4dbea MDL-10226 improved regrading of final grades - optimised db access, partial regrading when raw grade updated 2007-07-08 14:57:19 +00:00
nicolasconnault 9aa1e44853 MDL-9268 2007-07-08 14:51:41 +00:00
Martin Langhoff a9b24e489b cvsimport fixups - new files 2007-07-07 14:30:55 +12:00
Martin Langhoff 08103c9364 cvsimport fixups 2007-07-07 14:18:30 +12:00
tjhunt 99a1bf3d9c MDL-10374 - Quiz layout improvements, selectively merged from OU-moodle. 2007-07-06 16:37:06 +00:00
poltawski d1818f3283 MDL-10311 - further groups import fixes - merged from MOODLE_18_STABLE 2007-07-06 16:34:30 +00:00
poltawski 0d53808b11 MDL-10311 Group import broken - missing lang strings & slight helpfile update
merged from MOODLE_18_STABLE
2007-07-06 15:35:37 +00:00
poltawski c5e47c14af MDL-10311 Group import broken - groups import hadn't been updated for new groups,
also missing lang strings. Merged from MOODLE_18_STABLE
2007-07-06 15:28:37 +00:00
tjhunt 604a618428 Fix notice in essay question. 2007-07-06 13:30:16 +00:00
skodak aaff71daf4 MDL-10365 Improved handling of history when inserting/updating/deleting in new grade reports;first part 2007-07-06 12:49:28 +00:00
nicolasconnault d2e87c0c39 MDL-10364 Added calculation icon, changed customdata to set_data for feedback form. 2007-07-06 12:41:33 +00:00
tjhunt 21988c8e20 Small improvement to print_table. Lets you apply a class attribute to particular table rows. 2007-07-06 11:29:25 +00:00
toyomoyo 2bac025ea6 MDL-10345, adding group sum and class total to grader report. No caching implemented yet but might not be needed. Testing required. 2007-07-06 08:43:33 +00:00
urs_hunkler 5393664ee6 In HTML resources the container box collapsed, when floats are used for content. Solved by adding "clearfix" to the classes. 2007-07-06 08:42:03 +00:00
nicolasconnault 9511c244a9 MDL-10210 Changed literal english strings into get_string() in settings.php 2007-07-06 08:41:25 +00:00
nicolasconnault a69e733573 MDL-10364 Added the showcalculations preference and re-factored preferences_form.php (much, much smaller now!) 2007-07-06 08:23:17 +00:00
tjhunt b0972c0593 MDL-648 - minor corrections. 2007-07-06 08:20:07 +00:00
nicolasconnault 1dd1bc8eaa MDL-10287 Finished implementing form 2007-07-06 06:10:20 +00:00
moodler 08a2605a3c Automatic installer.php lang files by installer_builder (20070706) 2007-07-06 04:44:21 +00:00
jamiesensei 43914931f7 validation can return an empty array() or true to indicate no errors. array() is preferred since then parent class validation functions can be chained. Changing moodle_form validation method to return array() so that chaining works in question types. Shouldn't affect other forms code. 2007-07-06 04:03:51 +00:00
nicolasconnault 02046f93fa MDL-10210 2 Fixing a few errors in preferences 2007-07-06 02:57:28 +00:00
nicolasconnault 5f087294bf MDL-10210 2 bumping the version for new preferences 2007-07-06 02:51:58 +00:00
nicolasconnault 5851ef55b6 MDL-10210 2 new preferences: showgrandtotals and grandtotalsdisplaytype 2007-07-06 02:49:36 +00:00
skodak eda77debe3 trailing whitespace cleanup again 2007-07-05 21:42:34 +00:00
skodak f943f4fd00 MDL-10207 delete support in grade tree editing page 2007-07-05 21:40:05 +00:00
skodak e5d31b2f1b MDL-10355 fixed typo 2007-07-05 20:39:41 +00:00
stronk7 4d248a2e80 New $CFG->xmldbreconstructprevnext setting to allow edition of XMLDB
out from the XMLDBEditor, ignoring the prev/next stuff, that will be
automatically regenerated by the Editor by simply loading and saving
the edited file. Credit goes to skodak!
2007-07-05 16:24:24 +00:00
nicolasconnault c3e193ece3 MDL-10286 Finished the view feedback page. Also added links for each user name on the grader report page (linking to their profiles). 2007-07-05 08:02:05 +00:00
nicolasconnault 657e52d4da MDL-10286 Implementing the view feedback page. Added links to the user, module and scale when applicable. 2007-07-05 07:01:48 +00:00
toyomoyo 4e1d5a1e0a bumping version for MDL-7077, MDL-10181 adding capabilities 2007-07-05 06:55:32 +00:00
toyomoyo eca3af25cb MDL-7077, MDL-10181, adding notes for students 2007-07-05 06:53:17 +00:00
toyomoyo 266ebe02c1 minor grader report fixes 2007-07-05 06:06:57 +00:00
moodler 5ec52841a7 Automatic installer.php lang files by installer_builder (20070705) 2007-07-05 05:45:14 +00:00
nicolasconnault 606af46f2b MDL-10210 Forgot to add the preferences_form file 2007-07-05 05:30:12 +00:00
nicolasconnault 8da2e59c00 Bumping the version for new admin settings. 2007-07-05 05:16:09 +00:00
mattc-catalyst 01e3838853 MDL-9473: Initialise navlinks array before use
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:55:24 +00:00
mattc-catalyst 3b27b0fe21 MDL-9615: Correct incorrect use of term breadcrumbs
- $crumbs -> $navlinks


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:40:48 +00:00
toyomoyo 7994464178 fixing some warnings 2007-07-05 02:18:45 +00:00
skodak c3146da7ac complete unit tests for grade_item + minor cleanup in insert and update 2007-07-04 17:52:43 +00:00
skodak 225e707187 MDL-10210 new parameter in grade_tree constructor to force category grade item as last child 2007-07-04 16:16:39 +00:00
nicolasconnault 6e1d5e046c MDL-10210 Added the user preferences, using moodleform. 2007-07-04 15:23:36 +00:00
nicolasconnault 82b4da8649 MDL-10210 Added the grader report admin settings, and its corresponding language strings. Few other minor edits. 2007-07-04 10:01:20 +00:00
moodler 28e2c55641 Added a Grades section to the Admin menu. It dynamically checks the plugins for settings.php files to define global settings. MDL-10210 2007-07-04 09:34:17 +00:00
toyomoyo d30c99c107 some cosmetic fixes 2007-07-04 09:14:39 +00:00
skodak 3593af19df MDL-10341 fixed user search cleaning; merged from MOODLE_18_STABLE 2007-07-04 08:31:54 +00:00
moodler 18536f768f Started a Grades page for grades settings 2007-07-04 03:40:08 +00:00
toyomoyo 9e7a3d4298 fixes for extend enrol to make it less restrictive MDL-10181 2007-07-04 02:38:24 +00:00
toyomoyo 5480af3724 MDL-10181 manual enrolment changes 2007-07-04 02:35:52 +00:00
toyomoyo f4bee9e580 added a method that returns the submitted data without validation MDL-10181, please let me know if this is not needed, thanks 2007-07-04 02:32:08 +00:00
toyomoyo 898d7119f0 round up enrolment to day, truncate the rest MDL-10181 2007-07-04 02:26:36 +00:00
toyomoyo cf05753492 cron unenrolment of manual should takes place in the main cron, MDL-10181 2007-07-04 02:24:05 +00:00
toyomoyo eff9c473a6 some grade import cleaning 2007-07-04 02:16:41 +00:00
toyomoyo 0674ff6ca8 sql_concact() can handle more than 2 params, thanks Eloy 2007-07-04 02:03:47 +00:00
urs_hunkler a04c3b55b9 working on MDL-10322 :: tabs. I added a space before the closing </li> to close the gap between the li elements used without images. I don't know why this space is necessary. 2007-07-03 20:17:54 +00:00
nicolasconnault 4a129c473b MDL-12010 Added preferences to config table 2007-07-03 18:41:31 +00:00
nicolasconnault 13b1072464 More language strings, minor edits. 2007-07-03 17:54:56 +00:00
bobopinna 6cb178cd20 Fixed help title 2007-07-03 12:13:52 +00:00
bobopinna b984add67b Added two missing strings 2007-07-03 12:07:58 +00:00
bobopinna 5a11f4c35e Added missing help files 2007-07-03 12:04:17 +00:00
bobopinna 4b07d3a8d9 Fixed a bad string definition 2007-07-03 10:26:14 +00:00
skodak 6639ead31e complete unit tests for grade_category, minor API cleanup, fixed forced regrading in grade_category 2007-07-03 10:06:08 +00:00
bobopinna 5dcb429b34 Fixed bug MDL-9570 2007-07-03 09:45:13 +00:00
bobopinna 4e204f8956 Fixed bug MDL-9236 2007-07-03 09:38:56 +00:00
bobopinna 43e892c93b Fixed bug MDL-9776 2007-07-03 09:19:05 +00:00
bobopinna d3e4854956 Fixed update.php
Bug MDL-10318
2007-07-03 07:53:47 +00:00
bobopinna 7d97f6f87b Fixed a problem with memory use and big data tracks MDL-10318 2007-07-03 07:52:22 +00:00
toyomoyo 7759d32720 some minor cleanup/bug fix 2007-07-03 06:20:07 +00:00
nicolasconnault 5b5eb8e6c7 MDL-9268
Added language strings for grade item edit form.
Fixed HTML error in grader report.
Added tabs to category edit page.
2007-07-03 05:25:08 +00:00
skodak 8d27270849 MDL-10288 some more improvements for the item edit form 2007-07-02 18:26:11 +00:00
stronk7 7934f019af XHTML compliance
Merged from MOODLE_18_STABLE
2007-07-02 17:03:12 +00:00
stronk7 f4a51541ad Using the new "choose" parameter to navigate/preview/choose
IMS-CP resource packages. MDL-10036

Merged from MOODLE_18_STABLE
2007-07-02 16:57:50 +00:00
stronk7 66524dae2e Using the new choosecoursefileorimsrepo form element. MDL-10036
Merged from MOODLE_18_STABLE
2007-07-02 16:54:38 +00:00
stronk7 6f05b1e149 Registering the choosecoursefileorimsrepo form element to
show the "Browse Repository" button
for IMS-CP resources type. (MDL-10036)

Merged from MOODLE_18_STABLE
2007-07-02 16:51:50 +00:00
stronk7 f7c91a30c5 Adding the choosecoursefileorimsrepo form element to
show the "Browse Repository" button
for IMS-CP resources type. (MDL-10036)

Merged from MOODLE_18_STABLE
2007-07-02 16:49:39 +00:00
toyomoyo db313fec53 MDL-10288, adding some fields for grade item edit and security fixes for grader report 2007-07-02 08:57:04 +00:00
moodler 6ba3d875f2 Added some new strings for gradebook export settings 2007-07-02 07:29:04 +00:00
tjhunt bb4598fcf7 Quiz time limit field: Store it in the DB as an int(10), like the other time-related columns. Also, include the unit (minutes) in the forum label. 2007-07-02 06:48:50 +00:00
moodler 555dc5c454 Automatic installer.php lang files by installer_builder (20070702) 2007-07-02 04:48:33 +00:00
toyomoyo f208e0e1d1 fixing an error when no grade item is listed for this course 2007-07-02 02:40:30 +00:00
skodak 739196ba10 MDL-10224 fixing some more regressions in grade reports; adding proper CSS; more fixes and improvements 2007-07-01 19:45:13 +00:00
skodak 026eada789 MDL-9599 Glossary terms revert back to 'Not categorized' when using categories, patch by Alexander Pavlyutin; merged from MOODLE_18_STABLE 2007-07-01 15:48:50 +00:00
skodak 9347082d10 MDL-10309 Broken password expiration support for LDAP user types rfc2307 and rfc2307bis, patch by Iñaki Arenaza; merged from MOODLE_18_STABLE 2007-07-01 15:42:36 +00:00
skodak f13002d53e MDL-9629 fixed regressions in grade reports caused by my previous commits, added unfinished forms for category and item edit 2007-06-30 21:12:47 +00:00
jamiesensei 7856a8c384 removing file that mistakenly was committed to HEAD 2007-06-30 04:22:51 +00:00
jamiesensei c28245d7e5 test for questionlib on MOODLE_19_QUESTIONS branch 2007-06-30 03:50:52 +00:00
thepurpleblob 3e60818b91 MDL-10240:
Added Bb Short Response as a Moodle Essay type question.
Found quite a lot of stuff that could do to be checked and improved
in this code, so this should be considered an intermediate step.
2007-06-29 14:32:20 +00:00
wildgirl 0825e989d0 improved help file - MDL-5074 and MDL-5075 fixes 2007-06-29 14:26:29 +00:00
jamiesensei 20c55233c3 small change to make icons easier to override in child classes. 2007-06-29 14:19:22 +00:00
toyomoyo 0cdd512c17 taking out some redundant sql 2007-06-29 08:31:01 +00:00
toyomoyo 12e27a048d MDL-9283, fixing a broken SQL, thanks Arno 2007-06-29 08:23:31 +00:00
urs_hunkler c8672ca70b CSS for login block updated 2007-06-29 06:19:17 +00:00
moodler 0c02467624 Automatic installer.php lang files by installer_builder (20070629) 2007-06-29 04:49:59 +00:00
skodak 314c433698 MDL-10224 some more improvements in grader report related to total course grade and category grade + other bugfixes 2007-06-28 22:55:46 +00:00
skodak a9f16da37d fixed grade tree sortorder generation 2007-06-28 20:04:19 +00:00
skodak 82bf496e9c MDL-10224 finishing the commit, grrr 2007-06-28 19:18:52 +00:00
mchurch 89676f4dea Bug MDL-8520. Adding target= to the prev/next and logs buttons. 2007-06-28 19:18:11 +00:00
thepurpleblob 717357948e MDL-10234
Encoded images in subdirectories failed to load.
Thanks to Enrique Castro for fix.
2007-06-28 15:15:06 +00:00
dwoolhead 3bfd8bc8b7 MDL-10084 Styling/branding 2007-06-28 14:08:08 +00:00
skodak b3ac6c3ef0 MDL-10224 total course grade implemented + lots of other changes and improvements; there are still some regressions and bugs - going to fix them ASAP; some unit tests still missing too 2007-06-28 13:20:30 +00:00
nicolasconnault 8ace7bf75f MDL-10211 Added all icons. 2007-06-28 12:40:11 +00:00
dwoolhead 365cec3c18 MDL-10084 Styling/branding 2007-06-28 11:54:18 +00:00
nicolasconnault 1ec74ea5aa MDL-10209 MDL-10211
Added two tiny feedback/add_feedback icons.
Enabled feedback mode with button next to "Turn editing on".
Added tooltip (with overlib for the time being) for "Show feedback" when edit mode is off, and for "Edit feedback" when edit is on.
2007-06-28 11:15:12 +00:00
jgutierr25 74c9f514ab pb case sensitive when get ldap attribute 2007-06-28 09:35:32 +00:00
toyomoyo b05e8f45dc some fixes to user report 2007-06-28 08:55:16 +00:00
nicolasconnault a9d5bde75d MDL-10211 Show/hide and lock/unlock of final grades 2007-06-28 05:54:01 +00:00
moodler aae28dd55d Automatic installer.php lang files by installer_builder (20070628) 2007-06-28 05:26:27 +00:00
toyomoyo 86ac8b24c1 merged fix for MDL-10273, users with no capability should not be able to view New Event button 2007-06-28 04:03:30 +00:00
nicolasconnault 0a1ef2f264 MDL-10211 First set of icons 2007-06-27 16:15:23 +00:00
skodak a33c44c4b9 MDL-10276 Text cleaning trouble 2007-06-27 11:58:33 +00:00
dwoolhead 7308cb6949 MDL-10084 Styling/branding 2007-06-27 11:45:37 +00:00
toyomoyo 6a61f741e6 testing patch for MDL-9238 Arnaud's patch 2007-06-27 09:07:47 +00:00
moodler 3b36536185 Some fixes for copyright years etc 2007-06-27 07:24:24 +00:00
toyomoyo 076eede396 gradebook user report fix for total grade 2007-06-27 03:48:56 +00:00
poltawski 4fa94a5639 MDL-10264 - fixed typo 2007-06-26 21:17:56 +00:00
tjhunt ac48e43a89 MDL-648 - Email notification and confirmation when quizzes are submitted. Thanks to Graham Miller for implementing this to my design. 2007-06-26 16:34:05 +00:00
tjhunt d53587d822 MDL-10250 - Extend get_users_by_capability to have a $useviewallgroups parameter. 2007-06-26 16:16:46 +00:00
skodak 92382b6d02 fixed typo 2007-06-26 13:03:18 +00:00
gbateson 7048c71984 make sure $hotpot->id is set when adding calendar events for new HotPot 2007-06-26 12:10:12 +00:00
nicolasconnault 8178f34c56 MDL-10211 Added edit, show/hide and lock/unlock icons and links, with corresponding page-level actions to headers of grader report. 2007-06-26 09:59:18 +00:00
moodler f9016aefca Fixed some notices when there are no activities 2007-06-26 09:21:52 +00:00
moodler 8ace2060a8 Fixing a few notices when there are no users 2007-06-26 09:18:50 +00:00
moodler db48c57c3c Merged fix for MDL-10254, thanks Valery! 2007-06-26 09:09:39 +00:00
nicolasconnault 97d608ba05 Changed grade_item so that its grademax is count(scale_items) and grademin is 1, to be consistent with use of scales throughout Moodle. 2007-06-26 08:50:22 +00:00
toyomoyo e352359420 merged fix for MDL-9051, apply supplied patch to fix $CFG->forum_enabletimedposts 2007-06-26 08:33:03 +00:00
nicolasconnault 8161dbb6fc MDL-10210 MDL-10207 Fixed small issues in tabs. Removed HTML-producing code from grade_tree and put it into category.php. 2007-06-26 07:45:40 +00:00
moodler ec0fe8f30e Automatic installer.php lang files by installer_builder (20070626) 2007-06-26 07:42:51 +00:00
toyomoyo 9c8157b170 fixing typo 2007-06-26 07:35:30 +00:00
toyomoyo 7f331f8914 some fixes for grader report 2007-06-26 07:32:31 +00:00
toyomoyo 0e4743c847 adding include_once for gradelib public api function 2007-06-26 06:28:42 +00:00
nicolasconnault 3969778b76 MDL-10210 MDL-10207 Tabs implemented. 2007-06-26 06:19:45 +00:00
gbateson bb7c8ac797 in XML source files of HP quizzes, convert relative URLs to absolute URLs in links using window.open(...) 2007-06-26 05:05:06 +00:00
gbateson 53b733c427 change relative URLs to absolute URLs in window.open(...) 2007-06-26 02:48:19 +00:00
wildgirl bd5e35c2f1 old help file removed 2007-06-25 21:15:44 +00:00
wildgirl 805962b122 typo fix 2007-06-25 21:06:00 +00:00
mchurch 12c1f0abea Fixing update_group_button and update_groups_button. They were no longer calling valid URL's. 2007-06-25 20:50:17 +00:00
tjhunt d19bd4d042 Clean up whitespace. Merged from MOODLE_18_STABLE. 2007-06-25 17:13:52 +00:00
skodak 22e23c78a0 MDL-10251 finished hiding implementation for grades, items and categories + unit tests 2007-06-25 15:29:31 +00:00
sam_marshall 7470d6de7a MDL-10249 Created addonload JavaScript function that can be used to add onload handlers, instead of using <body onload> which breaks things. 2007-06-25 14:38:02 +00:00
urs_hunkler 50ebd1258e changed navmenuwidth to the standard value 2007-06-25 12:21:09 +00:00
nicolasconnault b78bb4f7a0 MDL-10210 MDL-10207 Tabs implemented. 2007-06-25 09:37:26 +00:00
moodler 4bcd49bebd Patch from Chris Holmes for MDL-10027, merged from 1.8 2007-06-25 09:21:49 +00:00
skodak 79f2b1ef1c fixed locking problem in update_raw_grade() 2007-06-25 08:30:03 +00:00
skodak f89526e044 fixed typo 2007-06-25 08:13:54 +00:00
skodak 93def7683e removing itemnumber generation for now 2007-06-25 08:01:04 +00:00
skodak c4e4068fa2 moving event trigger from update_grade() to grade_item->update_raw_grade(); removing itemnumber generation for now 2007-06-25 07:56:25 +00:00
moodler 5ea976e455 Automatic installer.php lang files by installer_builder (20070625) 2007-06-25 06:34:18 +00:00
skodak f92dcad81a MDL-10233 improved static factory methods of grade obejcts fetch() and fetch_all(); implemented default values of grade objects, fixed null values for some properties that are not required - unit tests included, tested with PHP4 and PHP5 2007-06-24 22:26:33 +00:00
tjhunt 11ac5c3ef7 MDL-10237 - Improve wording on true/false edit form. Merged from MOODLE_18_STABLE. 2007-06-24 11:53:07 +00:00
skodak 772ddfbfce trailing whitespace cleanup in new grade libraries 2007-06-23 16:51:09 +00:00
skodak 61c33818d5 MDL-10231 merge grade_calculations and grade_items table + calculation improvements
MDL-10233 fixed grade_*::fetch() - does not modify $this anymore, we can now use it from normal methods to fetch other objects of the same class.
2007-06-23 16:33:17 +00:00
urs_hunkler d0c92410ef Add an option $CFG->CSSEdit or $THEME->CSSEdit to Moodle. If one of both is set to true, Moodle does not write all CSS code in one single CSS file but adds CSS @include to the theme CSS file to load all single CSS files. These single CSS files can then be interactively edited and saved with CSSEdit. It's like Firebug with direct saving your changes. 2007-06-23 12:21:59 +00:00
tjhunt ccac7305ea Make a library function for deleting quiz attempts, rather than having duplicated code - Followup: make sure we only delete preview attempts. Merged from OU Moodle. 2007-06-23 10:39:28 +00:00
wildgirl 6be58b1c18 improved help file - MDL-7073 fix 2007-06-23 10:25:03 +00:00
moodler 3197cba210 Automatic installer.php lang files by installer_builder (20070623) 2007-06-23 05:51:34 +00:00
skodak 2e53372c37 MDL-10226 regrading of final grades improved, calculation cleanup before MDL-10231 2007-06-22 18:33:32 +00:00
nicolasconnault 5ff96295e6 MDL-10207 Tabs added to category admin page and grader report page. I also changed the id URL variable to courseid. This may cause some issues as long as the current grade/lib.php library is used, but I thought we should use courseid instead of id. 2007-06-22 17:34:14 +00:00
dwoolhead 91bfdd664c MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses 2007-06-22 15:20:20 +00:00
tjhunt dc1fd03d6d MDL-10198 - Further refinements. 2007-06-22 15:05:42 +00:00
tjhunt 0ec4fb87e3 Improve and simplify question layout. 2007-06-22 14:07:35 +00:00
tjhunt f9108f58de MDL-10213 - layuout problem for question in IE in Moodle 1.7. I'm taking the opportunity to clean up the CSS in 1.8 and HEAD to match what I did in 1.7. Merged from MOODLE_18_STABLE. 2007-06-22 13:46:00 +00:00
dwoolhead 54052a7ae1 MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses 2007-06-22 13:30:22 +00:00
dwoolhead d3b265933a MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses 2007-06-22 13:20:06 +00:00
dwoolhead b74be1a20a MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses 2007-06-22 12:45:20 +00:00
jamiesensei 16368d38a4 making environment colours css selector refer to table class instead of body id. So that colours show up on other pages besides admin page. 2007-06-22 11:02:45 +00:00
toyomoyo d9a3e38b3a bits of the grader report 2007-06-22 09:18:31 +00:00
toyomoyo 2f2d4fb53f adding limits to get_role_users() to enable extracting specific users 2007-06-22 09:03:03 +00:00
skodak 2cc4b0f90d MDL-10223 Implement locking of grades and grade items - cron support still not implemented;
this patch also contains improvements in handling of needsupdate, though it is not yet fully working for calculated grades
2007-06-22 08:57:39 +00:00
toyomoyo b5fc272c3c fixed a warning 2007-06-22 08:35:23 +00:00
moodler 3b631edabe Merged string fixes from stable 2007-06-22 05:48:24 +00:00
tjhunt 96f3629bd5 MDL-7772 - improve the SQL for showing users without attemtps. Merged from MOODLE_18_STABLE. 2007-06-21 16:21:47 +00:00
dwoolhead 173a5dfa71 MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses 2007-06-21 15:58:00 +00:00
tjhunt 82f6168608 Improve CSS for question layout. 2007-06-21 15:53:00 +00:00
tjhunt 4a5b91b48f Improved the HTML for essay questions. 2007-06-21 15:46:26 +00:00
dwoolhead f21ed0f3fc MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses 2007-06-21 15:46:04 +00:00
tjhunt 8356aa7af1 MDL-10198 - Further refinements to $forcedownload. 2007-06-21 15:43:29 +00:00
tjhunt 11d7a2ab81 Fix minor JavaScript error in the quiz. 2007-06-21 15:28:42 +00:00
tjhunt 91075d6894 MDL-10198 - Further refinements from Adriane Boyd. 2007-06-21 11:41:16 +00:00
toyomoyo 16501647cd some grader report code 2007-06-21 09:23:57 +00:00
skodak 578075c615 MDL-10202 fixed locktime trouble 2007-06-21 07:30:30 +00:00
toyomoyo e41c30a25e fixing export to use get_final 2007-06-21 02:45:04 +00:00
skodak ac9b080524 MDL-10202 merge raw and final grade tables 2007-06-20 23:06:29 +00:00
nicolasconnault 0936f59b63 MDL-9629 Added student names at left of grades table. 2007-06-20 20:10:19 +00:00
tjhunt 8165523992 Put information about which quiz and page in the URL for attempt.php, instead of in hidden form fields. Merged from OU Moodle.This makes things a little more robust in some situations, for example you can bookmark a page half way through a quiz attempt to make it easier to get back later. 2007-06-20 16:18:37 +00:00
tjhunt 14e6dc791a MDL-10198 - New code to allow files from quiestion attempts to be stored in moodledata and later downloaded. Code thanks to Adriane Boyd, but checked and modified by me, so we share the blame;-) 2007-06-20 15:12:36 +00:00
nicolasconnault 6500f2807f First draft of the grader report 2007-06-20 11:56:51 +00:00
moodler 412dd995c8 Automatic installer.php lang files by installer_builder (20070620) 2007-06-20 09:14:52 +00:00
bobopinna adb2030a16 Fixed a problem with utf8 strings bug MDL-10101 2007-06-20 08:51:22 +00:00
jamiesensei 53a0367d10 added styles to install.php for colours for environment table 2007-06-20 06:32:26 +00:00
nicolasconnault 561d406ba7 Started adding PHPDoc to flexible_table 2007-06-20 03:52:59 +00:00
tjhunt 7a6f4066ce MDL-6043 - Implement course reset function for quizzes. 2007-06-19 22:17:47 +00:00
mchurch b069fbd9b3 MDL-10161 - Since get_course_... (users, students, teachers) is still being used by a number of functions (such as groups), trying to make them work with the SITE course the way they did pre-1.7, with $CFG->allusersarestudents set to TRUE. This will also have a configuration option that can be used to disable returning large amounts of users for the site course, if a site happens to be using this functionality and they have a large number of users. 2007-06-19 20:38:27 +00:00
stronk7 cba168a679 Now calendar export have some correct defaults. MDL-10175
Merged from MOODLE_18_STABLE
2007-06-19 17:54:30 +00:00
skodak af2fc69db2 (MDL-10155) detect failed regexes duing multilang upgrade (it was causing data loss on some sites) 2007-06-19 17:24:33 +00:00
tjhunt 38dbf2c4ed Notices from T/F question is you submit without answering in adaptive mode. Merged from OU Moodle. 2007-06-19 16:35:54 +00:00
moodler 3f59a54e0c Added support for xxxxx_install() hooks for generic plugins too 2007-06-19 16:35:41 +00:00
tjhunt ca9000df6f Fix typo in a comment. 2007-06-19 16:33:16 +00:00
moodler 05f167f421 Only print notice when debugging MDL-10170 2007-06-19 16:27:04 +00:00
moodler f11b9a9ed4 Fix for plugin directories with no plugins MDL-10170 2007-06-19 16:18:35 +00:00
jamiesensei 770fef0a3c MDL-10168 improvements to display of results from environment checks 2007-06-19 15:52:19 +00:00
jamiesensei 4579011918 elaborated phpdoc comment slightly for doc_link 2007-06-19 15:21:27 +00:00
csantossaenz 090be7435c Fixed a problem with true-false type for correct responses 2007-06-19 14:56:36 +00:00
jamiesensei 84e3d2ccf5 refactored page_doc_link into two functions. doc_link returns a link to docs. page_doc_link returns the link for this page. 2007-06-19 14:44:02 +00:00
dwoolhead 7caebd6ee5 MDL-10084 Styling/branding 2007-06-19 12:02:26 +00:00
tjhunt 194ce154d3 Fix layout of quiz reports in groups mode - Merged from OU Moodle. 2007-06-19 09:43:28 +00:00
toyomoyo 62cb266e97 extraction of gradeitems to use grade_tree for handling of sortorder 2007-06-19 07:52:55 +00:00
toyomoyo e42f4d922e merged fix for MDL-10122, accessiblity fix for course search box 2007-06-19 03:22:58 +00:00
moodler c023ea03af Add some processing for message/output plugins MDL-10167 2007-06-19 02:18:59 +00:00
skodak df3cb76fc4 MDL-9137 calculated grades should work now, some other minor cleanup 2007-06-18 22:52:55 +00:00
skodak c2a897b044 MDL-9137 removing obsoleted function, finals now processed only by update_final_grade() 2007-06-18 20:14:16 +00:00
poltawski dc48ca472c MDL-10133 - html purifier lang typos 2007-06-18 19:43:10 +00:00
poltawski 10f5778089 MDL-10148 - hard coded lang strings in user/message.html 2007-06-18 19:21:24 +00:00
dwoolhead 7f17368588 MDL-10084 Styling/branding 2007-06-18 17:18:20 +00:00
dwoolhead f19b65d3e9 MDL-10084 Styling/branding - deleted too much in previous commit 2007-06-18 17:01:14 +00:00
dwoolhead 9571068c81 MDL-10084 Styling/branding 2007-06-18 16:49:39 +00:00
tjhunt ff51d64621 Make a library function for deleting quiz attempts, rather than having duplicated code. Merged from OU Moodle. 2007-06-18 16:19:00 +00:00
skodak 95affb8a35 MDL-9137 readding GRADE_AGGREGATE_MODE 2007-06-18 15:29:20 +00:00
skodak b8ff92b66b MDL-9137 various grading improvements
1/ initial support for migration of old grade_items and categories (not tested)
2/ rewritten grade update and calculation logic
3/ initial support for calculation formulas
4/ minor API refactoring and cleanup
5/ various small bugfixes
6/ fixed use of grademax with scales
7/ fixed some unit tests

TODO:
* implement proper locking of grades - needs discussion
* force recalculation of all formulas after adding/removing/changing of grade items
* better delete flag support
* support for NULLs n backup - Eloy already proposed a solution
* support for NULLs in set_field()
* speedup
* more unit tests nd functional tests
2007-06-18 13:43:40 +00:00
bobopinna 75bca47db0 Fixed a typo added during last update 2007-06-18 11:58:57 +00:00
andreabix 78cad49fb5 Fixed MDL-10100 2007-06-18 11:28:36 +00:00
thepurpleblob bf98228ade Missing cvs id tag 2007-06-18 10:35:02 +00:00
toyomoyo 1e0503f602 flexitable for user report 2007-06-18 08:05:53 +00:00
moodler 90dcbeccd4 Whoops, checked in wrong file before 2007-06-18 07:35:14 +00:00
moodler 2de494a5a1 First pass at grader report capabilities 2007-06-18 07:24:03 +00:00
moodler c3bbc0c2a8 Removed some debugging 2007-06-18 07:18:05 +00:00
moodler 3628d16093 Merged fix for MDL-10154 from 1.8 2007-06-18 06:34:54 +00:00
moodler 11e4a24ba9 Added an install hook ... any function called modulename_install() will be run when the module is installed
MDL-10108
2007-06-18 03:59:47 +00:00
bobopinna 7e17f5a241 First step in correct_resposes element debug 2007-06-17 20:36:08 +00:00
mudrd8mz 326fc7baed Repeating the skodak's commit 1.95 (MDL-9647 simplify dealing with headers/footers in admin sections) - evidently too late for me tonight... doing more CVS mistakes :-( 2007-06-17 02:14:31 +00:00
mudrd8mz db8c035f00 * To choose a file to edit, popup_form() is used now. It saves some space on the screen.
* Started to work on GUI improvements. Menu tabs introduced. Heading to fix MDL-8012
* "Number of missing strings" or "No missing strings" displayed in the missing mode. Fixes MDL-7029

This commit covers changes from 1.88.2.5 to 1.88.2.8 which were accidentally done on MOODLE_18_STABLE instead of HEAD.
2007-06-17 02:05:18 +00:00
nicolasconnault 4a490db004 MDL-9506 MDL-9629 Added code to grade_category::delete so that its children have their categoryid/parent field updated. However, the query used sets the fields to an empty string instead of a null value. The unit test for grade_categories fails. 2007-06-16 21:20:57 +00:00
ethem 1d2a739b56 MDL-9836
Authorize.net / SSL Config Bug prevents display of options from enrol/authorize/enrol.php
2007-06-15 17:40:58 +00:00
nfreear 751457e6e4 Fixes bug MDL-10138 build_navigation needs hidden "You are here" heading. Also, white space. 2007-06-15 15:15:29 +00:00
andreabix 4d69ee0d98 Fixed MDL-10073 2007-06-15 13:39:56 +00:00
tjhunt 294e63eadd Make it possible for question types to do file uploads. 2007-06-15 11:02:47 +00:00
tjhunt c746ce0d03 Fix whitespace. 2007-06-15 10:42:11 +00:00
tjhunt bc301dc93a Remove unused variable. 2007-06-15 10:42:02 +00:00
tjhunt d0e88092e9 MDL-10130 - Thanks to Adriane Boyd. 2007-06-15 10:25:09 +00:00
tjhunt eedb2494ed Fix whitespace. 2007-06-15 10:24:29 +00:00
csantossaenz eaa15ed1ad Fixed bug mdl-7516 2007-06-15 09:26:17 +00:00
toyomoyo dfbec4d492 user grade report development code 2007-06-15 09:13:13 +00:00
moodler 0a6695f696 Added two capabilities for the grader report 2007-06-15 08:29:23 +00:00
moodler 4b98acca96 SOme dummy report pages 2007-06-15 08:24:45 +00:00
moodler 4fcdf5001d Simple framework interface for grades reports 2007-06-15 08:12:11 +00:00
moodler 841420be50 Lang files for the grade report plugins 2007-06-15 07:55:40 +00:00
moodler 226a90d145 Skip user_ tables in multilang upgrade 2007-06-15 06:08:51 +00:00
toyomoyo f57211724a adding some strings 2007-06-15 05:23:48 +00:00
dwoolhead 0176297545 MDL-10084 Styling/branding 2007-06-14 16:08:29 +00:00
csantossaenz 50ccd872cb Fixed some bugs with duplicated elements and undefined elements for correct_responses type 2007-06-14 12:41:41 +00:00
urs_hunkler 70a4677d74 Longer titles names in languages like German are displayed above the input field. I reduced the length of the input fields to 5em as in 1.8. 2007-06-14 07:55:18 +00:00
urs_hunkler c97535a6be MDL-9745 - added missing input field type "file" to the alignment correction 2007-06-14 07:04:47 +00:00
toyomoyo 8556ba1740 fixing typos of a wrong capability 2007-06-14 07:04:15 +00:00
toyomoyo 8205423030 merged fix for MDL-10112 bulk messaging fails silently when messaging not enabled 2007-06-14 04:41:33 +00:00
stronk7 783fbd2234 Now the tokeniser is using the new textlib->entities_to_utf8()
own function (PHP4 and PHP compatible)

Merged from MOODLE_18_STABLE
2007-06-13 23:22:57 +00:00
stronk7 4e2cb0e3f3 Added entities_to_utf8() function to textlib, suitable to convert
any entity (numerical and html) to utf-8, providing a PHP4 and PH5
way to do the work.
Also, added the code2utf8() function to convert Unicode code numbers
to UTF-8 chars.

Merged from MOODLE_18_STABLE
2007-06-13 19:43:56 +00:00
dwoolhead bf9ae76c36 MDL-10048 General calendar view enhancements as per spec with regard to event highlighting 2007-06-13 16:26:19 +00:00
dwoolhead edad8bec3c MDL-10048 General calendar view enhancements as per spec with regard to event highlighting 2007-06-13 14:30:42 +00:00
dwoolhead 10b1d59829 MDL-10048 General calendar view enhancements as per spec with regard to event highlighting 2007-06-13 12:55:23 +00:00
dwoolhead 1c4bedd7dd MDL-10048 General calendar view enhancements as per spec with regard to event highlighting 2007-06-13 10:37:05 +00:00
dwoolhead 7c50db30f9 MDL-10048 General calendar view enhancements as per spec with regard to event highlighting 2007-06-13 10:00:30 +00:00
toyomoyo 870a603f9c previews specified number of lines for grade imports 2007-06-13 09:07:39 +00:00
toyomoyo 06e3e967af backup will not back up grade categories and grades if some grade items are not backed up. restore will not resotre grade categories and grades if some grade items are not being restored 2007-06-13 09:06:44 +00:00
pichetp a3701fdc05 solving lost of dataitems MDL-10087 merging from 1.8 2007-06-13 03:32:45 +00:00
skodak f70152b7bb MDL-10104 grade_create_item() in gradelib.php was obsoleted by grade_update() function which does the creation and update of grade_items 2007-06-12 20:19:38 +00:00
skodak 9b7e5a3772 MDL-10103 grade_object:insert() now fetches the fresh data from db and updates itself; update_from_db() now uses the same process as new grade_object() for consistency 2007-06-12 20:16:49 +00:00
stronk7 7bb11c76d1 First cut of the tokeniser library. Modified from drupal search.module
code (see copyrights). The library converts any text/html into an array
of tokens with their score (weight). Supports stop_words, cjk basic
tokeniser (for indexers) and different modes of handling numbers.

Merged from MOODLE_18_STABLE
2007-06-12 18:15:55 +00:00
dwoolhead b4892fa2a0 MDL-10048 General calendar view enhancements as per spec with regard to event highlighting 2007-06-12 16:26:38 +00:00
pichetp f7089b63ef set correctly default value for tolerencetype for answers merge from 1.8 2007-06-12 15:53:08 +00:00
tjhunt b5c2f0afff Fix typo spotted by Eclipse. 2007-06-12 13:47:21 +00:00
tjhunt da1cc34073 MDL-10089 - Cannot delete questions from question bank - Thanks to Adriane Boyd for the fix. 2007-06-12 11:13:49 +00:00
tjhunt e765b5d377 Improve doc comments on get_context_* funcitions. 2007-06-12 11:11:42 +00:00
skodak d185c3ee5d MDL-9516 improved support for activities with legacy grading 2007-06-12 10:33:52 +00:00
dwoolhead 914be7f915 MDL-10048 Separate events key and monthly view in right side panel 2007-06-12 09:55:22 +00:00
dwoolhead 6284362d1c MDL-10048 Separate events key and monthly view in right side panel 2007-06-12 09:48:56 +00:00
moodler f1efbe0a07 Adding a stub to start copying the report GUI into 2007-06-12 09:31:19 +00:00
dwoolhead 1a6ff43e1d MDL-10048 Separate events key and monthly view in right side panel 2007-06-12 09:30:12 +00:00
toyomoyo f115f8c858 adding some strings and checks for grade book import/export 2007-06-12 09:12:07 +00:00
moodler f3de7219ae Merged fix for MDL-9041 (undo) 2007-06-12 07:09:35 +00:00
tjhunt ed66fb1390 MDL-9996 - Multiple choice answer box too small in the question editing form in Moodle 1.8. Merged from MOODLE_18_STABLE. 2007-06-11 16:42:13 +00:00
dwoolhead 21a9b54dfb Move Export calendar button to bottom of the page (IE especially) 2007-06-11 16:07:58 +00:00
sam_marshall 6ae5e482e2 MDL-10083 CSV mimetype/icon support 2007-06-11 15:36:08 +00:00
skodak d55930f153 MDL-9516 removing include of gradelib.php - now included only when needed 2007-06-11 11:28:42 +00:00
skodak 92bcca38cd MDL-9550 Implement calls of grade_update() function in Lesson 2007-06-11 11:25:24 +00:00
skodak e648f890ef grade_update now supports more grade_item properties 2007-06-11 10:55:31 +00:00
skodak 83d606dd74 MDL-9551 fixed magic quotes when changing grade_item settings 2007-06-11 09:12:14 +00:00
toyomoyo 741bde47c3 some fixes for gradebook imports 2007-06-11 09:00:17 +00:00
moodler 14d9829480 Automatic installer.php lang files by installer_builder (20070611) 2007-06-11 06:04:23 +00:00
skodak 23a7718bd1 MDL-9696 used absolute path include in mod_forms 2007-06-10 23:20:45 +00:00
skodak d6dd21084b MDL-9551 Implemented calls of grade_update() function in Quiz 2007-06-10 22:52:41 +00:00
skodak 9f9afbdbab MDL-10078 unit tests for grade category failing on set_as_parent() 2007-06-10 21:17:42 +00:00
skodak 1898ccac4c MDL-9929 we need some other name for password field in course edit page 2007-06-10 20:43:43 +00:00
skodak 34e67f76a8 MDL-10076 finalize grade_is_locked() and implement grade item locking in assignment 2007-06-10 20:34:07 +00:00
skodak 89a792abac MDL-10057 XSS risk flag for Add/update course category 2007-06-10 19:35:05 +00:00
skodak 4225d4ba3a MDL-10068 "Lost Password" button does not work for ldap auth 2007-06-10 19:26:12 +00:00
skodak f747fb3eef MDL-10074 User profile edition uses wrong variable for the (fatal) error message.; patch by Iñaki Arenaza 2007-06-10 19:07:11 +00:00
urs_hunkler 89ba83d42f MDL-9977 and MDL-8446 - sheet setting depending on $CFG->langdirection.
Due to big problems I added debug messages.
2007-06-10 17:08:17 +00:00
urs_hunkler 72a66c61e8 MDL-9977 and MDL-8446 - added CSS file with rtl properties 2007-06-10 17:04:49 +00:00
urs_hunkler a8d82ea9a4 MDL-9977 and MDL-8446 - added body class 'ltr'/'rtl' for language direction to support themes for 'rtl' languages. 2007-06-10 13:54:38 +00:00
urs_hunkler aa2ed80397 MDL-9977 and MDL-8446 - added $CFG->langdirection to be able to deal with ltr/rtl languages and correct themes. 2007-06-10 13:44:05 +00:00
pichetp bfdc0bcedb adding equation display in calculated question text(MDL-10070) and answers text length
greater.
2007-06-09 22:09:54 +00:00
pichetp fd6b864f7c adding equation display in calculated question text(MDL-10070) 2007-06-09 22:07:51 +00:00
skodak 4c24cae1a1 MDL-10069 unit test for grade_item itemnumber generation broken 2007-06-09 17:24:44 +00:00
skodak 2904365752 MDL-10067 skip testing of bad inserts for mysql family - these are known to not work anyway 2007-06-09 17:10:32 +00:00
skodak 19be539627 MDL-10066 move testmodforumlib.php into mod/forum/simpletest/ 2007-06-09 16:55:31 +00:00
skodak cdbbd26f80 MDL-10064 global $CFG in unit test files is non standard, it is recommended to use MOODLE_INTERNAL test in all library files 2007-06-09 16:32:36 +00:00
skodak 52f81103d3 MDL-10063 simpletestlib.php included from majority of unit tests - let's include it once from the test runner itself 2007-06-09 16:17:33 +00:00
skodak 7a4025d0b6 MDL-10061 LDAP user creation broken for Novell eDirectory since 1.8; patch by Iñaki Arenaza 2007-06-09 15:33:22 +00:00
skodak 02e6a9731f MDL-9866 reverting previous incorrect fix for include() in simpletest library; patching grade unit tests instead 2007-06-09 15:03:05 +00:00
skodak 09c442620d MDL-9536 assignment now reacts to external updates 2007-06-09 14:56:22 +00:00
skodak 2bb0dbf71d MDL-10062 - unit test of raw grade load_text() improved 2007-06-09 14:29:07 +00:00
skodak 4cf1b9be9d MDL-10062 - changes in raw grade handling of feedback and information
improved grade_update() function
2007-06-09 14:16:20 +00:00
moodler 87b123a4c3 Added two recent installer langs to CVS 2007-06-09 08:25:50 +00:00
moodler 0275460fc4 Automatic installer.php lang files by installer_builder (20070609) 2007-06-09 04:42:18 +00:00
sam_marshall c2a95d4db6 MDL-7541 Fixed wiki html diff 2007-06-08 13:45:10 +00:00
anthonyforth 44968276c1 Fix for MDL-9942 2007-06-08 09:19:41 +00:00
toyomoyo ce40b7935e gradebook import fixes to use grade_update function 2007-06-08 09:01:19 +00:00
martinlanghoff 97e9803b48 moodlelib:moodle_request_shutdown() - only call apache_child_terminate if child_terminate is true - MDL-9350
Apparently there _is_ a PHP ini setting controlling
it -- defaults to off.
2007-06-07 21:22:20 +00:00
tjhunt 1e95d7b7a3 OU Bug 3246 - No logs shown when a group is selected. Merged from OU Moodle. Merged from MOODLE_18_STABLE. 2007-06-07 16:04:23 +00:00
tjhunt 0be7010474 Fix logging of course settings updates. 2007-06-07 15:40:08 +00:00
tjhunt edf3ef00a7 Make code slightly more robust, merged from MOODLE_18_STABLE. 2007-06-07 15:33:56 +00:00
nicolasconnault 1c307f2186 grade_item idnumber now self generated if needed.
deleted flag implemented in grade_item::update method
added GRADE_TYPE_NONE to gradelib and updated grade_item object
Implemented multiple items (generation of itemnumber when not explicitly given)
2007-06-07 12:45:24 +00:00
skodak c5b5f18dc1 MDL-9516 update_grade() inline docs 2007-06-07 08:34:04 +00:00
moodler 80974e6a12 Teacher forums are now displayed to admins correctly MDL-9590
Merged from 1.8
2007-06-07 02:45:45 +00:00
skodak b67ec72f57 MDL-9516 update_grade(); now required $source of grading to allow modification of original grades in activities through grade_updated event 2007-06-06 23:04:24 +00:00
skodak 13127313d3 fixed unit grade tests - missing grade types 2007-06-06 22:15:40 +00:00
bobopinna 9a71cd85d8 MDL-9206 Readded unlimited attempts option (Sorry I miss it) 2007-06-06 21:36:50 +00:00
bobopinna 97be053372 MDL-9562 Fixed 2007-06-06 21:04:56 +00:00
urs_hunkler a53e47a25d MDL-9745 - corrected "input" placement with IE specific "expression" JavaScript in CSS properties. 2007-06-06 19:55:32 +00:00
urs_hunkler 27dabc5694 MDL-9745 - corrected textareas too. 2007-06-06 19:52:13 +00:00
skodak 75e1038756 fixing uninitilaized scale problems in last commit 2007-06-06 19:16:37 +00:00
urs_hunkler 22fd179c60 MDL-9745 - for IE7 I corrected the text input fiield offset with a CSS 2 property. 2007-06-06 19:08:22 +00:00
tjhunt 453db696ad Accessibility - make it clear to screen-reader users that the question number is a quesiton number. 2007-06-06 16:02:19 +00:00
moodler bd3523a5f7 Merged fix for MDL-9077 and MDL-9557 2007-06-06 09:19:18 +00:00
toyomoyo b89ef1db2a fixes to use temp buffer table for gradebook import 2007-06-06 08:51:58 +00:00
skodak b919d68049 fixed mnod typo 2007-06-06 07:59:55 +00:00
bobopinna f8c950b362 MDL-7097 Fixed all stuff for learner_response datamodel element 2007-06-06 07:35:44 +00:00
skodak e9c04db4ba fixed event name 2007-06-06 07:06:22 +00:00
moodler 434e3420db New tags 2007-06-06 04:14:05 +00:00
toyomoyo 43a8e6aa49 fixing a typo 2007-06-06 02:45:39 +00:00
skodak 612607bd47 MDL-9516 new central grading function update_grade(); to be improved/tested more tomorrow 2007-06-05 22:58:37 +00:00
pichetp dca29e98dc eliminate this nasty JavaScript that prints the button. 2007-06-05 15:28:03 +00:00
tjhunt 18dfa59377 Eliminate trailing whitespace. 2007-06-05 14:56:12 +00:00
csantossaenz caf5cd741c The field "unique" has been changed to false for the sequencing type. 2007-06-05 14:10:27 +00:00
bobopinna 55175138ae fixed some others problem with learner_response element 2007-06-05 09:30:19 +00:00
toyomoyo 4d40aa144a grade import temporary buffer tables and encoding/import form changes 2007-06-05 09:28:15 +00:00
nicolasconnault 210611f6ee MDL-9629 Changed grade_item.gradetype default to 1, added GRADE_TYPE_NONE constant = 0, incrementing existing constants by 1. Set up auto-generation of idnumber for grade_item if itemmodule and iteminstance are set, only a temporary stub if they are not set (must be replaced by correct generation code). New category form now has server-side validation (not using formslib) 2007-06-05 08:50:24 +00:00
jgutierr25 209596cb6a automatic authentication when direct access from another CAS application and multiauth 2007-06-05 08:35:57 +00:00
toyomoyo 1b63e57388 adding a usermodified field to post table 2007-06-05 05:40:10 +00:00
nicolasconnault 45ec6bcfa2 Added some strings 2007-06-05 04:16:14 +00:00
toyomoyo 9b8c9d379c part of the user management improvements on enrolment, forgot to check this in 2007-06-05 01:54:19 +00:00
nicolasconnault bbac4ae7c5 MDL-9972 Removed the __destruct() method, which was not needed. Also fixed a few bugs that caused notices in PHP5. 2007-06-05 01:19:09 +00:00
nicolasconnault ffa6e8d3c0 MDL-9629 Category edit page now supports creation of a new category for selected items or categories. 2007-06-05 00:39:01 +00:00
poltawski 2d9a41ee1f MDL-8080 Grade exceptions broken for teacher by invalid capability check.
Thanks to Paul Ortman for the patch. Merged from MOODLE_17_STABLE
2007-06-04 22:53:50 +00:00
poltawski 6d77bd6146 MDL-10001 - Change the ordering of height and width parameters in the interface to reflect
previous ordering. merged from MOODLE_18_STABLE
2007-06-04 22:24:23 +00:00
poltawski d72689a78f MDL-9987 - Reffering to wrong capability name, merged from 18_STABLE 2007-06-04 22:01:59 +00:00
skodak 38bd362af1 MDL-10018 Discussion for all groups not sent when groups used to users without access to all groups 2007-06-04 21:43:57 +00:00
bobopinna 77f6272082 fixed some problems with learner_response values 2007-06-04 15:50:44 +00:00
moodler 05c8db0fa7 Merged typo fixes for MDL-10013 2007-06-04 12:42:17 +00:00
bobopinna f30fc27a35 Commented lines that block ADL test suite check 2007-06-04 11:19:27 +00:00
bobopinna d5f9eb42b1 General cleaning of function SetValue
First step for solving CMIFeedback pattern matching
2007-06-04 07:26:00 +00:00
skodak 04366d79cf MDL-10012 Implement grade_updated event triggers in Database 2007-06-03 19:36:20 +00:00
skodak 5980d52f23 MDL-9516 fixed mod_form.php logic + related lib issues 2007-06-03 19:12:55 +00:00
skodak c3cec42188 MDL-9516 fixed mod_form.php logic 2007-06-03 19:08:14 +00:00
skodak 353228d8f4 MDL-9548 Implement grade_updated event triggers in Forum 2007-06-03 16:24:03 +00:00
skodak 0c5988d7d2 MDL-10011 cleanup xhtml and code in report.php - forum, glossary and data mod 2007-06-03 16:17:39 +00:00
skodak 926d9e5e27 fixed some xhtm strict problems 2007-06-03 15:31:30 +00:00
skodak 8b4fb44ed1 MDL-9545 minor refactoring and comment cleanup 2007-06-03 12:37:50 +00:00
skodak 1970d24381 MDL-9549 function param renamed 2007-06-03 12:34:56 +00:00
skodak dd232d0100 MDL-9549 some more grading and rating improvements, cleanup and fixes 2007-06-03 12:22:23 +00:00
skodak 3e6303b7be MDL-9549 no rating fix 2007-06-03 11:29:38 +00:00
skodak 3460111498 MDL-9549 no grading fix 2007-06-03 10:30:23 +00:00
skodak b01abc85e4 MDL-9549 fixed deleting of instance 2007-06-03 10:10:40 +00:00
skodak 4e9ba8c052 MDL-9549 added proper handling of magic quotes when dealing with mod_form 2007-06-03 09:56:49 +00:00
skodak e8586b5f34 MDL-9549 minor code formatting cleanup 2007-06-03 09:27:16 +00:00
skodak 4a1be95c60 MDL-9545 minor code formatting cleanup 2007-06-03 09:26:45 +00:00
skodak 45fa341298 MDL-9545 refactoring of grading code in assignment, whitespace cleanup 2007-06-03 09:10:52 +00:00
skodak d31bae7094 MDL-9549 added comments and fixed grade item delete 2007-06-03 09:06:58 +00:00
tjhunt 2ac5177aff MDL-10006 - Sorting the quiz overview report on feedback breaks it. Merged from MOODLE_18_STABLE. 2007-06-03 07:26:54 +00:00
skodak e6d4504807 MDL-9549 Implement grade_updated event triggers in Glossary 2007-06-02 22:18:01 +00:00
skodak b83ed1acb9 MDL-10010 improved data validation in glossary rate.php 2007-06-02 15:56:52 +00:00
skodak d08e1a0b82 minor xhtml strict fix and coding style 2007-06-02 14:08:14 +00:00
skodak 63e21b9bda MDL-10009 ratings settings do not work in glossary 2007-06-02 14:03:06 +00:00
skodak ada917d50a fixed handling of grade items when deleting assignment 2007-06-01 15:13:36 +00:00
tjhunt 699a472b5b Remove invalid unit test. 2007-06-01 13:52:36 +00:00
csantossaenz 1a3dad3484 Fixed problem with cmi.interactions.id elements' duplicated ids. 2007-06-01 12:42:36 +00:00
thepurpleblob d022bf655e MDL-9265:
'correctanswer' field missing for true/false.
2007-06-01 08:25:18 +00:00
nicolasconnault de5284f26d MDL-9137 Almost finished the edit category page. The only remaining issue is some sort of endless loop starting in grade_category::set_as_parent. Big issue... 2007-06-01 08:01:47 +00:00
nicolasconnault ec4560cc58 MDL-9137 Removed hidden field from grade_categories and added deleted field to grade_items. Also added 2 images in pix/i 2007-06-01 04:46:24 +00:00
nicolasconnault 5fad506139 MDL-9629 Category edit page now implements delete, show/hide, lock/unlock, moveup/movedown and move actions. The edit icon is also shown but not yet implemented. 2007-06-01 04:02:37 +00:00
toyomoyo 83a021c10a adding some form headers to help read 2007-06-01 02:44:34 +00:00
skodak b5ebd0962f bgufixing and external grading improvements 2007-05-31 20:34:41 +00:00
csantossaenz 3b2c6f99b6 Fixed a problem with cmi.interactions.n.objectives.n.id duplicated ids 2007-05-31 16:24:53 +00:00
toyomoyo 0afbd23c9e gradebook backup and restore fixes 2007-05-31 09:00:09 +00:00
nicolasconnault 88e794d6c8 MDL-9628 Move work on the category edit page 2007-05-31 08:57:05 +00:00
thepurpleblob caa99ee735 Fixed typo stopping image importing working 2007-05-31 08:32:07 +00:00
nicolasconnault 0fc7f62445 MDL-9506 MDL-9137 MDL-9629
Added a number of small getters and setters to grade_item and grade_category, to hide the structural differences between the two, and provide a common interface for cases when we are not sure whether an $object is of one type or another.
The grade_tree::renumber() method now adds complete objects to the need_update array, because both grade_category and grade_item need to update their parent field when moved to a different parent. Amazingly, these important changes worked straight away (after 1 hour of coding without testing anything), and all the unit tests passed!
2007-05-31 03:15:43 +00:00
skodak bffe39c6d5 MDL-4687 Password expiration support for AD (with patch) - patch by Iñaki Arenaza, thanks! 2007-05-30 08:54:52 +00:00
skodak 66fc70dd2e MDL-9954 LDAP auth settings form problem with 'Member Attribute' and 'Member Attribute uses dn'; patch by Iñaki Arenaza - thanks! 2007-05-30 08:49:19 +00:00
nicolasconnault 5bfa0d793a Implemented a test version of the gradebook category edit page, and developed the get_edit_tree method in grade_tree. Items can be successfully moved up and down, and a "move" button lets the user select a source element, then a destination box. All actions use POST. 2007-05-30 08:48:11 +00:00
skodak 81fb221d31 MDL-9626 Enable user signup with Active Directory (via LDAP); patch by Iñaki Arenaza - thanks! 2007-05-30 08:47:00 +00:00
toyomoyo ca9cd23cf9 more fixes for gradebook backup/restore 2007-05-30 08:45:13 +00:00
toyomoyo 48ca6fd871 fix ordering bug when restoring grade item 2007-05-30 06:38:23 +00:00
toyomoyo 9bfd009441 added itemtype to backup/restore, only restore a mod type gradeitem if user data is included 2007-05-30 06:23:21 +00:00
nicolasconnault c3096060de MDL-9506 Added ksort() of each level of categories and items for the gradebook. Unsorted arrays caused erratic behaviour when moving elements of the tree around. 2007-05-30 05:47:26 +00:00
toyomoyo bb15b33bf9 respecting sortorder when restoring grade_itmes, other minor fixes 2007-05-30 05:32:47 +00:00
nicolasconnault a3d5594248 MDL-9506 Refactored grade_tree::get_tree by doing the following:
- Extracted the $fillers array into a class variable
- Extracted the addition of elements to grade_tree::fillers into a new add_fillers($array) method
- Extracted the inclusion of fillers into the tree_array to a new include_fillers($tree, $object=NULL) method
- Removed the building of the tree_filled, which was already performed by build_tree_filled()
- Removed the generation of next_sortorder and previous_sortorder attributes, which was already performed by renumber()
Result is a much leaner and scalable set of methods, and a tighter definition of responsibilities for the varying classes. I think I have also noticed a significant inprovement in speed.
2007-05-30 03:09:38 +00:00
toyomoyo 770156e5f8 fixing a typo 2007-05-30 02:22:43 +00:00
toyomoyo a246d4d269 during backup parent categories need to go before children 2007-05-30 02:20:56 +00:00
wildgirl dde9f3e1a3 typo fix MDL-8093 2007-05-29 17:26:45 +00:00
thepurpleblob 2377f8dcd4 MDL-9716
'answernumbering' field now supported
2007-05-29 15:19:12 +00:00
csantossaenz ef24d5b8fd Fixed problem with cmi.interactions.n.id duplicated ids 2007-05-29 11:22:49 +00:00
dwoolhead 6cc1a80532 MDL-9729 Ensure start of week day calculation observes user timezone setting in the same way as month start and end dates. Prevents incorrect display of dates (1 out) on main Moodle calendar display although mini calendar display is correct. (Merged from 1.8 stable branch) 2007-05-29 09:56:44 +00:00
toyomoyo bc1637c730 restore for gradebook, needs testing for grade_history, outcomes, categories, calculations and text 2007-05-29 09:00:48 +00:00
jamiesensei dc1f768351 reverting commit 1.889 "added another parameter to moodle_url out, out_action and get_query_string so that developer can output url with query string joined by '&' and not '&amp;'. &amp; breaks redirect on IE." It turned out to be unnecessary. 2007-05-29 06:27:38 +00:00
jamiesensei d65cb30f63 reverting last commit "added another parameter to moodle_url out, out_action and get_query_string so that developer can output url with query string joined by '&' and not '&amp;'. &amp; breaks redirect on IE." It turned out to be unnecessary. 2007-05-29 06:14:09 +00:00
jamiesensei 24a905f98b fixed bug in parsing urls 2007-05-29 06:14:09 +00:00
nicolasconnault 646323549e MDL-9506 Resolved recursion issues in grade_tree:renumber and grade_tree::get_neighbour_element. Unit tests all pass now. 2007-05-29 04:07:04 +00:00
nicolasconnault de420c11c5 MDL-9317 Applying Petr's second patch 2007-05-29 00:56:44 +00:00
mark-nielsen e72be0548e Merging in changes for MDL-9947 and MDL-9923 from MOODLE_18_STABLE 2007-05-28 18:55:15 +00:00
jamiesensei 099f7fb6ca added another parameter to moodle_url out, out_action and get_query_string so that developer can output url with query string joined by '&' and not '&amp;'. &amp; breaks redirect on IE. 2007-05-28 14:25:40 +00:00
jamiesensei b1a61961aa MDL-9745 "Checkboxes badly lined up in forms lib, e.g. "students may review" settings on quiz settings screen." Reverted previous fix for similar problem MDL-7779 as the fix for MDL-7779 causes worse problem MDL-9745 with form elements in groups. Second part of commit in HEAD, missed a bit in HEAD. 2007-05-28 14:21:09 +00:00
bobopinna 416050aa9a patched a parse error 2007-05-28 12:53:42 +00:00
jamiesensei 5eb1924f01 MDL-9745 Checkboxes badly lined up in forms lib, e.g. "students may review" settings on quiz settings screen. Reverted previous fix for similar problem MDL-7779 as the fix for MDL-7779 causes worse problems with form elements in groups. 2007-05-28 12:17:40 +00:00
skodak 7bddd4b787 MDL-9632; MDL-9545 basic assignment grading support - event triggers implemented + some minor cleanup 2007-05-28 08:55:15 +00:00
skodak 37db0ab8f8 MDL-9960 update_record() does not store NULLs; I hope it will not break anything 2007-05-28 08:49:40 +00:00
skodak b5b65852c6 apply magic quotes before using var in sql query in fetch_all_using_this() 2007-05-28 08:20:07 +00:00
bobopinna 27a46315e2 Added the starting point for CMIFeedback type checking 2007-05-28 08:18:25 +00:00
nicolasconnault c91ed4be0d MDL-9506 Category and Item now set their own courseid if not set explicitly, and if they have enough information from
other sources. category::set_as_parent has a new constraint: cannot set over children from different courses.
Applied recursion to grade_tree::renumber(), but still some fine-tuning to do, since only grade_items are getting updated in DB.
2007-05-28 08:00:19 +00:00
nicolasconnault d990776605 MDL-9137 Applied parts of Petr's patch on the gradebook objects. Unit tests unaffected. 2007-05-28 02:05:21 +00:00
nicolasconnault 526e1a8a25 MDL-9506 Corrected a number of small errors in unit tests and classes. 2007-05-28 01:26:58 +00:00
jamiesensei 3673f6bc3b added more phpdoc comments for hardFreezeAllVisibleExcept 2007-05-28 00:50:11 +00:00
jamiesensei 56015454dd new method hardFreezeAllVisibleExcept 2007-05-28 00:46:11 +00:00
nicolasconnault 4e83465eed Removed non-standard :endif notation. 2007-05-28 00:22:17 +00:00
skodak 271c7a98bc MDL-9959 debugging() shows warnings when called from call_user_func() functions
MDL-9958 addslashes_recursive() and stripslashes_recursive() modifies function parameter in PHP5
2007-05-27 22:55:52 +00:00
bobopinna 36938e1a67 fixed translation file for othersettings string 2007-05-27 21:24:51 +00:00
bobopinna 8e4838ffd7 Fixed some bugs that block ADL test suite
Still to fix ex CMIFeedback type
2007-05-27 21:22:27 +00:00
bobopinna d7ffd685d2 added a new string for exit activity instead using the old one 2007-05-27 17:13:16 +00:00
bobopinna bb8f14335a Added exitactivity link in navigation bar 2007-05-27 17:08:54 +00:00
bobopinna 2fce0a2e9e Modified exit string now is exit activity 2007-05-27 16:56:28 +00:00
bobopinna 35c0b12fe9 Added some missing strings 2007-05-27 16:54:56 +00:00
bobopinna 2b90f94115 commented attend fields because this feature in not implemented yet 2007-05-27 16:32:59 +00:00
bobopinna 456980415c fixed a big problem with local manifest file import
removed a white space in url generation
2007-05-27 16:28:39 +00:00
bobopinna 23ab8e8d80 removed an unrequired require_once
optimized an if branch
2007-05-27 16:26:05 +00:00
bobopinna 9b60b28a52 fixed a missing <li> tag in package TOC 2007-05-27 16:21:13 +00:00
jamiesensei 9368476553 MDL-9734 fix for clean_param PARAM_LOCALURL bug 2007-05-27 11:19:04 +00:00
jamiesensei 64360ee7b5 made hardFreeze work properly for a whole form. New paramater in moodleform constructor 'editable' defaults to true. If true then display form as normal. If false then hardFreeze whole form. Now displays form without an submit buttons. If form is hard frozen no data is ever passed to get_data. 2007-05-27 05:01:51 +00:00
jamiesensei 7d8ea28668 MDL-9891 new 'clonepermissionsfrom' key in access.php 2007-05-27 04:53:02 +00:00
moodler 9d69632b0e Automatic installer.php lang files by installer_builder (20070527) 2007-05-27 04:27:59 +00:00
skodak 19e7f33384 MDL-9643 some more polishing 2007-05-26 13:11:54 +00:00
skodak 7458bee224 MDL-9643 some more polishing 2007-05-26 12:59:13 +00:00
moodler 72d24cae14 Automatic installer.php lang files by installer_builder (20070526) 2007-05-26 04:02:24 +00:00
moodler ed7666d8f8 Merged MDL-9826 from stable 2007-05-25 21:04:26 +00:00
anthonyforth ae8fda4cb1 Fix for bug MDL-9942 2007-05-25 09:55:08 +00:00
toyomoyo b2fa775cbd MDL-9515, backups for gradebook 2007-05-25 08:54:20 +00:00
skodak a9cca58ea2 MDL-9643 minor maths unit test cleanup 2007-05-25 07:07:05 +00:00
nicolasconnault 8ae28b4959 MDL-9506 WOrking on grade_tree edit tree 2007-05-25 07:02:04 +00:00
skodak 8bbb7e471e MDL-9643 removing the sample files, use our unit tests instead 2007-05-25 06:54:48 +00:00
skodak ffaa6c4abd MDL-9643 mathslib.php library, unit tests, removed e and pi constants 2007-05-25 06:50:09 +00:00
skodak 2d53fa5031 MDL-9643 evalmath library improvement - sample calc functions 2007-05-25 06:07:45 +00:00
jamiesensei 61d9b9fc5d oops. reverting changes which shouldn't have been committed to HEAD. 2007-05-25 05:49:51 +00:00
jamiesensei bdc66c2a5d fix for category.php lists. Slight change in listlib api caused breakage. 2007-05-25 04:59:17 +00:00
moodler 6e393d06ec Automatic installer.php lang files by installer_builder (20070525) 2007-05-25 04:28:05 +00:00
skodak 0b5f7f5948 MDL-9643 evalmath library import - tweaks and wrapper class ahead 2007-05-24 19:12:18 +00:00
tjhunt 6e9debfbf1 Removing remaining references to RQP in core code. I had not realised there were so many. By the way, I am committing this from a pub in York. Pub's with wireless, whatever next? 2007-05-24 17:25:37 +00:00
skodak 98518b6221 MDL-9876 import adodb 4.95a 2007-05-24 17:14:58 +00:00
sam_marshall 8101dccb8e MDL-9920 Allowed xmldb to create 32-bit serial fields if specified, in postgres 2007-05-24 15:18:35 +00:00
sam_marshall c5a3ce0acd MDL-9932 Fixed calendar restore of events on same day with same description (but different names) 2007-05-24 12:09:49 +00:00
toyomoyo 3f8bcf7c72 grade import/export fixes to use forms lib 2007-05-24 08:57:36 +00:00
nicolasconnault 2186f72cb1 MDL-9629 Beginning the edit category page. Also added dmllib::sql_max($field) and fixed a few bugs. Grade_item should now extrapolate its sortorder upon insertion if not set, by looking up the last sortorder in the table, and incrementing by 1. 2007-05-24 08:50:01 +00:00
tjhunt 5114a1ac01 Small cleanup to remove duplicated code. 2007-05-24 07:44:08 +00:00
tjhunt 8b192edbc1 Comment improvements. 2007-05-24 07:42:27 +00:00
moodler 335768f419 Removed some RQP code no longer needed MDL-9600 2007-05-24 07:10:22 +00:00
nicolasconnault 5e2274737c MDL-9506 Added grademax extrapolation from scale info for grade_item, in insert() and update() methods. Corrected a few other minor bugs. 2007-05-24 03:32:20 +00:00
toyomoyo 3abe994563 fixing a typo 2007-05-24 03:07:27 +00:00
toyomoyo ce34ed3a76 fix for MDL-9137, adding support for gradebook plugins for db, cron, events, permission structures etc 2007-05-24 02:16:31 +00:00
nicolasconnault a15428a2f6 MDL-9889 Fixed a couple of bugs that were only detected by PHP5. Nothing major at all. 2007-05-24 02:08:20 +00:00
mark-nielsen 11bf5b8301 Merging fixes for MDL-9757, MDL-9619 and MDL-9366 from MOODLE_18_STABLE 2007-05-23 17:48:12 +00:00
nfreear 5dbae3560e Follow up fix for bug MDL-9890 - replacing nicolasconnault's fixes that I overwrote - sorry! 2007-05-23 14:45:49 +00:00
thepurpleblob 67c1252753 Added some set_time_limit()s in case of slow servers timing out. 2007-05-23 14:07:12 +00:00
thepurpleblob 81a7a02b8f Progress with making the code a bit more resilient.
Added XML tidy up if tidy extension is available.
2007-05-23 12:52:33 +00:00
nfreear 73418a3ce3 Big fix for MDL-9890 "Help should be well-formed, XHTML Strict and semantic". 2007-05-23 12:03:22 +00:00
nfreear f79310ed56 Big fix for MDL-9890 "Help should be well-formed, XHTML Strict and semantic" 2007-05-23 11:59:20 +00:00
tjhunt dcb784c5de XHTML strict. Fix entity. Merged from MOODLE_18_STABLE. 2007-05-23 10:52:16 +00:00
tjhunt 19faed1ab3 MDL-9914 - Can't download mark details from the quiz overview report. Merged from MOODLE_18_STABLE. 2007-05-23 10:21:43 +00:00
toyomoyo 5283e9598d correcting handling of scales 2007-05-23 07:26:38 +00:00
toyomoyo 9d5c91b111 fixing scale for grade_grab_grades() 2007-05-23 06:25:13 +00:00
nicolasconnault 168df8f3e7 Added set_time_limit(0) at beginning. 2007-05-23 06:02:59 +00:00
jamiesensei a69dacfd48 reverting back to version 1.2. Accidentally committed version 1.3 in HEAD. 2007-05-23 00:59:36 +00:00
tjhunt 214f6330f9 MDL-9881 - Attempting to delete large number of questions fails due to long URL - Merged from MOODLE_18_STABLE. 2007-05-22 14:04:06 +00:00
tjhunt 5d852ba111 When using DEBUG_DEVELOPER, make error(...) output a stack trace. 2007-05-22 13:25:31 +00:00
tjhunt d1f2b9e130 Switch a form from post to get, since that is more appropriate. 2007-05-22 13:24:51 +00:00
skodak d46306de6a MDL-9848 eventslib improvements and cleanup 2007-05-22 10:26:29 +00:00
jamiesensei cd26d8e047 MDL-9857 "more options in print_context function" 2007-05-22 10:09:22 +00:00
nicolasconnault 9c585e573c MDL-9506 Changed grade_tree fullobjects param (not fully implemented) to $include_grades param, default to false, fully implemented. Full objects are always loaded when building the tree, but grades are only loaded conditionally. 2007-05-22 09:03:33 +00:00
nfreear ac9052357a Follow up for MDL-9753, accepts HTML for $text param (THEME->larrow, rarrow don't work in stock IE6). 2007-05-22 08:59:56 +00:00
moodler b4808e48e6 Automatic installer.php lang files by installer_builder (20070522) 2007-05-22 05:14:38 +00:00
nicolasconnault 92a66edf7a MDL-9506 Implemented grade_tree->update_db, fixed bugs in grade_category etc... 2007-05-22 04:38:20 +00:00
gbateson 34f2a964f9 use PARAM_ALPHANUM on "section" parameter so that "section=all" is allowed 2007-05-22 04:28:27 +00:00
toyomoyo edb89e4bd5 MDL-8877, adding help files for changed extendenrol and groupextendenrol features 2007-05-22 02:24:31 +00:00
pichetp 451373ed12 adding or deleting more than 1 dataitems in one step in datasetitems_form.php 2007-05-22 02:23:50 +00:00
toyomoyo 358a31fc4c placed help files in the wrong place, sorry! 2007-05-22 02:23:23 +00:00
toyomoyo 4cbb294f62 Fix for MDL-8877, forgot to add these before checking in 2007-05-22 02:09:41 +00:00
toyomoyo 9fffb69162 MDL-8877, specify time of manual enrolments and related improvements for changing enrolment period from user/index.php. Thanks Andrei! 2007-05-22 02:08:22 +00:00
toyomoyo f5f4967e7d some clean ups for gradebook import/export 2007-05-22 02:05:00 +00:00
skodak 4db13f9465 MDL-9880 Remove user_activate() method from public API because it was used only from user_confirm() in LDAP, other plugins use only user_confirm()
MDL-9575 fix email signup in ldap auth mod
2007-05-21 20:33:42 +00:00
skodak 2cef74f91f MDL-9861 Password expiration value is calculated wrong when ldap_expirationtime2unix() returns 0 - patch by Iñaki Arenaza; merged from MOODLE_18_STABLE 2007-05-21 20:08:45 +00:00
skodak edd82a22c0 MDL-9860 Incorrect check for password expiration at login - patch by Iñaki Arenaza; merged from MOODLE_18_STABLE 2007-05-21 20:00:10 +00:00
jamiesensei 9ae3af87ae MDL-9856 allow passing moodle_url to moodle_form constructor as action instead of passing url as a string 2007-05-21 16:11:17 +00:00
moodler 87b0b4990b Fix for manual read tracking MDL-9859 2007-05-21 14:43:09 +00:00
skodak 97c13bd803 MDL-9866 incorrect include() in simpletest library 2007-05-21 14:27:22 +00:00
moodler 02ea78f834 Merged MDL-9875 from stable 2007-05-21 13:34:49 +00:00
thepurpleblob 6af98025d7 merged from STABLE18 2007-05-21 13:11:06 +00:00
jamiesensei d92b9d9140 new sql to fetch question counts for categories all in one sql query. Question count now included in drop down box. 2007-05-21 09:26:17 +00:00
nicolasconnault adc2f286e6 MDL-9506 Extracted the code that applies droplow and keephigh rules to aggregated values, into its own little method. Unit testing this method revealed a coding error which I have rectified. 2007-05-21 08:56:44 +00:00
nicolasconnault c227624882 MDL-9506 New grade_tree->build_tree_filled method called at the end of renumber(). Prepares object for display_grades(). 2007-05-21 07:47:41 +00:00
moodler baacc970b9 MDL-4325 ... fix the order of the name fields is lastname/firstname are reversed - thanks Kita! 2007-05-21 07:37:55 +00:00
jgutierr25 c8afa50ba5 *** empty log message *** 2007-05-21 07:11:12 +00:00
nicolasconnault ab53054fd1 MDL-9506 Removed the debugging message for the fetch() methods. Added droplow and keephigh rules to grade_category::aggregate_grades(). The only question now is what to do when the droplow or keephigh field is larger than the number of grades for a given user/item combination. At the moment it just gives that value 0. 2007-05-21 05:54:12 +00:00
moodler d0e84e1be0 Added Iñaki's patch from MDL-7233 for 1.9 - thanks! 2007-05-21 05:23:00 +00:00
moodler 9a8587ee71 Automatic installer.php lang files by installer_builder (20070521) 2007-05-21 04:45:14 +00:00
nicolasconnault 750b0550d9 MDL-9506 Resolved a small bug in grade_category that failed the set_as_parent method. 2007-05-21 02:22:12 +00:00
jamiesensei 83bc64dba4 adding quoting to output of hidden params in moodle_url 2007-05-20 17:05:27 +00:00
jamiesensei 3a3c454ede UI for editing questions changed to support sharing questions in multiple contexts. Also changed import / export and category editing form to use formslib. 2007-05-20 16:17:48 +00:00
jamiesensei fae60ee3d3 small additions to comments on moodle_url 2007-05-20 14:05:49 +00:00
jamiesensei b0bc5219d8 some changes to listlib to make it possible to chain the paging of several lists together that are displayed on the same page, so that paging can work across several lists 2007-05-20 13:59:58 +00:00
pichetp 4ace1db9bd correcting display of datasetitems_form for multiple answers 2007-05-20 12:39:01 +00:00
jamiesensei 305f5b4b1d removed unecessary sesskey hidden param. sesskey is automatically included and processed in formslib forms. Removed redundant validation method. 2007-05-20 11:56:57 +00:00
jamiesensei f161729e21 new element for formslib selectgroups is a select drop down with options grouped into optgroups 2007-05-20 11:48:02 +00:00
jamiesensei 7bd4342642 small fix for uninitialised var 2007-05-20 11:20:49 +00:00
skodak 89028eed59 MDL-9855 upgrade HTML Purifier to v1.6.1 2007-05-20 05:35:43 +00:00
moodler 5e09d346fa Automatic installer.php lang files by installer_builder (20070519) 2007-05-19 04:38:43 +00:00
pichetp 1ff3363480 correcting datasets to $datasets line 248 2007-05-18 12:51:38 +00:00
jmg324 282c169549 MDL-9802 added my:manageblocks capability so admins can define whether users can add/remove blocks from myMoodle page 2007-05-18 11:57:46 +00:00
skodak 0ac948ea2a MDL-984adding forgottent rs_close() - thanks Eloy! merged from MOODLE_18_STABLE 2007-05-18 09:52:11 +00:00
skodak 93759defcf MDL-9842 Groups from groupings not moved to "Not in a grouping"; merged from MOODLE_18_STABLE 2007-05-18 09:20:52 +00:00
toyomoyo d961705032 bug fixes for gradebook import/export 2007-05-18 08:49:00 +00:00
nicolasconnault 03f01edded MDL-9506 New grade_category::set_as_parent($children) method (non-static). Crucial method for adding categories over children. 4 constraints have been set up, and successfully tested in unit tests. However, the method fails when it comes to updating the children's parent fields. The test data may be missing some required fields. 2007-05-18 08:05:53 +00:00
nicolasconnault d7f1cc4c3b MDL-9506 Fixed up the grade_tree and its unit tests. The main change to notice is in grade_category, where the array returned by get_children() is indexed by sortorder. The associated unit tests have been updated to reflect this important change. 2007-05-18 05:34:30 +00:00
skodak 355180ff34 MDL-9846 Typo in password policy 2007-05-17 19:48:57 +00:00
thepurpleblob b698c2ab61 Check if the files exist. Display tick if they do and cross if not. 2007-05-17 17:44:06 +00:00
skodak d77717d786 MDL-9843 get_cached_events does not handle components properly;
whitespace cleanup;
minor coding style changes - such as always returning arrays from get cached and file events;
marked some functions as eventslib internal only
2007-05-17 15:44:07 +00:00
skodak 4230372f19 removed unused $varprefix 2007-05-17 14:05:36 +00:00
skodak 14488335e1 MDL-9840 - added missing installation of core event handlers during initial install 2007-05-17 14:04:22 +00:00
nicolasconnault a39cac258d MDL-9506 Elements of the array returned by grade_category::get_children are now indexed by sortorder, to work more easily with grade_tree methods.
New get_sortorder method for grade_category and grade_item. This is used when the type of an object is unknown, and could be either one. Because categories have a "virtual" sortorder (through their grade_item), they can transparently return one as well.
Unit tests fail for grade_tree at present because of faulty implementation which is being fixed. The $depth attribute has been completely removed, as well as a number of switch statements, in favour of an $index variable which is exploded and used to build strings of array keys for eval statements (unset and array_splice). Can't wait to get all this working :-)
2007-05-17 09:04:52 +00:00
toyomoyo 85e287deaa development code, missing GUI and formslib for second form 2007-05-17 08:55:29 +00:00
toyomoyo 2becf502b3 fixing footer 2007-05-17 08:53:56 +00:00
skodak 24be194445 merging forgotten changes from MOODLE_18_STABLE 2007-05-17 08:48:47 +00:00
nicolasconnault 607a0bbbc9 MDL-9506 Successfully implemented the grade_tree methods for moving an element somewhere else in the tree. Tests pass successfully. However the test data doesn't yet include more than 1 top-category, so I can't test moving it. Direct insertion and deletion have not yet been tested, although insertion is used by the move_element method. 2007-05-17 04:13:42 +00:00
nicolasconnault 8ff4550af2 MDL-9506 Refactored some of the category methods into grade_tree, same for unit tests. 2007-05-17 02:22:32 +00:00
martinlanghoff 6c146b7d7f get_my_courses() if the parameters passed are identical to the defaults... MDL-7416
We are using the defaults then ;-)

Credits for spotting it go to Yu!
Blames for the thinko to MartinL
2007-05-16 23:19:15 +00:00
skodak c1f7441a05 MDL-9392 resource_popup: not working; merged from MOODLE_18_STABLE 2007-05-16 21:29:12 +00:00
skodak ec74e82d5c MDL-9618 Form remove option logic is incorrect - patch by Mark Nielsen; merged from MOODLE_18_STABLE 2007-05-16 20:32:01 +00:00
skodak 68d0c80c21 MDL-9761 Student's Gradebook view doesn't follow defaults establ;ished by the Instructor; patch by Jason Skinner; merged from MOODLE_18_STABLE 2007-05-16 20:25:12 +00:00
skodak 13569fd43b MDL-9418 use proper addslashes before each insert; merged from MOODLE_18_STABLE 2007-05-16 20:08:26 +00:00
skodak 9eb64c947a MDL-9825, MDL-9798, MDL-9799 - new workaround for the object trouble in IE caused by UFO; reverting previous patches; merged from MOODLE_18_STABLE 2007-05-16 18:17:14 +00:00
nicolasconnault e835361626 MDL-9506 Created new grade_tree object for working with a tree of grade_categories and items. 2007-05-16 15:04:35 +00:00
bobopinna 91e7b2b18a Fixed bug with correct_responses elements 2007-05-16 14:30:25 +00:00
bobopinna 92733802a9 Fixed double indexed elements problem 2007-05-16 08:34:25 +00:00
toyomoyo 985d1ee11b new grade book export plugins development 2007-05-16 08:21:46 +00:00
moodler b6b354e36e Merged MDL-9826 from stable 2007-05-16 08:03:37 +00:00
nicolasconnault e81235897c MDL-9506 Fixed a couple of failing unit tests, due to new test data 2007-05-16 07:47:04 +00:00
nicolasconnault c78b0cc59a MDL-9506 Reorganised unit tests a bit, added some stubs and tests for grade_category, and corrected missing grade_finals for orphan grade_items and categories. 2007-05-16 03:17:46 +00:00
nicolasconnault 0dfe77317a MDL-9506 grade_category::display_grades() and grade_category::get_tree() correctly built the headers for a HTML table of grades, with two layers of categories and one layer of grade_items. Empty filler cells are used when a 1st or 2nd level category doesn't exist for a grade_item. 2007-05-16 02:47:56 +00:00
pichetp 65654c0646 modifiyng save question so that $SESSION is not used MDL-8565 2007-05-16 02:18:29 +00:00
pichetp dde9b164ca correcting for modifications done in numerical question units code 2007-05-16 02:05:40 +00:00
skodak 8eb81bd9e7 MDL-9824 do not use sesskey check when user already logged out in logout.php; merged from MOODLE_18_STABLE 2007-05-15 21:13:23 +00:00
skodak a7156b5d7f MDL-9380 Adding a Resource of Type directory leads to SQL errors, patch by Andrew Schmadeke; merged from MOODLE_18_STABLE 2007-05-15 20:56:40 +00:00
skodak e38bbf52c4 MDL-9799 can not use forms due to object bug in IE :-( ; merged from MOODLE_18_STABLE 2007-05-15 20:22:15 +00:00
skodak 7b8f289cdf MDL-9730 resource name is now used in accessibility pdf link instead of summary hat may not be always present; merged from MOODLE_18_STABLE 2007-05-15 19:56:08 +00:00
skodak e61c34cfe5 MDL-9823 Disclaimer HRef is repeated twice in the Link - Policy.php for some urls; merged from MOODLE_18_STABLE 2007-05-15 19:42:53 +00:00
skodak 7bf579b243 MDL-9821 incorrect permission to modify templates for non-editing teacher in db module; merged from MOODLE_18_STABLE 2007-05-15 16:58:05 +00:00
skodak 606361b9c2 MDL-5958 reverting the permission change in db/lib/access.php - course creator permissions must be defined only above the course level!
they must not be enabled at module level
2007-05-15 16:45:53 +00:00
nicolasconnault 5e16f809f8 MDL-9506 Experimental development of numbering and displaying of category and items tree/table. Messy work :-) 2007-05-15 09:59:53 +00:00
exe-cutor 1531d1efef Merging fixes from 1.8 stable 2007-05-15 08:49:54 +00:00
toyomoyo a2422359a0 fixing grade exports 2007-05-15 08:49:49 +00:00
skodak 2b53417835 MDL-9798 fallback to html mimetype when missing index.php, index.html; merged from MOODLE_18_STABLE 2007-05-15 08:41:55 +00:00
skodak 28b2891e4c MDL-9798 workaround for handling of object tag in buggy IE; merged from MOODLE_18_STABLE 2007-05-15 08:33:22 +00:00
moodler ae3e06dd24 Merged brackets fixes from stable 2007-05-15 07:50:19 +00:00
csantossaenz b7500e489f Removed code which was there to skip a step on Scorm compliance test 2007-05-15 06:41:25 +00:00
moodler e2eb83135a Automatic installer.php lang files by installer_builder (20070515) 2007-05-15 04:47:30 +00:00
toyomoyo 85ac09edc6 taking out a debugging line 2007-05-15 03:39:20 +00:00
toyomoyo 9492291c82 some changes to events to make grade_added work 2007-05-15 03:19:01 +00:00
stronk7 3b98c475cd Add support for more tabs in module pages. Point 1. MDL-9736
Merged from MOODLE_18_STABLE
2007-05-14 16:57:33 +00:00
nfreear a84dea2c30 Follow-up fix bug MDL-9753, "THEME->larrow, rarrow don't work in stock IE6". 2007-05-14 13:28:21 +00:00
bobopinna a5fcd78018 Removed maxmodel unuseful variable
This could fix also cmi.interactions.n.learner_response problem
2007-05-14 12:27:12 +00:00
sam_marshall 3bb92bbe04 MDL-9382: Added fields and orderby parameters to get_user_capability_course, which allows for greatly improved performance in the case where you want more information about the courses. (However, the function does still basically suck.) 2007-05-14 12:11:47 +00:00
moodler bfe7297e47 First rough cut at a grade_handler for Yu to continue with 2007-05-14 09:38:41 +00:00
moodler ca4bcf58ec Event handler for new grades 2007-05-14 09:30:56 +00:00
toyomoyo 7f999ccbdc adding csv plug in code, with no event handler 2007-05-14 09:24:09 +00:00
nicolasconnault dda0c7e666 MDL-9506 Added some unit tests, found some errors, and realised they came from incorrect setup unit test data, which I corrected (grade finals for item 3 were set to 2-digit ints although item 3 was a scale of 1-7. 2007-05-14 08:18:03 +00:00
nicolasconnault 096858ffcf MDL-9506 Finally cracked the category aggregation. However, more thorough unit tests need to be written, with exact expectations instead of ranges, as currently used. All unit tests pass. 2007-05-14 04:14:22 +00:00
pichetp 6e8f63c6d4 removing $qo->generalfeedback = ''; line 640 as generalfeedback is already set in
import_headers().
2007-05-13 15:07:07 +00:00
moodler 811baf5ff6 Automatic installer.php lang files by installer_builder (20070512) 2007-05-12 05:41:36 +00:00
jamiesensei 850e85b7b2 some changes to make it easier to override editing icons in child classes and to make several lists work well with each other on the same page. 2007-05-11 22:22:14 +00:00
pichetp 093414d200 Setting import_process =true in defaultquestion() function used on imports 2007-05-11 13:00:34 +00:00
ikawhero 9aaa214e0c Addng two new options to the custom profile fields:
1. Force unique - force the field data to be unique
2. Signup - display the field on the signup page
MDL-9702
2007-05-11 12:16:44 +00:00
nfreear f4a9c8b213 Fixes bug MDL-9753, "THEME->larrow, rarrow don't work in stock IE6". Merged. 2007-05-11 11:29:46 +00:00
toyomoyo 1b07462560 added code to write back timestamp 2007-05-11 09:08:30 +00:00
nicolasconnault 2df712352d MDL-9506 Almost completed category aggregation, including generation of raw and final grades held by these categories. Only a few small glitches remain, that cause these grades not to be generated properly. This is the last critical element of the gradebook API, so I'm looking forward to finishing it :-) 2007-05-11 08:46:34 +00:00
moodler 57b4877d87 Automatic installer.php lang files by installer_builder (20070511) 2007-05-11 06:23:16 +00:00
gbateson 34caf003e0 when inserting 'Give Up' button, if site encoding is not iso-8859-1, then set page encoding to get_string('thischarset') 2007-05-11 05:28:28 +00:00
nicolasconnault 77d2540eea MDL-9506 Finished implementing the propagation of needsupdate flag up the hierarchy when a lower element justifies it. All unit tests pass. The next task is to implement the generation of raw grades and final grades based on this needsupdate setting. 2007-05-11 03:29:00 +00:00
nicolasconnault 1d4b666828 MDL-9506 Fixed a bug with the fetch method. This method should not be called statically when setting an internal object. For example, when the grade_category is calling its load_parent_category, it should not call grade_category::fetch, but new grade_category. Otherwise, the method assigns the new variables to the calling object. 2007-05-11 02:43:46 +00:00
moodler b55997c112 Removed set_timecreated and just tidied up some time-related things 2007-05-11 02:11:30 +00:00
skodak e52f2d582e MDL-9642 auth/CAS: Dependence on external PEAR DB; merged from MOODLE_18_STABLE 2007-05-10 12:30:14 +00:00
urs_hunkler 05ef9fdd03 added clearfix true to clear the contetn in some modules/course forms 2007-05-10 10:46:42 +00:00
toyomoyo a216f661d6 grade export plugins 2007-05-10 09:29:58 +00:00
moodler f744267a28 A few small fixes and clean ups 2007-05-10 09:07:37 +00:00
skodak 63c9ee991f MDL-9764 Require_course_login() should check cm visibility in frontpage course too; merged from MOODLE_18_STABLE 2007-05-10 09:02:41 +00:00
nicolasconnault cb64c6b257 MDL-9506 small fix 2007-05-10 08:58:00 +00:00
toyomoyo 76127f3797 adding new global variable to deter which export should write the exported timestamp in grade_grades_final table 2007-05-10 08:23:44 +00:00
nicolasconnault 8f4a626d5c MDL-9506
grade_grades_raw
    added grade_item object
    added load_grade_item()
    added call to grade_item->flag_for_update() when object is inserted, deleted or updated
grade_grades_final
    added grade_item object
    added load_grade_item()
grade_grades_text
    added grade_item object
    added load_grade_item()
grade_item
    added qualifies_for_update()
    added call to grade_category->flag_for_update() when object is inserted, deleted or updated (only when qualifies_for_update() is true)

However since I have made this last set of changes, the unit tests are performing extremely slow, and several of them fail. I suspect that there is a serious performance issue involved in using objects too heavily, instead of performing more SQL queries, especially when updates are concerned. Often a complete object is SELECTed before it is amended in an object form then UPDATEd.

In the next iteration I will look at this seriously, and put together some tests with thousands of users and many grade_items, to see how well the API responds.
2007-05-10 08:08:43 +00:00
moodler ad9757c53e DIsabling Chameleon for the general case 2007-05-10 07:16:33 +00:00
moodler 0987c638d0 Tweaking graphics a bit 2007-05-10 06:38:40 +00:00
moodler 3b5006c9ff Bigger beige box for big screens 2007-05-10 06:23:37 +00:00
moodler 07c42b6ec3 Tidied up some images a bit (smoother when repeated) 2007-05-10 06:05:21 +00:00
moodler bfca5ef8f2 I really don't like the underlines and color-changing on links ... :-) 2007-05-10 05:57:51 +00:00
moodler ed6770129f Just removing the debug stuff from the header 2007-05-10 05:37:52 +00:00
toyomoyo 8df8bbfbd0 removing extra code 2007-05-10 03:51:55 +00:00
toyomoyo e8565225c9 removed extra code 2007-05-10 03:50:07 +00:00
toyomoyo ecca85812f prefix is no longer needed for the array containing event dataI(e.g. $mod_assignment_events", $events is sufficient. 2007-05-10 03:46:10 +00:00
nicolasconnault 8c8462437d MDL-9506
grade_category:
    new parent_category object
    new load_parent_category() method
    new flag_for_update() recursive method
grade_item:
    new category object
    changed get_category() to load_category() and updated testgradeitem
    added missing idnumber field
    new flag_for_update() recursive method
2007-05-10 02:34:01 +00:00
urs_hunkler 132148ad2e added/changed custom corners lib and calls to add the necessary divs
The SCORM course makes big problems because the  scorm content is absolutely positioned. All surrounding divs collapse.
2007-05-09 18:29:36 +00:00
urs_hunkler 8986786c60 added clearfix to middle-column wrapper div against collapsing 2007-05-09 15:44:50 +00:00
urs_hunkler eb1ed65076 added/changed custom corners lib and calls to add the necessary divs 2007-05-09 15:34:14 +00:00
urs_hunkler c07a4e05c1 added page my-index to exclude list because it uses layout-table 2007-05-09 15:33:05 +00:00
urs_hunkler f145c2482d added/changed custom corners lib and calls to add the necessary divs 2007-05-09 15:03:01 +00:00
nfreear 09a3135031 Fixes bug MDL-9753, "THEME->larrow, rarrow don't work in stock IE6" 2007-05-09 14:40:02 +00:00
urs_hunkler 939c95479b added/changed custom corners lib and calls to add the necessary divs 2007-05-09 14:39:13 +00:00
urs_hunkler d94f580294 library to add the surrounding divs for custom corners and borders. 2007-05-09 14:33:42 +00:00
urs_hunkler e82ea0a3d9 custom_corners theme added 2007-05-09 14:26:59 +00:00
nfreear ce3735d453 Fixes bug MDL-9753, "THEME->larrow, rarrow don't work in stock IE6" 2007-05-09 14:15:33 +00:00
poltawski d6ff5b31ba MDL-9649 'keep searching' in bulk messaging broken merged from MOODLE_18_STABLE 2007-05-09 10:05:08 +00:00
nicolasconnault 5de0c5cb76 MDL-9506 Replaces grade_grades_text.gradesid by composite key userid and itemid. 2007-05-09 09:01:56 +00:00
nicolasconnault 6c76ea8dfa MLD-9506 Grade_grades_raw object now infers grademax and grademin from scale, if scaleid is given at the time of insert of update. 2007-05-09 08:56:08 +00:00
toyomoyo f67e327e37 adding support for specific item ids and text feedbacks 2007-05-09 08:45:25 +00:00
poltawski b6903c43eb MDL-9187 Added missing - between week course date periods, merged from
MOODLE_18_STABLE
2007-05-09 08:39:14 +00:00
nicolasconnault 70f9a148af MDL-9506 Added grade_grades_text object to grade_grades_final and raw objects. 2007-05-09 08:10:27 +00:00
nicolasconnault 95ec7c3146 Fixed incorrect paths to config.php and preset_class.php. 2007-05-09 08:06:35 +00:00
toyomoyo ec19392b06 changing grade book db so that grade_grades_text can be referenced from grade_grades_final 2007-05-09 07:52:00 +00:00
nicolasconnault 6527197b4e MDL-9506 Unit test tables are now created and emptied using XMLDB. raw.gradescale and final.gradescale have been removed in favour of a single gradevalue. Scale value is no longer rounded until moment of display. A number of other changes which you can look at by browsing the diff :-) 2007-05-09 07:50:28 +00:00
moodler b0b4ffe1ec Added CSS class for current language to every page MDL-9750 2007-05-09 06:49:23 +00:00
toyomoyo 7ea9b0953d making grabbing grades from 3rd party mods run 20% of the time 2007-05-09 06:14:09 +00:00
toyomoyo 48b8bba944 dropping gradescale for grade_raw and grade_final table 2007-05-09 05:56:34 +00:00
nicolasconnault 251aa315d1 Removed breaking unit test, originally set up to test xhtml validity throughout the site. 2007-05-09 05:42:06 +00:00
poltawski 72d2845296 MDL-9742 Converting tabs to spaces 2007-05-09 01:11:45 +00:00
poltawski e9e928b68d MDL-9742 Converting tabs to spaces 2007-05-09 00:50:29 +00:00
poltawski e670e7fc30 MDL-9742 - Converting tabs to spaces in groups code 2007-05-09 00:25:51 +00:00
poltawski dd87bde774 MDL-9742 - Converting tabs to spaces in groups code 2007-05-09 00:06:29 +00:00
poltawski 46e15fa354 MDL-9742 - Converting tabs to spaces in groups code 2007-05-08 23:44:31 +00:00
poltawski a9d71982b0 MDL-9742 Converting tabs to spaces 2007-05-08 23:30:58 +00:00
poltawski 307f1bcbf5 MDL-9742 Converting tabs to spaces 2007-05-08 23:19:50 +00:00
poltawski 43ab9aa463 MDL-9742 Moving tabs to spaces 2007-05-08 22:50:04 +00:00
pichetp d1c432e207 adding more validation and a dummy subquestion in MATCH if there is only 2 subquestions. 2007-05-08 19:19:09 +00:00
poltawski 9f439b177d MDL-9742 Replaced stray tabs with spaces 2007-05-08 16:25:18 +00:00
poltawski 2ee60b4944 MDL-9742 Replaced stray tabs with spaces 2007-05-08 16:11:58 +00:00
poltawski e73457e4ba MDL-9742 Converting tabs to spaces 2007-05-08 15:44:37 +00:00
poltawski a044c05ddb MDL-9742 - changed tabs to spaces in a few places where there are one
or two
2007-05-08 15:07:25 +00:00
sam_marshall 3ef1be377b MDL-9741: Fixed broken link on editor help page 2007-05-08 14:57:37 +00:00
thepurpleblob 460135234c MDL-9700:
Added more comprehensive checks for missing fields not exported in
previous versions.
More could be done, but this covers the basics and works for 1.6 (and
probably 1.5) exports.
2007-05-08 14:24:13 +00:00
thepurpleblob fe219f8d76 Merege from stable. New strings for xml import error messages. 2007-05-08 14:15:48 +00:00
csantossaenz 7de38ebfcd Fixed some sintactic errors in sequencinglib.php 2007-05-08 12:40:29 +00:00
poltawski 840b7addef Removing tabs and re-indenting as I seem to have vim misconfigured.. 2007-05-08 12:02:29 +00:00
poltawski 9c186e9ba1 add cvs id to file 2007-05-08 11:43:46 +00:00
toyomoyo c10ddfb3c0 Adding gradebook base class and export plugins. Refactored from old gradebook. Untested code. 2007-05-08 08:59:41 +00:00
nicolasconnault 2c72af1f08 MDL-9506 Stuck on grade_category->generate_grades. I cannot figure out how to recursively generate raw grades for each category's associated grade_item based on that category's children categories and items. Heaps of other changes with this commit, including a new grade_object::update_from_db() method, which uses the state of the record in DB to update the current object with a matching id (useful when you insert an incomplete object in the DB and want to get the default values as set up in the DB). 2007-05-08 08:01:55 +00:00
csantossaenz 33cf55bf96 Changed Ojective Rollup Process 2007-05-08 07:38:11 +00:00
csantossaenz 0506995042 Added function to handle exceptions 2007-05-08 07:25:20 +00:00
nicolasconnault 0aa32279b7 MDL-9506 Issue 1: adjusting a gradeitem's value would result in a grade_final object with gradevalue assigned, even when a gradescale should have been assigned. Issue 2: double grade_final entries when calling grade_item->load_final() after grade_item->generate_final(). Issue 3: Calling grade_item->update_final_grade() without first calling grade_item->generate_final() would result in fatal error. generate_final() is now called if the raw and final arrays' sizes don't match. 2007-05-08 02:20:26 +00:00
nicolasconnault 3504e07b1d *** empty log message *** 2007-05-08 01:48:27 +00:00
jamiesensei 85c375c3f8 added function callbacks for module specific controls to question bank. 2007-05-07 16:57:23 +00:00
jamiesensei 0de94538ee fixed links on edit icons so that they return to question bank page. 2007-05-07 15:38:02 +00:00
jamiesensei 7cd4fda6e7 changing param type for returnurl to PARAM_LOCALURL 2007-05-07 15:16:07 +00:00
csantossaenz af8ed6dcba Added some manifest data to the scorm_scoes_data table 2007-05-07 12:55:31 +00:00
csantossaenz 1536b92d5f Added a function to control the rollup process and changed some stored data 2007-05-07 12:15:16 +00:00
poltawski 5c6f918fee MDL-9731 Adding admin setting for disableuserimages 2007-05-07 11:40:02 +00:00
poltawski c3d1fbe943 MDL-9726 - fixed phpdoc comment from MartinD's commit 2007-05-07 08:34:08 +00:00
nicolasconnault f151b07393 MDL-9506 Added category's associated grade_item object, and changed unit tests database data so that it creates its own test tables. 2007-05-07 07:33:11 +00:00
jamiesensei 64eeaf4753 removed all session fromurl and returnurl stuff from question bank editing code. Returnurls are now passed as get/post params. 2007-05-07 07:13:14 +00:00
jamiesensei f86c2c84b1 fixed error in import.php category object fetching logic 2007-05-07 07:08:41 +00:00
jamiesensei 561fe61df3 return to the proper page after editing a question in the question bank. 2007-05-07 06:35:33 +00:00
jamiesensei d340fde6c4 oops. Accidentally committed a change in default no of category items displayed which I'd changed for debug purposes. Reverting change. 2007-05-07 05:57:49 +00:00
jamiesensei 986effb653 pass the category list page param from page to page in question bank editing pages. 2007-05-07 05:53:20 +00:00
jamiesensei 400edee1ec always make sure that page param is in the pageurl 2007-05-07 05:30:06 +00:00
jamiesensei 81be5cdec3 added argument to constructor to specify the name of the page parameter used to pass the page no of the list. Default to 'page' 2007-05-07 05:25:44 +00:00
jamiesensei a4758a8632 require_login is in 'question_edit_setup' we don't need to call it again here. 2007-05-07 05:12:09 +00:00
toyomoyo db76f84627 merged fix for MLD-9727, capability typo 2007-05-07 05:00:22 +00:00
jamiesensei 7bc26c8f6d changes to pass category id from page to page in question bank editing. 2007-05-07 04:55:55 +00:00
pichetp eeea21878d adding calculated question import MDL-5650 2007-05-07 04:01:20 +00:00
toyomoyo 6ceebc1f32 merged fix for MDL-9656, blocks parents can be system context 2007-05-07 03:24:22 +00:00
moodler 6eaa3f09ce Merged changes for better performance in cases where there are lots of enrolment plugins MDL-9726 2007-05-07 03:10:22 +00:00
gbateson f503b2e6b4 modified "hpNewFunction" to allow Rottmeier quizze (Find-It, Dropdown) s to run on Safari (Mac) 2007-05-07 02:49:56 +00:00
nicolasconnault 712d500777 MDL-9506 Removed implicit loading of associated objects from constructors (grade_item and grade_grades_raw) to avoid very large numbers of sql queries when only little data is required. The load_scale() method, for example, needs to be called explicitly. 2007-05-07 02:04:06 +00:00
mattc-catalyst 5416a9aa44 MDL-9617: Fixed bug in previous commits.
- warnings being displayed in developer mode.
- caused by patch from patch series not being applied.
2007-05-06 23:19:32 +00:00
poltawski ddecb2c498 MDL-8917 - slasharguemtns description slightly incorrect 2007-05-06 10:28:29 +00:00
poltawski 253051dcdc MDL-8356 - fixed typo 2007-05-06 09:57:33 +00:00
poltawski 407380df45 MDL-8971 - fixed typo 2007-05-06 09:45:21 +00:00
martinlanghoff 0f7caaf84f get_my_courses() - ensure we have groupmode, groupmodeforce in $d_fields - calendar/lib.php counts on it 2007-05-06 05:37:28 +00:00
martinlanghoff 0a66585b3d get_my_courses() callers update - check of the $fields param - pass null instead
The default way to call get_my_courses() is now to pass null in the $fields
param to get the (cached copy) of the useful fields. Cuts down enormously
on DB traffic, memory footprint, and session size.
2007-05-06 05:32:40 +00:00
martinlanghoff 4dbca99edf get_my_courses() - added optimisation for guest login
- was causing very slow page generation
2007-05-06 05:28:39 +00:00
martinlanghoff e4271d740c get_my_courses() - tighten default fields - faster, risky
This makes get_my_courses() faster/lighter in 2 ways

 - We fetch a ton less data from the DB
 - We store a tone less data in the Session

In a test environment, with a student enrolled in  3 _empty_ courses
(just created, empty modinfo, etc), this shaves 50% off the session
size on-disk.

The problem is callers that may be expecting a given field to appear by
default. Next step: walk all callers...
2007-05-06 05:27:31 +00:00
martinlanghoff 601edb900e get_my_courses() - skip checks if we know the user has moodle/site:doanything and we are observing $doanything
Author: Martin Langhoff <martin@catalyst.net.nz>
2007-05-06 05:26:59 +00:00
martinlanghoff 5970ccfbaf get_my_courses(): tighten cache scheme - part 2
the tighter cache was fragile as we always edit $field
2007-05-06 05:26:04 +00:00
martinlanghoff c6325ef155 get_my_courses(): tighten cache scheme
This tightens the rather lax caching mechanism that
cached regardless of parameters.

Thanks to Matt Clarkson for the heads-up...
2007-05-06 05:22:03 +00:00
moodler 79a89e9bf2 Automatic installer.php lang files by installer_builder (20070506) 2007-05-06 04:50:49 +00:00
martinlanghoff b8227b8827 calendar: fixed group event display when only one course being viewed
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-05-06 04:38:24 +00:00
martinlanghoff 6b4aeb314b calendar: bug fixed to previous commit (MDL-7416 MDL-9617)
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-05-06 04:37:38 +00:00
martinlanghoff 37d87d11f9 calendar: performance optimisations + behaviour fix (MDL-7416 MDL-9617)
With 2500 courses the calendar was causing around 15000 queries at login and 5000 on the home page.

- Replaced queries inside loops with single unlooped queries.
- Fixed calendar so that course events will show when the users role is assigned at a category level.
- Moved calendar_session_vars() function call out of calendar/lib.php (including a lib should not have side effects)

Author: Matt Clarkson - with some conflict resolution from MartinL
2007-05-06 04:28:11 +00:00
poltawski f261e052f2 Fixed MDL-9639 and syntax error, merged from 18_STABLE 2007-05-05 15:16:39 +00:00
thepurpleblob 5931ea94a1 MDL-9675:
Default value added for 'answernumbering'. Default is 'abc'
2007-05-05 14:44:12 +00:00
ikawhero 2230cb9178 Call theme_setup() after change so new theme displays correctly 2007-05-05 07:43:08 +00:00
thepurpleblob cdeabc0638 Fixed hard coded string 2007-05-04 14:31:56 +00:00
thepurpleblob b0c1b3ad03 Fix a hard coded string 2007-05-04 14:10:56 +00:00
csantossaenz a59b393433 Made some changes on scorm_seq_overall 2007-05-04 12:27:49 +00:00
csantossaenz 980c089bfa Fixed some problems with the variables stored in scorm_scoes_track and the last two functions have been commented and we are going to use scorm_seq_is() instead of them. 2007-05-04 11:17:15 +00:00
jamiesensei 36e298bc58 removed more session stuff from question list and category form in question bank display code 2007-05-04 10:46:33 +00:00
tjhunt 2c89cfb533 Matching qestion type was failing to correctly determine wheterh the student had changed their answer - further improvements. Merged from MOODLE_18_STABLE. 2007-05-04 10:04:20 +00:00
nicolasconnault 2b4f19a9ce MDL-9506 Fixed some small issues. 2007-05-04 09:04:40 +00:00
jamiesensei 9ab3847595 tightening up reg expressions used for submitted data a bit 2007-05-04 08:33:28 +00:00
jgutierr25 0c121d998a patch for bug when you connect from authentication block on main page 2007-05-04 08:06:40 +00:00
csantossaenz d7309cf572 Changed some data from scorm_scoes_track to scorm_scoes_data 2007-05-04 07:46:15 +00:00
nicolasconnault 46566dd8c6 MDL-9506 Moved unit tests in a simpletest subfolder so they can be automatically grouped. Added grade_history and grade_text object and another heap of small implementations. 2007-05-04 07:40:51 +00:00
toyomoyo 6ec4869ecb adding a missing feedbackformat field 2007-05-04 07:35:54 +00:00
jamiesensei 1d88985787 removing TODO comment as the question.php script no longer treats quiz as special. 2007-05-04 06:09:37 +00:00
jamiesensei c65b63deb6 removed global var declaration for var that wasn't used in function 2007-05-04 05:51:59 +00:00
jamiesensei 9ab75b2bcc passing cmid to question.php and removed use of session modform var. Question.php now independent of quiz module. Small improvement to displayed breadcrumbs. 2007-05-04 05:47:59 +00:00
jamiesensei e744ebba7b added a param to moodle_url constructor to provide params as an array just as a convenience to quickly construct a url with an array of params. 2007-05-04 05:45:33 +00:00
jamiesensei e22618dd73 deleted redundant method which was just calling the parent method. 2007-05-04 05:30:03 +00:00
toyomoyo daaf61f40c merged fix for MDL-9617, performance issues in calendar 2007-05-04 05:25:49 +00:00
gbateson 111a18ebf3 remove duplicate id attribute from body tag; microincrement version to 2007040200 (release 2.4.2) 2007-05-04 02:53:52 +00:00
nicolasconnault 52b72d77c5 MDL-9506 Reorganised the gradebook unit tests into more manageable classes. 2007-05-04 02:31:16 +00:00
toyomoyo 967f222f55 MDL-9510, cron job support of legacy grade functions in modules. Implementation is not finished as the gradebook grade_added event is not complete 2007-05-04 02:15:46 +00:00
csantossaenz 6d41befdd0 Added some functions for the Sequencing and Navigation task for SCOMR 2004 compliance. This is a work-in-progress file 2007-05-03 12:55:22 +00:00
csantossaenz 60a3aaf932 Added auxiliar functions for sequencinglib.php 2007-05-03 12:52:11 +00:00
jamiesensei b07b4bd246 removed use of session for reordertool and show page breaks. Reordertool and show page breaks params are now passed from page request to page request only for page requests for quiz/edit.php 2007-05-03 10:38:35 +00:00
jamiesensei b72ff47685 moved question sort order and paging params to be passed from page to page as get params instead of being saved in session var. 2007-05-03 10:10:01 +00:00
jamiesensei fcdb06c470 change to print_paging_bar function to optionally support the use of a moodle_url object as a parameter instead of a string.
small changes to moodle_url class
2007-05-03 10:03:59 +00:00
nicolasconnault 5501446df5 MDL-9506 Added grade_outcome.php. Also added unit test for creation of log in history table when grade_raw is updated. 2007-05-03 08:51:48 +00:00
nicolasconnault 4d0263c6e2 MDL-9506 See previous revision. This adds same functionality but in relation to the hidden field. 2007-05-03 08:08:38 +00:00
nicolasconnault fae51e127b MDL-9506 Added grade_item::toggle_locking and unit tests. Affects all final grades if reqested. 2007-05-03 08:02:51 +00:00
ikawhero 6f93e96c19 Config setting for the theme order priorities. 2007-05-03 07:39:27 +00:00
ikawhero 08297dcb3c New mimetype for Inspiration application.
Icon and code patch from Julian Ridden.
2007-05-03 07:15:30 +00:00
nicolasconnault 27f95e9b47 MDL-9506 Upgraded grade_item::adjust_grade with Darlene's more elegant formula. Completed grade_category::get_children($depth, $arraytype). Added 4 constants to help that method. Added and passed all unit tests (111 now). 2007-05-03 07:10:22 +00:00
ikawhero a907c54043 GUI for category themes.
New language strings.
2007-05-03 07:00:55 +00:00
nicolasconnault cb63031c37 MDL-9506 Removed childrentype after discussion with Martin D. 2007-05-03 05:44:33 +00:00
jamiesensei 86909ce047 small fix to get question code to return to correct place after creating a new question. 2007-05-03 05:17:07 +00:00
jamiesensei 360e503e6e MDL-9644 new class 'moodle_url' in weblib.php to handle constructing a url. It would internally stores params as an array and have methods to manipulate the array. The class can also output the params as hidden fields in a form or as a url with get params appended. 2007-05-03 04:34:53 +00:00
nicolasconnault ec0009c3a4 MDL-9506 Added childrentype field to grade_categories table 2007-05-03 01:43:33 +00:00
gbateson 14c6e7e0ee set default body font-size to "small" 2007-05-03 01:02:06 +00:00
gbateson 3b494b543c add HP 6.2 templates; add compatability with Safari (Mac browser); microincrement version to 2007020201 (release 2.4.1) 2007-05-03 00:22:50 +00:00
danmarsden fedd20219f MDL-8394 Allow students to remove their choice when they are allowed to update their choice. LANG file update. 2007-05-03 00:06:17 +00:00
danmarsden 243ac1feb4 MDL-8394 Allow students to remove their choice when they are allowed to update their choice. 2007-05-03 00:04:53 +00:00
ikawhero 8f8210b3e8 1. Changes to allow different priorities in the theme selection based on
CFG->themeorder setting

2. Changes to allow category themes. Theme can now be set for a category
which will apply to all sub-categories (unless they specifically have a
theme set) and to child courses (course theme and $CFG->themeorder
settings permitting). New config setting $CFG->allowcategorythemes must
be set. Off by default as it means extra database calls.

There is an ugly hack to find out if we are viewing course/category.php -
anyone welcome to tidy this up if they have a better idea.

GUI for setting category theme coming.
2007-05-02 09:35:35 +00:00
poltawski 0a5dffccd7 MDL-9627 - moving uploaduser to formslib 2007-05-02 09:33:56 +00:00
nicolasconnault 7c8a963f7b MDL-9506 Finished all unit test stubs, another batch to write soon. One one test fails because I haven't implemented recursive category hierarchy output yet, and not sure if it's needed. A grade_category already returns its immediate children, and that may be enough. 2007-05-02 07:20:13 +00:00
ikawhero ec75a182db New field for category themes 2007-05-02 06:50:28 +00:00
toyomoyo ca9ffa1887 adding capabilities for gradebook, MDL-9511 2007-05-02 06:30:54 +00:00
poltawski 5fe855d178 MDL-9660 - Fixed groups matches functions and added unit tests for them.. 2007-05-01 12:03:45 +00:00
toyomoyo 9e2e5943dc modifications to eventslib 2007-05-01 08:59:39 +00:00
nicolasconnault ce385eb4e3 MDL-9506 Implemented category path and depth, and wrote unit tests for them. 2007-05-01 08:56:37 +00:00
tjhunt b186cb9d86 Fix all the PHP syntax errors in this code. I can't think of any valid reason for checking code with that many syntax errors into CVS, especially when there are plenty of editors out there that check the syntax for you and highlight the errors. Also, can I point out that Moodle coding guidelines require spaces for indents, not tabs. (http://docs.moodle.org/en/Development:Coding) 2007-05-01 07:03:52 +00:00
skodak 41eb7f3236 MDL-9654 enforced password strength ignored in chage password - patch by Iñaki Arenaza 2007-05-01 06:55:03 +00:00
nicolasconnault 97b868a31c MDL-9506 Forgot to add the grade_scale.php file. 2007-05-01 05:47:10 +00:00
nicolasconnault d5bdb228a5 MDL-9506 Finished grade_item::adjust_grade, which now also adjusts scale grades correctly. Added grade_scale object to wrap around the current non-normalized scale DB table. When/if we upgrade to grade_scales and grade_scale_items DB tables, changing the grade_scale class will be easy. 2007-05-01 05:45:54 +00:00
moodler 339e3c5375 Automatic installer.php lang files by installer_builder (20070501) 2007-05-01 04:14:59 +00:00
nicolasconnault d8676dc32e MDL-9506 Implemented rescaling and grade adjustment formulas in grade_item::adjust_grade(). Also wrote unit tests. 2007-05-01 03:18:55 +00:00
andreabix 4e957c8698 Fixed Task MDL-9611 2007-04-30 18:18:07 +00:00
skodak 54bb33eb10 MDL-9652 rename new password reveal to unmask 2007-04-30 18:03:19 +00:00
skodak fb01314b0e MDL-9647 simplify dealing with headers/footers in admin sections; some more cleanup
fixed continue button in error() on admin page when link present
2007-04-30 17:28:29 +00:00
skodak 40935142f7 MDL-9647 simplify dealing with headers/footers in admin sections; some more cleanup
fixed continue button in error() on admin page when link present
2007-04-30 17:28:29 +00:00
skodak bb4b3ea4f8 MDL-9647 simplify dealing with headers/footers in admin sections; some more cleanup
fixed continue button in error() on admin page when link present
2007-04-30 17:28:28 +00:00
skodak 635773c604 MDL-9647 simplify dealing with headers/footers in admin sections; fixed double footers when using print_footer() in admin page 2007-04-30 17:13:37 +00:00
skodak 1ae083e424 MDL-9647 simplify dealing with headers/footers in admin sections 2007-04-30 17:08:34 +00:00
moodler 3f7353c5d8 Fixed discussions tab ... this is an old change I never checked in 2007-04-30 13:26:06 +00:00
anthonyforth f62c4ca4de Fix for bug 9646 2007-04-30 13:19:33 +00:00
csantossaenz f3800343b4 Fixed some bugs about undefined variables and added some more functions. Still work-in-progress file 2007-04-30 12:46:08 +00:00
moodler de0bc10fea SOme small changes from the meeting today 2007-04-30 09:36:06 +00:00
nicolasconnault b3f111607f MDL-9506 Lots more unit tests, and work on grade_item::update method and associated functionality. 3 unit tests currently fail, so more work needed. 2007-04-30 09:09:32 +00:00
toyomoyo 896f1e0380 events and grades db fixes 2007-04-30 08:46:39 +00:00
jamiesensei 71e0eda8f7 standardizing params for edit question page. All pages now use courseid instead of course or id. 2007-04-30 06:48:57 +00:00
nicolasconnault 869807d8e4 MLD-9506 Corrected update_final_grades() in grade_item, which was updating the grade_raw table
instead of grade_final. Made a few other adjustments.
2007-04-30 05:25:19 +00:00
nicolasconnault e7e3f50fc2 MDL-9506 Removed redundant portion of code. 2007-04-30 05:00:17 +00:00
nicolasconnault a8995b34df MDL-9506 Added grade_grades_raw as a proper object used by grade_item. Also added a global function in gradelib for updating grade_grades_raw objects. 2007-04-30 04:49:25 +00:00
donal72 533f791072 MDL-8973 : Undo API change in previous commit 2007-04-30 03:14:43 +00:00
toyomoyo b0365fce35 merged fix for MDL-9613 2007-04-30 02:56:46 +00:00
toyomoyo 32bbbca1f0 adding 2 fields back 2007-04-30 02:06:48 +00:00
nicolasconnault f440c2d1b1 MDL-9506 Implemented get_raw and get_final, plus added method_exists() checks for each unit test. 2007-04-30 02:05:51 +00:00
martinlanghoff a4b6d764dd ddllib: Introducing create_temp_table()
Close sibling to create_table() - will create a temporary table.
Two aspects of its usage are interesting

 - you _must_ truncate the table after creation as you may be
   "inheriting" an existing temp table from the former user
   of your persistent connection

 - you must use the tablename returned to support MSSQL and any
   other DB that needs special names for temp tables

A couple of TODOs

 - I just don't know how to actually munge the tablename for MSSQL
   (help! Eloooooyyyy!)

 - Surely Eloy will have something better than the preg_replace() ;-)
2007-04-29 20:31:47 +00:00
donal72 dd3d9dcf2e Typo in previous commit: MDL-8973 : Update to the require_logout function 2007-04-29 15:08:29 +00:00
donal72 f8bd70303e MDL-8973 : Update to the require_logout function to ensure that the user's auth plugin is the first (& only) one to have its prelogout_hook invoked. 2007-04-29 15:01:47 +00:00
donal72 1bc6c1ed37 MDL-9288 - use addslashes to avoid injection attacks on data imported vi mnet 2007-04-29 14:09:27 +00:00
donal72 c8e564f5ff Bugfix: The $this->response['faultCode'] was returning the 1th element of the $this->response string (because a non-empty string == 1). 2007-04-29 13:55:11 +00:00
donal72 a9457b5485 Prevent notices on user creation 2007-04-29 13:50:33 +00:00
skodak e4be47a0de MDL-9217 rearanged groups installation and upgrade - roles require groups; merged from MOODLE_18_STABLE 2007-04-29 11:40:26 +00:00
moodler cf5077acd6 Automatic installer.php lang files by installer_builder (20070429) 2007-04-29 04:28:00 +00:00
donal72 1883612a1a Add missing closing-bracket from previous commit 2007-04-29 00:51:29 +00:00
moodler d9a657f2ef Automatic installer.php lang files by installer_builder (20070428) 2007-04-28 04:19:24 +00:00
ikawhero 551022a5ef New language strings for textarea profile field type 2007-04-28 03:08:42 +00:00
ikawhero 86e95dfa9c New textarea profile field type 2007-04-28 03:07:43 +00:00
tjhunt ce5f45783e MDL-9616 - tidy up
* add a better message in the table for these checks.
* improve existing strings for other types of check.
* remove a line of debug code.
2007-04-27 17:43:03 +00:00
tjhunt facc83a83a Get the strings the right way round! 2007-04-27 17:41:38 +00:00
tjhunt bac40536f4 MDL-9616 - Custom checks in environment.xml 2007-04-27 17:15:24 +00:00
csantossaenz 134588836e Added functions to for the SCORM compliance 2004 (Sequencing and Navigation) 2007-04-27 12:20:26 +00:00
jamiesensei efe839dc12 Removed 'edit category' redundant button 2007-04-27 11:27:57 +00:00
tjhunt 571da76788 MDL-6368 and MDL-6369 - supplimental - I missed one bit. 2007-04-27 11:18:08 +00:00
tjhunt 8e652f025b Insufficient error checking was causing problems. 2007-04-27 11:05:57 +00:00
tjhunt 0eb6b04a73 New capability for configuring question types. 2007-04-27 10:37:39 +00:00
tjhunt d4bf4b8695 Fix syntax error. 2007-04-27 10:37:21 +00:00
tjhunt ab0a8ff22c MDL-9608 - Work around Firefox putting the user's password in the quiz password field. Merged from MOODLE_18_STABLE. 2007-04-27 08:33:11 +00:00
nicolasconnault e5c674f1e1 MDL-9506 Added raw and final grade objects, plus more work in unit tests. 2007-04-27 08:12:16 +00:00
nicolasconnault 3058964f85 MDL-9506 Number of important changes, restored unit test stability, on to next changes... 2007-04-27 07:28:41 +00:00
toyomoyo 9d2cddf138 changing grades tables 2007-04-27 06:41:01 +00:00
moodler ca42eec162 Merged MDL-9606 from stable 2007-04-27 06:30:21 +00:00
jamiesensei 1f21cc88f7 removed global vars declaration for var not used in method. 2007-04-27 05:55:57 +00:00
jamiesensei f3ba642c5c forget to pass page parameter during redirects. 2007-04-27 05:48:12 +00:00
jamiesensei 0d32a25dd5 oops. small mistake with copyright notice. 2007-04-27 05:36:03 +00:00
nicolasconnault a56cb85c63 MDL-9506 Renamed lib/gradebook to lib/grade (bug MDL-9506) 2007-04-27 04:13:00 +00:00
nicolasconnault 1f3f3629a4 MDL-9506 Added a function that checks an object for the definition of a given variable. Similar to in_array(). 2007-04-27 03:54:53 +00:00
nicolasconnault 8a31e65c51 MDL-9506 gradebook classes 2007-04-27 01:17:02 +00:00
mjollnir_ 5019454537 Merged from MOODLE_18_STABLE: MDL-9585 - mod/data: moved functions and classes out of preset.php into lib.php 2007-04-26 22:04:43 +00:00
skodak 1cb3da3613 MDL-9574 + MDL-9607 Add Change-own-password and Edit-own-profile capabilities 2007-04-26 21:41:08 +00:00
poltawski 101ed55bda MDL-9605 - missing string in language pack editing 2007-04-26 19:55:02 +00:00
moodler 08e22608b7 Merged MDL-9594 from stable 2007-04-26 14:54:21 +00:00
toyomoyo 8aaf935a1f some events code/testing code 2007-04-26 08:50:29 +00:00
moodler be63689802 Merge XHTML fixes for MDL-9589 2007-04-26 08:49:21 +00:00
nicolasconnault 60cf74305d MDL-9506 More work in the unit tests 2007-04-26 08:29:30 +00:00
nicolasconnault f9f4a93b4e MDL-9506 Refactored gradelib.php: an abstract class (php5 in mind) holds data and methods common
to all grade_* objects. The unit test file has also been refactored to improve clarity.
2007-04-26 07:14:12 +00:00
nicolasconnault 85414e846a Upgraded simpletestlib from 1.0.1alpha3 to 1.0.1beta 2007-04-26 07:11:44 +00:00
skodak eba8cd63b4 MDL-9588 Addd password reveal class to admin settings forms 2007-04-26 07:08:12 +00:00
nicolasconnault eb2658e03a MDL-9506 Changed grade_calculations.usermodified type to null from non-null. 2007-04-26 05:40:35 +00:00
nicolasconnault 27fbffb62b MDL-9506 More implementation of gradebook API and more unit tests. 2007-04-26 04:39:40 +00:00
nicolasconnault af307d4623 MDL-9506 version.php 2007-04-26 03:25:13 +00:00
nicolasconnault db07a42eda MDL-9506 Added timestamps to grade_categories 2007-04-26 03:23:45 +00:00
toyomoyo f9a09741c2 fix for MDL-9530, BLOB/TEXT column can't have a default value. 2007-04-26 02:28:05 +00:00
skodak 83022298df MDL-8031 Enforce password complexity for user authentication - original patch by Iñaki Arenaza 2007-04-25 19:36:47 +00:00
tjhunt 27987cbb78 Eliminate support for old-style question editing forms. 2007-04-25 18:20:04 +00:00
skodak 78361f9120 MDL-3079 allow review of password on signup page 2007-04-25 18:10:23 +00:00
tjhunt e3aea79afe MDL-9565 - Fix error in previous commit. Merged from MOODLE_18_STABLE. 2007-04-25 17:59:53 +00:00
pichetp 56e248a086 MDL-9657 cleaning abstractype code. 2007-04-25 16:48:33 +00:00
tjhunt 5df53d0082 * Fix layout problem on password form. (invisiblefieldset). * Question state fixes: + Don't change from EVENTOPEN too soon. + Make sure all questions get closed at the end of the attempt in adaptive mode. * Get rid of the delay on the redirect when you submit all and finish. 2007-04-25 15:45:24 +00:00
tjhunt 5a56d93857 Clean up whitespace. 2007-04-25 15:37:01 +00:00
tjhunt b10e17ecb4 New lang string for clarifying quiz UI. 2007-04-25 15:31:34 +00:00
jamiesensei a982d582c4 Added redirects after all actions.
Added methods to category class to generate a url from an array of parameters stored in the object.
Cleaned up some old redundant code for actions now processed in list class.
2007-04-25 14:06:37 +00:00
tjhunt 47e1697814 The question core code was restricting question types unnecessarily. This is a temporary fix, prior to a proper refactoring. 2007-04-25 11:20:22 +00:00
thepurpleblob fa5cb18b74 MDL-9577:
Fixing change of name (answer => correctanswer) for true/false questions.
2007-04-25 09:43:37 +00:00
pichetp d77def3e74 MDL-9657 cleaning abstractype code. 2007-04-25 09:06:35 +00:00
pichetp 81c6503ec4 removing comments and print_r 2007-04-25 08:52:47 +00:00
pichetp a6d46515f1 MDL-9496 Adding multianswer to calculated and MDL-9657 cleaning abstractype code. 2007-04-25 08:15:50 +00:00
tjhunt 7375c542cf Clean up whitespace. 2007-04-24 23:39:22 +00:00
tjhunt ed0ba6da04 Occasional unique-key violations were caused by some really weird code to do with units in numerical questions. This cleans it up. 2007-04-24 23:37:32 +00:00
tjhunt 295043c21c Base class methods preparitory to deleting a lot of essentially duplicated code from the various question types. 2007-04-24 23:31:41 +00:00
tjhunt 53a4d39f1c Clean up whitespace. 2007-04-24 23:26:48 +00:00
tjhunt 06d20c2429 Clean up trailing whitespace. 2007-04-24 23:25:33 +00:00
tjhunt 732c472fca Remove duplicate $Id$ 2007-04-24 23:23:25 +00:00
tjhunt cb354a653c Fix comedy require_once. Merged from MOODLE_16_STABLE. 2007-04-24 21:16:14 +00:00
skodak 1ff60899f7 MDL-9485 resource summary now optional again; merged from MOODLE_18_STABLE 2007-04-24 21:11:39 +00:00
skodak aa4836f438 MDL-9568 Choice does not count correct; merged from MOODLE_18_STABLE 2007-04-24 20:09:01 +00:00
skodak b48d124a17 lets prevent detection of strict PHP5 errors in redirect in developer debug mode 2007-04-24 18:53:12 +00:00
tjhunt 2d05b47209 MDL-6368 and MDL-6369 - allow question type plugins to easily provide some bits of Javascript and CSS - I forgot about the review page. 2007-04-24 17:32:21 +00:00
tjhunt 5ea4af2210 Stop "Undefined variable: ALLOWED_TAGS" errors all over the place. 2007-04-24 17:09:12 +00:00
tjhunt 7d87171ba9 MDL-9565 - Question preview links don't work in developer debug mode, and not XHTML strict. Merged from OU Moodle. 2007-04-24 16:59:32 +00:00
skodak 4642650fa2 MDL-9561 Langimport does not ignore langlist when langcache used
MDL-9563 Improve refreshing of langcache, detect permission problems
part2
merged from MOODLE_18_STABLE
2007-04-24 16:33:06 +00:00
skodak 0a5ce9dd21 MDL-9561 Langimport does not ignore langlist when langcache used
MDL-9563 Improve refreshing of langcache, detect permission problems

merged from MOODLE_18_STABLE
2007-04-24 16:14:16 +00:00
skodak 70b8a73e62 MDL-9560 $CFG->langlist should accept both short (en) and long (en_utf8) names; merged from MODOLE_18_STABLE 2007-04-24 14:58:43 +00:00
nfreear 73caba13ed Fixes bug MDL-9520, "groups_groupids_to_groups should return groups indexed by group ID". Merged from 1.8 branch. 2007-04-24 14:25:50 +00:00
skodak 14fba1729f MDL-9559 setup_lang_from_browser should respect $CFG->langlist; merged from MOODLE_18_STABLE 2007-04-24 14:24:03 +00:00
sam_marshall f130a9d810 Merged MDL-9556: HTML editor shortcut button should only appear when JS enabled 2007-04-24 11:59:17 +00:00
nicolasconnault 619a59a70f MDL-9506 Set up the unit test bed and continued to implement gradebook API. 2007-04-24 08:50:19 +00:00
nicolasconnault 42bbccd722 MDL-9506 Finished initial draft of gradebook API. 2007-04-24 05:41:28 +00:00
toyomoyo 5cb564aa4a grades tables 2007-04-24 03:28:31 +00:00
mattc-catalyst 70c6c0ad70 MDL-9474: Updated build_navigation() to use global $COURSE
- Removed $course parameter from build_navigation()
- Updated all calls to build_navigation()


Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-23 21:11:10 +00:00
tjhunt fe76ab5006 MDL-9389 - True / False penalty factor field redundant. Merged from MOODLE_18_STABLE. 2007-04-23 16:23:17 +00:00
tjhunt 7c77033fb6 MDL-9524 - Formslib gets confused if a required field is frozen. Merged from MOODLE_18_STABLE. 2007-04-23 16:19:25 +00:00
tjhunt fe6480283c MDL-9447 - Default grade field is redundant in embeded answer (Cloze) question. Merged from MOODLE_18_STABLE. 2007-04-23 13:55:22 +00:00
nicolasconnault 5834dcdb1d MDL-9506 First draft of gradelib, and the stubs for the unit tests. 2007-04-23 09:00:32 +00:00
moodler a788917045 Added some dummy files to help define the export/import structure for grades 2007-04-23 06:52:07 +00:00
moodler 7eb9aeef43 Some dummy files to define the grade reports structure 2007-04-23 06:49:24 +00:00
nicolasconnault 5b73a23ca8 MDL-9457 Missed a few files 2007-04-23 04:14:11 +00:00
toyomoyo a1f5b4ae03 merged fix for MLD-7544, hidden users show up on participants block 2007-04-23 03:06:01 +00:00
stronk7 1ba1b3977a Now resource/view.php?r=XXX links are recoded properly in backup/restore. MDL-9450
Merged from MOODLE_18_STABLE
2007-04-22 22:07:03 +00:00
skodak ab6ff8a4b5 MDL-9491 fixed problem with broken change/reset password in db auth when using internal passwords 2007-04-22 21:40:28 +00:00
stronk7 d972bfd01a Add one missing return causing db(internal) pass change not to work.
Partially, MDL-9491

Merged from MOODLE_18_STABLE
2007-04-22 14:19:43 +00:00
skodak 65acd2bb97 MDL-2201 handle url parameters in change Password link 2007-04-21 21:20:17 +00:00
skodak d47875156e MDL-6917 Incorrect <INPUT> sizes and maxlengths in the signup_form.html 2007-04-21 20:40:59 +00:00
skodak 9170670188 MDL-9233 denied and allowed email address domains are not matched correctly 2007-04-21 20:06:56 +00:00
skodak 18d8136e88 MDL-2978 Privacy Statements on signup.php; server validation used instead of client one because the JS error messages prevented clicking on policy link 2007-04-21 19:47:20 +00:00
skodak 2d11be3b33 MDL-9484 cm-idnumber implementation is incorrect 2007-04-21 13:15:34 +00:00
skodak 83ee2fe8eb MDL-9483 Problem with question restore relinking when quiz not selected; merged from MOODLE_17_STABLE 2007-04-21 12:38:56 +00:00
skodak b3df98189d MDL-9481 Prevent redirection to alt login url after login (when url on the same server) 2007-04-21 07:40:40 +00:00
skodak 4acffa4997 MDL-9465 Pass information about failed login back to alternate login url + other minor cleanup 2007-04-20 19:08:19 +00:00
skodak a33bbfddfc (MDL-9470) Survey submission JS broken; merged from MOODLE_18_STABLE 2007-04-20 17:52:41 +00:00
skodak ca80f999ce MDL-9467 workaround for broken langcache problems when editting user profile; merged from MOODLE_18_STABLE 2007-04-20 14:43:03 +00:00
skodak 80274abfa1 MDL-9429 make clear that alternate change password url is used only when user is logged in, for example change url may contain $USER->username; other minor cleanup 2007-04-20 10:02:38 +00:00
nicolasconnault 77a297d274 Fixed many xhtml errors 2007-04-20 07:54:42 +00:00
toyomoyo 109463e480 event update code 2007-04-20 05:43:11 +00:00
pichetp 1d9bc9a60d add string of Update the category button 2007-04-20 02:43:28 +00:00
toyomoyo 4de19d9296 adding a new key 2007-04-20 01:39:22 +00:00
mjollnir_ c68e9d06f6 xmldb: added $CFG options for disabling next / previous value checkings & enforced comment checking. merged from mahara :) 2007-04-20 00:10:52 +00:00
tjhunt e3b2eb60e1 MDL-9432 - Forgot to return success/failure in two places. 2007-04-19 17:37:14 +00:00
tjhunt 0d6f265034 Fix error message to say the right thing. 2007-04-19 17:16:20 +00:00
pichetp 0dd3e11c8c add an update category submit button to update the display of shareable wild cards 2007-04-19 16:49:25 +00:00
skodak 85fbf88489 MDL-9151 fixed missing global definition, sorry :-( 2007-04-19 12:18:44 +00:00
jamiesensei dac786f300 MDL-9437 lib/listlib.php for displaying and editing a nested list of items. And changes to question\category.php to use the new lists. 2007-04-19 08:57:54 +00:00
toyomoyo 0856223c50 mechanism to install events 2007-04-19 08:45:30 +00:00
ikawhero c3af90961c Merged changes from stable.
Fixed typo.
Made constructor variables optional to reflect parent class
2007-04-19 07:42:40 +00:00
skodak e0ac8448c7 MDL-9151 HTML Purifier cleaning support - enable switch is in experimental section
MDL-9435 Reviewved url cleaning in redirect()
2007-04-18 21:52:03 +00:00
tjhunt c85607f0be MDL-9432 - When restoring questions, links are not recoded. Merged from OU moodle. 2007-04-18 15:56:21 +00:00
poltawski 2acc1f9678 MDL-8209 - Force admin/index.php to redirect to upgrade settings screen
when some admin settings are not set.
2007-04-18 09:39:49 +00:00
toyomoyo ec36253d73 adding core events tables 2007-04-18 09:05:42 +00:00
toyomoyo fb31c40a9c fix for MDL-9398, users need site:config to create course categories 2007-04-18 04:54:47 +00:00
cataluke 1a82ce5dab admin/uploaduser.php: Fixed not enrolling user into course if user already exists
Author: Patrick Li <patrick@catalyst.net.nz>
Committer: Luke Hudson <luke@catalyst.net.nz>
2007-04-18 02:43:16 +00:00
donal72 6bed4299ce MDL-9420 - SSO fails over https 2007-04-18 02:23:20 +00:00
cataluke b99b25ea04 MDL-8569 - mod/data sorting by numerical field now works with PostgreSQL
Author: Luke Hudson <luke@catalyst.net.nz>
2007-04-18 02:11:09 +00:00
ikawhero 4a7030e0e5 Changes merged from 1.8
Fix for MDL-9415
New method is_empty() added.
2007-04-18 02:10:15 +00:00
skodak 1659a9982d MDL-9403 Add "application/xhtml+xml" mime type for *.xhtml resource files 2007-04-17 22:14:15 +00:00
skodak 84791c3283 MDL-9409 User confirmation by admin doesn't support new auth->confirm_user function; merged from MOODLE_18_STABLE 2007-04-17 21:30:02 +00:00
skodak 886c109d8d MDL-9416 Double quotes and tags in helpable item breaks XHTML strict; merged from MOODLE_18_STABLE 2007-04-17 20:42:29 +00:00
moodler afc58a289b Merged some fixes for MDL-9402 from stable (causing forum unread counts to break) 2007-04-17 09:29:55 +00:00
skodak a32fa3588a MDL-9387 Message "Adding discussions to this forum requires group membership" if not logged; nerged from MOODLE_18_STABLE 2007-04-17 08:36:58 +00:00
cataluke c8c765c0ab MDL-7856 - make database search case-insensitive for PostgreSQL too.
Author: Andrew Walbran <andrew.walbran@catalyst.net.nz>
Committer: Luke Hudson <luke@catalyst.net.nz>
2007-04-17 05:41:31 +00:00
martinlanghoff a1e080f7c6 (iCalendar export) calendar: Removing filter controls from export page, as no purpose and buggy
Author: Andrew Walbran <andrew.walbran@catalyst.net.nz>
2007-04-17 02:54:13 +00:00
mattc-catalyst 4e5d3c9728 mod/wiki: HTML fix
<![CDATA tags were being lowercased preventing Firefox from displayign the
page in standards compliance mode.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 23:21:59 +00:00
mattc-catalyst f8c609e4a9 mod/exercise: HTML fixes
Fixed errors in HTML causing parser errors in Firefox when in developers
debug mode.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 23:20:39 +00:00
mattc-catalyst 04bc70fc26 mod/scorm: HTML fix
Fixed and HTML causing a parser error in Firefox when in developer debug
mode.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 23:18:32 +00:00
mattc-catalyst eee75231c1 mod/glossary: HTML fixes
Fixed HTML errors causing parser errors in Firefox when in developer debug
mode.


Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 23:16:25 +00:00
mattc-catalyst 859d05a03e mod/journal: HTML fixes
Fixed HTML errors causing parser errors in Firefox when in developer debug
mode.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 23:12:26 +00:00
mattc-catalyst e1d2eb00e2 Breadcrumbs: course admin changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 22:02:22 +00:00
mattc-catalyst d91f99a655 Breadcrumbs: admin/settings changes
- Added admin setting for controlling visibility of activities in the
  breadcrumb trail.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:58:50 +00:00
mattc-catalyst 06dfa0cc33 Breadcrumbs: mod/resource changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:57:09 +00:00
mattc-catalyst 236387ab93 Breadcrumbs: mod/journal changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:43:05 +00:00
mattc-catalyst ec55218d98 Breadcrumbs: mod/hotpot changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:40:46 +00:00
mattc-catalyst a46ed6f917 Breadcrumbs: mod/exercise changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:38:34 +00:00
mattc-catalyst e210cd9447 Breadcrumbs: mod/workshop changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:35:36 +00:00
mattc-catalyst a04c5e60a2 Breadcrumbs: mod/wiki changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:32:35 +00:00
mattc-catalyst dc0e9265f6 Breadcrumbs: mod/survey changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:29:42 +00:00
mattc-catalyst afd97d1c9d Breadcrumbs: mod/scorm changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:27:08 +00:00
mattc-catalyst 9ac0c1b328 Breadcrumbs: mod/quiz changes
- Modified to use build_navigation() for breadcrumb generation.
- Removed print_header method is now provided by base class.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:23:17 +00:00
mattc-catalyst f8513eca8d Breadcrumbs: mod/lesson changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:20:20 +00:00
mattc-catalyst f3c8392617 Breadcrumbs: mod/glossary changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:16:38 +00:00
mattc-catalyst e3f58dfb4e Breadcrumbs: mod/forum changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:12:29 +00:00
mattc-catalyst ad7767be7a Breadcrumbs: mod/data changes
- Modified to use build_navigation() for breadcrumb generation.
- Removed print_header method is now provided by base class.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:05:21 +00:00
mattc-catalyst 161fbddf13 Breadcrumbs: mod/choice changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:02:24 +00:00
mattc-catalyst 160addd2b2 Breadcrumbs: mod/chat changes
- Modified to use build_navigation() for breadcrumb generation.
- Removed print_header method as base class now provides this
  functionality.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 20:59:17 +00:00
mattc-catalyst b9dc2734a3 Breadcrumbs: mod/assignment changes
- modified to use build_navigation() for creating breadcrumbs.


Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 20:52:48 +00:00
mattc-catalyst 6db8acb6a5 Breadcrumbs: pagelib changes
- Modified page class to use build_navigation for creating breadcrumbs.
- Added print_header method to page_generic_activity to make derived
  classes print the page headers the correct way.


Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 20:48:48 +00:00
mattc-catalyst ac4feb59af Breadcrumbs: Core functionality changes
- Added build_navigation function to create an XHTML breadcrumb list and to
  allow filtering of breadcrumbs to remove the activity from the trail.
- modified print_navigation to print the output of build_navigation whilst
  maintaining backward compatibility with old style string breadcrumbs.


Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 20:44:32 +00:00
skodak 77ac808e51 MDL-4421 unwanted space in formatted time; merged from MOODLE_18_STABLE 2007-04-16 18:51:52 +00:00
skodak 1545d7f0d4 MDL-6236 user editing - Default language not used instead of nonexisting one in user lang field - first lang chosen instead; merged from MODOLE_18_STABLE 2007-04-16 18:30:52 +00:00
poltawski 59465949fa MDL-9318 Improving the maxbytes setting.
Maxbytes admin is now a dropdown box, and has the option to set as 'server limit'.
get_max_uploaded_sizes will now add maxbytes to its list of settings, if its
available for selection.
2007-04-16 15:56:38 +00:00
stronk7 f5ae7c498e Fixed quesry to work agains Oracle. Repeated fields + limit
are incompatible (and not needed) for Oracle. MDL-9321

Merged from MOODLE_18_STABLE
2007-04-16 14:43:57 +00:00
moodler 3212d2f240 Merged change to format_text from stable 2007-04-16 06:22:17 +00:00
moodler 4b52d389b8 Automatic installer.php lang files by installer_builder (20070416) 2007-04-16 04:18:11 +00:00
ikawhero 334415e93f Merging changes from 1.8
Display custom profile fields in profile page - see MDL-9285
Menu type stores the value rather than the index - see comments on MDL-9285
General tidy up and renaming of funtions in field class.
2007-04-16 02:49:33 +00:00
martinlanghoff 08c58ff103 moodle_request_shutdown(): silence errors when apache_child_terminate() is disallowed - (MDL-9350) 2007-04-16 00:24:27 +00:00
skodak 8f660562d8 MDL-8839 fixed markdown cleaning before editting of existing untrusted text; merged from MOODLE_18_STABLE 2007-04-15 21:54:34 +00:00
skodak 1384da1e88 fixed warning; merged from MODOLE_18_STABLE 2007-04-15 21:09:05 +00:00
skodak bf8756a658 MDL-9266 Frontpage teachers cannot ad "site" events to calendar; merged from MOODLE_18_STABLE 2007-04-15 21:07:36 +00:00
skodak e28b762c35 MDL-9225 short php tag; merged from MOODLE_18_STABLE 2007-04-15 17:23:36 +00:00
skodak 61da828a31 MDL-9226 missing closing label tag - patch by Mark Scherfling; merged from MOODLE_18_STABLE 2007-04-15 17:19:35 +00:00
skodak 57714e475e MDL-9300 The aspell spell-checker does not work in 1.8; merged from MOODLE_18_STABLE 2007-04-15 17:04:26 +00:00
skodak a2c4671e33 MDL-9311 participants - duplicate "&perpage="; merged from MOODLE_18_STABLE 2007-04-15 16:09:55 +00:00
skodak 5e104d5f3a MDL-9315 fixed incorrect use of localtion (should be city) in user profile; merged from MOODLE_18_STABLE together with other changes by Nic 2007-04-15 15:51:16 +00:00
skodak cf4a39ec23 MDL-9343 Course event filter icon incorrect; merged from MOODLE_18_STABLE 2007-04-15 15:21:26 +00:00
skodak 1a639adc88 MDL-9363 update memory limit checks and docs - grrr, removed debug code 2007-04-15 14:44:28 +00:00
skodak 1cc1456bd2 MDL-9363 update memory limit checks and docs; merged from MOODLE_18_STABLE 2007-04-15 14:30:47 +00:00
skodak 5102d1fc18 MDL-9362 unattended upgrade fixed; merged from MOODLE_18_STABLE 2007-04-15 12:50:55 +00:00
stronk7 a7a7fa8306 Fixing typo causing purge of accelerator cache not working. MDL-9349
Merged from MOODLE_18_STABLE
2007-04-15 11:11:48 +00:00
moodler 1519aa2b71 Merged fixes for latest news from 1.8 MDL-9308 2007-04-15 07:26:23 +00:00
tjhunt 3e0647ffaf MDL-9342 - Let the question author choose how the options are numbered in Multiple choices questions. 2007-04-13 21:16:04 +00:00
tjhunt 3509094e65 Remove blank line at start of file. 2007-04-13 16:25:10 +00:00
tjhunt c73189115f Work round PHP4 being a stinking pile of crap. 2007-04-13 10:03:10 +00:00
tjhunt 0558f04745 Reveted Nick's alleged typo fix. Thank you very much for trying to fix my code, but your change is definitely wrong. get_context_instance needs to be passed a coursemoduleid, not a coursemodule object. Why did you think there was a typo? And neither of us had noticed that I had left some debug code in. Removing that. 2007-04-13 08:12:08 +00:00
nicolasconnault 933e257ab2 MDL-9322 Fixed non-compliant xhtml code for mnet pages, logs and enrol pages 2007-04-13 07:03:04 +00:00
toyomoyo 115a622d8c merged MDL-9273 related fixes 2007-04-13 05:40:11 +00:00
martinlanghoff 76ab1c33d9 Bug fix: 'off by one'month bug in mupltiple locations.
When the system/user time zone was set to GMT-13 months would lag behind by
one month.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-13 05:04:57 +00:00
nicolasconnault ff406a88da MDL-9220 Only fixed 1.8, since 1.7 doesn't seem affected. 2007-04-13 02:42:49 +00:00
nicolasconnault f4f274d10c MDL-9273 Applied suggested fix 2007-04-13 02:00:41 +00:00
nicolasconnault f4c0d852a2 Fixed a typo inadvertently introduced by Tim Hunt in revision 1.85.2.10. 2007-04-13 01:26:22 +00:00
stronk7 6b8b4bcf86 mnethosturl was never being restored. Detected while checking MDL-9309
Merged from MOODLE_18_STABLE
2007-04-12 22:18:05 +00:00
tjhunt b423cff11a MDL-9325 - mod/quiz:ignoretimelimits does not work. This is a really horrific short-term fix to a problem not of my making. Merged from MOODLE_18_STABLE. 2007-04-12 22:16:47 +00:00
skodak f01f183d31 MDL-9324 group assignment does not work in uploaduser script; merged from MOODLE_18_STABLE 2007-04-12 21:30:31 +00:00
tjhunt 15aa9df958 MDL-5799 - quiz previews were sometimes showing up in the quiz overview report. Merged from MOODLE_18_STABLE. 2007-04-12 20:11:27 +00:00
tjhunt 99ba746d29 MDL-6368 and MDL-6369 - allow question type plugins to easily provide some bits of Javascript and CSS.
If there are any of the files styles.css, styles.php, script.js or script.php in the plugin folder, they will be linked to in the head of the quiz attempt page (only for the question types used on that page).

If you need to do something more complicated in your question type, you can override the get_html_head_contributions method instead.
2007-04-12 15:58:32 +00:00
stronk7 73710a4679 Fixing typo causing some (a few) sites to break on upgrade. Credit
goes to Rafa Gutierrez. MDL-9316

Merged from MOODLE_18_STABLE
2007-04-12 15:34:47 +00:00
jamiesensei 8a3719f517 making notifytiny style a little bigger 2007-04-12 14:59:32 +00:00
csantossaenz eb0e9d9da7 Fixed problem for the Moodle 1.7 scorm packages which didn't show the structure when you updated your version to 1.8. Now is possible to access to that structure and to each sco as well. 2007-04-12 10:31:33 +00:00
csantossaenz 9d759a0e85 Fixed problem with scorm_get_sco to connect with the API when there is no data in the scorm_scoes_data table. 2007-04-12 10:28:51 +00:00
nicolasconnault 1670305df4 Added a few more comments 2007-04-12 05:59:09 +00:00
nicolasconnault 1f11c89751 Typo, sorry 2007-04-12 05:01:09 +00:00
nicolasconnault 0a4ac01b3e Converted all function comments to PHPdoc style, and added stub phpdocs for functions without comments. 2007-04-12 04:25:47 +00:00
martinlanghoff 7f36ba112b moodle_request_shutdown(): raise $CFG->apachemaxmem to 25MiB for 1.7 and newer 2007-04-12 03:25:57 +00:00
nicolasconnault e2c51b2dfb MDL-9223 Fixed a coding error: $group->id changed to $discussion->groupid 2007-04-12 02:23:28 +00:00
toyomoyo 058156cb41 MDL-9291, temporarily disabling blog this link 2007-04-12 02:20:32 +00:00
martinlanghoff 9d411c734b Fixed 'off by one' month bug in month select boxes generated by
print_date_selector when users time zone set to GMT-13.


Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt <mattc@catalyst.net.nz>
2007-04-12 00:41:31 +00:00
mjollnir_ bd903ae9de merged: fixing warnings in stats lib - rather than doing an include_once and noticing for every missing mod, check the file exists first from MOODLE_16_STABLE, and fixed up some weirdness in the reports 2007-04-11 23:53:15 +00:00
tjhunt dcc2ffde63 MDL-9082 - moodle/question:manage does not let you create questions. Also: * remove useless option from print_question_icon * use the right module context in question_list * a bit of XHTML strrrict in question_list Merged from MOODLE_18_STABLE. 2007-04-11 22:57:46 +00:00
tjhunt add2d7acdf MDL-9244 - From Moodle 1.9 onwards, don't support question types that have not updated and provided a moodleform for editing. 2007-04-11 21:21:06 +00:00
tjhunt 807ae30aaa MDL-9079 - Paging broken in quiz overview report. Merged from MOODLE_17_STABLE. 2007-04-11 20:38:02 +00:00
tjhunt 86ccf19cdb MDL-9280 - JavaScript countdown timer did not work in 1.8 due to XHTML strict changes. Also, fixing a few more XHTML strrrrict things in attempt.php. Merged from MOODLE_18_STABLE. 2007-04-11 20:07:36 +00:00
tjhunt 54074fb872 MDL-9303 - General Feedback not shown for essay questions on review screen. Merged from MOODLE_17_STABLE. 2007-04-11 19:04:52 +00:00
skodak 23a947985b MDL-9297 - fixed broken mnet logout caused by my auth refactoring; merged from MOODLE_18_STABLE 2007-04-11 14:01:59 +00:00
skodak 7e040a15ed MDL-9296 removing forgotten debug code in admin/mnet/trustedhosts.php; merged from MOODLE_18_STABLE 2007-04-11 13:21:52 +00:00
skodak 5671e77f13 MDL-9286 Incorrect setting of defaults for rpc_negotiation_timeout ; merged from MOODLE_18_STABLE 2007-04-11 13:01:14 +00:00
thepurpleblob d19d228e7c MDL-9123:
Added language string for error message
2007-04-11 12:18:28 +00:00
thepurpleblob 22afe6d699 MDL-9123:
No check was made of the validity of the category id read from the form.
So it could theoretically have been spoofed.
2007-04-11 11:00:26 +00:00
toyomoyo 177d4abf11 adding idnumber field for course modules and modedit form 2007-04-11 09:19:24 +00:00
skodak d525ca256a MDL-9287 missing resultset check in mnet config_form(); merged from MOODLE_18_STABLE 2007-04-11 08:51:01 +00:00
skodak c9feab8e6c MDL-9286 Incorrect setting of defaults for rpc_negotiation_timeout ; merged from MOODLE_18_STABLE 2007-04-11 08:46:23 +00:00
nicolasconnault 47c97990b2 MDL-9241 Fixed a typo: used if($mimetype = 'application/x-pdf') instead of == 2007-04-11 06:15:23 +00:00
nicolasconnault 632730fdd7 MDL-9213 Corrected $forum->format to $forum->type 2007-04-11 01:05:28 +00:00
donal72 f71a7f8f37 MNET: Uninitialised variable $timenow. Should be time()? 2007-04-10 22:23:37 +00:00
skodak 77b4d4be49 MDL-9075 utf-8 bom is now stripped from uploaded users cvs file; merged from MOODLE_18_STABLE 2007-04-10 15:32:37 +00:00
skodak 413efd2200 MDL-7888 rewritten email alerts to graders - "mod/assignment:grade" permission is now used instead of legacy teacher; it should also fix missing alerts when using separate groups; merged from MOODLE_18_STABLE 2007-04-10 14:51:34 +00:00
tjhunt 26d12a0c16 quiz/locallib.php clean up:
* Tidy up comment layout.
 * Strip trailing whitespace.
2007-04-10 14:37:36 +00:00
tjhunt 50d7b53ecb attempt.php refactor.
* Move all output code to the end.
 * Make comment style consistent.
 * Trim trailing whitespace from lines.
2007-04-10 14:27:56 +00:00
tjhunt dc6c8ca1ac Minor cleanups to the quiz code. 2007-04-10 13:02:09 +00:00
toyomoyo d5cf76e3ff merged fix for MDL-9238 2007-04-10 08:57:48 +00:00
toyomoyo 11993a60b0 merged fix for MDL-9268 2007-04-10 04:26:00 +00:00
moodler 4299da94a4 Automatic installer.php lang files by installer_builder (20070410) 2007-04-10 03:26:52 +00:00
mjollnir_ 64aea3f055 Merged from MOODLE_17_STABLE:
add support for https source for popups

previously fullscreen.php tried to load any javascript files that were
running in the popup's parent.
If the source of the script didn't start with "http:" it was assumed
that it must be a relative path. This caused problems when it tried to
make it into an absolute path.
Fixed Regex to include support for https
Credit: Peter Bulmer <peterb@catalyst.net.nz>
2007-04-09 20:40:22 +00:00
skodak afe413989b MDL-9216 has capabilitiy does not respect doanything if admin userid specified and $USER is not admin; merged from MOODLE_18_STABLE 2007-04-09 11:11:31 +00:00
stronk7 84a13375f0 Better approach. Use higher level MetaIndexes() and avoid some MySQL warnings. MDL-9256
Merged from MOODLE_18_STABLE
2007-04-09 00:11:22 +00:00
stronk7 9770914d5f Now MySQL looks for existing index names. MDL-9256
Merged from MOODLE_18_STABLE
2007-04-08 22:59:54 +00:00
mark-nielsen 362f2ce973 Merging in fixes for MDL-8414 and MDL-9250 from MOODLE_18_STABLE 2007-04-08 21:02:16 +00:00
mark-nielsen c786e13547 Merging the removal of the "wtf" 2007-04-07 19:23:13 +00:00
mudrd8mz b31303a6ed Implements MDL-8808
Now we can go to a missing docs/help files directly via a link. Thanks to Mitsuhiro Yoshida for the patch.
2007-04-07 19:06:06 +00:00
mudrd8mz fc3d4000d5 Merged fixes from MOODLE_18_STABLE (from 1.88.2.3 to 1.88.2.4) 2007-04-07 18:38:04 +00:00
mudrd8mz 50c5218d2a Merged an fix from MOODLE_18_STABLE: Fixed and error in rendering different background color of the row in non-editable environment. 2007-04-07 16:21:15 +00:00
stronk7 5a9fc42658 Now $CFG->apachemaxmem is respected.
Merged from MOODLE_18_STABLE
2007-04-07 16:08:51 +00:00
skodak 7e810d419a MDL-8429 Upgrade ADOdb to 4.9.4 2007-04-07 08:30:19 +00:00
skodak e96167d2fa MDL-9181 Use new password field with reveal option in editadvanced and enrolment, group and quiz keys 2007-04-06 16:23:48 +00:00
skodak 239ade458c MDL-9239 New fromslib password element with reveal option; merged from MOODLE_18_STABLE 2007-04-06 14:18:02 +00:00
skodak 2dcb2b262c MDL-9227 Inconsistent HTTPS for profile edit page; merged from MOODLE_17_STABLE 2007-04-06 07:51:18 +00:00
jamiesensei 632b88d5a2 see MDL-8886.
fixes bug that meant :

       $mform->disabledIf('studentfeedbackurl', 'studentfeedback', 'eq', 0);
       $mform->disabledIf('studentfeedbackurl', 'studentfeedback', 'eq', 3);
       $mform->disabledIf('studentfeedbackurl', 'studentfeedback', 'eq', 4);

didn't work.
2007-04-06 06:01:11 +00:00
stronk7 a7e323672d Fixing authdb->close() in some places. Credir goes to Seiti. MDL-9212
Merged from MOODLE_18_STABLE
2007-04-05 22:22:28 +00:00
tjhunt 7d014bf582 MDL-9224 - Score sometimes relealed, even when the quiz settings say it should not be. Merged from OU Moodle. 2007-04-05 13:54:20 +00:00
nfreear eb674f8b21 Fixes bug MDL-9221 "new group admin - can't view full group name". 2007-04-05 10:55:04 +00:00
nfreear 370c7b7d15 Fixes bug MDL-9221 "new group admin - can't view full group name". Merged 2007-04-05 10:40:55 +00:00
skodak 42b5bb6498 MDL-9219 Replace Inherit with Not set on role definition page; merged from MOODLE_18_STABLE 2007-04-05 09:17:50 +00:00
skodak 4db9bff7ec MDL-9218 Processing of role assignments produces PHP notices; merged from MOODLE_18_STABLE 2007-04-05 08:43:06 +00:00
toyomoyo c0a2c36157 fix for MDL-9186, capability fix for calendar 2007-04-05 07:58:31 +00:00
nicolasconnault a937b16452 MDL-8537 Added $CFG as the object to check for enrol method when the course is being created. 2007-04-05 07:58:15 +00:00
toyomoyo 1d934d47a0 merged fix for MDL-9165 2007-04-05 06:00:10 +00:00
nicolasconnault a1b9b374b9 MDL-9198: Embedded PDF now works fine in FF 1.5, FF 2, IE5, IE6, IE7 and Opera, and degrades beautifully in non-supported browsers (or when plugin is missing). 2007-04-05 05:51:12 +00:00
martinlanghoff cf8133c457 lib/setup moodelib: Introducing moodle_request_shutdown()
Now Moodle will have a 'shutdown_function' function. Right now
registered (and useful) only when running under apache + mod_php.

This initial function checks whether memory usage in this process exceeded
10MiB or $CFG->apachemaxmem (int, in bytes). This is really useful to prevent
using more RAM than we have.
2007-04-05 05:04:06 +00:00
toyomoyo f20d7c41af fix for MDL-9197. multilang filter is not applied to default role in course settings 2007-04-05 03:56:50 +00:00
nicolasconnault 366ce9f848 Finally fixed XHTML error on this page. 2007-04-05 03:37:12 +00:00
moodler 33fc9b1920 Automatic installer.php lang files by installer_builder (20070405) 2007-04-05 03:29:25 +00:00
nicolasconnault ac4c12c5bd MDL-9204 New submission wasn't given a timemodified upon creation. 2007-04-05 03:19:58 +00:00
nicolasconnault 2bf7e0b1be Fixed broken XHTML 2007-04-05 02:12:28 +00:00
nicolasconnault a2ff2e0992 MDL-9207 Changed $extcourse to $coursefield in lines 92 to 111 2007-04-05 01:54:44 +00:00
nicolasconnault 30052948b1 MDL-9090 2007-04-05 01:44:54 +00:00
skodak c57d88740f MDL-8802 fixed byteserving broken by adobe anti xss patch; merged from MOODLE_18_STABLE 2007-04-04 19:45:17 +00:00
tjhunt 1b16ecd1ca MDL-9208 - Only hightlight the correct answer if that option is set. 2007-04-04 18:01:36 +00:00
tjhunt 288731fa09 Bug 2951 - correct PARAM_ types for answers to multichoice and shortanswer questions. Merged from OU Moodle. 2007-04-04 16:51:10 +00:00
tjhunt b3396fe91d MDL-9183 - yet another invisiblefieldset causing layout problems. Merged from MOODLE_18_STABLE. 2007-04-04 15:30:41 +00:00
csantossaenz 730d42b336 DB UPGRADE for SCORM 2004 2007-04-04 12:34:22 +00:00
jamiesensei db8e700b0a fixes MDL-9195 mform->hardFreeze() doesn't remove id attribute of label for checkbox 2007-04-04 10:16:22 +00:00
skodak f76cfc7a3a MDL-9191 fix for potential incorrect use of get_auth_plugin; merged from MOODLE_18_STABLE 2007-04-04 09:19:31 +00:00
toyomoyo 07076b70a4 fix for MDL-9095, increase blog tag length 2007-04-04 09:13:32 +00:00
moodler 97e7e624f7 Merged MDL-6553 from 1.8 stable 2007-04-04 07:24:14 +00:00
nicolasconnault 468f5d6896 MDL-9124 Added a visual notification when group membership doesn't allow adding discussions. 2007-04-04 06:27:50 +00:00
nicolasconnault 008bc40114 Added rows and cols to menu options textarea, fixing xhtml break. 2007-04-04 04:39:23 +00:00
nicolasconnault e025351854 MDL-9144 2007-04-04 04:31:22 +00:00
nicolasconnault 1034c280ec MDL-9135 2007-04-04 04:22:16 +00:00
nicolasconnault 7d4db46aa8 MDL-9136: Added a $selected attribute to the profile_field_menu object, which gets set during initialisation. 2007-04-04 04:09:47 +00:00
toyomoyo 2d7617c67f merged fix for MDL-9185 2007-04-04 04:05:53 +00:00
moodler 11cc8e64a6 Automatic installer.php lang files by installer_builder (20070404) 2007-04-04 03:54:08 +00:00
nicolasconnault 20355e5ac2 MDL-9138; Edited lib/xmlize.php to return false when the passed file doesn't return any entries (when it's not valid XML or is empty). Also made it much clearer that glossary/import requires an XML file, not just any old file. 2007-04-04 03:35:23 +00:00
nicolasconnault 5effd72fc4 MDL-9192 2007-04-04 02:40:21 +00:00
nicolasconnault f08054d974 MDL-9193 2007-04-04 02:22:34 +00:00
nicolasconnault f595adf57b MDL-9145 Fixed 1) and 2) 2007-04-04 01:43:31 +00:00
stronk7 8d2191e60c Show continue button after importing glossary. MDL-9071
Merged from MOODLE_18_STABLE
2007-04-03 15:44:17 +00:00
skodak ad56b73774 MDL-9170 https redirect doesn't happen on login page - fixed problem when guest button disabled; merged from MOODLE_18_STABLE 2007-04-03 14:59:56 +00:00
nfreear 9f9217cda1 Fixes bug MDL-9175 "Groups simpletest, fatal errors", also DONOTCOMMIT. Merged. 2007-04-03 10:21:38 +00:00
nfreear 008b2b07ab Fixes bug MDL-9175 "Groups simpletest, fatal errors", also DONOTCOMMIT. 2007-04-03 10:16:51 +00:00
skodak d04d6bcbec MDL-9190 Site policy xhtml compliance and other minor fixes; merged from MOODLE_18_STABLE 2007-04-03 09:51:53 +00:00
toyomoyo 49860445a6 fix for MDL-8739, restore in course category 2007-04-03 09:19:09 +00:00
nicolasconnault 7cff0caeda MDL-9147 2007-04-03 08:43:30 +00:00
tjhunt 5081e0a635 Better way to detect whether a function exists in this version of PHP before redefining it. 2007-04-03 08:34:39 +00:00
nicolasconnault e4596a4a1c MDL-9167 and MDL-9113 both solved 2007-04-03 06:41:58 +00:00
nicolasconnault bfe1e789de MDL-8774: Also an effort to refactorise the poorly designed mod/data/Preset code. 2007-04-03 03:32:46 +00:00
moodler 97c3141cc3 Merged some more fixes for checkbox alignment MDL-9126 in all browsers 2007-04-03 02:21:28 +00:00
moodler 60e14e020c Merged ie6 fixes from stable for MDL-9126 2007-04-03 02:14:09 +00:00
moodler aef91d21f2 Merged login box fix for MDL-9126 2007-04-03 02:01:10 +00:00
stronk7 0746aeca03 Fixed one wrong urlencode after error.
Merged from MOODLE_18_STABLE
2007-04-02 22:03:03 +00:00
stronk7 208f08e2d1 Disable the "save" button if the file isn't writable.
Merged from MOODLE_18_STABLE
2007-04-02 21:51:16 +00:00
stronk7 ef0d378cb7 Centering buttons in some actions...
Merged from MOODLE_18_STABLE
2007-04-02 21:37:28 +00:00
skodak fdf562fb3c MDL-9180 Change password screen doesn't show the username like it should; merged from MOODLE_18_STABLE 2007-04-02 18:03:13 +00:00
skodak 90a32fd5e6 MDL-9168 nested site policy when forcelogin enabled; merged from MOODLE_18_STABLE 2007-04-02 16:13:41 +00:00
tjhunt 1aa7b31dd9 Make sure print_object output is always left-aligned. Also, make it look more like other debugging output. 2007-04-02 15:28:43 +00:00
tjhunt 7d0763a008 Missing format_string. Merged from MOODLE_18_STABLE. 2007-04-02 15:26:31 +00:00
skodak b7a5dfb884 MDL-9174 do not use PARAM_URL for site policy - it is too restrictive; merged from MOODLE_18_STABLE 2007-04-02 15:14:19 +00:00
skodak e78d624f79 fixed warning when upload fails; merged from MOODLE_18_STABLE 2007-04-02 14:57:56 +00:00
exe-cutor a155f3784d Merged username login form bug fix from stable 2007-04-02 14:13:59 +00:00
skodak 2c040c29df MDL-9170 https redirect doesn't happen on login page; merged from MOODLE_18_STABLE 2007-04-02 13:59:36 +00:00
skodak 571880d220 MDL-9172 "Turn editing off" button disappear from category page; merged from MOODLE_18_STABLE 2007-04-02 13:46:01 +00:00
skodak b0efa7ec07 MDL-9169 Error in function call in ldap/enrol.php; typo found by Svante Agnestig; merged from MOODLE_18_STABLE 2007-04-02 13:16:55 +00:00
tjhunt d95c82ab59 MDL-9173 - Can't create match anything answer to numerical question type. Merged from OU Moodle. 2007-04-02 13:02:09 +00:00
skodak 3f6941a655 MDL-9166 auth plugins can prevent showing of last logged in user; merged from MOODLE_18_STABLE 2007-04-02 09:26:07 +00:00
skodak 651268e00e MDL-9155 Error when creating an "image gallery" preset database when only some fields exist and do not remove existing data, comments and ratings when applying preset; merged from MOODLE_18_STABLE 2007-04-02 09:10:26 +00:00
moodler 28c11d7476 I felt like a bump. So nyah. 2007-04-02 06:21:01 +00:00
toyomoyo 47bb1aed07 merged fix for MDL-9160, get_my_courses caching issues 2007-04-02 03:53:10 +00:00
toyomoyo 72cf2e3908 admins should not need course:view 2007-04-02 02:37:34 +00:00
donal72 b2d38907a4 MNET: Properly remove trailing slash from wwwroot: MDL-9157 2007-04-02 01:45:33 +00:00
tjhunt b388c7664d Another attempt to get redirect() to not redirect if an error was output to the screen, to make dubuggin easier. Sorry I had not noticed the bit in the docs that says error_get_last was PHP 5.2.0+. 2007-04-01 22:19:39 +00:00
moodler b107549c32 Merged MDL-9139 from 1.8 2007-04-01 15:59:04 +00:00
moodler 88ca32b967 Merged editsection button alignment from stable 2007-04-01 15:18:06 +00:00
moodler ea67fff371 merged style fix for required message on forms 2007-03-31 09:10:41 +00:00
moodler 782573e86d Merged solution for MDL-6458 typo 2007-03-31 05:25:41 +00:00
moodler bf8b3d21ba Making redirects work again 2007-03-31 02:34:06 +00:00
moodler d176958817 error_get_last() ? What's that? 2007-03-31 02:30:56 +00:00
skodak 376c9c70e9 merging changes from MOODLE_18_STABLE 2007-03-30 21:23:09 +00:00
skodak ef4d42fd9e Added patch from Mark for MDL-9083; merged from MOODLE_18_STABLE 2007-03-30 21:15:39 +00:00
skodak b03a967d1a merging string from MOODLE_18_STABLE 2007-03-30 21:11:45 +00:00
skodak c543cfe15f More multilang support for site fullname, plus a couple extra comments. merged from MOODLE_18_STABLE 2007-03-30 21:10:15 +00:00
skodak 12970ac363 More multilang support for site fullname, plus a couple extra comments; merged from MOODLE_18_STABLE. 2007-03-30 21:07:30 +00:00
moodler 1de586216f Merged block self-test fix from stable 2007-03-30 18:04:34 +00:00
moodler 431fe2f0fd Fixed typo (MDL-9119) 2007-03-30 17:07:12 +00:00
moodler 052ba1f503 Merged applicable_format fixes for MDL-9119 2007-03-30 16:52:38 +00:00
moodler b373a751d2 Merged fix for MDL-8093 from 1.8 2007-03-30 16:01:44 +00:00
stronk7 d9bb8caa28 Adding a missing parameter to the "add new course" button. MDL-9129
Merged from MOODLE_18_STABLE
2007-03-30 15:36:52 +00:00
nfreear 5bff085524 Follow up fix for bug MDL-8695 "Form 'required' icon is hidden". 2007-03-30 10:52:45 +00:00
nfreear e5938e6dcc Fixes bug MDL-8695 "Form 'required' icon is hidden", see commit 13 Jan. Merged from HEAD. 2007-03-30 10:46:06 +00:00
dwoolhead 07996c8e4d MDL-9122 Unnecessary li opening tag (without closing tag) no longer printed when moving course section activity 2007-03-30 10:23:12 +00:00
tjhunt 9523cbfcef Small code cleanup to fix an obscure warning. If you got an error in the middle of creating a quiz attempt, you could get an attempt with no states. Then that caused an error when the attempt was deleted. Merged from MOODLE_17_STABLE. 2007-03-30 10:17:16 +00:00
nfreear 653f890d22 Fixes bug MDL-8695 "Form 'required' icon is hidden", see commit 13 Jan (big woops, forgot to commit on 1/3). 2007-03-30 10:15:18 +00:00
tjhunt 46e910c7cd Fix notice. Merged from MOODLE_17_STABLE. 2007-03-30 09:34:05 +00:00
nicolasconnault 27c69abeea MDL-9115 Added new strings to lang/en_utf8/group.php (where in roles.php before!). Also cleaned up page a little more so the backend code is at the top, with the HTML output at the bottom. We may be able to use mform with this page eventually. AJAX would also help. 2007-03-30 08:31:20 +00:00
toyomoyo 65391c1aa3 fix for MDL-9021, missing add_to_log() call 2007-03-30 08:00:42 +00:00
nicolasconnault 53b16b2b68 MDL-9118: The group/edit page now fetches the groupingid for the selected group if it isn't already provided. Note that this will need changing when/if multiple grouping membership is implemented, since only the first grouping is returned at present. 2007-03-30 07:52:56 +00:00
stronk7 95f4b90172 XHTML fix. Credit goes to Jeff Graham. MDL-9103
Merged from MOODLE_18_STABLE
2007-03-30 07:46:15 +00:00
toyomoyo 5bd76d7fba merged fix for MDL-9097, xhtml fixes for glossary 2007-03-30 07:04:43 +00:00
nicolasconnault be833e823c handled another potential xhtml error: empty select when no members in group. 2007-03-30 06:32:10 +00:00
nicolasconnault e91cc88ce3 MDL-9111: Changed to "Back to groups" 2007-03-30 06:14:50 +00:00
nicolasconnault 06670c2669 MDL-9112: Fixed htmleditor height. 2007-03-30 06:01:53 +00:00
nicolasconnault 88b6d71443 MDL-7186 2007-03-30 05:21:40 +00:00
nicolasconnault c7b0485ffb 1. Converted grouping edit form to mform
2. Added 2 buttons to disable state when pseudogroup is selected
2007-03-30 05:14:29 +00:00
gbateson 3ce4a4d12a fix the display of the special chars keypad (in JCloze and JQuiz) 2007-03-30 03:43:00 +00:00
moodler ac61551570 Automatic installer.php lang files by installer_builder (20070330) 2007-03-30 03:30:33 +00:00
nicolasconnault b4e80a8be9 1. Fixed xhtml errors
2. Added correct breadcrumb back to group/index page, preserving selections.
2007-03-30 03:14:22 +00:00
nicolasconnault 73d7d22bd1 1. Added proper breadcrumb to group/edit|create page (preserves previous grouping/group selections)
2. Changed "Create Orphan group" to "Create orphan group"
3. Added help string for groupenrolmentkey
4. Edited moodle docs for groups edit page
2007-03-30 02:39:46 +00:00
toyomoyo 34c26fd2e1 changing help file as helen suggested 2007-03-30 02:24:18 +00:00
danmarsden f2bb50394f fix for MDL-9087 screwy page when user places table into online assignment. - merging changes from Moodle_18_stable 2007-03-30 02:10:58 +00:00
stronk7 97f8f9c215 Added one more style to center some tables in glossary.
Merged from MOODLE_18_STABLE
2007-03-30 00:31:23 +00:00
stronk7 ab397f2613 Fixing approval interface. Step4. MDL-8793
Merged from MOODLE_18_STABLE
2007-03-30 00:28:02 +00:00
stronk7 a5c3d160dc Fixing export interface. Step3. MDL-8793
Merged from MOODLE_18_STABLE
2007-03-29 23:25:04 +00:00
stronk7 6ca980741f Fixing import interface. Step2. MDL-8793
Merged from MOODLE_18_STABLE
2007-03-29 23:13:09 +00:00
tjhunt 77b2b1fa43 MDL-9107 (regression from) MDL-8994 - adding random questions to a quiz was broken. Merged from MOODLE_18_STABLE. 2007-03-29 23:12:08 +00:00
tjhunt b63c5b5905 MDL-9094 - Penalty factor is meaningless for Essay questions, so remove it from the editing form. Manual merge of the corresponding change from MOODLE_17_STABLE. 2007-03-29 23:00:48 +00:00
stronk7 136ce8dee2 Moving options from 2nd tab to main area. Step1. MDL-8793
Merged from MOODLE_18_STABLE
2007-03-29 22:19:29 +00:00
skodak 8f80eba57d MDL-4313 LDAP doesn't properly escape extra quotes in course details + minor role unassign change; merged from MOODLE_18_STABLE 2007-03-29 21:40:48 +00:00
skodak 344514fca5 MDL-3339 support md5 and sha1 in ldap when adding or changing passwords; merged from MOODLE_18_STABLE 2007-03-29 19:50:53 +00:00
skodak f4f2b8fbf4 MDL-8590 fixed magic quotes in config settings; merged from MOODLE_18_STABLE 2007-03-29 19:05:16 +00:00
tjhunt fb708c1130 MDL-6269, MDL-8958, MDL-8990 - Major fix to do with each attempt builds on last:
It used not to work with random questions, and there were problems with the computation of the grade, and regrading. Fix thanks to Paulo Matos, who not only fixed the bug and tested it, but was also incredibly patient waiting for me to have time to commit the changes to CVS.

Merged from MOODLE_17_STABLE.
2007-03-29 16:36:16 +00:00
tjhunt a6b691d84d Add developer debugging to something that should not happen, and fix one instance of it. 2007-03-29 16:05:55 +00:00
skodak cd874e2133 MDL-8590 fixed ldap creators, added new option to specify dn in member attribute; merged from MOODLE_18_STABLE 2007-03-29 15:53:09 +00:00
pichetp c9e4ba362d integrate the new $question->export_process parameter for export 2007-03-29 09:09:16 +00:00
skodak a8d58c58e7 MDL-9099 LDAP auth does not allow dn in idnumber field (or other user attributes); patch by Jeff Graham; merged from MOODLE_18_STABLE 2007-03-29 08:42:07 +00:00
nicolasconnault 80efbf98c8 MDL-9062: Completed new group form. 2007-03-29 08:40:08 +00:00
toyomoyo 74fddb6da9 merged fix for MDL-8983, adding help file for hidden assignments 2007-03-29 06:38:35 +00:00
toyomoyo bcc723bcea merged fixing a warning 2007-03-29 06:34:40 +00:00
moodler 3730488451 Merging MDL-9101 from 1.8 2007-03-29 03:28:37 +00:00
moodler 1a1d8ec690 Merged rename of README -> README.txt from stable 2007-03-29 02:55:23 +00:00
danmarsden 4f896599f8 MDL-9102 incorrect use of unset_config() 2007-03-28 23:36:23 +00:00
tjhunt 71248ce89e MDL-9061 - Only show global assign roles warning if you are assigning roles in the global context! Also, change name of admin menu entry to reduce confusion. Merged from MOODLE_18_STABLE. 2007-03-28 16:57:22 +00:00
csantossaenz 43edb6269a Fixed backup problem for scorm module. Now, it includes needed files in moddata/scorm. even though the backup is done without user data and files 2007-03-28 15:14:15 +00:00
thepurpleblob fccf96bdeb Mmm... bit of comment oddness crept in. Don't know if it was a slip of an
editor key by yours truly!
2007-03-28 12:04:08 +00:00
thepurpleblob 5fd8f999d3 A couple of changes to Pierre's calculated question import/export
export_process and import_process flags now apply to all questions
and what looked like a development print_r has been commented out.
2007-03-28 11:58:44 +00:00
nicolasconnault 77e90955b5 MDL-9062 Created two new files so the unfinished conversion doesn't affect any current code. Also added a convenience groups_update_group($data) method. Patience, this is taking a while but I'm learning to use these mforms for the first time :-) 2007-03-28 08:40:32 +00:00
skodak f5fd4347dd MDL-8973 auth hooks final cleanup; merged from MOODLE_18_STABLE 2007-03-28 08:28:02 +00:00
moodler 999d2214a3 Merged conversion from dos to unix MDL-9088 2007-03-28 07:17:26 +00:00
pichetp 725ba2a062 first version of calculated question import, MDL-8673, somme echos left to diagnostics
possible bugs
2007-03-28 05:00:36 +00:00
pichetp cb0245556f creating correctly a new shared dataset on import 2007-03-28 04:51:50 +00:00
pichetp 3f76dd525f adding import and export datasets functions 2007-03-28 04:03:07 +00:00
moodler 7df05299b6 Old change I never checked in to fix collapsing displays 2007-03-28 03:27:00 +00:00
toyomoyo 76b6ea6b3c merged fix for MDL-9068 2007-03-28 03:25:55 +00:00
moodler 8010cc7d3b Updated XHTML and dos2unix 2007-03-28 02:52:01 +00:00
toyomoyo 3ed699287e merged fix for MDL-9064, use $CFG->creatornewroleid setting 2007-03-28 02:31:24 +00:00
skodak e0ca19a12d MDL-8781 fixed typo; merged from MOODLE_18_STABLE 2007-03-27 22:03:30 +00:00
skodak 4d7a401910 MDL-8781 survey converted to new formslib - empty intro now means use default from language pack; merged from MOODLE_18_STABLE 2007-03-27 22:01:17 +00:00
stronk7 86041b7e84 Now XMLDBStatements support backslashed single quotes.
Merged from MOODLE_18_STABLE
2007-03-27 20:31:18 +00:00
skodak c7b10b5f67 MDL-9053 - adding new function get_enabled_auth_plugins() - this should make the code simpler and the bug should be gone forever; merged from MOODLE_18_STABLE 2007-03-27 20:26:05 +00:00
sam_marshall 18d6ef01ca Merged MDL-9072 Made forum discussion list not show links to groups if you don't have permission to view them 2007-03-27 12:23:25 +00:00
nicolasconnault 0c0ffc08e7 MDL-9061 2007-03-27 06:58:27 +00:00
moodler e1526d7792 Merged fix for MDL-9052 from 1.8 2007-03-27 05:15:46 +00:00
nicolasconnault fa2d60c5c2 MDL-9040: Enabled disabling of any buttons that always lead to errors. Javascript dynamically displays/hides buttons depending on which groupings/groups are selected. This required a number of extensive modifications, but degrades nicely without JS. 2007-03-27 04:03:51 +00:00
moodler 2bd3b02867 Automatic installer.php lang files by installer_builder (20070327) 2007-03-27 03:47:16 +00:00
toyomoyo 863fb22dd7 merged fix for MDL-9057, invalid contexts should be ignored 2007-03-27 03:04:15 +00:00
stronk7 43e891ede5 silly change, ignore it... 2007-03-26 23:30:34 +00:00
stronk7 96e4104def Always print the entry when adding, updating/deleting comments. MDL-9047
Merged from MOODLE_18_STABLE
2007-03-26 23:02:35 +00:00
donal72 dd9f1b7df5 Patch for upgrade breakage on IIS (and maybe other non-Apache webservers) MDL-8926 2007-03-26 22:51:37 +00:00
stronk7 1555de81ce Avoid to end SQL commands with a trailing ';'. MDL-9058
Merged from MOODLE_18_STABLE
2007-03-26 21:52:11 +00:00
skodak c7888a90bc MDL-9056 Undefined property in lib/db/upgrade.php; merged from MOODLE_18_STABLE 2007-03-26 21:47:46 +00:00
skodak 111e236005 MDL-9055 wrong creation of mnet auth object in require_logout() + minor cleanup; merged from MOODLE_18_STABLE 2007-03-26 20:35:04 +00:00
skodak 922c5b362d MDL-8513 fixed conversion of ldap settings during upgrade to 1.8; merged from MOODLE_18_STABLE 2007-03-26 20:15:45 +00:00
skodak 152bc5a2da MDL-8973 fixed typo in signup form validation; merged from MOODLE_18_STABLE 2007-03-26 19:28:20 +00:00
skodak 436dc27061 MDL-9053 - detect + fix broken $CFG->auth setting from the login page. 2007-03-26 19:00:51 +00:00
skodak a353ad7fe4 MDL-9053 - detect + fix broken $CFG->auth setting from the login page; merged from MOODLE_18_STABLE 2007-03-26 19:00:21 +00:00
nicolasconnault d88c504382 MDL-9041 2007-03-26 09:28:58 +00:00
nicolasconnault 697bbb9b27 Resolved conflict 2007-03-26 09:28:06 +00:00
nicolasconnault 1ecd677e1c MDL-9039: Corrected old groupid and groupingid URL variables. 2007-03-26 09:11:54 +00:00
nicolasconnault 4b3b962514 MDL-9038: Groups can now be created outside of any groupings. The number of groups within [Not in a grouping] is also correct now. 2007-03-26 08:00:21 +00:00
toyomoyo 96c50eddd7 applying inaki's patch for MDL-9012, course autocreation doesn't work in enrol/database 2007-03-26 06:51:17 +00:00
nicolasconnault 10bf97305d MDL-8982 : Cleaned up group/index.php and added options with &nbsp; to satisfy strict XHTML. 2007-03-26 06:42:38 +00:00
toyomoyo de0d92e378 fix for MDL-9010, course request button should not appear when it is disabled 2007-03-26 05:50:55 +00:00
toyomoyo 1845e470a8 merged fix for MDL-8336, lacking of viewuseractivitiesreport 2007-03-26 04:12:33 +00:00
nicolasconnault 86aae61ee7 MDL-8730: These libxml_* functions are PHP5 only. I've wrapped them in function_exists() conditional structures. 2007-03-26 03:42:22 +00:00
nicolasconnault 5db0cffcf6 MDL-8922: Had to modify another bunch of files to fix a simple problem:
when a config block contains a form, the previous form needs to be closed
properly (it was, but there were non-matching closing divs etc...).
2007-03-26 03:06:45 +00:00
toyomoyo 7b44777ef7 fixing a warning 2007-03-26 03:06:39 +00:00
toyomoyo 5c91baaa46 patching up module level manageactivies capability so that you only need it assigned at mod level to update an activity 2007-03-26 02:55:03 +00:00
skodak 52a1b558e3 MDL-9028 prelogout_hook() is never executed in login/logout.php; patch by Inaki Arenaza; merged from MOODLE_18_STABLE 2007-03-25 20:20:45 +00:00
mark-nielsen 888f0c5460 Adding blocks to lesson
* added pagelib.php with lesson_page class definition
 * Lesson view now uses standard page layout classes
Other fixes:
 * minor fix to mod settings form
 * fixed function names (some were missing lesson_ prefix)
2007-03-24 23:07:59 +00:00
stronk7 572889f194 Fix a problem with glossary not being able to sort by firstname.
Merged from MOODLE_18_STABLE
2007-03-24 00:58:43 +00:00
stronk7 1d33f652dd One default was causing author view not being able to sortby firstname or lastname.
Merged from MOODLE_18_STABLE
2007-03-24 00:38:26 +00:00
stronk7 78c711980d Now the underscore lines in tabrow1 aren't blue anymore. Really
complex to guess the modifiers to apply!

Merged from MOODLE_18_STABLE
2007-03-24 00:01:56 +00:00
stronk7 b59c7ec0ee Fetch local guest user using DB index.
Merged from MOODLE_18_STABLE
2007-03-23 15:57:46 +00:00
skodak 2c793dc775 MDL-9017 add mime type for ico files; merged from MOODLE_18_STABLE 2007-03-23 13:06:51 +00:00
skodak 109e958167 MDL-8973 improved auth plugin docs; merged from MOODLE_18_STABLE 2007-03-23 11:28:23 +00:00
nicolasconnault 4d0ccfa7de MDL-8922 More work on fixing RSS block XHTML 2007-03-23 08:01:01 +00:00
nicolasconnault e92751686f MDL-8922 : Fixed a number of xhtml simple issues, but heaps of hard-core fixes yet to do. 2007-03-23 07:48:02 +00:00
toyomoyo 9251b26fe8 merged fix for MDL-9016, clear context cache after remove_course_contents() 2007-03-23 07:21:27 +00:00
mjollnir_ 9e3775dbc2 Backup refactor: moved backup_execute.html into functions, added new backup_course_silently function as proof of concept (matches import_backup_file_silently) 2007-03-23 06:14:40 +00:00
moodler b2af5654da Automatic installer.php lang files by installer_builder (20070323) 2007-03-23 03:37:05 +00:00
moodler bfefa87eab Moved create_course and update_course into course/lib.php and cleaned them up to be more useful in general MDL-9015 2007-03-23 02:29:05 +00:00
toyomoyo fa5278283f merged fix for MDL-8987, guests should not see blogs flagged as site blogs 2007-03-23 01:42:52 +00:00
nicolasconnault e2e9c024e9 Corrected XHTML: hidden inputs not surrounded by container. 2007-03-23 01:17:43 +00:00
skodak 7dbe6ceb4b MDL-8347 Cannot create new glossary category if category with same name exists in another course on site; patch by Ray Lawrence; merged from MOODLE_18_STABLE 2007-03-22 22:45:02 +00:00
tjhunt 88495aa8d2 Followup to MDL-8994 - validate the category id we got from the form. Merged from MOODLE_18_STABLE. 2007-03-22 22:02:14 +00:00
tjhunt bc67d9b3bd MDL-7241 - Manual grading report, sort by completed time didn't. Merged from MOODLE_16_STABLE. 2007-03-22 21:31:39 +00:00
tjhunt 6fd3300925 Make debugging more helpful by printing a full stack trace. 2007-03-22 16:43:48 +00:00
skodak cb6a4f09ee MDL-9007 weblib.php breaks upper-case hex Numeric Character References; patch by Gareth Morgan; merged from MOODLE_18_STABLE 2007-03-22 16:37:55 +00:00
skodak 45ddb0b7c6 ok, again and now properly 2007-03-22 12:56:52 +00:00
skodak 36d500367b fixing some previous commit mess, no idea what happened with this file :-( 2007-03-22 12:48:17 +00:00
skodak 6bc1e5d577 (MDL-8973) Fix OOP model of new multi auth plugins + some other auth related fixes, fixed change_password, ldap updates, etc.; TODO: fix docs 2007-03-22 12:27:52 +00:00
tjhunt 6a5e9a8506 MDL-9004 - Breadcrumb trail is wrong when editing a quiz question. Merged from MOODLE_18_STABLE. 2007-03-22 11:46:15 +00:00
toyomoyo 0150c561c5 fix for MDL-8966, customizable role names 2007-03-22 08:11:30 +00:00
nicolasconnault cddbd5d5fe MDL-8807: The icon's title attribute wasn't being updated along with its img.src
MDL-8997: A couple of typos: groupseparate instead of groupsseparate etc...
2007-03-22 07:16:57 +00:00
toyomoyo b318ecfd47 MDL-8965, adding db table to support sorting or course manager roles in course 2007-03-22 07:14:43 +00:00
nicolasconnault b1c72d0a07 MDL-8807 and MDL-8564: Jamie had replaced the three group modes with Yes and No, for some
undocumented reason (See http://moodle.cvs.sourceforge.net/moodle/moodle/lib/form/modgroupmode.php?diff_format=h&view=log&pathrev=MOODLE_18_STABLE#revtext).
I reverted his changes, and this seems to work normally now.
2007-03-22 05:24:29 +00:00
moodler 64cba5c9d7 Automatic installer.php lang files by installer_builder (20070322) 2007-03-22 03:50:54 +00:00
toyomoyo f38dfd49aa MDL-7164, Mark Nielsen's patch for remove_course_content not calling instance_delete() 2007-03-22 02:11:51 +00:00
tjhunt 6000365ee4 MDL-8994 - Question category selector on the question type editing forms is ignored. Merged from MOODLE_18_STABLE. 2007-03-22 00:10:47 +00:00
tjhunt 4fa684477e MDL-7259 - Item analysis report does not use the right format_text settings. Merged from MOODLE_16_STABLE. 2007-03-21 23:25:33 +00:00
tjhunt dd46d88e27 Fix whitespace problems and Eclipse warnings in Item Analysis quiz report. 2007-03-21 23:04:51 +00:00
skodak ad9ff3d392 MDL-8804 two digests per day - merged from MOODLE_18_STABLE 2007-03-21 22:17:41 +00:00
skodak 13ce9e4f01 MDL-7647 Broken links on confirmation email (or others) - patch by Paulo Matos; merged from MOODLE_17_STABLE 2007-03-21 22:00:10 +00:00
tjhunt c2f8c4be5f Improve string handling in the question type base class. Merged from MOODLE_18_STABLE. 2007-03-21 17:12:50 +00:00
thepurpleblob 1710226966 Check for empty text strings. Thanks to Quedoc. 2007-03-21 11:18:28 +00:00
tjhunt d187f66046 MDL-8946 - Fix a regression that broke question export. Also, partially clean up the way that question bank navigation tabs are printed, so the code is not duplicated in the quiz. Some other miscellaneous code cleaning too. Merged from MOODLE_18_STABLE. 2007-03-21 10:41:28 +00:00
nicolasconnault b0abd2821b MDL-2974 Added multilang filter to roles in Admin->Appearance->Gradebook 2007-03-21 07:43:04 +00:00
toyomoyo 6603b4202e adding a string 2007-03-21 06:20:45 +00:00
nicolasconnault 4876a566a4 MDL-8963 : The code was using $group->password instead of $group->enrolmentkey. 2007-03-21 06:20:02 +00:00
toyomoyo a7bb9b8ff2 merged fix for MDL-8981, roles assigned at site level may result in a lot of default subscriptions 2007-03-21 06:07:46 +00:00
moodler 0fd2223867 Automatic installer.php lang files by installer_builder (20070321) 2007-03-21 03:45:48 +00:00
moodler d0529bdf67 Merged tab color fixes from stable 2007-03-21 03:12:14 +00:00
pichetp 830e47a817 Give the question bank code sensible PHPdocumentor package names. 2007-03-21 02:04:53 +00:00
tjhunt 77fa3a0dad MDL-8978 - Regression from MDL-6386. Merged from MOODLE_16_STABLE. 2007-03-21 00:19:24 +00:00
tjhunt 121609d80a MDL-8299 - Wrong capability on review.php. Merged from MOODLE_18_STABLE. 2007-03-20 22:45:19 +00:00
tjhunt 93c80e1c0e MDL-8140 Other units disappear from the editing form when there is no unit with multiplier 1. Merged from MOODLE_18_STABLE. 2007-03-20 22:23:56 +00:00
skodak 5a144b3ac9 MDL-8976 smilies alt text was cached in one static cache for all langs; merged from MOODLE_18_STABLE 2007-03-20 20:47:57 +00:00
skodak 14021f2158 MDL-8975 fix parameter handling in repository plugin; merge from MOODLE_18_STABLE 2007-03-20 19:47:06 +00:00
skodak 244691e250 MDL-8955 Multilang filter doesn't accept different attribute order; merged from MOODLE_18_STABLE 2007-03-20 17:14:18 +00:00
tjhunt 8745405435 MDL-4084 Backup all question categories in a course, not just the ones from which questions are used in a quiz. Merged from MOODLE_18_STABLE. 2007-03-20 15:06:48 +00:00
tjhunt 1f8db78091 MDL-6386/MDL-6462 - yet more special character issues with multianswer. I think I have got them all this time. 2007-03-20 14:30:44 +00:00
tjhunt b25486fc72 Matching qestion type was failing to correctly determine wheterh the student had changed their answer. 2007-03-20 14:06:56 +00:00
pichetp 9e20fbc2f4 Give the question bank code sensible PHPdocumentor package names. 2007-03-20 14:05:10 +00:00
skodak da5bcc9fa0 merged warning fix from MOODLE_18_STABLE 2007-03-20 08:08:22 +00:00
skodak 376b3141e5 MDL-8968 no auth plugin broken; merged from MOODLE_18_STABLE 2007-03-20 07:55:54 +00:00
skodak 3887fe4acd MDL-8840 Loginas cleanup, some more improvements; merged from MOODLE_18_STABLE
+ merging of format_string fixes
2007-03-20 07:42:41 +00:00
moodler be78d45dd2 Merged login block tidy-up from stable 2007-03-20 07:35:53 +00:00
nicolasconnault e9ff8e100a MDL-8832 : Undid the stripslashes and changed calls to s($string) to s($string, true) instead. 2007-03-20 05:21:31 +00:00
moodler 529ccfa5bd Automatic installer.php lang files by installer_builder (20070320) 2007-03-20 03:31:29 +00:00
nicolasconnault 6fc4ad7243 Almost completed the new profiling tool. Just a bit more tweaking :-) 2007-03-20 02:59:34 +00:00
toyomoyo c0aa9f0956 merged fixing a warning 2007-03-20 02:57:57 +00:00
pichetp 41a89a0748 Give the question bank code sensible PHPdocumentor package names. 2007-03-20 02:10:26 +00:00
pichetp bd2b6ad362 Give the question bank code sensible PHPdocumentor package names. 2007-03-20 02:03:18 +00:00
nicolasconnault b65567f455 Started adding enhanced profiling using APD. 2007-03-20 00:34:05 +00:00
nicolasconnault a0648316ec MDL-8921 : Converted the page from table layout to divs (except tabular data) and added
related css rules in styles_layout.css. Looks the same and validates XHTML strict.
2007-03-20 00:27:38 +00:00
stronk7 82015ed26f urlencode() hook for correct parameter handling & XHTML.
Merged from MOODLE_18_STABLE
2007-03-20 00:11:55 +00:00
stronk7 c0cdb3b314 Changing one generic class-name to a glossary specific one in themes.
Merged from MOODLE_18_STABLE
2007-03-19 23:59:02 +00:00
stronk7 c988beb565 Changing one generic class-name to a glossary specific one.
Merged from MOODLE_18_STABLE
2007-03-19 23:52:16 +00:00
skodak c16ec80252 MDL-8840 Loginas cleanup, better course isolation; merged from MOODLE_18_STABLE 2007-03-19 22:25:13 +00:00
pichetp 1976496e38 Give the question bank code sensible PHPdocumentor package names. 2007-03-19 22:04:30 +00:00
stronk7 a6e57ea053 One more class to align all the glossary inline explanations.
Merged from MOODLE_18_STABLE
2007-03-19 20:20:32 +00:00
stronk7 7a3ec1afc5 Deleting some inline styles and unused code. MDL-8746
Merged from MOODLE_18_STABLE
2007-03-19 20:15:03 +00:00
skodak f6f66b0338 MDL-8840 Loginas cleanup; merged from MOODLE_18_STABLE
+ merging perflib toys from moodlelib.php
2007-03-19 18:54:58 +00:00
stronk7 efe5792531 Now the add/update entry page XHTML validates and doesn't show
the tabs and intro anymore.

Merged from MOODLE_18_STABLE
2007-03-19 18:43:30 +00:00
stronk7 66111853bb Now glossary "add entry" is a button instead of a tab. Part of MDL-8746
Merged from MOODLE_18_STABLE
2007-03-19 18:22:59 +00:00
stronk7 049faac882 Preparing some glossary css changes...for "add entry" buttons. MDL-8746
Merged from MOODLE_18_STABLE
2007-03-19 18:13:57 +00:00
tjhunt 4323d02959 Give the question bank code sensible PHPdocumentor package names. 2007-03-19 17:22:46 +00:00
stronk7 77d08333a8 $CFG->tabselectedtofront is out. Part of MDL-8746
Merged from MOODLE_18_STABLE
2007-03-19 17:21:31 +00:00
stronk7 e8858fb1cb XHTML compliance...
Merged from MOODLE_18_STABLE
2007-03-19 16:39:00 +00:00
stronk7 6a42a9b456 small typo in var name
Merged from MOODLE_18_STABLE
2007-03-19 16:12:42 +00:00
skodak e683263f7f MDL-8904 please no extract()s, fixed double string filtering; merged from MOODLE_18_STABLE 2007-03-19 10:37:44 +00:00
skodak b95cbfe995 MDL-8956 Mistake in admin.php - wrong cron url; merged from MOODLE_18_STABLE 2007-03-19 08:27:00 +00:00
skodak 7e64d36193 MDL-8957 Multimedia filter cleanup; merged from MOODLE_18_STABLE 2007-03-19 08:09:09 +00:00
toyomoyo 2878babdb2 merged fix for MDL-8942, can't delete blog images 2007-03-19 07:52:29 +00:00
martinlanghoff 9aa9080756 Auto-linking filters: fix serious caching bug in forum mailouts
Autolinking of glossaries, activity, resources and wiki names were using a
trivial single-entry cache implemented with static vars. The cache was _not_
keyed on course.

This bug was visible during forum_cron() which walks many courses. The cache
would get "stuck" on the first course that had something to put in the cache.
All mailouts from there onwards would autolink to stuff in the wrong course.
2007-03-19 06:33:45 +00:00
toyomoyo 8cf990bcfe merged fix for MDL-8934, assign role context statements incorrect 2007-03-19 04:49:49 +00:00
nicolasconnault 268ddd5070 MDL-8860 - Enabled multilang filter for site title. 2007-03-19 04:26:45 +00:00
moodler ca7ad7ee74 Merged error() fix from stable 2007-03-19 03:02:14 +00:00
stronk7 c2c54ac0fd Minor fixes for XHTML compliance
Merged from MOODLE_18_STABLE
2007-03-19 00:02:19 +00:00
stronk7 d6f7e4d1e0 Fixing env table when displayed on upgrade.
Merged from MOODLE_18_STABLE
2007-03-18 19:37:07 +00:00
stronk7 cc60cd9bf4 Adding the environmentbox class to the box.
Merged from MOODLE_18_STABLE
2007-03-18 19:20:40 +00:00
stronk7 5a9f70b25f Add some space between the environment table and environment box.
Merged from MOODLE_18_STABLE
2007-03-18 19:17:44 +00:00
moodler 274ea5d59f Automatic installer.php lang files by installer_builder (20070318) 2007-03-18 03:23:40 +00:00
poltawski 2c3f3e77a9 MDL-8831 - Forum search boxes date checkboxes loose their checked status. Merged from MOODLE_18_STABLE 2007-03-17 23:41:58 +00:00
poltawski 76a2edc8fd MDL-6386 - Regression from MDL-6462, lost stripslashes in CLOZE question,
thanks to Joseph Joseph Rézeau  for his attention to this issue. Merged
from MOODLE_18_STABLE
2007-03-17 22:55:05 +00:00
gbateson 6dc323a7ba fix HotPot reports for groups (MDL-8944) 2007-03-17 13:42:47 +00:00
skodak c2127e375f MDL-8883 fixed double backslashes problem in filter settings; merged from MOODLE_18_STABLE 2007-03-16 22:17:57 +00:00
skodak 1306c5ea1c MDL-8932 fix static cache in userdate() + wrong en.UTF-8 locale ; merged with other fixes from MOODLE_18_STABLE 2007-03-16 21:00:06 +00:00
skodak de5e137a2e MDL-8841 Switch role cleanup; merged from MOODLE_18_STABLE 2007-03-16 20:21:27 +00:00
pichetp 37236c3581 adding </p> line 112,114 2007-03-16 20:14:22 +00:00
moodler 9fbed9c9bc Merged format_string fixes from stable MDL-8713 2007-03-16 05:36:24 +00:00
mark-nielsen 9fcbddaed0 Merging in fixes for MDL-8929 from MOODLE_18_STABLE 2007-03-16 04:35:49 +00:00
mark-nielsen 632d3b9ad6 Merging in fixes for MDL-8930 from MOODLE_18_STABLE 2007-03-16 04:10:20 +00:00
mark-nielsen 0ae3b5d334 Merging in fix for MDL-8196 2007-03-16 03:53:30 +00:00
martinlanghoff e5edab1b72 get_complete_user_data(): speedup SQL selecting local users by their mnethostid 2007-03-16 03:37:52 +00:00
moodler fae83c8d32 Merged striplinks change from stable MDL-8713 2007-03-16 03:24:36 +00:00
moodler 069599e151 Merged removal for defunct function format_title from 1.8 (unforunately that was committed without a message).
MDL-8713
2007-03-16 03:12:50 +00:00
moodler 037da74d09 Merged format_string fix from stable MDL-8713 2007-03-16 02:52:30 +00:00
toyomoyo 6332592527 merged fixing empty <option/> 2007-03-16 02:33:28 +00:00
moodler 8dec2253cf Merged autofocus fixes for formslib to dev from stable 2007-03-16 01:46:17 +00:00
skodak ee266f33e0 MDL-8924 fixed UPGRADE fails from 1.6.4+ to 1.8 Beta+; merged from MOODLE_18_STABLE 2007-03-15 22:43:07 +00:00
bobopinna 409375eef4 Fixed the problem with asset and review mode checkbox in view.php 2007-03-15 21:19:47 +00:00
bobopinna 552039b1ae Fixed the problem with asset and review mode checkbox in view.php 2007-03-15 21:04:01 +00:00
bobopinna 13929adcd7 MERGED MDL-8872 from 1.8 removed "course" mentions from scorm interface 2007-03-15 20:54:45 +00:00
bobopinna 2b600d16c0 MDL-8872 removed "course" mentions from scorm interface 2007-03-15 20:50:12 +00:00
bobopinna 41e8df8755 Removed some debugging print 2007-03-15 20:45:54 +00:00
stronk7 c7a311b550 Fix small bug only reproduced in tests about changing field names and
xmldb_field object becoming modified. Novice OOP bug :-(

Merged from MODLE_18_STABLE
2007-03-15 20:02:17 +00:00
stronk7 bdb794843a Testing comments and default clauses containing chars to be escaped.
Merged from MOODLE_18_STABLE
2007-03-15 19:16:27 +00:00
stronk7 cfed9721ad DB escaping comments. MDL-8918
Merged from MOODLE_18_STABLE
2007-03-15 19:03:07 +00:00
poltawski f419655de9 MDL-8922 Some Xhtml fixes, merged from MOODLE_18_STABLE 2007-03-15 16:58:16 +00:00
poltawski f054df1784 MDL-8582 - xhtml course report fixes 2007-03-15 16:03:44 +00:00
poltawski 364eef7441 Further fix for MDL-8582, merged from MOODLE_18_STABLE 2007-03-15 15:46:53 +00:00
moodler cbcd697bcb Merge post tag fixes (#123 > #p123) 2007-03-15 14:10:29 +00:00
moodler 9de96c06e6 Merged user post link to context 2007-03-15 13:38:26 +00:00
tjhunt e51efd7ea7 MDL-6462 - Cloze (multianswer) question special character issues. Merged from MOODLE_16_STABLE. 2007-03-15 12:59:10 +00:00
tjhunt 779d35f143 Fix notice. 2007-03-15 12:52:50 +00:00
skodak b4c46a8b0f MDL-8913 use proper returned reference assignment for forms elements (PHP4 trouble); merged from MOODLE_18_STABLE 2007-03-15 12:42:39 +00:00
skodak eaef30e776 MDL-8783 fixed incorrect quotes in forum lang file; merged from MOODLE_18_STABLE 2007-03-15 12:12:59 +00:00
poltawski 2e2e837c80 MDL-8906 - Additional fix to prevent needless searching on blank query, merged from stable 2007-03-15 11:48:21 +00:00
toyomoyo 8305aeaaa8 putting user/editprofile back 2007-03-15 08:30:36 +00:00
bobopinna b0758a402d Bug fix MDL-8725 2007-03-15 08:04:20 +00:00
bobopinna 4ecb6a9bbb Bug fix MDL-8903 2007-03-15 07:47:43 +00:00
nicolasconnault cdfe4875ec MDL-8783: Added appropriate language strings to resolve this usability issue. 2007-03-15 06:26:52 +00:00
toyomoyo 11b03793e7 merged fix for MDL-8908, draft blogs should not be visible 2007-03-15 06:13:12 +00:00
moodler cbdfb9291b Merged filter_string fix from MDL-8713
(Also includes some reverting of a revert that Nicolas accidentally did ;-P )
2007-03-15 06:08:46 +00:00
toyomoyo 2f5ab42bc0 merged fix for MDL-7939, teachers, editting-teachers and course creators should see hidden courses 2007-03-15 04:23:21 +00:00
nicolasconnault c3d327b4c3 MDL-8904: Used a numerical index for the navigation elements array instead of string index.
MDL-8713: Added $CFG->formatstring temporary variable
2007-03-15 04:08:40 +00:00
moodler fb2f2ae51d Automatic installer.php lang files by installer_builder (20070315) 2007-03-15 03:27:14 +00:00
nicolasconnault 05f9928e87 MDL-8870 - All major file formats (mp3, mpeg, wmv, mov, avi, swf) now support embedding when required, in all major browsers. 2007-03-15 01:53:27 +00:00
poltawski 4c5c7b6a5b MDL-8906 - Whoops, reverting - all the block functions are broken, so its useless trying to edit the blocks page.. 2007-03-15 01:08:26 +00:00
poltawski a989172a5c MDL-8906 - Actually, I'll Fix blocks editing on search pages, by adding the query - merged from MOODLE_18_STABLE 2007-03-15 00:54:31 +00:00
poltawski 2e2e52c7d9 MDL-8906 - Blocks Editting Broken on Admin Search Results page, so disable
edit button, merged from MOODLE_18_STABLE
2007-03-15 00:35:41 +00:00
danmarsden c12b1f67c0 Merging changes from 1.8 -
Fix for MDL-8862 - order of options in choice not logical - shift option for limiting options to aboe where limits are set.
2007-03-15 00:17:22 +00:00
skodak b0c90e6ede (MDL-8820) moodle/user:editprofile now works in user contexts - reverted previous fix, adding new one; merged from MOODLE_18_STABLE 2007-03-14 23:37:28 +00:00
skodak 9d200a16d7 MDL-8522 better label for role reset button and confirmation text; merged from MOODLE_18_STABLE 2007-03-14 22:07:59 +00:00
skodak d927621bf3 fixed missing global CFG - merged from MOODLE_18_STABLE 2007-03-14 21:56:09 +00:00
skodak 5e992f564b MDL-8867 Add setting to define role that is assigned to creators in new courses
MDL-8868 Set only minimal permissions for creator role

+ improved accesslib to handle changes of context levels in capability definitions

merged from MOODLE_18_STABLE
2007-03-14 21:42:38 +00:00
tjhunt d2ab495693 MDL-8127 - bad use of DESCRIPTION constant in quiz module causes upgrade to fail. Thanks to Pavel Krejci for the fix. Merged from MOODLE_17_STABLE. 2007-03-14 21:24:44 +00:00
tjhunt 277e551b88 Oops, reverting. Eloy had already fixed it. 2007-03-14 21:10:55 +00:00
tjhunt 2099d05dec MDL-8232 - can't use = on TEXT colums with MSSQL - was breaking numerical question type upgrade. 2007-03-14 21:07:37 +00:00
bobopinna 9a0212da08 *** empty log message *** 2007-03-14 20:50:42 +00:00
tjhunt 6cad9e6069 MDL-8772 - Use the same list of places to search in get_string and help.php. Merged from MOODLE_18_STABLE. 2007-03-14 20:15:20 +00:00
poltawski 381b88594a MDL-8900 Adding adminroot to clean up html merged from MOODLE_18_STABLE 2007-03-14 17:25:22 +00:00
poltawski 7f0463a64a Fixed check for section for MDL-8360, merged from MOODLE_17_STABLE 2007-03-14 16:31:56 +00:00
tjhunt 3eb89b9997 Notice when a student attempts a quiz, because there are no tabs to display. Merged from MOODLE_18_STABLE. 2007-03-14 15:29:46 +00:00
thepurpleblob 3bf7621121 Fixed true/false bug due to new 'correctanswer' field. 2007-03-14 15:16:20 +00:00
moodler ac26175c5c Merged wonky nav fix from stable 2007-03-14 14:55:22 +00:00
thepurpleblob 532344b2cc Fixed some hardcoded strings in GIFT format. 2007-03-14 14:09:57 +00:00
thepurpleblob 4089729b66 Use $this->error for only error report 2007-03-14 13:14:37 +00:00
poltawski 650408a336 MDL-8455 - merged from MOODLE_18_STABLE 2007-03-14 13:08:00 +00:00
ethem 20fe12b4a2 Code cleanup 2007-03-14 13:07:36 +00:00
thepurpleblob f37015613c MDL-8898
Improvements to error handling in question bank import/export.
2007-03-14 13:03:57 +00:00
thepurpleblob 533f9aeab3 MDL-8898
Improvements to error handling in question bank import/export.
2007-03-14 12:55:04 +00:00
poltawski 102ce41088 MDL-8360 - Currently can't bookmark admin searches, so disable the ability to bookmark
the search page
2007-03-14 12:04:56 +00:00
skodak 10ccb7a77b MDL-8897 fixed shell commands in tex and algebra filters; merged from MOODLE_17_STABLE 2007-03-14 11:33:50 +00:00
tjhunt 69945f899e Fix typo 2007-03-14 11:33:08 +00:00
toyomoyo afb5b0ae30 merged fix for MDL-8280, getting rid or moodle/user:editprofile 2007-03-14 07:51:53 +00:00
nicolasconnault bc79dd3116 MDL-8870 - Added support for embedded flash, as well as css hooks for different embedded files (e.g. class="resourceswf") 2007-03-14 05:27:13 +00:00
moodler 67725821ad Merged user profile size fix for message history 2007-03-14 04:50:00 +00:00
nicolasconnault 9eaf65f629 MDL-8792 - Added a language string: keepnavigationvisible 2007-03-14 04:34:16 +00:00
toyomoyo cbc943f755 merged fix for MDL-8885, teachers should not be able to set course as hidden if they can not view hidden courses 2007-03-14 04:31:04 +00:00
moodler 7563c86771 Automatic installer.php lang files by installer_builder (20070314) 2007-03-14 03:45:25 +00:00
toyomoyo 82d561ee79 merged fix for MDL-8885, do not show bulk message option if user has no capability 2007-03-14 01:50:54 +00:00
toyomoyo 4b7ae3c4da merged fix for MDL-8885, editting teacher should be able to read all messages in course 2007-03-14 01:37:07 +00:00
gbateson 6b1d898f1c fix superfluous double-quote causing malformed FORM tag (MDL-8675) 2007-03-14 01:22:54 +00:00
moodler 29a430133d Merged MDL-8872 from stable 2007-03-14 00:16:22 +00:00
stronk7 2cc0796dc1 Now documental search mimics real relational search behaviour. MDL-8884
Merged from MOODLE_18_STABLE
2007-03-13 22:40:42 +00:00
stronk7 9a5e30dfab Fix one awful background showed in form-buttons (that are enclosed in a fieldset????
Merged from MOODLE_18_STABLE
2007-03-13 18:31:44 +00:00
tjhunt e1a3af61a3 Eliminate bizarre use of function_exists. 2007-03-13 17:42:57 +00:00
tjhunt 0c6b4d2e81 Entity decoding only done the right number of times on import, not once too often.
Also, fix a notice and and Eclipse warning.
2007-03-13 16:27:24 +00:00
tjhunt 5b0dc681ad Use the right string processing when outputting question text on import/export. 2007-03-13 16:24:13 +00:00
tjhunt 70ed76670e Use the right string processing functions when outputting question names. 2007-03-13 16:20:41 +00:00
jamiesensei 24e25bc124 small change to fix MDL-8788 which was a problem with non unique header element names 2007-03-13 14:50:22 +00:00
moodler 5b6191963b MDL-8872 Merged "course" fixes from 1.8 2007-03-13 08:52:46 +00:00
nicolasconnault 9217695a64 MDL-8696 - Just reduced input field from 64 to 48 2007-03-13 07:38:54 +00:00
toyomoyo 21b89cb43b allow guests to see the reply link 2007-03-13 04:49:05 +00:00
toyomoyo 9276d74255 merged fix for MDL-8864, users with no replypost capabilitiy can see reply link 2007-03-13 04:37:57 +00:00
moodler 223f73a35b Automatic installer.php lang files by installer_builder (20070313) 2007-03-13 03:28:09 +00:00
nicolasconnault f7cec5cf56 MDL-8855 - Wrote additional GD code to support alpha transparency in PNG files. 2007-03-13 02:40:18 +00:00
toyomoyo 86c4258a72 merged fixing a broken has_capability() call 2007-03-13 00:52:14 +00:00
mark-nielsen ccfe8fddfe Merging in navigation to breadcrumb conversion fix for MDL-8843 2007-03-12 23:04:07 +00:00
thepurpleblob 55c548682f MDL-8857
Make numerical and essay question formats more consistent.
2007-03-12 16:32:52 +00:00
pichetp 9dcfbae72c MD here! Adding a blank line just to test pichetp account 2007-03-12 15:26:59 +00:00
moodler b105a94b4f Merged registration button fix from stable 2007-03-12 13:42:46 +00:00
moodler f7641e60ab Merged navigation menu fixed from stable 2007-03-12 13:26:29 +00:00
tjhunt 42be916421 Comitting language string for Pierre Pichet. 2007-03-12 11:39:47 +00:00
skodak 531468274f MDL-5229 and MDL-6196 adding gb18030 mime header encoding; merged from MOODLE_18_STABLE 2007-03-12 08:41:28 +00:00
moodler a974c79932 Merged patch (1.536.2.14) from stable into head MDL-8767 2007-03-12 07:29:06 +00:00
toyomoyo 102b6e3385 merged fix for MDL-8821, do not display grade table when no grade 2007-03-12 07:01:09 +00:00
nicolasconnault 2ef7c374a4 MDL-8737 - Added a focus() to the generated validation JS, so that if an element fails client-side validation, the focus jumps straight to it when the submit button is clicked. This doesn't yet work with HTMLArea elements. 2007-03-12 06:43:24 +00:00
nicolasconnault facb512c06 MDL-8792 - Simply added help icon to explain the options available regarding embedding media files in the site. 2007-03-12 05:46:41 +00:00
nicolasconnault 3b73b15d37 MDL-8847 - Added a little 'p' :-) 2007-03-12 05:19:21 +00:00
mark-nielsen 18ec35d97b Merging in fix for MDL-8843 from MOODLE_18_STABLE 2007-03-12 03:38:06 +00:00
toyomoyo 096c91afdb merged fixed a broken sql call to get_my_courses 2007-03-12 03:07:43 +00:00
donal72 76691858b2 MNET: Check that xml-rpc is installed: #MDL-8731 #MDL-8846 2007-03-12 02:31:50 +00:00
toyomoyo 8308419e76 merged fix for parent forloginforprofile problem 2007-03-12 01:22:25 +00:00
mudrd8mz 8442e01394 In the missing mode, substr() function introduced in MDL-8184 patch is now replaced by lang_xhtml_save_substr(). Fixes MDL-8852.
There was a problem with pure substr() which could possibly produce XHTML parsing error - see an example:
   substr('Marks &amp; Spencer', 0, 9) -> 'Marks &am' ... is not XHTML compliance
The new function takes care of HTML entities during cutting the string.
2007-03-11 22:41:56 +00:00
skodak 702cf10b01 MDL-8849 use proper value quoting; merged from MOODLE_18_STABLE 2007-03-11 19:59:54 +00:00
moodler 26f329ba61 Merged argument fix from stable 2007-03-11 06:59:53 +00:00
moodler 72736a739c I've updated the timezones from the latest Olsen data MDL-8842
Should fix all the USA issues for 2007
2007-03-10 14:47:45 +00:00
pichetp 382486d0fa merge from 18 STABLE 2007-03-10 11:05:26 +00:00
pichetp 92e2ed8f16 merge from 18_STABLE 2007-03-10 10:31:49 +00:00
moodler c8ab69f2dd Automatic installer.php lang files by installer_builder (20070310) 2007-03-10 03:24:03 +00:00
tjhunt 5dba65907b MDL-8177 - Random questions selected deleted questions. Merged from MOODLE_18_STABLE. 2007-03-10 00:34:05 +00:00
stronk7 375450a4e7 Prevent some languages without word whitespace separators to use
documental searches over MySQL.

Merged from MOODLE_18_STABLE
2007-03-09 20:58:01 +00:00
skodak 854f5ef034 MDL-8834 smtp debugging can now be turned off - now independent on $CFG->debug; merged from MOODLE_18_STABLE 2007-03-09 20:16:48 +00:00
stronk7 532daab479 Adding support for forum documental searches. Disabled by default.
Only MySQL supported. Experimental under 1.8! MDL-8830

Merged from MOODLE_18_STABLE
2007-03-09 18:29:32 +00:00
stronk7 b2964e45d9 Added the search_generate_text_SQL() function that generates
SQL clauses using documental indexes. Only MySQL for now.
Under 1.8 this isn't used officially (experimental!) but
we need it here right now (won't interfere at all). MDL-8830

Merged from MOODLE_18_STABLE
2007-03-09 18:21:06 +00:00
sam_marshall cc7565ea84 Merging MDL-8825 Fixed html editor in wiki (invisible fieldset problem) 2007-03-09 15:44:48 +00:00
tjhunt c2f51fe3be Groups upgrade fails if you have groups defined, but none of them contain any members. 2007-03-09 14:33:50 +00:00
exe-cutor 3ea28768af Merging authentication changes back to head 2007-03-09 13:20:55 +00:00
sam_marshall 0e9d0c0b85 Made it so you can call require_js after header printed (bug 8823) 2007-03-09 12:52:35 +00:00
toyomoyo 521296f5b8 merged fix for MDL-8782, adding a mentees block 2007-03-09 07:08:27 +00:00
pichetp fde0ef3922 merging from 18 STABLE 2007-03-09 05:50:55 +00:00
pichetp 46551466d8 modifs MDL-5650 2007-03-09 05:28:40 +00:00
moodler b7791fab19 Merged fix for MDL-8803 from 1.8 2007-03-09 05:04:53 +00:00
moodler f7f3e25ea4 Automatic installer.php lang files by installer_builder (20070309) 2007-03-09 03:40:45 +00:00
toyomoyo 377314aee5 forgot to check this in 2007-03-09 02:59:52 +00:00
toyomoyo 3a35a34e9c merged fix for MDL-8681, course imports creates duplicate roles 2007-03-09 02:39:44 +00:00
skodak aa2d0152e1 MDL-8814 fixed typo; merged from HEAD 2007-03-08 15:23:49 +00:00
moodler 4dad2828a6 Merged fixes from MDLSITE-145 regarding forum_cron problems 2007-03-08 13:55:02 +00:00
csantossaenz a46cf52d26 Firex MDL-8600. Added code to get the scoid which was missed 2007-03-08 12:41:43 +00:00
csantossaenz f9d553cca7 Comments and debug messages deleted from last version 2007-03-08 12:39:35 +00:00
csantossaenz 28ffbff352 Fixed MDL - 8600: scorm_simple_play function changed to make it work in PostgreSQL, making the changes explained on moodle-tracker 8600 2007-03-08 12:06:26 +00:00
nfreear 8834b12ad2 Follow-up fixes for MDL-8531 "Groups icons..." -PARAM_ALPHANUM bug. 2007-03-08 10:35:28 +00:00
moodler 16b4e5b6b2 A few tweaks to the comments and output of Yu's change to forum_cron 2007-03-08 08:22:24 +00:00
moodler 909409b5ef Merged fix for rss enclosure notices from 1.8 2007-03-08 08:13:11 +00:00
nicolasconnault e0af42ef0f Converted embedded media files (avi, wmv and mov) to xhtml strict compliance. However, this is far from finished, since some browsers are not displaying correctly.
<table border="1" cellpadding="2" cellspacing="2">
<tr>
<td></td><th colspan="8">Browsers</th>
</tr>

<tr>
<th>File</th>
<td>FF 1.5</td>
<td>FF 2.0</td>
<td>IE 1.5</td>
<td>IE 1.6</td>
<td>IE 1.7</td>
<td>Safari 2.0</td>
<td>Opera 9.10</td>
<td>Konqueror</td>
</tr>

<tr>
<td>AVI (800x600)</td>
<td>?</td><!-- FF 1.5 -->
<td>?</td><!-- FF 2.0 -->
<td>?</td><!-- IE 1.5 -->
<td>?</td><!-- IE 1.6 -->
<td>?</td><!-- IE 1.7 -->
<td>?</td><!-- Safari 2.0 -->
<td>?</td><!-- Opera 2.0 -->
<td>?</td><!-- Konqueror 2.0 -->
</tr>

<tr>
<td>AVI (300x200)</td>
<td>?</td><!-- FF 1.5 -->
<td>OK (pb with size)</td><!-- FF 2.0 -->
<td>?</td><!-- IE 1.5 -->
<td>OK</td><!-- IE 1.6 -->
<td>OK</td><!-- IE 1.7 -->
<td>OK</td><!-- Safari 2.0 -->
<td>OK</td><!-- Opera 2.0 -->
<td>?</td><!-- Konqueror 2.0 -->
</tr>

<tr>
<td>WMV (800x600)</td>
<td>?</td><!-- FF 1.5 -->
<td>OK</td><!-- FF 2.0 -->
<td>?</td><!-- IE 1.5 -->
<td>OK</td><!-- IE 1.6 -->
<td>OK</td><!-- IE 1.7 -->
<td>NO</td><!-- Safari 2.0 -->
<td>OK</td><!-- Opera 2.0 -->
<td>?</td><!-- Konqueror 2.0 -->
</tr>

<tr>
<td>WMV (300x200)</td>
<td>?</td><!-- FF 1.5 -->
<td>OK (pb with size)</td><!-- FF 2.0 -->
<td>?</td><!-- IE 1.5 -->
<td>OK</td><!-- IE 1.6 -->
<td>OK</td><!-- IE 1.7 -->
<td>OK</td><!-- Safari 2.0 -->
<td>OK</td><!-- Opera 2.0 -->
<td>?</td><!-- Konqueror 2.0 -->
</tr>

<tr>
<td>MOV (800x600)</td>
<td>?</td><!-- FF 1.5 -->
<td>OK</td><!-- FF 2.0 -->
<td>?</td><!-- IE 1.5 -->
<td>OK</td><!-- IE 1.6 -->
<td>OK</td><!-- IE 1.7 -->
<td>NO</td><!-- Safari 2.0 -->
<td>OK</td><!-- Opera 2.0 -->
<td>?</td><!-- Konqueror 2.0 -->
</tr>

<tr>
<td>MOV (300x200)</td>
<td>?</td><!-- FF 1.5 -->
<td>OK</td><!-- FF 2.0 -->
<td>?</td><!-- IE 1.5 -->
<td>OK</td><!-- IE 1.6 -->
<td>OK</td><!-- IE 1.7 -->
<td>NO</td><!-- Safari 2.0 -->
<td>OK</td><!-- Opera 2.0 -->
<td>?</td><!-- Konqueror 2.0 -->
</tr>
</table>
2007-03-08 07:49:33 +00:00
pichetp 38a2212c8f merge from 18 STABLE MDL-8809 2007-03-08 07:10:12 +00:00
pichetp a7b696ef38 merge from 18 STABLE MDL-8809 2007-03-08 07:02:53 +00:00
pichetp fd0973ccaa merging form 18 STABLE MDL-8809 2007-03-08 06:57:33 +00:00
pichetp f6232d583e merge from 18-STABLE MDL-8809 2007-03-08 06:53:36 +00:00
toyomoyo f15850f899 merged fixing a typo 2007-03-08 06:05:32 +00:00
moodler 23adf25248 Merged ppichet changes to quiz files from 1.8 2007-03-08 05:15:19 +00:00
toyomoyo d0c5373f16 merged changing require_once to include_once to tolerate faulty mods 2007-03-08 03:32:55 +00:00
skodak 7c3dab9f86 MDL-8759 reverted previous incorrect patch with unset($USER), fixed logging function instead; solves the broken language in forum cron too; merged from MOODLE_18_STABLE 2007-03-08 01:09:00 +00:00
skodak e50916c80f MDL-6196 minor related cleanup - should not be needed to backport it; merged from MOODLE_18_STABLE 2007-03-08 00:10:49 +00:00
skodak 684663f526 MDL-6196 infinite loop in header encoding when using some site charsets (gb18030); merged from MOODLE_18_STABLE 2007-03-08 00:05:58 +00:00
pichetp 0f22fa4157 merge from 18 (adding null) MDL-8806 2007-03-07 19:44:55 +00:00
nfreear 2721fe0cdf Fixes MDL-8531 "Groups icons are no longer being uploaded" 2007-03-07 19:09:16 +00:00
pichetp f0ee68f738 first modifications MDL-5650 2007-03-07 16:31:58 +00:00
pichetp dce6e520ad merging form 18_STABLE correcting </divt> to <div> line 30 2007-03-07 15:10:43 +00:00
moodler eef879ecdb Merged patches from MDL-8385 from 1.8 stable 2007-03-07 13:45:41 +00:00
urs_hunkler c16ba031ac merged from 1.8 - removed commented old block widths definitions 2007-03-07 09:49:56 +00:00
urs_hunkler d41746c954 'merged from 1.8 - block width definition did not work any more, needs to come after config.php is loaded' 2007-03-07 09:47:23 +00:00
skodak 66a27728a9 fixed unassigning to use standard function in get_legacy_type() 2007-03-07 09:38:21 +00:00
moodler e921dffdc4 Merged notice fixes from stable 18 2007-03-07 07:50:24 +00:00
nicolasconnault b2e8e723eb MDL-8787 - Created new help file for News Forum Type, and overrode the help button for the forum type select in mod_form.php 2007-03-07 07:13:31 +00:00
toyomoyo 704ca25c57 fixing a warning 2007-03-07 07:12:13 +00:00
toyomoyo a0f2dae882 fixing a missing { 2007-03-07 06:48:22 +00:00
toyomoyo 15f81ee31d forum_cron should be using the $USER variable and not $userto 2007-03-07 06:45:29 +00:00
toyomoyo 7034b46c8a do not force parents to enrol 2007-03-07 06:22:58 +00:00
toyomoyo 5fac3a5e42 adding test code for new forum_cron() 2007-03-07 05:58:16 +00:00
moodler 0616d3e82f Merged fixes for MDL-8785 from 1.8 to head 2007-03-07 04:56:07 +00:00
nicolasconnault a66fe10336 MDL-8758 - Corrected the packagezip -> package.zip typo in 3 locations (2 in admin/langimport.php and 1 in install.php). The notification about allow_url_fopen has already been added to the default lang/en_utf8/error.php string. 2007-03-07 02:02:41 +00:00
moodler 78d4a57d30 Merged display footer fixes for block course_list 2007-03-07 02:02:17 +00:00
toyomoyo 3fe54e5195 merged, fixing hidden teacher upgrade 2007-03-07 01:35:47 +00:00
nicolasconnault 45b26feebb MDL-2974 - Corrected notification of correctly entered new category with multilang display 2007-03-07 01:25:43 +00:00
skodak 18ceee5c25 MDL-8777 Failing setup_lang_from_browser if lang contains dash; user lang preference not respected 2007-03-06 23:51:34 +00:00
skodak 279948083b MDL-8777 Failing setup_lang_from_browser if lang contains dash 2007-03-06 22:33:03 +00:00
skodak d67de0ca05 MDL-7633 legacy capabilities now have special menu 2007-03-06 22:01:22 +00:00
skodak b357ed13f3 MDL-8522 fixed role reset warnings + only one legacy cap type allowed now in each role 2007-03-06 19:19:19 +00:00
tjhunt 08eef20df4 MDL-8349 - responses not being filtered in history display. Merged from MOODLE_18_STABLE. 2007-03-06 18:00:23 +00:00
skodak de7d84b107 removed some forgotten comments ;-) 2007-03-06 17:00:49 +00:00
skodak 89d1efe4fe (MDL-8745) prevent cannot logon trouble after update to 1.8 2007-03-06 16:56:00 +00:00
moodler 918e9805c3 Merged some forum fixes from stable MDL-8767 2007-03-06 12:59:18 +00:00
skodak f2d042c4c3 MDL-8765 user preference usage cleanup 2007-03-06 10:45:49 +00:00
tjhunt 06565ec739 Add a couple more plugin types to get_string that Martin missed yesterday. 2007-03-06 07:57:22 +00:00
nicolasconnault 33e2115383 MDL-8759 - Unset $USER 2007-03-06 06:11:10 +00:00
nicolasconnault 6d2d91d6b7 MDL-8771 - Restricted has_capability() sanity checks to DEVELOPER debug mode 2007-03-06 05:36:19 +00:00
toyomoyo dfe38a47d4 missing user info 2007-03-06 05:14:46 +00:00
nicolasconnault 9af052f59f Stub for a web-based integration test 2007-03-06 05:09:28 +00:00
nicolasconnault a205dcdc09 Upgraded weblib::format_string() so it accepts unicode htmlentities. Also added more unit tests, including a stub for an integration web-based test. 2007-03-06 05:05:45 +00:00
moodler eb353c5727 Fix for separate groups / all groups view MDL-8300 2007-03-06 04:29:41 +00:00
nicolasconnault dacb47c0ca MDL-8691 - Finally found the source of the error and fixed it. Add to apply s(format_string($week_summary)) on the optgroup's label. 2007-03-06 02:59:25 +00:00
skodak 60ec23afba MDL-8690 popup form now uses div instead of invisible fieldset; merged from MOODLE_18_STABLE 2007-03-05 21:42:49 +00:00
skodak 224aa44a8d MDL-7693 fixed participans block on frontpage; notloggedin and authenticated roles overrides to be fixed later in separate bug; merged from MOODLE_18_STABLE 2007-03-05 20:13:16 +00:00
skodak 346c3e2f5f MDL-8765 user preference code cleanup; merged from MOODLE_16_STABLE 2007-03-05 20:02:27 +00:00
stronk7 e4023a4c20 Normalizing encoding by using textlib synonyms - parse_charset()
Credit goes to Petr.

Merged from MOODLE_18_STABLE
2007-03-05 18:28:33 +00:00
tjhunt b030a630c0 MDL-8764 - In menus, show question categories from this course first, then published categories from other courses. Merged from MOODLE_18_STABLE. 2007-03-05 18:05:51 +00:00
moodler 6db0338e0e Merged rss mediatypes fix from 1.8 2007-03-05 16:43:40 +00:00
nfreear 0946fff44c Follow-up fix 2 for MDL-8507 "Local language pack-..." - Content-Language header. 2007-03-05 15:38:10 +00:00
moodler 191cb01663 More paths for string files 2007-03-05 12:13:36 +00:00
skodak 5eaa6aa0c5 MDL-8756 fixed weeked days defaults; merged from MOODLE_18_STABLE 2007-03-05 11:57:15 +00:00
skodak efe12f6c22 MDL-8524 general roles cleanup; MDL-8373 authenticated user role now created during upgrade from 1.7.x, xhtml and CSS cleanup in roles GUI; accesslib inline docs cleanup; risk bitmask fixes 2007-03-05 11:27:01 +00:00
pichetp 30917ac041 merge from 18-STABLE MDL-8389 2007-03-05 08:14:40 +00:00
donal72 68879a5802 Mnet: Permit 1.8 upgrade to continue, even if duplicate usernames exist in the user table. # MDL-8720 2007-03-05 07:49:38 +00:00
moodler 453db436a7 Don't allow modes that don't exist 2007-03-05 07:32:21 +00:00
moodler 5af76d3c91 Old fix I'd forgotten 2007-03-05 07:17:32 +00:00
moodler d293521a90 Merged notice fix from stable 2007-03-05 05:58:28 +00:00
moodler c8135a3509 Merged notice fix from stable 2007-03-05 05:47:27 +00:00
moodler bc254379b8 Show cost info on info pages MDL-8318 2007-03-05 05:39:49 +00:00
moodler 38d5ab866c Merged xhtml fixes for MDL-8755 2007-03-05 05:36:43 +00:00
donal72 78e02af979 XHTML Strict fix: # MDL-8754 2007-03-05 05:04:02 +00:00
moodler e6f5c879bf Merged small notice fix from stable 2007-03-05 04:47:49 +00:00
moodler f4e53a4636 Merged group tweaks from stable MDL-8741 2007-03-05 02:52:38 +00:00
moodler 511ec76be0 Merged fixes from stable for MDL-8741 2007-03-05 02:15:32 +00:00
moodler 5d251e995a Merged message userpicture fix from stable 2007-03-05 01:54:04 +00:00
skodak a97e0ccb37 fomrat_string() tuning - memory, speed and accuracy in cron 2007-03-04 22:58:29 +00:00
skodak 38701b6910 fomrat_string() tuning - memory, speed and accuracy in cron 2007-03-04 22:52:33 +00:00
stronk7 3c8dd686e0 re-re-re-re-fixing tabs for wood. :-P
Merged from MOODLE_18_STABLE
2007-03-04 20:18:22 +00:00
urs_hunkler 48287e3b94 'merged from 1.8: MDL-8747 - added .buttons form div {display:inline} to aligen buttons beside each other' 2007-03-04 19:18:05 +00:00
urs_hunkler 8f8b009e5c made tab gifs higher to give better display when font size is changed 2007-03-04 17:21:02 +00:00
urs_hunkler c1f257edb5 merged CSS for tabs - changes to resolve IE6 + 7 tabs issues 2007-03-04 17:18:50 +00:00
urs_hunkler d11a1daa5f merged tabs routine changes to resolve IE6 + 7 tabs issues 2007-03-04 17:16:00 +00:00
moodler 274b44e643 Merged whitespace fixes from stable 2007-03-04 07:50:24 +00:00
moodler b5ddfa29c7 Merged MDL-8741 fix from stable 2007-03-04 07:35:29 +00:00
moodler 426bcc164b Merged xhtml fix from stable MDL-7861 2007-03-04 06:32:04 +00:00
moodler dfd1ff7abe Merged undo for MDL-8385 from 18 stable 2007-03-04 05:46:14 +00:00
moodler 6f60c424a8 Automatic installer.php lang files by installer_builder (20070304) 2007-03-04 03:36:12 +00:00
skodak a83addc5e5 MDL-8522 Add role reset button into role definition form; fixed single button css 2007-03-03 22:30:35 +00:00
skodak 3562486b7d MDL-8523 Show default capabilities in role definition; added CSS popup_form spacing 2007-03-03 21:07:07 +00:00
skodak 84347f30b7 MDL-8733 fixed approving logic when editing; merged from MOODLE_16_STABLE 2007-03-03 12:27:55 +00:00
pichetp fe881becb2 merge from 18_STABLE MDL-8475 2007-03-03 04:43:50 +00:00
pichetp 2e7bdb5193 merging from 18_STABLE MDL-8588 2007-03-03 03:36:08 +00:00
bobopinna 021d903e10 Fixed MDL-8191 2007-03-02 21:30:16 +00:00
skodak 4ed13ed8e0 notice_yesno install time fixes 2007-03-02 20:46:45 +00:00
pichetp dcd4192a99 grading correctly small numbers MDL-8478 merge from 18_STABLE 2007-03-02 20:45:12 +00:00
skodak 6ebb7659fd MDL-8690 fixed regression in notice_yesno 2007-03-02 19:57:24 +00:00
skodak c718dd57ba MDL-8578 new capability for adding and replying to news in forum 2007-03-02 19:41:31 +00:00
skodak 18b07efaf4 sesskey added to logout.php MDL-8727 2007-03-02 16:47:38 +00:00
pichetp 0cb014979d merged from 18_STABLE MDL-8552 2007-03-02 14:09:07 +00:00
stronk7 01bc98275a Skipping some thousands of require_once() calls because PHP5
is really slow (and heavy) with them. MDL-8700

Merged from MOODLE_18_STABLE
2007-03-02 09:42:52 +00:00
toyomoyo 3c6ffc31f3 adding a progress bar 2007-03-02 08:09:21 +00:00
toyomoyo a917db623e adding backward compatitiblity for question restores 2007-03-02 08:04:05 +00:00
nicolasconnault 345ea0f7d4 MDL-8597 - Fixed: weblib.php::print_speller_code was adding CDATA and <script> tags around the code, when this was already done by weblib.php::use_html_editor().
Check lib/editor/htmlarea/htmlarea.class.php for a seemingly duplicated print_speller_code method.
2007-03-02 05:06:51 +00:00
moodler 759b77631c Fixed $title in print_header (merged from stable) (no bug) 2007-03-02 03:21:04 +00:00
nicolasconnault 8058aa051b MDL-7861 - XHTML errors (strict) were found in course/editsection.html and mod/chat/view.php. They were corrected and additional css rules were written to replace the corrected inline styling. 2007-03-02 02:40:30 +00:00
toyomoyo 78c698f3be merged, changing this back to fieldset 2007-03-02 02:33:19 +00:00
toyomoyo 5bff81aba6 replacing fieldsets with divs in small forms 2007-03-02 02:16:27 +00:00
toyomoyo 602b17e715 merged fixing indenting 2007-03-02 01:59:19 +00:00
mjollnir_ b5037f726b Merged from MOODLE_16_STABLE: fixing bug MDL-8651: import course data should clean up after itself 2007-03-02 01:43:47 +00:00
toyomoyo bb84fffea1 replacing fieldsets with divs for small forms 2007-03-02 01:29:28 +00:00
nicolasconnault be5539d858 MDL-8697 - Fixed the legacy HTML for the search table 2007-03-02 01:26:19 +00:00
toyomoyo c4596d2d20 replacing fielsets with divs in small forms 2007-03-02 01:19:00 +00:00
toyomoyo 66c574c908 replacing fieldsets with divs for small forms 2007-03-02 01:03:50 +00:00
koenr 635bb616fa fixed conflict 2007-03-01 20:27:00 +00:00
tjhunt 31f6834e36 Fix upgrade that MySQL could not cope with. 2007-03-01 16:47:55 +00:00
tjhunt 341e99513b Make error messages non-ambiguous. Merged from MOODLE_18_STABLE. 2007-03-01 16:42:39 +00:00
tjhunt 8388ade865 Make error messages non-ambiguous. Merged from MOODLE_18_STABLE. 2007-03-01 16:42:36 +00:00
poltawski b469b1b49c Duplicate alt tags in course category page MDL-8711, merged from MOODLE_18_STABLE 2007-03-01 14:47:52 +00:00
nfreear 171e233e05 Fixes Bug MDL-8709 "Javascript: pseudo-protocol in admin tree block is bad" 2007-03-01 13:06:14 +00:00
nfreear 34d4b268c7 Fix for bug MDL-8708 "Debug, multiple warnings in admin/uploaduser.php and user.php" 2007-03-01 12:08:38 +00:00
nfreear dbcf4d014b Follow-up fix for Bug MDL-8617 "Implement groupings & course modules..." internal - define, any_grouping=0 (merged from 1.8 branch). 2007-03-01 11:45:26 +00:00
nfreear 454a015ac4 Follow-up fix for Bug MDL-8617 "Implement groupings & course modules..." internal (sam's patch, thank you!) merged from branch. 2007-03-01 11:37:55 +00:00
nfreear 5489fce7f7 Fixes MDL-6548 "... block should use lists" - blocks: blog tags, news items, recent activity - forum. 2007-03-01 11:13:37 +00:00
tjhunt 3ed998f343 MDL-6773 - eliminate duplicate code for getting a list of question categories. Merged from MOODLE_18_STABLE. 2007-03-01 09:45:53 +00:00
moodler 7c393e9c4f Fixed unenrol_student MDL-8591 2007-03-01 08:06:05 +00:00
moodler 40fa2a74e7 Don't redirect guests to mymoodle page! MDL-8594 2007-03-01 07:59:15 +00:00
jamiesensei 120e5cbf4c fiexs MDL-8659 : Impossible to create Cloze type question in Moodle 1.8 beta 2007-03-01 07:45:22 +00:00
toyomoyo d0e7d6e1d6 replacing fieldsets with divs in small forms 2007-03-01 07:45:14 +00:00
nicolasconnault 20576b84af MDL-8693 Fixed the double-equal typos (2) 2007-03-01 07:34:51 +00:00
toyomoyo a1b5dd2bd9 replacing fieldsets with divs in small forms 2007-03-01 07:28:11 +00:00
defacer 927a78087c Merging from MOODLE_16_STABLE:
Fix for MDL-8515: Prefixing chat messages with a slash should not hide the
user's name unless it's a special command we handle.

I completely removed the emoticon handling case, but it seems like it was
not needed for a long time now? Emoticons work just fine without it.
2007-03-01 07:19:57 +00:00
toyomoyo d5b04008fd replacing fieldsets with divs in small forms 2007-03-01 06:57:11 +00:00
toyomoyo eba5e98bed replacing fieldsets with divs in small forms 2007-03-01 06:27:15 +00:00
toyomoyo c03ebabebc replacing fieldsets with divs in small forms 2007-03-01 06:06:16 +00:00
nicolasconnault 0af0271031 MDL-8629 - Outputting correct messages during redirection after forum posting with mail-now selected 2007-03-01 06:01:43 +00:00
toyomoyo 456aecd017 replacing fieldsets with divs in small forms 2007-03-01 05:53:49 +00:00
moodler c4cda2a4b6 Merged Urs changes to 1.8 that were not merged to head before MDL-8657 2007-03-01 05:52:31 +00:00
toyomoyo e5c158bbbd fixing javascript error in MDL-8652 2007-03-01 05:47:57 +00:00
toyomoyo 76d4ec0095 replacing fieldsets in small forms to divs 2007-03-01 05:29:50 +00:00
nicolasconnault bf0b04f3d5 MDL-8691
Added format_string() around $course->shortname in calendar.view.php
2007-03-01 05:16:02 +00:00
toyomoyo 2aab6488a6 replacing fieldset in small forms with divs 2007-03-01 05:10:58 +00:00
toyomoyo 7a4a9005c5 replacing fieldset with div in small forms 2007-03-01 05:03:06 +00:00
nicolasconnault eb1f8f1dd2 MDL-8697 Moved inline text-align:right to stylesheet, and removed table and td text-align: center 2007-03-01 04:42:41 +00:00
toyomoyo 44a825c28f replacing fieldset in small form to div 2007-03-01 04:40:50 +00:00
toyomoyo 4e7b349e0a replacing single button fieldsets with divs 2007-03-01 04:30:42 +00:00
nicolasconnault 109694fbf9 Issue MDL-8697
Someone must have fixed this earlier, because there are no more tables. However I found the use of the align attribute which I replaced with inline CSS style=\"text-align:right\"
2007-03-01 04:09:39 +00:00
toyomoyo 2ce10f2920 changing fieldset to div 2007-03-01 04:06:08 +00:00
toyomoyo 05bc5f01da changing fieldset in single button form to use div 2007-03-01 04:02:45 +00:00
nicolasconnault 7f8febdc7e MDL-8701 2007-03-01 02:55:18 +00:00
toyomoyo 6b1b9376a0 merged fixing xhtml issue 2007-03-01 02:47:33 +00:00
toyomoyo b3460b8e8a merged fixing xhtml and display issues in restore 2007-03-01 02:46:04 +00:00
moodler 61c1b4b573 Merged changes to use new ajaxenabled for MDL-8417 2007-03-01 02:42:16 +00:00
nicolasconnault 4309bd17dd Manually merged from MOODLE_18_STABLE 2007-03-01 02:35:13 +00:00
nicolasconnault c2a9fc9166 Issue 8417:
Added support for array of tested browsers to be passed to ajaxenabled()
Merged in from MOODLE_18_STABLE
2007-03-01 02:08:06 +00:00
nicolasconnault d499142e5a Safari 2.0 and Opera 9.0 are now detected and supported for YUI. However, preliminary tests show that drag&drop behaviour is very slow on Opera and user-unfriendly on both browsers. A YUI debug window also pops up on Safari.
I added a unit test for ajaxlib.php

Issue MDL-8417
Merged from MOODLE_18_STABLE
2007-03-01 01:31:37 +00:00
nfreear f155c563d8 Fixes bug MDL-8695 "Form 'required' icon is hidden", see commit 13 Jan. 2007-02-28 18:11:43 +00:00
tjhunt b9ea2b7ad5 Add a unique index to the question_numerical_units table, to prevent duplicate units being created. 2007-02-28 17:19:04 +00:00
tjhunt a24a414f24 When restoring numerical questions, don't create duplicate unit definitions. Merged from MOODLE_18_STABLE. 2007-02-28 17:18:28 +00:00
tjhunt 51e89d95f7 Improve validation code to match the recent improvements in shortanswer validation.
Also do some validation on the units entered to stop duplicate units being defined.

 Merged from MOODLE_18_STABLE.
2007-02-28 17:17:40 +00:00
tjhunt 2cb16d8f9b Minor improvement to validation code. Merged from MOODLE_18_STABLE. 2007-02-28 17:15:45 +00:00
poltawski e071099001 Merging fixes to MDL-8582 from MOODLE_18_STABLE 2007-02-28 16:30:41 +00:00
tjhunt c349b05181 XHTML Strrrrrrict! 2007-02-28 15:34:56 +00:00
tjhunt 3023608c83 Bug with editing essay questions. 2007-02-28 15:21:35 +00:00
tjhunt 7919952cf7 Remove CVS conflict markers. 2007-02-28 15:16:01 +00:00
nfreear d02e887b69 Part of fix for Bug 2617 "Implement groupings & course modules..." 2007-02-28 14:10:18 +00:00
nfreear ab6138d2bc Partial fix for MDL-8668 - group upgrade - applying part of the patch. 2007-02-28 13:16:51 +00:00
tjhunt a0807a0091 XHTML Strrrrrrict! on quiz module config page.
Fix errors when config changes are saved.

Merged from MOODLE_18_STABLE.
2007-02-28 12:24:54 +00:00
tjhunt 645dff1cf7 Correct logic for stopping people using guest access from doing quizzes. Merged from MOODLE_18_STABLE. 2007-02-28 11:34:50 +00:00
toyomoyo 862c219ae9 merged replacing <fieldset> with <div> 2007-02-28 08:01:41 +00:00
moodler 239c15765c Merged from 1.8 stable 2007-02-28 07:58:34 +00:00
moodler ec249a4d25 Merged extension to check_browser_version from MDL-8417 (Nick) 2007-02-28 07:54:40 +00:00
toyomoyo 375ec5a5b0 merged fix for MDL-8655, replacing <fieldset> with <div> 2007-02-28 07:11:58 +00:00
moodler 6ba65fa08d Merged Nicolas' changes from MDL-8582 into HEAD. 2007-02-28 06:25:22 +00:00
toyomoyo 8663848910 fix for MDL-5958 from Elijah (HSU) 2007-02-28 06:23:25 +00:00
toyomoyo 9836d9c811 merged fix for MDL-8688, question pics should default to '' 2007-02-28 06:16:31 +00:00
gbateson e5ea6227e6 removed unnecessary setting of NULL string fields to '', in hotpot_update_to_v2_1_21. 2007-02-28 05:28:53 +00:00
toyomoyo 5328c274d5 merged fix for MDL-8686, MDL-8576, replacing <fieldset> with <div> for display issues 2007-02-28 04:58:48 +00:00
toyomoyo 343e683453 fixed insert_instance so that it complys with the formslib form 2007-02-28 04:12:13 +00:00
toyomoyo 8509c33345 merged fix for MDL-8645, assignment due dates not written into db 2007-02-28 03:26:35 +00:00
martinlanghoff 0f467340a6 MDL-7385 - stats_cron_daily() - If a module is missing, continue processing 2007-02-28 03:03:42 +00:00
martinlanghoff b0ae3878a4 Fixing MDL-6795 - Stats never runs. stats_monthly table gets very full - avoid double tz calculations in stats_getmidnight() 2007-02-28 02:50:51 +00:00
martinlanghoff 595fa6468b Stopping warning and possible errors in graphlib.php caused by bugs in statsgraph.php
Ported from LDC (1.5) branch


Author: Andrew Walbran <andrew.walbran@catalyst.net.nz>
2007-02-28 00:32:39 +00:00
martinlanghoff 5e227395d4 hotpot: Fixing db upgrade script
Note MySQL upgrade (earlier on by version)


Author: Andrew Walbran <andrew.walbran@catalyst.net.nz>
2007-02-28 00:29:24 +00:00
martinlanghoff 171d823249 (Fixing upgrade script) Only try to disable lams if it is installed
Author: Andrew Walbran <andrew.walbran@catalyst.net.nz>
2007-02-28 00:26:37 +00:00
martinlanghoff abb6fc0dda Fixing 1.5->1.7 upgrade bug (get_courses was used unnecessarily in upgrade process, and relies on roles)
Author: Andrew Walbran <andrew.walbran@catalyst.net.nz>
2007-02-28 00:06:59 +00:00
skodak bf315e02c3 notice boxes are now 60% of page width - 100% looked too wide for most notice boxes 2007-02-27 21:44:18 +00:00
stronk7 11cc84ee9d Fixing RSS link to source. http://moodle.org/mod/forum/discuss.php?d=65762
Merged from MOODLE_18_STABLE
2007-02-27 18:22:04 +00:00
tjhunt 846e754525 MDL-8671 - better checking when creating short answer questions. Fix thanks to Joseph R?zeau. Merged from MOODLE_18_STABLE. 2007-02-27 16:20:40 +00:00
tjhunt 2387f33258 MDL-8671 - better checking when creating short answer questions. Fix thanks to Joseph R?zeau. Merged from MOODLE_18_STABLE. 2007-02-27 16:20:39 +00:00
defacer 62d3553e2b Not needing this anymore, we now have Moodle Docs. 2007-02-27 14:43:20 +00:00
defacer 53d8fac034 Merging from MOODLE_16_STABLE:
Fix for MDL-4701: Event URLs now include anchor so that the event is immediately visible.
2007-02-27 14:36:58 +00:00
tjhunt 5eb266d8aa Improve quiz editing screen layout a little bit based on a usability suggestion in the forums.
Also, fix uppercase tag names in the tab row CSS, which did not work at DEVELOPER debug level.

Merged from MOODLE_18_STABLE.
2007-02-27 14:01:46 +00:00
defacer 449c1d6c2d Merging from MOODLE_16_STABLE:
Bugfix: skodak's fix for MDL-5991 is needed here as well.
2007-02-27 13:59:43 +00:00
defacer bdcb26b717 Changing email addresses that caught my eye in the comments. 2007-02-27 13:49:43 +00:00
defacer 4af8d5d3ca Merging from MOODLE_17_STABLE:
Fix for MDL-8402:
$CFG->calendar_weekdays wasn't saved correctly and misbehaved.

I took the opportunity to rewrite a little HTML too.
2007-02-27 12:42:08 +00:00
skodak dd0feda5c2 MDL-8669 broken auth signup code 2007-02-27 10:22:33 +00:00
toyomoyo 10fddcc4e2 fixing wrong capability check 2007-02-27 05:48:05 +00:00
toyomoyo b8c15d5f94 merged fix for MDL-8666, groups import broken 2007-02-27 05:42:15 +00:00
moodler bcb2c37a8d merged fix for MDL-8674, realplayer multimdeia filter does not work 2007-02-27 05:33:56 +00:00
nicolasconnault 3e080d75ef Fixed 2 typos identified by Dan (guset instead of guest). MDL-8676 2007-02-27 05:09:15 +00:00
moodler c7dd2550dd Merged MDL-8670 2007-02-27 01:19:46 +00:00
defacer 0e6a8f4bbe Merging from MOODLE_18_STABLE:
Bugfix: $CFG->calendar_adminseesall was not working at all, Moodle behaved
as if it were always on. Reported at http://moodle.org/mod/forum/discuss.php?d=65500.
2007-02-27 00:41:28 +00:00
defacer ccd3dd0ce2 Merge from MOODLE_18_STABLE:
Fixing notices, I should 've done grep "BLOCK_TYPE_NUKE" earlier.
2007-02-26 14:02:21 +00:00
defacer 86ce75a8e5 Merge from MOODLE_18_STABLE:
Killing BLOCK_NUKE constant, since Martin nuked nuke blocks.
2007-02-26 13:29:57 +00:00
nfreear f677bf92cb Follow-up fix for Bug MDL-8638 "Can't move groups between groupings" 2007-02-26 10:55:45 +00:00
moodler fb6e87f373 Merged additions from stable 2007-02-26 08:52:38 +00:00
moodler 42424a464b Merged changes from STABLE for MDL-8654 2007-02-26 08:44:29 +00:00
toyomoyo 7900ecb02c MDL-5958, code for advanced search for db module from Elijah (HSU) 2007-02-26 06:56:05 +00:00
jamiesensei f5efac7b85 fixes (MDL-8449) Quiz start and close times should allow the teacher to select a time as well as a date. 2007-02-26 06:38:47 +00:00
moodler aad2b02400 Automatic installer.php lang files by installer_builder (20070226) 2007-02-26 03:33:05 +00:00
toyomoyo 118c0f6d5c merged, taking care of context_rel cache when moving courses across categories 2007-02-26 02:35:00 +00:00
mjollnir_ e60129286a merged from MOODLE_17_STABLE: fixing MDL-8662 2007-02-26 00:18:19 +00:00
stronk7 0b39275b57 Delete one condition used while debugging. 2007-02-25 20:36:13 +00:00
stronk7 5f6435d4c0 Now the editor detects if the xml file has been locally modified
since loading it. Second part of MDL-8264

Merged from MOODLE_18_STABLE
2007-02-25 20:20:35 +00:00
moodler 4883dcc56d Merged categorylist fix from MDL-8583 2007-02-25 07:08:04 +00:00
moodler 3eff81468f Just some formatting 2007-02-25 06:58:10 +00:00
defacer 2f7ccc6644 Merged from MOODLE_18_STABLE:
Fix for MDL-8653:
When updating languages through a proxy, skip to the end of the HTTP headers
as defined by RFC 1945 instead of skipping exactly 12 lines of chaff.

Credit for patch 100% to Dan Poltawski.
2007-02-25 01:35:32 +00:00
defacer a4e61dde70 Merging from MOODLE_18_STABLE:
Updating local language packs was breaking XHTML in the "results" screen.
2007-02-25 01:10:00 +00:00
defacer fed8017908 Merged from MOODLE_16_STABLE:
Fix for MDL-4940: Social Activities block disappears when editing course settings.
2007-02-24 23:38:42 +00:00
skodak cc6566c8e1 MDL-8582 - reverted changes in print_navigation(), needs some minor rewrite to use print_title() 2007-02-24 10:19:15 +00:00
skodak 177df3c6c5 email selfregistration enabled by default again - thanks Eloy for noticing the problem 2007-02-24 09:48:10 +00:00
moodler 04e0c322ca Automatic installer.php lang files by installer_builder (20070224) 2007-02-24 03:30:51 +00:00
stronk7 11548d9bf9 Only validate against schema if we have a schema. ;-)
Merged from MOODLE_18_STABLE
2007-02-24 00:05:05 +00:00
stronk7 776dee9c56 Now XMLDB Editor performs check/validation of XML files
before loading them using the best parser available.
MDL-7726 and first part of MDL-8264

Merged from MOODLE_18_STABLE
2007-02-23 20:59:28 +00:00
skodak fc12edcd5d MDL-8639 fixed installation notices 2007-02-23 20:25:16 +00:00
mark-nielsen e15cc97f0f Merged in several display and bug fixes from MOODLE_18_STABLE 2007-02-23 20:20:50 +00:00
skodak 473d29ebcd MDL-8582 - reverted changes in s() and added new function format_title() instead 2007-02-23 20:10:11 +00:00
stronk7 70205c746e Some more notices are now out. Caused by current_language()
Merged from MOODLE_18_STABLE
2007-02-23 18:17:01 +00:00
mark-nielsen 01e617739f OK, so I flip-flopped on this - reverting to previous number. For some users, this db update will fire off twice, luckily there is no harm in doing this. 2007-02-23 17:57:46 +00:00
nfreear 7e4648a160 Fixes MDL-8638 "Can't move groups between groupings" 2007-02-23 17:48:05 +00:00
mark-nielsen 380b9ab6fe Incorrectly merged version and db/upgrade.php - cannot downgrade the version, but fixing the version number here 2007-02-23 17:36:45 +00:00
mark-nielsen ff99f91a08 Merging fix for MDL-8637 2007-02-23 17:31:05 +00:00
stronk7 86e78054bf Fixing course & category boxes in main page.
Merged from MOODLE_18_STABLE
2007-02-23 16:38:59 +00:00
nfreear 0424f2e9c4 Followup fix for Bug MDL-8617 "Implement groupings & course modules..." 2007-02-23 15:15:39 +00:00
skodak 83582cd6f6 removed deprecated flag from addslashes_js() MDL-8582 2007-02-23 09:14:19 +00:00
moodler 9deaeaa174 Merged changes from stable to tidy course cats 2007-02-23 08:21:38 +00:00
moodler b40b3eb4cf Merged string fixes from stable 2007-02-23 06:58:43 +00:00
moodler 19a9bf1b8f Merged some fixes for MDL-8285 from stable 2007-02-23 06:47:19 +00:00
toyomoyo e2cd3ed012 merged nick's fix for MDL-8582, ampersand in course name/shortname causes xtheml strict problems 2007-02-23 06:03:09 +00:00
defacer 99571c3e85 Putting up a title and moving the heading to the top for consistency
with the 'setting up primary admin' screen.

Is it just me or does Moodle look REALLY awful during setup? :/
2007-02-23 04:08:55 +00:00
toyomoyo 2535bff9bd merged fix for MDL-5736, retained search string problem 2007-02-23 03:55:50 +00:00
defacer e2d84bf3ab Setup screen for primary admin had no title, so added one plus a heading 2007-02-23 03:06:14 +00:00
defacer 9b70d31437 Fixing a silly cosmetic thing under Windows... 2007-02-23 02:35:22 +00:00
defacer 5782d81809 Fixing ugly blue border around help icon during installation 2007-02-23 01:42:46 +00:00
defacer 23b86e1cf1 Fixing a few tons of notices when installing
if error_reporting = E_ALL in php.ini.

I 'm back! :D
2007-02-23 01:23:04 +00:00
stronk7 7fb2c1bbd0 Fix one small config name.
Merged from MOODLE_18_STABLE
2007-02-23 00:36:17 +00:00
stronk7 aae2743a3a Now the "common settings" form in admin/auth looks like
one standard admin form.

Merged from MOODLE_18_STABLE
2007-02-23 00:29:24 +00:00
stronk7 13abd721f2 Fixing the auth plugins visual. to use the flexible table properly.
Merged from MOODLE_18_STABLE
2007-02-22 23:01:47 +00:00
skodak c57dcb62c2 MDL-8590 auth cleanup - reset password cleanup+fixes 2007-02-22 22:20:51 +00:00
koenr d072215fdd fixed two typo's 2007-02-22 20:43:42 +00:00
stronk7 90ea86e9f8 "flexible" is now out from set_attribute() because
flexible tables are adding it automatically.
Point 3.3 of MDL-8419

Merged from MOODLE_18_STABLE
2007-02-22 18:48:38 +00:00
stronk7 d1b523b7d0 All flexible tables will have the "flexible" class. Point 3.1 of MDL-8419
Merged from MOODLE_18_STABLE
2007-02-22 18:27:10 +00:00
urs_hunkler b4a1317475 'added nowrap to .flexible th - MDL-8419' 2007-02-22 17:51:03 +00:00
sam_marshall 6022c4f560 MDL-8621 Fixed wiki locking 2007-02-22 17:46:27 +00:00
stronk7 d5ab0df4c5 Merging some pending changes to HEAD in order to backport MDL-8419
to 18_STABLE properly.
2007-02-22 17:45:57 +00:00
rtcn2 16dcc06322 syntax error changed instancid to instanceid 2007-02-22 17:07:21 +00:00
nfreear c333aeea9c Fix typo in comment (Bug MDL-8617). 2007-02-22 15:31:16 +00:00
nfreear 429e531e17 Fixes for Bug MDL-8617 "Implement groupings & course modules..." 2007-02-22 15:27:30 +00:00
nfreear 1a9e3005df Fixes for Bug MDL-8617 "Implement groupings & course modules..." 2007-02-22 12:59:39 +00:00
urs_hunkler 5902558c6f 'added nowrap to c0 cell in the module table - MDL-8419' 2007-02-22 09:15:39 +00:00
urs_hunkler 6e291bc6a5 'changed table headers style adding as proposed by Eloy - MDL-8419' 2007-02-22 08:22:37 +00:00
urs_hunkler 8c17dc491e 'removed nowrap for the first column for module names in modules tabels again because some tables gets too wide in some languages' 2007-02-22 07:51:02 +00:00
urs_hunkler 4db0efdf35 'added nowrap to the first column for module names in modules tabels' 2007-02-22 07:36:17 +00:00
toyomoyo c9c249a185 merged fix for MDL-8577, message textarea too big to fit 2007-02-22 03:22:31 +00:00
toyomoyo 61e75e959b fixing broken has_capability() checks 2007-02-22 03:07:10 +00:00
toyomoyo d16ce1946c fix for MDL-8585, introducing encoding setting for excel exports 2007-02-22 01:09:06 +00:00
stronk7 cc1ffd0147 Deleting inline styles from the "incompatible" table. MDL-8419 2007-02-21 23:16:23 +00:00
skodak 267436d0d9 fixed capcheck warning 2007-02-21 22:56:44 +00:00
skodak 210560e3d7 MDL-8590 auth cleanup - part 8 2007-02-21 21:53:28 +00:00
skodak 9696bd8966 MDL-8590 auth cleanup - part 7 and MDL-8598 2007-02-21 21:48:48 +00:00
skodak 430759a5fe MDL-8590 auth cleanup - part 6 2007-02-21 21:42:10 +00:00
urs_hunkler 7ee8146e61 'added CSS for white-space:nowrap in styles_layout and took the hardcoded inline style out here. Where is it missing now???' 2007-02-21 21:09:08 +00:00
urs_hunkler 46bd568bf1 'added CSS for white-space:nowrap here and took the hardcoded inlinestyle out in lib/tablelib. Where is it missing now???' 2007-02-21 21:07:18 +00:00
urs_hunkler 53718d305b 'admin module tables are and look the same now. Thanks Eloy' 2007-02-21 20:46:34 +00:00
stronk7 6b99bd0df5 Adding some table classes to align all them. MDL-8419 2007-02-21 20:17:58 +00:00
stronk7 38287e169c inline are now 100% out. Let's CSS handle them. MDL-8419 2007-02-21 17:57:21 +00:00
stronk7 e12d37df2b Setting the correct id for each table. MDL-8419 2007-02-21 17:27:26 +00:00
stronk7 778951f899 First cut of modules admin page re-styling. MDL-8419 2007-02-21 17:09:58 +00:00
stronk7 62f60a45ce First cut of blocks admin page re-styling. MDL-8419 2007-02-21 16:52:32 +00:00
thepurpleblob bd6648ea93 MDL-8602
Don't count modules where course=0 (ie, they must exist in real courses)
2007-02-21 14:55:32 +00:00
thepurpleblob 7939a4a0cb MDL-8563
$question->answer was swapped for $question->correctanswer in questiontype
for some reason! Compensated for in format type.
2007-02-21 14:20:46 +00:00
thepurpleblob 474991a19d D'oh - counting $totalcount wrongly (duplicate courses are ignored) 2007-02-21 13:09:17 +00:00
thepurpleblob 594bb20b95 Slightly more helpful message if no courses can be shown. 2007-02-21 13:03:24 +00:00
thepurpleblob 806dab4385 Whoops. Missed setting $totalcount var 2007-02-21 11:57:28 +00:00
thepurpleblob 616ad119ad MDL-8087
Modules and Blocks lists now link to course search page for
actual instances.
2007-02-21 11:42:48 +00:00
nfreear 2ab4e4b87b Followup fix for Bug MDL-8507 "Local language pack-name can appear in language code" 2007-02-21 10:42:50 +00:00
stronk7 82355e2f84 Bump to 1.9dev (keeping sync with 18_STABLE version). 2007-02-21 08:34:21 +00:00
toyomoyo 195e90f919 fix for MDL-8585, adding additonal CFG setting for latinexcelexport 2007-02-21 04:10:26 +00:00
skodak bd35194036 MDL-8590 auth cleanup - part 5 2007-02-20 17:29:45 +00:00
skodak 3fe6b721e2 MDL-8590 auth cleanup - part 4 2007-02-20 17:24:19 +00:00
skodak 1679334034 MDL-8590 auth cleanup - part 3 2007-02-20 17:15:13 +00:00
skodak 16ce6c0dcc MDL-8590 auth cleanup - part 2 2007-02-20 17:09:20 +00:00
skodak 139ebfdb3b MDL-8590 auth cleanup - part 1 2007-02-20 17:03:36 +00:00
tjhunt 37b9e8bccc Another wretched adslashes problem. Roll on placeholder. Thanks to Howard Miller. Merged from MOODLE_18_STABLE. 2007-02-20 15:18:46 +00:00
toyomoyo bf1c14038e replacing <fieldset> with <div> as it's causing weird problems 2007-02-20 06:26:16 +00:00
donal72 1008dad65a MNet goes from ISO8859-1 -> UTF-8; #MDL-8514 MDL-8514 2007-02-20 02:06:56 +00:00
tjhunt 624cbc9c26 MDL-4793 - Option to show question text in the question bank. Also, fix layout problems on the quiz editing screen. Merged from MOODLE_18_STABLE. 2007-02-20 01:48:09 +00:00
toyomoyo b0cb12ac93 merged, apply nick's patch for MDL-8534, typo in restorelib.php 2007-02-20 01:07:18 +00:00
stronk7 767e6e456a Moodle 1.9 doesn't know about $CFG->excelisofiles, only about
$CFG->latinexcelexport, the recommended way since 1.6. MDL-7993
2007-02-19 23:31:58 +00:00
stronk7 6362058124 Changing iso-8859-1 encoding of excel files to windows-1252. It adds support for
some more (a few) characters. MDL-7993

Merged from MOODLE_18_STABLE
2007-02-19 23:29:40 +00:00
nfreear 5e4074b6ab Followup fix for Bug MDL-8434 "...can't delete groups" - delete _groupings_. 2007-02-19 16:38:18 +00:00
nfreear 457b32ce06 Followup fix for Bug MDL-8438 "...can't delete groups" - delete _groupings_. 2007-02-19 16:37:41 +00:00
moodler 5bc28e71eb Removed the raquo completely MDL-8528 2007-02-19 13:31:56 +00:00
jmg324 a3b81262dd MDL-8571 fixing broken links in help index 2007-02-19 12:20:10 +00:00
ethem 55a8360776 Removed unnecesary code; Merged from MOODLE_18_STABLE. 2007-02-19 12:11:15 +00:00
skodak 619c7447b0 MDL-8570 broken flv player embedding and outdate player 2007-02-19 11:28:12 +00:00
tjhunt b28e2577d7 MDL-8145 - Add more options to the add random questions dropdown. 2007-02-19 04:24:14 +00:00
moodler 3b63d38475 Automatic installer.php lang files by installer_builder (20070219) 2007-02-19 03:28:17 +00:00
moodler 08c7d26024 Merged fixes from 1.8 stable for role menu fixes MDL-8558 2007-02-18 13:01:15 +00:00
skodak e16811566a MDL-8560 Chameleon not loading pix list on start page 2007-02-18 13:00:39 +00:00
moodler e827a0fbeb Merged inheritance fix from stable 2007-02-18 06:14:15 +00:00
moodler 0bf93fcbce Merged fix from stable for typoCVS: ---------------------------------------------------------------------- 2007-02-18 05:52:46 +00:00
koenr c96c43669c MDL-8400 Changed currency of peru to Nuevo Sol 2007-02-17 22:20:46 +00:00
tjhunt 983ce2d579 MDL-8154 - Typo in course search code. Fix thanks to Anthony Borrow. 2007-02-17 17:16:38 +00:00
stronk7 fa96bfaa11 sync_users() now working both under MSSQL and Oracle. Big credits to
Jay Lee for his cool patch about MDL-7525 MDL-8023 MDL-8153

Merged from MOODLE_18_STABLE
2007-02-17 01:26:43 +00:00
nfreear 05a399d793 Fixes bug MDL-8059 "... won't restore - error A required parameter (id) was missing", reapplied martinl's 16/1 Strict fix. 2007-02-16 15:46:51 +00:00
nfreear 88915b1d43 Fixes bug MDL-8059 "... won't restore - error A required parameter (id) was missing" 2007-02-16 15:45:35 +00:00
nfreear d80a2fe031 Fixes Bug MDL-8545 "Restore bugs, groups-members and role assignments" 2007-02-16 14:45:57 +00:00
sam_marshall 434170fe71 MDL-8544 Fixed wiki locking require_js usage 2007-02-16 14:31:27 +00:00
skodak 0813712fb8 MDL-8542 External db auth cleanup
* some more sync script fixing
2007-02-16 10:55:05 +00:00
skodak 8ae42b8d78 MDL-8542 External db auth cleanup
* configurable encoding conversions
* fixed handling of magic quotes
* proper sybase quoting
* adodb debug mode
* fixed language strings
* sha1 support
* connection setup command (use names 'utf8')
* mysqli support
* form field labels
* general cleanup and minor fixing
2007-02-16 10:45:53 +00:00
skodak 04480de386 added recursive addslashes 2007-02-16 09:38:24 +00:00
vyshane 2585a68d54 Merged from 1.8. 2007-02-16 08:46:55 +00:00
toyomoyo 217a8ee950 made some changes so that if a user has any roles assigned in context_module or context_block with moodle/site:manageblocks or moodle/course:manageactivities, he will see the "turn editting on" button without needing to have a role assigned at context_course with moodle/course:manageactivies capability. Of course this user would not be able to edit any blocks or modules he/she is not supposed to edit. Ajax for these users with partial editing privilages are locked. Please report bugs asap as we are looking at backporting this change to 1.8. Cheers. 2007-02-16 07:57:19 +00:00
lamsdev 12ce9ea2ee Changed from using lib/soap/nusoap.lib library directly to using lib/soaplib.php.
Fix for MDL-6224
2007-02-16 06:49:03 +00:00
lamsdev ef79f6b241 Fixed javascript to be valid xhtml strict 2007-02-16 06:44:04 +00:00
moodler 76d1f3478f Automatic installer.php lang files by installer_builder (20070216) 2007-02-16 03:32:56 +00:00
toyomoyo e381a324a8 merged adding missing capability check 2007-02-16 02:40:54 +00:00
toyomoyo 5e8adb25a5 merged fixed wrong context, it should be possible to manage a single block 2007-02-16 01:26:19 +00:00
skodak d66f0c9e10 fixed problem on user edit page when user not fully setup, reverted guest handling 2007-02-15 22:03:29 +00:00
skodak b7c3bb2182 fixed problem on user edit page when user not fully setup 2007-02-15 20:46:39 +00:00
skodak 03a2aac1ec fixed problem on user edit page when user not fully setup 2007-02-15 20:43:00 +00:00
skodak e503869636 fixed problems with undefined $USER->mnethostid causing page errors in IE during logout 2007-02-15 20:41:16 +00:00
nfreear b39552afd3 Fixes Bug MDL-8533 "Can't add a user to more than 1 group in groupings" 2007-02-15 14:09:51 +00:00
skodak 348d6827b3 MDL-7722 fixed wrong cleaning in backup paths 2007-02-15 09:43:14 +00:00
toyomoyo 16fc208896 merged fix for MDL-8505 and some other assignment issues 2007-02-15 08:16:54 +00:00
moodler c3c5697482 FIxed a typo 2007-02-15 07:02:03 +00:00
moodler 2946196116 New strings for environment check 2007-02-15 06:31:35 +00:00
moodler 29e05913b8 Merged upgrade environment check from stable MDL-8527 2007-02-15 06:30:35 +00:00
vyshane c7a990842f Merged from 1.8. 2007-02-15 06:15:24 +00:00
toyomoyo 09b62d3b99 fix for MDL-8517 broken xhtml for redirects 2007-02-15 05:15:06 +00:00
toyomoyo 3d6d244728 fix for MDL-5829, blocks on blog page can not be minimized 2007-02-15 03:21:05 +00:00
moodler a59e5a1c92 Merged removal of weeks from format_time from stable 2007-02-15 03:14:40 +00:00
moodler 5602f7cf2e 1) Don't force changepassword during loginas
2) Added weeks and years to format_time()
2007-02-15 02:53:00 +00:00
stronk7 63013fb804 PHP 4 assignment is by value so course_header (containing edited names)
wasn't being modified. MDL-8298

Merged from MOODLE_18_STABLE
2007-02-14 23:54:20 +00:00
skodak 6db71242fd MDL-8268 fixed block get_string, patch by Mark Nielsen 2007-02-14 23:00:20 +00:00
skodak e2b84345ea MDL-8268 cleanup in get_user_capability_course() 2007-02-14 22:53:17 +00:00
skodak 4fd3348637 MDL-8268 fixed get_user_capability_course(), patch by Mark Nielsen 2007-02-14 22:48:11 +00:00
skodak 89f3abc58c notice_yesno() buttons now centered 2007-02-14 22:12:13 +00:00
skodak 69995c4a1e MDL-8520 resource navigation borked by accessibility frame changes 2007-02-14 22:05:23 +00:00
skodak 53d968c8a3 MDL-8519 teamspeak link support in resource mod 2007-02-14 21:31:49 +00:00
skodak 275d8b36a3 MDL-8518 incorrect link to frontpage settings from course summary block 2007-02-14 21:04:05 +00:00
skodak 8891e81c92 MDL-8469 - 192M is much nicer than 196M 2007-02-14 20:58:31 +00:00
3279 changed files with 466090 additions and 176927 deletions
-12256
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,4 +1,4 @@
README $Id$
README $Id$
------
QUICK INSTALL
+42 -219
View File
@@ -7,273 +7,96 @@
*
*/
require_once dirname(dirname(__FILE__)) . '/config.php';
require_once $CFG->libdir . '/tablelib.php';
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/tablelib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('userauthentication', $adminroot);
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
$returnurl = "$CFG->wwwroot/$CFG->admin/settings.php?section=manageauths";
$action = optional_param('action', '', PARAM_ACTION);
$auth = optional_param('auth', '', PARAM_SAFEDIR);
// get currently installed and enabled auth plugins
$authsavailable = get_list_of_plugins('auth');
if (empty($CFG->auth_plugins_enabled)) {
set_config('auth_plugins_enabled', $CFG->auth);
$CFG->auth_plugins_enabled = $CFG->auth;
}
$authsenabled = explode(',', $CFG->auth_plugins_enabled);
// save form
if ($form = data_submitted()) {
if (!confirm_sesskey()) {
error(get_string('confirmsesskeybad', 'error'));
}
if (! isset($form->guestloginbutton)) {
$form->guestloginbutton = 1;
}
if (empty($form->alternateloginurl)) {
$form->alternateloginurl = '';
}
if (empty($form->register)) {
$form->register = 'manual';
}
set_config('guestloginbutton', $form->guestloginbutton);
set_config('alternateloginurl', $form->alternateloginurl);
set_config('auth', $form->register);
// add $CFG->auth to auth_plugins_enabled list
if (!array_search($form->register, $authsenabled)) {
$authsenabled[] = $form->register;
$authsenabled = array_unique($authsenabled);
set_config('auth_plugins_enabled', implode(',', $authsenabled));
}
get_enabled_auth_plugins(true); // fix the list of enabled auths
if (empty($CFG->auth)) {
$authsenabled = array();
} else {
$authsenabled = explode(',', $CFG->auth);
}
// grab GET/POST parameters
$params = new object();
$params->action = optional_param('action', '', PARAM_ACTION);
$params->auth = optional_param('auth', $CFG->auth, PARAM_ALPHANUM);
if (!empty($auth) and !exists_auth_plugin($auth)) {
print_error('pluginnotinstalled', 'auth', $url, $auth);
}
////////////////////////////////////////////////////////////////////////////////
// process actions
switch ($params->action) {
if (!confirm_sesskey()) {
redirect($returnurl);
}
switch ($action) {
case 'disable':
// remove from enabled list
$key = array_search($params->auth, $authsenabled);
if ($key !== false and $params->auth != $CFG->auth) {
// remove from enabled list
$key = array_search($auth, $authsenabled);
if ($key !== false) {
unset($authsenabled[$key]);
set_config('auth_plugins_enabled', implode(',', $authsenabled));
set_config('auth', implode(',', $authsenabled));
}
if ($auth == $CFG->registerauth) {
set_config('registerauth', '');
}
break;
case 'enable':
// check auth plugin is valid first
if (!exists_auth_plugin($params->auth)) {
error(get_string('pluginnotinstalled', 'auth', $params->auth), $url);
}
// add to enabled list
if (!array_search($params->auth, $authsenabled)) {
$authsenabled[] = $params->auth;
if (!in_array($auth, $authsenabled)) {
$authsenabled[] = $auth;
$authsenabled = array_unique($authsenabled);
set_config('auth_plugins_enabled', implode(',', $authsenabled));
set_config('auth', implode(',', $authsenabled));
}
break;
case 'down':
$key = array_search($params->auth, $authsenabled);
$key = array_search($auth, $authsenabled);
// check auth plugin is valid
if ($key === false) {
error(get_string('pluginnotenabled', 'auth', $params->auth), $url);
print_error('pluginnotenabled', 'auth', $url, $auth);
}
// move down the list
if ($key < (count($authsenabled) - 1)) {
$fsave = $authsenabled[$key];
$authsenabled[$key] = $authsenabled[$key + 1];
$authsenabled[$key + 1] = $fsave;
set_config('auth_plugins_enabled', implode(',', $authsenabled));
set_config('auth', implode(',', $authsenabled));
}
break;
case 'up':
$key = array_search($params->auth, $authsenabled);
$key = array_search($auth, $authsenabled);
// check auth is valid
if ($key === false) {
error(get_string('pluginnotenabled', 'auth', $params->auth), $url);
print_error('pluginnotenabled', 'auth', $url, $auth);
}
// move up the list
if ($key >= 1) {
$fsave = $authsenabled[$key];
$authsenabled[$key] = $authsenabled[$key - 1];
$authsenabled[$key - 1] = $fsave;
set_config('auth_plugins_enabled', implode(',', $authsenabled));
set_config('auth', implode(',', $authsenabled));
}
break;
case 'save':
// save settings
set_config('auth_plugins_enabled', implode(',', $authsenabled));
set_config('auth', $authsenabled[0]);
redirect("auth.php?sesskey=$USER->sesskey", get_string('changessaved'), 1);
break;
default:
break;
}
// display strings
$txt = get_strings(array('authenticationplugins', 'users', 'administration',
'settings', 'edit', 'name', 'enable', 'disable',
'up', 'down', 'none'));
$txt->updown = "$txt->up/$txt->down";
// construct the display array, with enabled auth plugins at the top, in order
$displayauths = array();
$registrationauths = array();
$registrationauths['manual'] = $txt->disable;
foreach ($authsenabled as $auth) {
$displayauths[$auth] = get_string("auth_{$auth}title", 'auth');
$authplugin = get_auth_plugin($auth);
if (method_exists($authplugin, 'user_signup')) {
$registrationauths[$auth] = get_string("auth_{$auth}title", 'auth');
}
}
foreach ($authsavailable as $auth) {
if (!array_key_exists($auth, $displayauths)) {
$displayauths[$auth] = get_string("auth_{$auth}title", 'auth');
}
$authplugin = get_auth_plugin($auth);
if (method_exists($authplugin, 'user_signup')) {
$registrationauths[$auth] = get_string("auth_{$auth}title", 'auth');
}
}
// build the display table
$table = new flexible_table('auth_admin_table');
$table->define_columns(array('name', 'enable', 'order', 'settings'));
$table->column_style('enable', 'text-align', 'center');
$table->column_style('order', 'text-align', 'center');
$table->column_style('settings', 'text-align', 'center');
$table->define_headers(array($txt->name, $txt->enable, $txt->updown, $txt->settings));
$table->define_baseurl("{$CFG->wwwroot}/{$CFG->admin}/auth.php");
$table->set_attribute('id', 'blocks');
$table->set_attribute('class', 'flexible generaltable generalbox');
$table->set_attribute('style', 'margin:auto;');
$table->set_attribute('cellpadding', '5');
$table->setup();
// iterate through auth plugins and add to the display table
$updowncount = 1;
$authcount = count($authsenabled);
$url = "auth.php?sesskey=" . sesskey();
foreach ($displayauths as $auth => $name) {
// hide/show link
if (in_array($auth, $authsenabled)) {
$hideshow = "<a href=\"$url&amp;action=disable&amp;auth=$auth\">";
$hideshow .= "<img src=\"{$CFG->pixpath}/i/hide.gif\" class=\"icon\" alt=\"disable\" /></a>";
// $hideshow = "<a href=\"$url&amp;action=disable&amp;auth=$auth\"><input type=\"checkbox\" checked /></a>";
$enabled = true;
$displayname = "<span>$name</span>";
}
else {
$hideshow = "<a href=\"$url&amp;action=enable&amp;auth=$auth\">";
$hideshow .= "<img src=\"{$CFG->pixpath}/i/show.gif\" class=\"icon\" alt=\"enable\" /></a>";
// $hideshow = "<a href=\"$url&amp;action=enable&amp;auth=$auth\"><input type=\"checkbox\" /></a>";
$enabled = false;
$displayname = "<span class=\"dimmed_text\">$name</span>";
}
// up/down link (only if auth is enabled)
$updown = '';
if ($enabled) {
if ($updowncount > 1) {
$updown .= "<a href=\"$url&amp;action=up&amp;auth=$auth\">";
$updown .= "<img src=\"{$CFG->pixpath}/t/up.gif\" alt=\"up\" /></a>&nbsp;";
}
else {
$updown .= "<img src=\"{$CFG->pixpath}/spacer.gif\" class=\"icon\" alt=\"\" />&nbsp;";
}
if ($updowncount < $authcount) {
$updown .= "<a href=\"$url&amp;action=down&amp;auth=$auth\">";
$updown .= "<img src=\"{$CFG->pixpath}/t/down.gif\" alt=\"down\" /></a>";
}
else {
$updown .= "<img src=\"{$CFG->pixpath}/spacer.gif\" class=\"icon\" alt=\"\" />";
}
++ $updowncount;
}
// settings link
$settings = "<a href=\"auth_config.php?sesskey={$USER->sesskey}&amp;auth=$auth\">{$txt->settings}</a>";
// add a row to the table
$table->add_data(array($displayname, $hideshow, $updown, $settings));
}
// output form
admin_externalpage_print_header($adminroot);
print_simple_box(get_string('configauthenticationplugins', 'admin'), 'center', '700');
echo "<form $CFG->frametarget id=\"authmenu\" method=\"post\" action=\"auth.php\">";
echo "<fieldset class=\"invisiblefieldset\"><input type=\"hidden\" name=\"sesskey\" value=\"".$USER->sesskey."\" /></fieldset>";
print_table($table);
////////////////////////////////////////////////////////////////////////////////
$guestoptions[0] = get_string("hide");
$guestoptions[1] = get_string("show");
echo '<hr />';
print_heading(get_string('auth_common_settings', 'auth'));
echo '<table cellspacing="0" cellpadding="5" border="0" style="margin-left:auto;margin-right:auto">';
// User self registration
echo "<tr valign=\"top\">\n";
echo "<td align=\"right\" style=\"white-space:nowrap\">\n";
print_string("selfregistration", "auth");
echo ":</td>\n";
echo "<td>\n";
choose_from_menu($registrationauths, "register", $CFG->auth, "");
echo "</td>\n";
echo "<td>\n";
print_string("selfregistration_help", "auth");
echo "</td></tr>\n";
// Login as guest button enabled
echo "<tr valign=\"top\">\n";
echo "<td style=\"white-space:nowrap;text-align:right\">\n";
print_string("guestloginbutton", "auth");
echo ":</td>\n";
echo "<td>\n";
choose_from_menu($guestoptions, "guestloginbutton", $CFG->guestloginbutton, "");
echo "</td>\n";
echo "<td>\n";
print_string("showguestlogin","auth");
echo "</td></tr>\n";
/// An alternate url for the login form. It means we can use login forms that are integrated
/// into non-moodle pages
echo "<tr valign=\"top\">\n";
echo "<td align=\"right\" style=\"white-space:nowrap\">\n";
print_string('alternateloginurl', 'auth');
echo "</td>\n";
echo "<td>\n";
echo '<input type="text" size="40" name="alternateloginurl" alt="'.get_string('alternateloginurl', 'auth').'" value="'.$CFG->alternateloginurl."\" />\n";
echo "</td>\n";
echo "<td>\n";
print_string('alternatelogin', 'auth', htmlspecialchars($CFG->wwwroot.'/login/index.php'));
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
////////////////////////////////////////////////////////////////////////////////
echo '<div style="text-align:center"><input type="submit" value="'.get_string('savechanges').'" /></div>';
echo '</form>';
admin_externalpage_print_footer($adminroot);
redirect ($returnurl);
?>
+48 -43
View File
@@ -2,26 +2,26 @@
/**
* Edit configuration for an individual auth plugin
*/
require_once '../config.php';
require_once $CFG->libdir.'/adminlib.php';
$adminroot = admin_get_root();
admin_externalpage_setup('userauthentication', $adminroot);
$auth = optional_param('auth', '', PARAM_SAFEDIR);
$auth = required_param('auth', PARAM_SAFEDIR);
$CFG->pagepath = 'auth/' . $auth;
admin_externalpage_setup('authsetting'.$auth);
$authplugin = get_auth_plugin($auth);
$err = array();
$returnurl = "$CFG->wwwroot/$CFG->admin/settings.php?section=manageauths";
// save configuration changes
if ($frm = data_submitted()) {
if ($frm = data_submitted() and confirm_sesskey()) {
$frm = stripslashes_recursive($frm);
if (!confirm_sesskey()) {
error(get_string('confirmsesskeybad', 'error'));
}
if (method_exists($authplugin, 'validate_form')) {
$authplugin->validate_form($frm, $err);
}
$authplugin->validate_form($frm, $err);
if (count($err) == 0) {
@@ -33,52 +33,54 @@ if ($frm = data_submitted()) {
if (preg_match('/^lockconfig_(.+?)$/', $name, $matches)) {
$plugin = "auth/$auth";
$name = $matches[1];
if (!set_config($name, $value, $plugin)) {
notify("Problem saving config $name as $value for plugin $plugin");
if (!set_config($name, $value, $plugin)) {
error("Problem saving config $name as $value for plugin $plugin");
}
}
}
redirect("auth.php?sesskey=$USER->sesskey", get_string("changessaved"), 1);
redirect($returnurl);
exit;
}
} else {
foreach ($err as $key => $value) {
$focus = "form.$key";
}
}
}
} else {
$frm = get_config("auth/$auth");
}
$user_fields = array("firstname", "lastname", "email", "phone1", "phone2", "department", "address", "city", "country", "description", "idnumber", "lang");
$user_fields = $authplugin->userfields;
//$user_fields = array("firstname", "lastname", "email", "phone1", "phone2", "institution", "department", "address", "city", "country", "description", "idnumber", "lang");
$modules = get_list_of_plugins('auth');
foreach ($modules as $module) {
$options[$module] = get_string("auth_{$module}title", 'auth');
}
asort($options);
/// Get the auth title (from core or own auth lang files)
$authtitle = $authplugin->get_title();
/// Get the auth descriptions (from core or own auth lang files)
$authdescription = $authplugin->get_description();
// output configuration form
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
// choose an authentication method
echo "<form $CFG->frametarget id=\"authmenu\" method=\"post\" action=\"auth_config.php\">\n";
echo "<div>\n";
echo "<input type=\"hidden\" name=\"sesskey\" value=\"".$USER->sesskey."\" />\n";
echo "<input type=\"hidden\" name=\"auth\" value=\"".$auth."\" />\n";
// auth plugin description
print_simple_box_start('center', '80%');
print_heading($options[$auth]);
print_simple_box_start('center', '60%', '', 5, 'informationbox');
print_string("auth_{$auth}description", 'auth');
print_heading($authtitle);
print_simple_box_start('center', '80%', '', 5, 'informationbox');
echo $authdescription;
print_simple_box_end();
echo "<hr />\n";
$authplugin->config_form($frm, $err);
$authplugin->config_form($frm, $err, $user_fields);
print_simple_box_end();
echo '<center><p><input type="submit" value="' . get_string("savechanges") . "\" /></p></center>\n";
echo '<p style="text-align: center"><input type="submit" value="' . get_string("savechanges") . "\" /></p>\n";
echo "</div>\n";
echo "</form>\n";
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
exit;
/// Functions /////////////////////////////////////////////////////////////////
@@ -86,7 +88,7 @@ exit;
// Good enough for most auth plugins
// but some may want a custom one if they are offering
// other options
// Note: lockconfig_ fields have special handling.
// Note: lockconfig_ fields have special handling.
function print_auth_lock_options ($auth, $user_fields, $helptext, $retrieveopts, $updateopts) {
echo '<tr><td colspan="3">';
@@ -104,7 +106,7 @@ function print_auth_lock_options ($auth, $user_fields, $helptext, $retrieveopts,
'onlogin' => get_string('update_onlogin', 'auth'));
$updateextoptions = array('0' => get_string('update_never', 'auth'),
'1' => get_string('update_onupdate', 'auth'));
$pluginconfig = get_config("auth/$auth");
// helptext is on a field with rowspan
@@ -134,34 +136,37 @@ function print_auth_lock_options ($auth, $user_fields, $helptext, $retrieveopts,
$fieldname = get_string('language');
} elseif (preg_match('/^(.+?)(\d+)$/', $fieldname, $matches)) {
$fieldname = get_string($matches[1]) . ' ' . $matches[2];
} elseif ($fieldname == 'url') {
$fieldname = get_string('webpage');
} else {
$fieldname = get_string($fieldname);
}
echo '<tr valign="top"><td align="right">';
echo $fieldname;
echo '</td><td>';
}
if ($retrieveopts) {
$varname = 'field_map_' . $field;
echo "<input name=\"lockconfig_{$varname}\" type=\"text\" size=\"30\" value=\"{$pluginconfig->$varname}\" />";
echo '<div align="right">';
echo get_string('auth_updatelocal', 'auth') . '&nbsp;&nbsp;';
echo '<tr valign="top"><td align="right">';
echo '<label for="lockconfig_'.$varname.'">'.$fieldname.'</label>';
echo '</td><td>';
echo "<input id=\"lockconfig_{$varname}\" name=\"lockconfig_{$varname}\" type=\"text\" size=\"30\" value=\"{$pluginconfig->$varname}\" />";
echo '<div style="text-align: right">';
echo '<label for="menulockconfig_field_updatelocal_'.$field.'">'.get_string('auth_updatelocal', 'auth') . '</label>&nbsp;';
choose_from_menu($updatelocaloptions, "lockconfig_field_updatelocal_{$field}", $pluginconfig->{"field_updatelocal_$field"}, "");
echo '<br />';
if ($updateopts) {
echo get_string('auth_updateremote', 'auth') . '&nbsp;&nbsp;';
'&nbsp;&nbsp;';
echo '<label for="menulockconfig_field_updateremote_'.$field.'">'.get_string('auth_updateremote', 'auth') . '</label>&nbsp;';
choose_from_menu($updateextoptions, "lockconfig_field_updateremote_{$field}", $pluginconfig->{"field_updateremote_$field"}, "");
echo '<br />';
}
echo get_string('auth_fieldlock', 'auth') . '&nbsp;&nbsp;';
echo '<label for="menulockconfig_field_lock_'.$field.'">'.get_string('auth_fieldlock', 'auth') . '</label>&nbsp;';
choose_from_menu($lockoptions, "lockconfig_field_lock_{$field}", $pluginconfig->{"field_lock_$field"}, "");
echo '</div>';
} else {
echo '<tr valign="top"><td align="right">';
echo '<label for="menulockconfig_field_lock_'.$field.'">'.$fieldname.'</label>';
echo '</td><td>';
choose_from_menu($lockoptions, "lockconfig_field_lock_{$field}", $pluginconfig->{"field_lock_$field"}, "");
}
echo '</td>';
+7 -12
View File
@@ -4,16 +4,16 @@
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('manageblocks', $adminroot);
require_once($CFG->libdir.'/blocklib.php');
$blockid = required_param('block', PARAM_INT);
if(($blockrecord = blocks_get_record($blockid)) === false) {
if(!$blockrecord = blocks_get_record($blockid)) {
error('This block does not exist');
}
admin_externalpage_setup('blocksetting'.$blockrecord->name);
$block = block_instance($blockrecord->name);
if($block === false) {
error('Problem in instantiating block object');
@@ -31,7 +31,7 @@
if ($config = data_submitted()) {
if (!confirm_sesskey()) {
error(get_string('confirmsesskeybad', 'error'));
print_error('confirmsesskeybad', 'error');
}
if(!$block->has_config()) {
error('This block does not support global configuration');
@@ -50,16 +50,11 @@
$strmanageblocks = get_string('manageblocks');
$strblockname = $block->get_title();
// $CFG->pagepath is used to generate the body and id attributes for the body tag
// of the page. It is also used to generate the link to the Moodle Docs for this view.
$CFG->pagepath = 'block/' . $block->name() . '/config';
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_heading($strblockname);
print_simple_box('<center>'.get_string('configwarning', 'admin').'</center>', 'center', '50%');
print_simple_box(get_string('configwarning', 'admin'), 'center', '50%');
echo '<br />';
echo '<form method="post" action="block.php">';
@@ -70,6 +65,6 @@
echo '</p>';
$block->config_print();
echo '</form>';
admin_externalpage_print_footer($adminroot);
print_footer();
?>
+46 -39
View File
@@ -8,8 +8,7 @@
require_once($CFG->libdir.'/tablelib.php');
require_once($CFG->libdir.'/ddllib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('manageblocks', $adminroot);
admin_externalpage_setup('manageblocks');
$confirm = optional_param('confirm', 0, PARAM_BOOL);
$hide = optional_param('hide', 0, PARAM_INT);
@@ -17,7 +16,6 @@
$delete = optional_param('delete', 0, PARAM_INT);
$multiple = optional_param('multiple', 0, PARAM_INT);
/// Print headings
$strmanageblocks = get_string('manageblocks');
@@ -29,10 +27,7 @@
$strcourses = get_string('blockinstances', 'admin');
$strname = get_string('name');
$strmultiple = get_string('blockmultiple', 'admin');
admin_externalpage_print_header($adminroot);
print_heading($strmanageblocks);
$strshowblockcourse = get_string('showblockcourse');
/// If data submitted, then process and store.
@@ -41,6 +36,7 @@
error("Block doesn't exist!");
}
set_field('block', 'visible', '0', 'id', $block->id); // Hide block
admin_get_root(true, false); // settings not required - only pages
}
if (!empty($show) && confirm_sesskey() ) {
@@ -48,6 +44,7 @@
error("Block doesn't exist!");
}
set_field('block', 'visible', '1', 'id', $block->id); // Show block
admin_get_root(true, false); // settings not required - only pages
}
if (!empty($multiple) && confirm_sesskey()) {
@@ -56,9 +53,12 @@
}
$block->multiple = !$block->multiple;
update_record('block', $block);
admin_get_root(true, false); // settings not required - only pages
}
if (!empty($delete) && confirm_sesskey()) {
admin_externalpage_print_header();
print_heading($strmanageblocks);
if (!$block = blocks_get_record($delete)) {
error("Block doesn't exist!");
@@ -76,7 +76,7 @@
notice_yesno(get_string('blockdeleteconfirm', '', $strblockname),
'blocks.php?delete='.$block->id.'&amp;confirm=1&amp;sesskey='.$USER->sesskey,
'blocks.php');
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
exit;
} else {
@@ -100,34 +100,24 @@
notify("Error occurred while deleting the $strblockname record from blocks table");
}
// Then the tables themselves
if ($tables = $db->Metatables()) {
$prefix = $CFG->prefix.$block->name;
$prefix2 = $CFG->prefix.'block_'.$block->name;
foreach ($tables as $table) {
if (strpos($table, $prefix) === 0 || strpos($table, $prefix2) === 0) {
/// If the match has been due to the 1st condition, debug to developers
if (strpos($table, $prefix) === 0) {
debugging('This block has some wrongly named tables. See Moodle Docs coding guidelines (and MDL-6786)', DEBUG_DEVELOPER);
}
/// Strip prefix from $table
$table = preg_replace("/^{$CFG->prefix}/", '', $table);
$xmldb_table = new XMLDBTable($table);
if (!drop_table($xmldb_table, true, false)) {
notify("ERROR: while trying to drop table $table");
}
}
}
}
drop_plugin_tables($block->name, "$CFG->dirroot/blocks/$block->name/db/install.xml", false); // old obsoleted table names
drop_plugin_tables('block_'.$block->name, "$CFG->dirroot/blocks/$block->name/db/install.xml", false);
// Delete the capabilities that were defined by this block
capabilities_cleanup('block/'.$block->name);
// remove entent handlers and dequeue pending events
events_uninstall('block/'.$block->name);
$a->block = $strblockname;
$a->directory = $CFG->dirroot.'/blocks/'.$block->name;
notice(get_string('blockdeletefiles', '', $a), 'blocks.php');
}
}
admin_externalpage_print_header();
print_heading($strmanageblocks);
/// Main display starts here
/// Get and sort the existing blocks
@@ -165,25 +155,43 @@
$table->define_columns(array('name', 'instances', 'version', 'hideshow', 'multiple', 'delete', 'settings'));
$table->define_headers(array($strname, $strcourses, $strversion, $strhide.'/'.$strshow, $strmultiple, $strdelete, $strsettings));
$table->define_baseurl($CFG->wwwroot.'/'.$CFG->admin.'/blocks.php');
$table->set_attribute('cellspacing', '0');
$table->set_attribute('id', 'blocks');
$table->set_attribute('class', 'generaltable generalbox');
$table->set_attribute('class', 'generaltable generalbox boxaligncenter boxwidthwide');
$table->setup();
foreach ($blockbyname as $blockname => $blockid) {
$blockobject = $blockobjects[$blockid];
$block = $blocks[$blockid];
$delete = '<a href="blocks.php?delete='.$blockid.'&amp;sesskey='.$USER->sesskey.'">'.$strdelete.'</a>';
$settings = ''; // By default, no configuration
if($blockobject->has_config()) {
$settings = '<a href="block.php?block='.$blockid.'">'.$strsettings.'</a>';
if ($blockobject->has_config()) {
if (file_exists($CFG->dirroot.'/blocks/'.$block->name.'/settings.php')) {
$settings = '<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section=blocksetting'.$block->name.'">'.$strsettings.'</a>';
} else {
$settings = '<a href="block.php?block='.$blockid.'">'.$strsettings.'</a>';
}
}
$count = count_records('block_instance', 'blockid', $blockid);
// MDL-11167, blocks can be placed on mymoodle, or the blogs page
// and it should not show up on course search page
$totalcount = count_records('block_instance', 'blockid', $blockid);
$count = count_records_sql('SELECT COUNT(*)
FROM '.$CFG->prefix.'block_instance
WHERE blockid = '.$blockid.' AND
pagetype = \'course-view\'');
if ($count>0) {
$blocklist = "<a href=\"{$CFG->wwwroot}/course/search.php?blocklist=$blockid&amp;sesskey={$USER->sesskey}\" ";
$blocklist .= "title=\"$strshowblockcourse\" >$totalcount</a>";
}
else {
$blocklist = "$totalcount";
}
$class = ''; // Nothing fancy, by default
if ($blocks[$blockid]->visible) {
@@ -208,8 +216,8 @@
$table->add_data(array(
'<span'.$class.'>'.$blockobject->get_title().'</span>',
$count,
$blockobject->get_version(),
$blocklist,
'<span'.$class.'>'.$blockobject->get_version().'</span>',
$visible,
$multiple,
$delete,
@@ -228,9 +236,8 @@
$table->define_headers(array($strname, $strdelete));
$table->define_baseurl($CFG->wwwroot.'/'.$CFG->admin.'/blocks.php');
$table->set_attribute('cellspacing', '0');
$table->set_attribute('id', 'incompatible');
$table->set_attribute('class', 'generaltable generalbox');
$table->set_attribute('class', 'generaltable generalbox boxaligncenter boxwidthwide');
$table->setup();
@@ -243,6 +250,6 @@
$table->print_html();
}
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+238 -79
View File
@@ -1,4 +1,4 @@
<?PHP // $Id$
<?php // $Id$
/// This script looks through all the module directories for cron.php files
/// and runs them. These files can contain cleanup functions, email functions
@@ -10,7 +10,7 @@
///
/// eg wget -q -O /dev/null 'http://moodle.somewhere.edu/admin/cron.php'
/// or php /web/moodle/admin/cron.php
set_time_limit(0);
$starttime = microtime();
/// The following is a hack necessary to allow this script to work well
@@ -32,6 +32,16 @@
require_once(dirname(__FILE__) . '/../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/gradelib.php');
/// Extra debugging (set in config.php)
if (!empty($CFG->showcronsql)) {
$db->debug = true;
}
if (!empty($CFG->showcrondebugging)) {
$CFG->debug = DEBUG_DEVELOPER;
$CFG->debugdisplay = true;
}
/// extra safety
@session_write_close();
@@ -90,7 +100,8 @@
/// Run all cron jobs for each module
mtrace("Starting activity modules");
if ($mods = get_records_select("modules", "cron > 0 AND (($timenow - lastcron) > cron)")) {
get_mailer('buffer');
if ($mods = get_records_select("modules", "cron > 0 AND (($timenow - lastcron) > cron) AND visible = 1 ")) {
foreach ($mods as $mod) {
$libfile = "$CFG->dirroot/mod/$mod->name/lib.php";
if (file_exists($libfile)) {
@@ -98,20 +109,32 @@
$cron_function = $mod->name."_cron";
if (function_exists($cron_function)) {
mtrace("Processing module function $cron_function ...", '');
$pre_dbqueries = null;
if (!empty($PERF->dbqueries)) {
$pre_dbqueries = $PERF->dbqueries;
$pre_time = microtime(1);
}
if ($cron_function()) {
if (! set_field("modules", "lastcron", $timenow, "id", $mod->id)) {
mtrace("Error: could not update timestamp for $mod->fullname");
}
}
if (isset($pre_dbqueries)) {
mtrace("... used " . ($PERF->dbqueries - $pre_dbqueries) . " dbqueries");
mtrace("... used " . (microtime(1) - $pre_time) . " seconds");
}
/// Reset possible changes by modules to time_limit. MDL-11597
@set_time_limit(0);
mtrace("done.");
}
}
}
}
get_mailer('close');
mtrace("Finished activity modules");
mtrace("Starting blocks");
if ($blocks = get_records_select("block", "cron > 0 AND (($timenow - lastcron) > cron)")) {
if ($blocks = get_records_select("block", "cron > 0 AND (($timenow - lastcron) > cron) AND visible = 1")) {
// we will need the base class.
require_once($CFG->dirroot.'/blocks/moodleblock.class.php');
foreach ($blocks as $block) {
@@ -127,19 +150,79 @@
mtrace('Error: could not update timestamp for '.$block->name);
}
}
/// Reset possible changes by blocks to time_limit. MDL-11597
@set_time_limit(0);
mtrace('done.');
}
}
}
}
mtrace("Finished blocks");
mtrace('Finished blocks');
mtrace('Starting admin reports');
// Admin reports do not have a database table that lists them. Instead a
// report includes cron.php with function report_reportname_cron() if it wishes
// to be cronned. It is up to cron.php to handle e.g. if it only needs to
// actually do anything occasionally.
$reports = get_list_of_plugins($CFG->admin.'/report');
foreach($reports as $report) {
$cronfile = $CFG->dirroot.'/'.$CFG->admin.'/report/'.$report.'/cron.php';
if (file_exists($cronfile)) {
require_once($cronfile);
$cronfunction = 'report_'.$report.'_cron';
mtrace('Processing cron function for '.$report.'...', '');
$pre_dbqueries = null;
if (!empty($PERF->dbqueries)) {
$pre_dbqueries = $PERF->dbqueries;
$pre_time = microtime(true);
}
$cronfunction();
if (isset($pre_dbqueries)) {
mtrace("... used " . ($PERF->dbqueries - $pre_dbqueries) . " dbqueries");
mtrace("... used " . round(microtime(true) - $pre_time, 2) . " seconds");
}
mtrace('done.');
}
}
mtrace('Finished admin reports');
if (!empty($CFG->langcache)) {
mtrace('Updating languages cache');
get_list_of_languages();
get_list_of_languages(true);
}
mtrace('Removing expired enrolments ...', ''); // See MDL-8785
$timenow = time();
$somefound = false;
// The preferred way saves memory, dmllib.php
// find courses where limited enrolment is enabled
global $CFG;
$rs_enrol = get_recordset_sql("SELECT ra.roleid, ra.userid, ra.contextid
FROM {$CFG->prefix}course c
INNER JOIN {$CFG->prefix}context cx ON cx.instanceid = c.id
INNER JOIN {$CFG->prefix}role_assignments ra ON ra.contextid = cx.id
WHERE cx.contextlevel = '".CONTEXT_COURSE."'
AND ra.timeend > 0
AND ra.timeend < '$timenow'
AND c.enrolperiod > 0
");
while ($oldenrolment = rs_fetch_next_record($rs_enrol)) {
role_unassign($oldenrolment->roleid, $oldenrolment->userid, 0, $oldenrolment->contextid);
$somefound = true;
}
rs_close($rs_enrol);
if($somefound) {
mtrace('Done');
} else {
mtrace('none found');
}
mtrace('Starting main gradebook job ...');
grade_cron();
mtrace('done.');
/// Run all core cron jobs, but not every time since they aren't too important.
/// These don't have a timer to reduce load, so we'll use a random number
@@ -154,73 +237,107 @@
/// Unenrol users who haven't logged in for $CFG->longtimenosee
if ($CFG->longtimenosee) { // value in days
$longtime = $timenow - ($CFG->longtimenosee * 3600 * 24);
if ($assigns = get_users_longtimenosee($longtime)) {
foreach ($assigns as $assign) {
if ($context = get_context_instance(CONTEXT_COURSE, $assign->courseid)) {
if (role_unassign(0, $assign->id, 0, $context->id)) {
mtrace("Deleted assignment for user $assign->id from course $assign->courseid");
}
$cuttime = $timenow - ($CFG->longtimenosee * 3600 * 24);
$rs = get_recordset_sql ("SELECT id, userid, courseid
FROM {$CFG->prefix}user_lastaccess
WHERE courseid != ".SITEID."
AND timeaccess < $cuttime ");
while ($assign = rs_fetch_next_record($rs)) {
if ($context = get_context_instance(CONTEXT_COURSE, $assign->courseid)) {
if (role_unassign(0, $assign->userid, 0, $context->id)) {
mtrace("removing user $assign->userid from course $assign->courseid as they have not accessed the course for over $CFG->longtimenosee days");
}
}
}
}
/// Delete users who haven't confirmed within required period
if (!empty($CFG->deleteunconfirmed)) {
$oneweek = $timenow - ($CFG->deleteunconfirmed * 3600);
if ($users = get_users_unconfirmed($oneweek)) {
foreach ($users as $user) {
if (delete_records('user', 'id', $user->id)) {
mtrace("Deleted unconfirmed user for ".fullname($user, true)." ($user->id)");
rs_close($rs);
/// Execute the same query again, looking for remaining records and deleting them
/// if the user hasn't moodle/course:view in the CONTEXT_COURSE context (orphan records)
$rs = get_recordset_sql ("SELECT id, userid, courseid
FROM {$CFG->prefix}user_lastaccess
WHERE courseid != ".SITEID."
AND timeaccess < $cuttime ");
while ($assign = rs_fetch_next_record($rs)) {
if ($context = get_context_instance(CONTEXT_COURSE, $assign->courseid)) {
if (!has_capability('moodle/course:view', $context, $assign->userid)) {
delete_records('user_lastaccess', 'userid', $assign->userid, 'courseid', $assign->courseid);
mtrace("Deleted orphan user_lastaccess for user $assign->userid from course $assign->courseid");
}
}
}
rs_close($rs);
}
flush();
/// Delete users who haven't confirmed within required period
if (!empty($CFG->deleteunconfirmed)) {
$cuttime = $timenow - ($CFG->deleteunconfirmed * 3600);
$rs = get_recordset_sql ("SELECT id, firstname, lastname
FROM {$CFG->prefix}user
WHERE confirmed = 0
AND firstaccess > 0
AND firstaccess < $cuttime");
while ($user = rs_fetch_next_record($rs)) {
if (delete_records('user', 'id', $user->id)) {
mtrace("Deleted unconfirmed user for ".fullname($user, true)." ($user->id)");
}
}
rs_close($rs);
}
flush();
/// Delete users who haven't completed profile within required period
if (!empty($CFG->deleteunconfirmed)) {
$oneweek = $timenow - ($CFG->deleteunconfirmed * 3600);
if ($users = get_users_not_fully_set_up($oneweek)) {
foreach ($users as $user) {
if (delete_records('user', 'id', $user->id)) {
mtrace("Deleted not fully setup user $user->username ($user->id)");
}
if (!empty($CFG->deleteincompleteusers)) {
$cuttime = $timenow - ($CFG->deleteincompleteusers * 3600);
$rs = get_recordset_sql ("SELECT id, username
FROM {$CFG->prefix}user
WHERE confirmed = 1
AND lastaccess > 0
AND lastaccess < $cuttime
AND deleted = 0
AND (lastname = '' OR firstname = '' OR email = '')");
while ($user = rs_fetch_next_record($rs)) {
if (delete_user($user)) {
mtrace("Deleted not fully setup user $user->username ($user->id)");
}
}
rs_close($rs);
}
flush();
/// Delete old logs to save space (this might need a timer to slow it down...)
if (!empty($CFG->loglifetime)) { // value in days
$loglifetime = $timenow - ($CFG->loglifetime * 3600 * 24);
if (delete_records_select("log", "time < '$loglifetime'")) {
mtrace("Deleted old log records");
}
}
flush();
/// Delete old logs to save space (this might need a timer to slow it down...)
if (!empty($CFG->loglifetime)) { // value in days
$loglifetime = $timenow - ($CFG->loglifetime * 3600 * 24);
delete_records_select("log", "time < '$loglifetime'");
}
flush();
/// Delete old cached texts
if (!empty($CFG->cachetext)) { // Defined in config.php
$cachelifetime = time() - $CFG->cachetext - 60; // Add an extra minute to allow for really heavy sites
delete_records_select('cache_text', "timemodified < '$cachelifetime'");
if (delete_records_select('cache_text', "timemodified < '$cachelifetime'")) {
mtrace("Deleted old cache_text records");
}
}
flush();
if (!empty($CFG->notifyloginfailures)) {
notify_login_failures();
mtrace('Notified login failured');
}
flush();
sync_metacourses();
mtrace('Synchronised metacourses');
//
// generate new password emails for users
@@ -246,6 +363,24 @@
}
}
}
if (!empty($CFG->usetags)) {
require_once($CFG->dirroot.'/tag/lib.php');
tag_cron();
mtrace ('Executed tag cron');
}
// Accesslib stuff
cleanup_contexts();
mtrace ('Cleaned up contexts');
gc_cache_flags();
mtrace ('Cleaned cache flags');
// If you suspect that the context paths are somehow corrupt
// replace the line below with: build_context_path(true);
build_context_path();
mtrace ('Built context paths');
mtrace("Finished clean-up tasks...");
} // End of occasional clean-up tasks
@@ -254,7 +389,7 @@
//Execute backup's cron
//Perhaps a long time and memory could help in large sites
@set_time_limit(0);
@raise_memory_limit("196M");
@raise_memory_limit("192M");
if (function_exists('apache_child_terminate')) {
// if we are running from Apache, give httpd a hint that
// it can recycle the process after it's done. Apache's
@@ -307,9 +442,8 @@
}
/// Run the auth cron, if any
if (!($auths = explode(',', $CFG->auth_plugins_enabled))) {
$auths = array($user->auth);
}
$auths = get_enabled_auth_plugins();
mtrace("Running auth crons if required...");
foreach ($auths as $auth) {
$authplugin = get_auth_plugin($auth);
@@ -324,50 +458,75 @@
}
if (!empty($CFG->enablestats) and empty($CFG->disablestatsprocessing)) {
require_once($CFG->dirroot.'/lib/statslib.php');
// check we're not before our runtime
$timetocheck = strtotime("$CFG->statsruntimestarthour:$CFG->statsruntimestartminute today");
$timetocheck = stats_get_base_daily() + $CFG->statsruntimestarthour*60*60 + $CFG->statsruntimestartminute*60;
if (time() > $timetocheck) {
$time = 60*60*20; // set it to 20 here for first run... (overridden by $CFG)
$clobber = true;
if (!empty($CFG->statsmaxruntime)) {
$time = $CFG->statsmaxruntime+(60*30); // add on half an hour just to make sure (it could take that long to break out of the loop)
}
if (!get_field_sql('SELECT id FROM '.$CFG->prefix.'stats_daily')) {
// first run, set another lock. we'll check for this in subsequent runs to set the timeout to later for the normal lock.
set_cron_lock('statsfirstrunlock',true,$time,true);
$firsttime = true;
}
$time = 60*60*2; // this time set to 2.. (overridden by $CFG)
if (!empty($CFG->statsmaxruntime)) {
$time = $CFG->statsmaxruntime+(60*30); // add on half an hour to make sure (it could take that long to break out of the loop)
}
if ($config = get_record('config','name','statsfirstrunlock')) {
if (!empty($config->value)) {
$clobber = false; // if we're on the first run, just don't clobber it.
// process configured number of days as max (defaulting to 31)
$maxdays = empty($CFG->statsruntimedays) ? 31 : abs($CFG->statsruntimedays);
if (stats_cron_daily($maxdays)) {
if (stats_cron_weekly()) {
if (stats_cron_monthly()) {
stats_clean_old();
}
}
}
if (set_cron_lock('statsrunning',true,$time, $clobber)) {
require_once($CFG->dirroot.'/lib/statslib.php');
$return = stats_cron_daily();
if (stats_check_runtime() && $return == STATS_RUN_COMPLETE) {
stats_cron_weekly();
@set_time_limit(0);
} else {
mtrace('Next stats run after:'. userdate($timetocheck));
}
}
// run gradebook import/export/report cron
if ($gradeimports = get_list_of_plugins('grade/import')) {
foreach ($gradeimports as $gradeimport) {
if (file_exists($CFG->dirroot.'/grade/import/'.$gradeimport.'/lib.php')) {
require_once($CFG->dirroot.'/grade/import/'.$gradeimport.'/lib.php');
$cron_function = 'grade_import_'.$gradeimport.'_cron';
if (function_exists($cron_function)) {
mtrace("Processing gradebook import function $cron_function ...", '');
$cron_function;
}
if (stats_check_runtime() && $return == STATS_RUN_COMPLETE) {
$return = $return && stats_cron_monthly();
}
if (stats_check_runtime() && $return == STATS_RUN_COMPLETE) {
stats_clean_old();
}
set_cron_lock('statsrunning',false);
if (!empty($firsttime)) {
set_cron_lock('statsfirstrunlock',false);
}
}
}
if ($gradeexports = get_list_of_plugins('grade/export')) {
foreach ($gradeexports as $gradeexport) {
if (file_exists($CFG->dirroot.'/grade/export/'.$gradeexport.'/lib.php')) {
require_once($CFG->dirroot.'/grade/export/'.$gradeexport.'/lib.php');
$cron_function = 'grade_export_'.$gradeexport.'_cron';
if (function_exists($cron_function)) {
mtrace("Processing gradebook export function $cron_function ...", '');
$cron_function;
}
}
}
}
if ($gradereports = get_list_of_plugins('grade/report')) {
foreach ($gradereports as $gradereport) {
if (file_exists($CFG->dirroot.'/grade/report/'.$gradereport.'/lib.php')) {
require_once($CFG->dirroot.'/grade/report/'.$gradereport.'/lib.php');
$cron_function = 'grade_report_'.$gradereport.'_cron';
if (function_exists($cron_function)) {
mtrace("Processing gradebook report function $cron_function ...", '');
$cron_function;
}
}
}
}
// run any customized cronjobs, if any
// looking for functions in lib/local/cron.php
if (file_exists($CFG->dirroot.'/local/cron.php')) {
mtrace('Processing customized cron script ...', '');
include_once($CFG->dirroot.'/local/cron.php');
mtrace('done.');
}
//Unset session variables and destroy it
@session_unset();
@session_destroy();
@@ -377,7 +536,7 @@
$difftime = microtime_diff($starttime, microtime());
mtrace("Execution took ".$difftime." seconds");
/// finishe the IE hack
/// finish the IE hack
if (check_browser_version('MSIE')) {
echo "</xmp>";
}
+5 -3
View File
@@ -12,15 +12,17 @@
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
$strdatabaseperformance = get_string("databaseperformance");
$stradministration = get_string("administration");
$site = get_site();
$navigation = build_navigation(array(
array('name'=>$stradministration, 'link'=>'index.php', 'type'=>'misc'),
array('name'=>$strdatabaseperformance, 'link'=>null, 'type'=>'misc')));
if (!empty($topframe)) {
print_header("$site->shortname: $strdatabaseperformance", "$site->fullname",
"<a $CFG->frametarget href=\"index.php\">$stradministration</a> -> Database performance");
print_header("$site->shortname: $strdatabaseperformance", "$site->fullname", $navigation);
exit;
}
+8 -8
View File
@@ -5,26 +5,26 @@
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('purgemoodledata', $adminroot);
admin_externalpage_setup('purgemoodledata');
require_login();
$sure = optional_param('sure', 0, PARAM_BOOL);
$reallysure = optional_param('reallysure', 0, PARAM_BOOL);
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
$deletedir = $CFG->dataroot; // The directory to delete!
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_heading('Purge moodledata');
if (empty($sure)) {
$optionsyes = array('sure'=>'yes', 'sesskey'=>sesskey());
notice_yesno ('Are you completely sure you want to delete everything inside the directory '. $deletedir .' ?',
'delete.php', 'index.php', $optionsyes, NULL, 'post', 'get');
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
exit;
}
@@ -32,7 +32,7 @@
$optionsyes = array('sure'=>'yes', 'sesskey'=>sesskey(), 'reallysure'=>'yes');
notice_yesno ('Are you REALLY REALLY completely sure you want to delete everything inside the directory '. $deletedir .' (this includes all user images, and any other course files that have been created) ?',
'delete.php', 'index.php', $optionsyes, NULL, 'post', 'get');
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
exit;
}
@@ -46,7 +46,7 @@
echo '<h1 align="center">Done!</h1>';
print_continue($CFG->wwwroot);
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
exit;
@@ -54,7 +54,7 @@ function delete_subdirectories($rootdir) {
$dir = opendir($rootdir);
while ($file = readdir($dir)) {
while (false !== ($file = readdir($dir))) {
if ($file != '.' and $file != '..') {
$fullfile = $rootdir .'/'. $file;
if (filetype($fullfile) == 'dir') {
+45 -8
View File
@@ -5,21 +5,25 @@
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$enrol = optional_param('enrol', $CFG->enrol, PARAM_SAFEDIR);
$enrol = optional_param('enrol', $CFG->enrol, PARAM_SAFEDIR);
$savesettings = optional_param('savesettings', 0, PARAM_BOOL);
$CFG->pagepath = 'enrol';
$adminroot = admin_get_root();
admin_externalpage_setup('enrolment', $adminroot);
admin_externalpage_setup('enrolment');
if (!isset($CFG->sendcoursewelcomemessage)) {
set_config('sendcoursewelcomemessage', 1);
}
require_once("$CFG->dirroot/enrol/enrol.class.php"); /// Open the factory class
/// Save settings
if ($frm = data_submitted()) {
if ($frm = data_submitted() and !$savesettings) {
if (!confirm_sesskey()) {
error(get_string('confirmsesskeybad', 'error'));
print_error('confirmsesskeybad', 'error');
}
if (empty($frm->enable)) {
$frm->enable = array();
@@ -35,13 +39,19 @@
set_config('enrol_plugins_enabled', implode(',', $frm->enable));
set_config('enrol', $frm->default);
redirect("enrol.php", get_string("changessaved"), 1);
} else if ($frm = data_submitted() and $savesettings) {
if (!confirm_sesskey()) {
print_error('confirmsesskeybad', 'error');
}
set_config('sendcoursewelcomemessage', required_param('sendcoursewelcomemessage', PARAM_BOOL));
}
/// Print the form
$str = get_strings(array('enrolmentplugins', 'users', 'administration', 'settings', 'edit'));
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
$modules = get_list_of_plugins("enrol");
$options = array();
@@ -102,6 +112,33 @@
echo "</div>";
echo "</form>";
admin_externalpage_print_footer($adminroot);
echo '<hr />';
?>
$yesnooptions = array(0=>get_string('no'), 1=>get_string('yes'));
echo '<form '.$CFG->frametarget.' id="adminsettings" method="post" action="enrol.php">';
echo '<div class="settingsform clearfix">';
print_heading(get_string('commonsettings', 'admin'));
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '<input type="hidden" name="savesettings" value="1" />';
echo '<fieldset>';
echo '<div class="form-item clearfix" id="admin-sendcoursewelcomemessage">';
echo '<div class="form-label"><label for = "menusendcoursewelcomemessage">' . get_string('sendcoursewelcomemessage', 'admin');
echo '<span class="form-shortname">sendcoursewelcomemessage</span>';
echo '</label></div>';
echo '<div class="form-setting"><div class="form-checkbox defaultsnext">';
choose_from_menu($yesnooptions, 'sendcoursewelcomemessage', $CFG->sendcoursewelcomemessage, '');
echo '</div><div class="form-defaultinfo">'.get_string('defaultsettinginfo', 'admin', get_string('yes')).'</div></div>';
echo '<div class="form-description">' . get_string('configsendcoursewelcomemessage', 'admin') . '</div>';
echo '</div>';
echo '</fieldset>';
echo '<div class="form-buttons"><input class="form-submit" type="submit" value="'.get_string('savechanges', 'admin').'" /></div>';
echo '</div>';
echo '</form>';
admin_externalpage_print_footer();
?>
+4 -5
View File
@@ -5,8 +5,7 @@
require_once("../config.php");
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('enrolment', $adminroot);
admin_externalpage_setup('enrolment');
$enrol = required_param('enrol', PARAM_ALPHA);
$CFG->pagepath = 'enrol/' . $enrol;
@@ -20,7 +19,7 @@
if ($frm = data_submitted()) {
if (!confirm_sesskey()) {
error(get_string('confirmsesskeybad', 'error'));
print_error('confirmsesskeybad', 'error');
}
if ($enrolment->process_config($frm)) {
redirect("enrol.php?sesskey=$USER->sesskey", get_string("changessaved"), 1);
@@ -42,7 +41,7 @@
}
asort($options);
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
echo "<form $CFG->frametarget id=\"enrolmenu\" method=\"post\" action=\"enrol_config.php\">";
echo "<div>";
@@ -66,7 +65,7 @@
echo "</div>";
echo "</form>";
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
exit;
?>
+9 -10
View File
@@ -7,7 +7,7 @@
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 2001-3001 Martin Dougiamas http://dougiamas.com //
// Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com //
// (C) 2001-3001 Eloy Lafuente (stronk7) http://contiento.com //
// //
// This program is free software; you can redistribute it and/or modify //
@@ -34,8 +34,7 @@
require_once($CFG->libdir.'/environmentlib.php');
require_once($CFG->libdir.'/componentlib.class.php');
$adminroot = admin_get_root();
admin_externalpage_setup('environment', $adminroot);
admin_externalpage_setup('environment');
/// Parameters
$action = optional_param('action', '', PARAM_ACTION);
@@ -53,7 +52,7 @@
$strmisc = get_string('miscellaneous');
/// Print the header stuff
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
/// Print the component download link
echo '<div class="reportlink"><a href="environment.php?action=updatecomponent&amp;sesskey='.$USER->sesskey.'">'.$strupdate.'</a></div>';
@@ -66,10 +65,10 @@
if ($cd = new component_installer('http://download.moodle.org',
'environment',
'environment.zip')) {
$status = $cd->install(); //returns ERROR | UPTODATE | INSTALLED
$status = $cd->install(); //returns COMPONENT_(ERROR | UPTODATE | INSTALLED)
switch ($status) {
case ERROR:
if ($cd->get_error() == 'remotedownloadnotallowed') {
case COMPONENT_ERROR:
if ($cd->get_error() == 'remotedownloaderror') {
$a = new stdClass();
$a->url = 'http://download.moodle.org/environment/environment.zip';
$a->dest= $CFG->dataroot.'/';
@@ -78,10 +77,10 @@
print_simple_box(get_string($cd->get_error(), 'error'), 'center', '', '', 5, 'errorbox');
}
break;
case UPTODATE:
case COMPONENT_UPTODATE:
print_simple_box(get_string($cd->get_error(), 'error'), 'center');
break;
case INSTALLED:
case COMPONENT_INSTALLED:
print_simple_box(get_string('componentinstalled', 'admin'), 'center');
break;
}
@@ -133,5 +132,5 @@
$status = check_moodle_environment($version, $environment_results);
/// Print footer
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+160
View File
@@ -117,6 +117,166 @@
<ON_CHECK message="tokenizerrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlrpc" level="optional">
<FEEDBACK>
<ON_CHECK message="xmlrpcrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="ctype" level="optional">
<FEEDBACK>
<ON_CHECK message="ctyperecommended" />
</FEEDBACK>
</PHP_EXTENSION>
</PHP_EXTENSIONS>
</MOODLE>
<MOODLE version="1.9">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="4.1.16">
<FEEDBACK>
<ON_ERROR message="mysql416required" />
</FEEDBACK>
<BYPASS function="bypass_mysql416_reqs" message="mysql416bypassed" />
</VENDOR>
<VENDOR name="postgres" version="8.0" />
<VENDOR name="mssql" version="9.0" />
<VENDOR name="odbc_mssql" version="9.0" />
<VENDOR name="mssql_n" version="9.0" />
<VENDOR name="oracle" version="9.0" />
</DATABASE>
<PHP version="4.3.0" level="required">
<RESTRICT function="restrict_php50_version" message="php50restricted" />
</PHP>
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="optional">
<FEEDBACK>
<ON_CHECK message="iconvrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="optional">
<FEEDBACK>
<ON_CHECK message="mbstringrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="optional">
<FEEDBACK>
<ON_CHECK message="curlrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="optional">
<FEEDBACK>
<ON_CHECK message="opensslrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="tokenizer" level="optional">
<FEEDBACK>
<ON_CHECK message="tokenizerrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlrpc" level="optional">
<FEEDBACK>
<ON_CHECK message="xmlrpcrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="ctype" level="optional">
<FEEDBACK>
<ON_CHECK message="ctyperecommended" />
</FEEDBACK>
</PHP_EXTENSION>
</PHP_EXTENSIONS>
<CUSTOM_CHECKS>
<CUSTOM_CHECK file="question/upgrade.php" function="question_check_no_rqp_questions" level="optional">
<FEEDBACK>
<ON_CHECK message="qtyperqpwillberemovedanyway" />
<ON_OK message="qtyperqpwillberemoved" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="question/upgrade.php" function="question_random_check" level="optional">
<FEEDBACK>
<ON_OK message="questioncwqpfsok" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/customcheckslib.php" function="php_check_register_globals" level="required">
<FEEDBACK>
<ON_CHECK message="globalswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="2.0" requires="1.9">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="4.1.16">
<FEEDBACK>
<ON_ERROR message="mysql416required" />
</FEEDBACK>
<BYPASS function="bypass_mysql416_reqs" message="mysql416bypassed" />
</VENDOR>
<VENDOR name="postgres" version="8.0" />
<VENDOR name="mssql" version="9.0" />
<VENDOR name="odbc_mssql" version="9.0" />
<VENDOR name="mssql_n" version="9.0" />
<VENDOR name="oracle" version="9.0" />
<VENDOR name="sqlite" version="2.0" />
</DATABASE>
<PHP version="5.2.4" level="required">
</PHP>
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="optional">
<FEEDBACK>
<ON_CHECK message="iconvrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="optional">
<FEEDBACK>
<ON_CHECK message="mbstringrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_CHECK message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="optional">
<FEEDBACK>
<ON_CHECK message="opensslrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="tokenizer" level="optional">
<FEEDBACK>
<ON_CHECK message="tokenizerrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlrpc" level="optional">
<FEEDBACK>
<ON_CHECK message="xmlrpcrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="ctype" level="required">
<FEEDBACK>
<ON_ERROR message="ctyperequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zip" level="required">
<FEEDBACK>
<ON_ERROR message="ziprequired" />
</FEEDBACK>
</PHP_EXTENSION>
</PHP_EXTENSIONS>
<CUSTOM_CHECKS>
<CUSTOM_CHECK file="lib/customcheckslib.php" function="php_check_register_globals" level="required">
<FEEDBACK>
<ON_CHECK message="globalswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
</COMPATIBILITY_MATRIX>
+18 -26
View File
@@ -6,21 +6,15 @@
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/tablelib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('managefilters', $adminroot);
$filterfull = required_param('filter', PARAM_PATH);
$forcereset = optional_param('reset', 0, PARAM_BOOL);
// get parameters
$param = new Object;
$filtername = substr($filterfull, strpos( $filterfull, '/' )+1 ) ;
$param->filter = required_param('filter', PARAM_PATH);
$param->submit = optional_param('submit', 0, PARAM_BOOL);
$param->reset = optional_param('reset', 0, PARAM_BOOL);
admin_externalpage_setup('filtersetting'.str_replace('/', '', $filterfull));
$filtername = substr($param->filter, strpos( $param->filter, '/' )+1 ) ;
$returnurl = "$CFG->wwwroot/$CFG->admin/settings.php?section=managefilters";
// $CFG->pagepath is used to generate the body and id attributes for the body tag
// of the page. It is also used to generate the link to the Moodle Docs for this view.
$CFG->pagepath = 'filter/' . $filtername . '/config';
// get translated strings for use on page
$txt = new Object;
@@ -33,12 +27,7 @@
//======================
// if reset pressed let filter config page handle it
$forcereset = false;
if (!empty($param->reset)) {
$forcereset = true;
}
else
if ($config = data_submitted()) {
if ($config = data_submitted() and !$forcereset) {
// check session key
if (!confirm_sesskey()) {
@@ -59,10 +48,13 @@
// run through submitted data
// reject if does not start with filter_
foreach ($config as $name => $value) {
set_config( $name,$value );
set_config($name, stripslashes($value));
}
}
redirect( "$CFG->wwwroot/$CFG->admin/filters.php", get_string('changessaved'), 1);
reset_text_filters_cache();
redirect($returnurl);
exit;
}
@@ -71,28 +63,28 @@
//==============================
$filtername = ucfirst($filtername);
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_heading( $filtername );
print_simple_box("<center>".get_string("configwarning", "admin")."</center>", "center", "50%");
print_simple_box(get_string("configwarning", "admin"), "center", "50%");
echo "<br />";
print_simple_box_start("center",'');
?>
<form action="filter.php?filter=<?php echo urlencode($param->filter); ?>" method="post">
<form action="filter.php?filter=<?php echo urlencode($filterfull); ?>" method="post">
<div style="text-align: center">
<input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
<?php include "$CFG->dirroot/$param->filter/filterconfig.html"; ?>
<?php include "$CFG->dirroot/$filterfull/filterconfig.html"; ?>
<center>
<input type="submit" name="submit" value="<?php print_string('savechanges'); ?>" />
<input type="submit" name="reset" value="<?php echo print_string('resettodefaults'); ?>" />
</center>
</div>
</form>
<?php
print_simple_box_end();
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+41 -221
View File
@@ -1,136 +1,73 @@
<?php // $Id$
// filters.php
// Edit list of available text filters
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/tablelib.php');
// defines
define('FILTER_TABLE','filter_administration_table');
$action = optional_param('action', '', PARAM_ACTION);
$filterpath = optional_param('filterpath', '', PARAM_PATH);
$adminroot = admin_get_root();
admin_externalpage_setup('managefilters', $adminroot);
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
// get values from page
$params = new object();
$params->action = optional_param('action', '', PARAM_ACTION);
$params->filterpath = optional_param('filterpath', '', PARAM_PATH);
$params->cachetext = optional_param('cachetext', 0, PARAM_INT);
$params->filterall = optional_param('filterall', 0, PARAM_BOOL);
$params->filteruploadedfiles = optional_param('filteruploadedfiles', 0, PARAM_INT);
$params->filtermatchoneperpage = optional_param('filtermatchoneperpage', 0, PARAM_BOOL);
$params->filtermatchonepertext = optional_param('filtermatchonepertext', 0, PARAM_BOOL);
$returnurl = "$CFG->wwwroot/$CFG->admin/settings.php?section=managefilters";
// some basic information
$url = 'filters.php';
$myurl = "$url?sesskey=" . sesskey();
$img = "$CFG->pixpath/t";
if (!confirm_sesskey()) {
redirect($returnurl);
}
// get translated strings for use on page
$txt = new object();
$txt->managefilters = get_string('managefilters');
$txt->administration = get_string('administration');
$txt->configuration = get_string('configuration');
$txt->name = get_string('name');
$txt->hide = get_string('hide');
$txt->show = get_string('show');
$txt->hideshow = "$txt->hide/$txt->show";
$txt->settings = get_string('settings');
$txt->up = get_string('up');
$txt->down = get_string('down');
$txt->updown = "$txt->up/$txt->down";
$txt->cachetext = get_string('cachetext', 'admin');
$txt->configcachetext = get_string('configcachetext', 'admin');
$txt->filteruploadedfiles = get_string('filteruploadedfiles','admin');
$txt->configfilteruploadedfiles = get_string('configfilteruploadedfiles','admin');
$txt->filterall = get_string('filterall','admin');
$txt->filtermatchoneperpage = get_string('filtermatchoneperpage','admin');
$txt->filtermatchonepertext = get_string('filtermatchonepertext','admin');
$txt->configfilterall = get_string('configfilterall','admin');
$txt->configfiltermatchoneperpage = get_string('configfiltermatchoneperpage','admin');
$txt->configfiltermatchonepertext = get_string('configfiltermatchonepertext','admin');
$txt->cachecontrols = get_string('cachecontrols');
$txt->yes = get_string('yes');
$txt->no = get_string('no');
$txt->none = get_string('none');
$txt->allfiles = get_string('allfiles');
$txt->htmlfilesonly = get_string('htmlfilesonly');
// get a list of possible filters (and translate name if possible)
// note filters can be in the dedicated filters area OR in their
// associated modules
// get a list of installed filters
$installedfilters = array();
$filtersettings = array();
$filterlocations = array('mod','filter');
foreach ($filterlocations as $filterlocation) {
$plugins = get_list_of_plugins($filterlocation);
foreach ($plugins as $plugin) {
$pluginpath = "$CFG->dirroot/$filterlocation/$plugin/filter.php";
$settingspath = "$CFG->dirroot/$filterlocation/$plugin/filterconfig.html";
if (is_readable($pluginpath)) {
$name = trim(get_string("filtername", $plugin));
if (empty($name) or ($name == '[[filtername]]')) {
$name = ucfirst($plugin);
}
$installedfilters["$filterlocation/$plugin"] = $name;
if (is_readable($settingspath)) {
$filtersettings[] = "$filterlocation/$plugin";
}
$installedfilters["$filterlocation/$plugin"] = "$filterlocation/$plugin";
}
}
}
// get all the currently selected filters
if (!empty($CFG->textfilters)) {
$oldactivefilters = explode(',', $CFG->textfilters);
$oldactivefilters = array_unique($oldactivefilters);
$activefilters = explode(',', $CFG->textfilters);
} else {
$oldactivefilters = array();
}
// take this opportunity to clean up filters
$activefilters = array();
foreach ($oldactivefilters as $oldactivefilter) {
if (!empty($oldactivefilter) and array_key_exists($oldactivefilter, $installedfilters)) {
$activefilters[] = $oldactivefilter;
}
$activefilters = array();
}
//======================
// Process Actions
//======================
if ($params->action=="") {
// store cleaned active filers in db
set_config('textfilters', implode(',', $activefilters));
} elseif (($params->action=="hide") and confirm_sesskey()) {
$key=array_search($params->filterpath, $activefilters);
switch ($action) {
case 'hide':
$key=array_search($filterpath, $activefilters);
// check filterpath is valid
if ($key===false) {
// ignore it - doubleclick??
} else {
// just delete it
unset($activefilters[$key]);
set_config('textfilters', implode(',', $activefilters));
break;
}
} elseif (($params->action=="show") and confirm_sesskey()) {
// just delete it
unset($activefilters[$key]);
break;
case 'show':
// check filterpath is valid
if (!array_key_exists($params->filterpath, $installedfilters)) {
error("Filter $params->filterpath is not currently installed", $url);
} elseif (array_search($params->filterpath,$activefilters)) {
if (!array_key_exists($filterpath, $installedfilters)) {
error("Filter $filterpath is not currently installed", $url);
} elseif (array_search($filterpath,$activefilters)) {
// filterpath is already active - doubleclick??
} else {
// add it to installed filters
$activefilters[] = $params->filterpath;
$activefilters[] = $filterpath;
$activefilters = array_unique($activefilters);
set_config('textfilters', implode(',', $activefilters));
}
} elseif (($params->action=="down") and confirm_sesskey()) {
$key=array_search($params->filterpath, $activefilters);
break;
case 'down':
$key=array_search($filterpath, $activefilters);
// check filterpath is valid
if ($key===false) {
error("Filter $params->filterpath is not currently active", $url);
error("Filter $filterpath is not currently active", $url);
} elseif ($key>=(count($activefilters)-1)) {
// cannot be moved any further down - doubleclick??
} else {
@@ -138,13 +75,14 @@
$fsave = $activefilters[$key];
$activefilters[$key] = $activefilters[$key+1];
$activefilters[$key+1] = $fsave;
set_config('textfilters', implode(',', $activefilters));
}
} elseif (($params->action=="up") and confirm_sesskey()) {
$key=array_search($params->filterpath, $activefilters);
break;
case 'up':
$key=array_search($filterpath, $activefilters);
// check filterpath is valid
if ($key===false) {
error("Filter $params->filterpath is not currently active", $url);
error("Filter $filterpath is not currently active", $url);
} elseif ($key<1) {
//cannot be moved any further up - doubleclick??
} else {
@@ -152,131 +90,13 @@
$fsave = $activefilters[$key];
$activefilters[$key] = $activefilters[$key-1];
$activefilters[$key-1] = $fsave;
set_config('textfilters', implode(',', $activefilters));
}
} elseif (($params->action=="config") and confirm_sesskey()) {
set_config('cachetext', $params->cachetext);
set_config('filteruploadedfiles', $params->filteruploadedfiles);
set_config('filterall', $params->filterall);
set_config('filtermatchoneperpage', $params->filtermatchoneperpage);
set_config('filtermatchonepertext', $params->filtermatchonepertext);
break;
}
//======================
// Build Display Objects
//======================
// construct the display array with installed filters
// at the top in the right order
$displayfilters = array();
foreach ($activefilters as $activefilter) {
$name = $installedfilters[$activefilter];
$displayfilters[$activefilter] = $name;
}
foreach ($installedfilters as $key => $filter) {
if (!array_key_exists($key, $displayfilters)) {
$displayfilters[$key] = $filter;
}
}
// construct the flexible table ready to display
$table = new flexible_table(FILTER_TABLE);
$table->define_columns(array('name', 'hideshow', 'order', 'settings'));
$table->column_style('hideshow', 'text-align', 'center');
$table->column_style('order', 'text-align', 'center');
$table->column_style('settings', 'text-align', 'center');
$table->define_headers(array($txt->name, $txt->hideshow, $txt->updown, $txt->settings));
$table->define_baseurl("$CFG->wwwroot/$CFG->admin/filters.php");
$table->set_attribute('id', 'blocks');
$table->set_attribute('class', 'flexible generaltable generalbox');
$table->set_attribute('style', 'margin:auto;');
$table->set_attribute('cellpadding', '5');
$table->setup();
// iterate through filters adding to display table
$updowncount = 1;
$activefilterscount = count($activefilters);
foreach ($displayfilters as $path => $name) {
$upath = urlencode($path);
// get hide/show link
if (in_array($path, $activefilters)) {
$hideshow = "<a href=\"$myurl&amp;action=hide&amp;filterpath=$upath\">";
$hideshow .= "<img src=\"{$CFG->pixpath}/i/hide.gif\" class=\"icon\" alt=\"$txt->hide\" /></a>";
$hidden = false;
$displayname = "<span>$name</span>";
}
else {
$hideshow = "<a href=\"$myurl&amp;action=show&amp;filterpath=$upath\">";
$hideshow .= "<img src=\"{$CFG->pixpath}/i/show.gif\" class=\"icon\" alt=\"$txt->show\" /></a>";
$hidden = true;
$displayname = "<span class=\"dimmed_text\">$name</span>";
}
// get up/down link (only if not hidden)
$updown = '';
if (!$hidden) {
if ($updowncount>1) {
$updown .= "<a href=\"$myurl&amp;action=up&amp;filterpath=$upath\">";
$updown .= "<img src=\"$img/up.gif\" alt=\"$txt->up\" /></a>&nbsp;";
}
else {
$updown .= "<img src=\"$CFG->pixpath/spacer.gif\" class=\"icon\" alt=\"\" />&nbsp;";
}
if ($updowncount<$activefilterscount) {
$updown .= "<a href=\"$myurl&amp;action=down&amp;filterpath=$upath\">";
$updown .= "<img src=\"$img/down.gif\" alt=\"$txt->down\" /></a>";
}
else {
$updown .= "<img src=\"$CFG->pixpath/spacer.gif\" class=\"icon\" alt=\"\" />";
}
++$updowncount;
}
// settings link (if defined)
$settings = '';
if (in_array($path, $filtersettings)) {
$settings = "<a href=\"filter.php?filter=" . urlencode($path) . "\">";
$settings .= "{$txt->settings}</a>";
}
// write data into the table object
$table->add_data(array($displayname, $hideshow, $updown, $settings));
}
// build options list for cache lifetime
$seconds = array(604800,86400,43200,10800,7200,3600,2700,1800,900,600,540,480,420,360,300,240,180,120,60,30,0);
unset($lifetimeoptions);
foreach ($seconds as $second) {
if ($second>=86400) {
$options[$second] = get_string('numdays','',$second/86400);
}
elseif ($second>=3600) {
$options[$second] = get_string('numhours','',$second/3600);
}
elseif ($second>=60) {
$options[$second] = get_string('numminutes','',$second/60);
}
elseif ($second>=1) {
$options[$second] = get_string('numseconds','',$second);
}
else {
$options[$second] = get_string('no');
}
}
//==============================
// Display logic
//==============================
admin_externalpage_print_header($adminroot);
print_heading_with_help($txt->managefilters, 'filters');
// print the table of all the filters
$table->print_html();
// cache control table has been removed
admin_externalpage_print_footer($adminroot);
// save, reset cache and return
set_config('textfilters', implode(',', $activefilters));
reset_text_filters_cache();
redirect($returnurl);
?>
+2 -2
View File
@@ -40,7 +40,7 @@ while(!feof($fd)) {
$user = get_record("user","id",$log->userid);
$course = get_record("course","id",$log->course);
$subject = get_string('virusfoundsubject','moodle',$site->fullname);
$subject = get_string('virusfoundsubject','moodle',format_string($site->fullname));
$a->date = userdate($log->time);
$a->action = $action;
@@ -78,7 +78,7 @@ function notify_admins_unknown($file,$a) {
global $site;
$admins = get_admins();
$subject = get_string('virusfoundsubject','moodle',$site->fullname);
$subject = get_string('virusfoundsubject','moodle',format_string($site->fullname));
$body = get_string('virusfoundlateradminnolog','moodle',$a);
foreach ($admins as $admin) {
email_to_user($admin,$admin,$subject,$body);
+295 -6
View File
@@ -13,8 +13,8 @@
}
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('healthcenter', $adminroot);
admin_externalpage_setup('healthcenter');
define('SEVERITY_NOTICE', 'notice');
define('SEVERITY_ANNOYANCE', 'annoyance');
@@ -24,11 +24,11 @@
$solution = optional_param('solution', 0, PARAM_SAFEDIR); //in fact it is class name alhanumeric and _
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
$site = get_site();
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
echo <<<STYLES
<style type="text/css">
@@ -100,7 +100,7 @@ STYLES;
}
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
function health_find_problems() {
@@ -525,11 +525,300 @@ class problem_000011 extends problem_base {
}
return 'Error counter was cleared.';
} else {
return '<p>Session errors can be caused by:<ul><li>unresolved problem in server software (aka random switching of users),</li><li>blocked or modified cookies,</li><li>deleting of active session files.</li></ul></p><p><a href="'.me().'&resetsesserrorcounter=1">Reset counter.</a></p>';
return '<p>Session errors can be caused by:</p><ul>' .
'<li>unresolved problem in server software (aka random switching of users),</li>' .
'<li>blocked or modified cookies,</li>' .
'<li>deleting of active session files.</li>' .
'</ul><p><a href="'.me().'&amp;resetsesserrorcounter=1">Reset counter</a></p>';
}
}
}
class problem_000012 extends problem_base {
function title() {
return 'Random questions data consistency';
}
function exists() {
return record_exists_select('question', "qtype = 'random' AND parent <> id");
}
function severity() {
return SEVERITY_ANNOYANCE;
}
function description() {
return '<p>For random questions, question.parent should equal question.id. ' .
'There are some questions in your database for which this is not true. ' .
'One way that this could have happened is for random questions restored from backup before ' .
'<a href="http://tracker.moodle.org/browse/MDL-5482">MDL-5482</a> was fixed.</p>';
}
function solution() {
global $CFG;
return '<p>Upgrade to Moodle 1.9.1 or later, or manually execute the SQL</p>' .
'<pre>UPDATE ' . $CFG->prefix . 'question SET parent = id WHERE qtype = \'random\' and parent &lt;> id;</pre>';
}
}
class problem_000013 extends problem_base {
function title() {
return 'Multi-answer questions data consistency';
}
function exists() {
global $CFG;
$positionexpr = sql_position(sql_concat("','", "q.id", "','"),
sql_concat("','", "qma.sequence", "','"));
return record_exists_sql("
SELECT * FROM {$CFG->prefix}question q
JOIN {$CFG->prefix}question_multianswer qma ON $positionexpr > 0
WHERE qma.question <> q.parent") ||
record_exists_sql("
SELECT * FROM {$CFG->prefix}question q
JOIN {$CFG->prefix}question parent_q ON parent_q.id = q.parent
WHERE q.category <> parent_q.category");
}
function severity() {
return SEVERITY_ANNOYANCE;
}
function description() {
return '<p>For each sub-question whose id is listed in ' .
'question_multianswer.sequence, its question.parent field should equal ' .
'question_multianswer.question; and each sub-question should be in the same ' .
'category as its parent. There are questions in your database for ' .
'which this is not the case. One way that this could have happened is ' .
'for multi-answer questions restored from backup before ' .
'<a href="http://tracker.moodle.org/browse/MDL-14750">MDL-14750</a> was fixed.</p>';
}
function solution() {
return '<p>Upgrade to Moodle 1.9.1 or later, or manually execute the ' .
'code in question_multianswer_fix_subquestion_parents_and_categories in ' .
'<a href="http://cvs.moodle.org/moodle/question/type/multianswer/db/upgrade.php?revision=1.1.10.2&amp;view=markup">/question/type/multianswer/db/upgrade.php' .
'from the 1.9 stable branch</a>.</p>';
}
}
class problem_000014 extends problem_base {
function title() {
return 'Only multianswer and random questions should be the parent of another question';
}
function exists() {
global $CFG;
return record_exists_sql("
SELECT * FROM {$CFG->prefix}question q
JOIN {$CFG->prefix}question parent_q ON parent_q.id = q.parent
WHERE parent_q.qtype NOT IN ('random', 'multianswer')");
}
function severity() {
return SEVERITY_ANNOYANCE;
}
function description() {
return '<p>You have questions that violate this in your databse. ' .
'You will need to investigate to determine how this happened.</p>';
}
function solution() {
return '<p>It is impossible to give a solution without knowing more about ' .
' how the problem was caused. You may be able to get help from the ' .
'<a href="http://moodle.org/mod/forum/view.php?f=121">Quiz forum</a>.</p>';
}
}
class problem_000015 extends problem_base {
function title() {
return 'Question categories should belong to a valid context';
}
function exists() {
global $CFG;
return record_exists_sql("
SELECT qc.*, (SELECT COUNT(1) FROM {$CFG->prefix}question q WHERE q.category = qc.id) AS numquestions
FROM {$CFG->prefix}question_categories qc
LEFT JOIN {$CFG->prefix}context con ON qc.contextid = con.id
WHERE con.id IS NULL");
}
function severity() {
return SEVERITY_ANNOYANCE;
}
function description() {
global $CFG;
$problemcategories = get_records_sql("
SELECT qc.id, qc.name, qc.contextid, (SELECT COUNT(1) FROM {$CFG->prefix}question q WHERE q.category = qc.id) AS numquestions
FROM {$CFG->prefix}question_categories qc
LEFT JOIN {$CFG->prefix}context con ON qc.contextid = con.id
WHERE con.id IS NULL
ORDER BY numquestions DESC, qc.name");
$table = '<table><thead><tr><th>Cat id</th><th>Category name</th>' .
"<th>Context id</th><th>Num Questions</th></tr></thead><tbody>\n";
if ($problemcategories) {
foreach ($problemcategories as $cat) {
$table .= "<tr><td>$cat->id</td><td>" . s($cat->name) . "</td><td>" .
$cat->contextid ."</td><td>$cat->numquestions</td></tr>\n";
}
}
$table .= '</tbody></table>';
return '<p>All question categories are linked to a context id, and, ' .
'the context they are linked to must exist. The following categories ' .
'belong to a non-existant category:</p>' . $table . '<p>Any of these ' .
'categories that contain no questions can just be deleted form the database. ' .
'Other categories will require more thought.</p>';
}
function solution() {
global $CFG;
return '<p>You can delete the empty categories by executing the following SQL:</p><pre>
DELETE FROM ' . $CFG->prefix . 'question_categories
WHERE
NOT EXISTS (SELECT * FROM ' . $CFG->prefix . 'question q WHERE q.category = ' . $CFG->prefix . 'question_categories.id)
AND NOT EXISTS (SELECT * FROM ' . $CFG->prefix . 'context con WHERE contextid = con.id)
</pre><p>Any remaining categories that contain questions will require more thought. ' .
'People in the <a href="http://moodle.org/mod/forum/view.php?f=121">Quiz forum</a> may be able to help.</p>';
}
}
class problem_000016 extends problem_base {
function title() {
return 'Question categories should belong to the same context as their parent';
}
function exists() {
global $CFG;
return record_exists_sql("
SELECT parent_qc.id AS parent, child_qc.id AS child, child_qc.contextid
FROM {$CFG->prefix}question_categories child_qc
JOIN {$CFG->prefix}question_categories parent_qc ON child_qc.parent = parent_qc.id
WHERE child_qc.contextid <> parent_qc.contextid");
}
function severity() {
return SEVERITY_ANNOYANCE;
}
function description() {
global $CFG;
$problemcategories = get_records_sql("
SELECT
parent_qc.id AS parentid, parent_qc.name AS parentname, parent_qc.contextid AS parentcon,
child_qc.id AS childid, child_qc.name AS childname, child_qc.contextid AS childcon
FROM {$CFG->prefix}question_categories child_qc
JOIN {$CFG->prefix}question_categories parent_qc ON child_qc.parent = parent_qc.id
WHERE child_qc.contextid <> parent_qc.contextid");
$table = '<table><thead><tr><th colspan="3">Child category</th><th colspan="3">Parent category</th></tr><tr>' .
'<th>Id</th><th>Name</th><th>Context id</th>' .
'<th>Id</th><th>Name</th><th>Context id</th>' .
"</tr></thead><tbody>\n";
if ($problemcategories) {
foreach ($problemcategories as $cat) {
$table .= "<tr><td>$cat->childid</td><td>" . s($cat->childname) .
"</td><td>$cat->childcon</td><td>$cat->parentid</td><td>" . s($cat->parentname) .
"</td><td>$cat->parentcon</td></tr>\n";
}
}
$table .= '</tbody></table>';
return '<p>When one question category is the parent of another, then they ' .
'should both belong to the same context. This is not true for the following categories:</p>' .
$table;
}
function solution() {
return '<p>An automated solution is difficult. It depends whether the ' .
'parent or child category is in the wrong pace.' .
'People in the <a href="http://moodle.org/mod/forum/view.php?f=121">Quiz forum</a> may be able to help.</p>';
}
}
class problem_000017 extends problem_base {
function title() {
return 'Question categories tree structure';
}
function find_problems() {
static $answer = null;
if (is_null($answer)) {
$categories = get_records('question_categories', '', '', 'id');
// Look for missing parents.
$missingparent = array();
foreach ($categories as $category) {
if ($category->parent != 0 && !array_key_exists($category->parent, $categories)) {
$missingparent[$category->id] = $category;
}
}
// Look for loops.
$loops = array();
while (!empty($categories)) {
$current = array_pop($categories);
$thisloop = array($current->id => $current);
while (true) {
if (isset($thisloop[$current->parent])) {
// Loop detected
$loops[$current->id] = $thisloop;
break;
} else if (!isset($categories[$current->parent])) {
// Got to the top level, or a category we already know is OK.
break;
} else {
// Continue following the path.
$current = $categories[$current->parent];
$thisloop[$current->id] = $current;
unset($categories[$current->id]);
}
}
}
$answer = array($missingparent, $loops);
}
return $answer;
}
function exists() {
list($missingparent, $loops) = $this->find_problems();
return !empty($missingparent) || !empty($loops);
}
function severity() {
return SEVERITY_ANNOYANCE;
}
function description() {
list($missingparent, $loops) = $this->find_problems();
$description = '<p>The question categories should be arranged into tree ' .
' structures by the question_categories.parent field. Sometimes ' .
' this tree structure gets messed up.</p>';
if (!empty($missingparent)) {
$description .= '<p>The following categories are missing their parents:</p><ul>';
foreach ($missingparent as $cat) {
$description .= "<li>Category $cat->id: " . s($cat->name) . "</li>\n";
}
$description .= "</ul>\n";
}
if (!empty($loops)) {
$description .= '<p>The following categories form a loop of parents:</p><ul>';
foreach ($loops as $loop) {
$description .= "<li><ul>\n";
foreach ($loop as $cat) {
$description .= "<li>Category $cat->id: " . s($cat->name) . " has parent $cat->parent</li>\n";
}
$description .= "</ul></li>\n";
}
$description .= "</ul>\n";
}
return $description;
}
function solution() {
global $CFG;
list($missingparent, $loops) = $this->find_problems();
$solution = '<p>Consider executing the following SQL queries. These fix ' .
'the problem by moving some categories to the top level.</p>';
if (!empty($missingparent)) {
$solution .= "<pre>UPDATE " . $CFG->prefix . "question_categories\n" .
" SET parent = 0\n" .
" WHERE id IN (" . implode(',', array_keys($missingparent)) . ");</pre>\n";
}
if (!empty($loops)) {
$solution .= "<pre>UPDATE " . $CFG->prefix . "question_categories\n" .
" SET parent = 0\n" .
" WHERE id IN (" . implode(',', array_keys($loops)) . ");</pre>\n";
}
return $solution;
}
}
class problem_00000x extends problem_base {
function title() {
+209 -115
View File
@@ -24,13 +24,15 @@
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php'); // Contains various admin-only functions
require_once($CFG->libdir.'/ddllib.php'); // Install/upgrade related db functions
require_once($CFG->libdir.'/db/upgradelib.php'); // Upgrade-related functions
$id = optional_param('id', '', PARAM_ALPHANUM);
$id = optional_param('id', '', PARAM_TEXT);
$confirmupgrade = optional_param('confirmupgrade', 0, PARAM_BOOL);
$confirmrelease = optional_param('confirmrelease', 0, PARAM_BOOL);
$agreelicense = optional_param('agreelicense', 0, PARAM_BOOL);
$autopilot = optional_param('autopilot', 0, PARAM_BOOL);
$ignoreupgradewarning = optional_param('ignoreupgradewarning', 0, PARAM_BOOL);
$confirmplugincheck = optional_param('confirmplugincheck', 0, PARAM_BOOL);
/// check upgrade status first
if ($ignoreupgradewarning and !empty($_SESSION['upgraderunning'])) {
@@ -59,6 +61,10 @@
error("The PHP server variable 'file_uploads' is not turned On - $documentationlink");
}
if (is_float_problem()) {
print_error('phpfloatproblem', 'admin', '', $documentationlink);
}
if (empty($CFG->prefix) && $CFG->dbfamily != 'mysql') { //Enforce prefixes for everybody but mysql
error('$CFG->prefix can\'t be empty for your target DB (' . $CFG->dbtype . ')');
}
@@ -122,6 +128,7 @@
}
}
}
if (! $maintables) {
/// hide errors from headers in case debug enabled in config.php
$origdebug = $CFG->debug;
@@ -129,24 +136,27 @@
error_reporting($CFG->debug);
if (empty($agreelicense)) {
$strlicense = get_string('license');
print_header($strlicense, $strlicense, $strlicense, "", "", false, "&nbsp;", "&nbsp;");
$navigation = build_navigation(array(array('name'=>$strlicense, 'link'=>null, 'type'=>'misc')));
print_header($strlicense, $strlicense, $navigation, "", "", false, "&nbsp;", "&nbsp;");
print_heading("<a href=\"http://moodle.org\">Moodle</a> - Modular Object-Oriented Dynamic Learning Environment");
print_heading(get_string('copyrightnotice'));
print_box(text_to_html(get_string('gpl')), 'copyrightnotice');
echo "<br />";
notice_yesno(get_string('doyouagree'), "index.php?agreelicense=1",
"http://docs.moodle.org/en/License");
print_footer('none');
exit;
}
if (empty($confirmrelease)) {
$strcurrentrelease = get_string("currentrelease");
print_header($strcurrentrelease, $strcurrentrelease, $strcurrentrelease, "", "", false, "&nbsp;", "&nbsp;");
$navigation = build_navigation(array(array('name'=>$strcurrentrelease, 'link'=>null, 'type'=>'misc')));
print_header($strcurrentrelease, $strcurrentrelease, $navigation, "", "", false, "&nbsp;", "&nbsp;");
print_heading("Moodle $release");
print_box(get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes'));
echo '<form action="index.php"><fieldset class="invisiblefieldset">';
print_box(get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes'), 'generalbox boxaligncenter boxwidthwide');
echo '<form action="index.php"><div>';
echo '<input type="hidden" name="agreelicense" value="1" />';
echo '<input type="hidden" name="confirmrelease" value="1" />';
echo '</fieldset>';
echo '</div>';
echo '<div class="continuebutton"><input name="autopilot" id="autopilot" type="checkbox" value="1" /><label for="autopilot">'.get_string('unattendedoperation', 'admin').'</label>';
echo '<br /><br /><input type="submit" value="'.get_string('continue').'" /></div>';
echo '</form>';
@@ -154,9 +164,11 @@
die;
}
$strdatabasesetup = get_string("databasesetup");
$strdatabasesuccess = get_string("databasesuccess");
print_header($strdatabasesetup, $strdatabasesetup, $strdatabasesetup,
$navigation = build_navigation(array(array('name'=>$strdatabasesetup, 'link'=>null, 'type'=>'misc')));
print_header($strdatabasesetup, $strdatabasesetup, $navigation,
"", upgrade_get_javascript(), false, "&nbsp;", "&nbsp;");
/// return to original debugging level
$CFG->debug = $origdebug;
@@ -166,13 +178,13 @@
/// Both old .sql files and new install.xml are supported
/// But we prioritise install.xml (XMLDB) if present
change_db_encoding(); // first try to change db encoding to utf8
if (!setup_is_unicodedb()) {
// If could not convert successfully, throw error, and prevent installation
print_error('unicoderequired', 'admin');
print_error('unicoderequired', 'admin');
}
$status = false;
if (file_exists("$CFG->libdir/db/install.xml")) {
$status = install_from_xmldb_file("$CFG->libdir/db/install.xml"); //New method
@@ -188,30 +200,31 @@
/// Continue with the instalation
$db->debug = false;
if ($status) {
/// Groups install is now in core above.
// Install the roles system.
moodle_install_roles();
set_config('statsrolesupgraded',time());
// Write default settings unconditionally (i.e. even if a setting is already set, overwrite it)
// (this should only have any effect during initial install).
$adminroot = admin_get_root();
$adminroot->prune('backups'); // backup settings table not created yet
apply_default_settings($adminroot);
// install core event handlers
events_update_definition();
/// This is used to handle any settings that must exist in $CFG but which do not exist in
/// admin_get_root()/$ADMIN as admin_setting objects (there are some exceptions).
apply_default_exception_settings(array('alternateloginurl' => '',
'auth' => 'email',
apply_default_exception_settings(array('auth' => 'email',
'auth_pop3mailbox' => 'INBOX',
'changepassword' => '',
'enrol' => 'manual',
'enrol_plugins_enabled' => 'manual',
'guestloginbutton' => 1,
'style' => 'default',
'template' => 'default',
'theme' => 'standardwhite',
'filter_multilang_converted' => 1));
// Write default settings unconditionally (i.e. even if a setting is already set, overwrite it)
// (this should only have any effect during initial install).
admin_apply_default_settings(NULL, true);
notify($strdatabasesuccess, "green");
require_once $CFG->dirroot.'/mnet/lib.php';
} else {
@@ -253,35 +266,84 @@
$CFG->debug = DEBUG_MINIMAL;
error_reporting($CFG->debug);
// logout in case we are upgrading from pre 1.7 version - prevention of weird session problems
if ($CFG->version < 2006050600) {
// logo ut in case we are upgrading from pre 1.9 version in order to prevent
// weird session/role problems caused by incorrect data in USER and SESSION
if ($CFG->version < 2007101500) {
require_logout();
}
if (empty($confirmupgrade)) {
print_header($strdatabasechecking, $stradministration, $strdatabasechecking,
$navigation = build_navigation(array(array('name'=>$strdatabasechecking, 'link'=>null, 'type'=>'misc')));
print_header($strdatabasechecking, $stradministration, $navigation,
"", "", false, "&nbsp;", "&nbsp;");
notice_yesno(get_string('upgradesure', 'admin', $a->newversion), 'index.php?confirmupgrade=1', 'index.php');
print_footer('none');
exit;
} else if (empty($confirmrelease)){
$strcurrentrelease = get_string("currentrelease");
print_header($strcurrentrelease, $strcurrentrelease, $strcurrentrelease, "", "", false, "&nbsp;", "&nbsp;");
$navigation = build_navigation(array(array('name'=>$strcurrentrelease, 'link'=>null, 'type'=>'misc')));
print_header($strcurrentrelease, $strcurrentrelease, $navigation, "", "", false, "&nbsp;", "&nbsp;");
print_heading("Moodle $release");
print_box(get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes'));
echo '<form action="index.php"><fieldset class="invisiblefieldset">';
require_once($CFG->libdir.'/environmentlib.php');
print_heading(get_string('environment', 'admin'));
if (!check_moodle_environment($release, $environment_results, true)) {
if (empty($CFG->skiplangupgrade)) {
print_box_start('generalbox', 'notice'); // MDL-8330
print_string('langpackwillbeupdated', 'admin');
print_box_end();
}
notice_yesno(get_string('environmenterrorupgrade', 'admin'),
'index.php?confirmupgrade=1&amp;confirmrelease=1', 'index.php');
} else {
notify(get_string('environmentok', 'admin'), 'notifysuccess');
if (empty($CFG->skiplangupgrade)) {
print_box_start('generalbox', 'notice'); // MDL-8330
print_string('langpackwillbeupdated', 'admin');
print_box_end();
}
echo '<form action="index.php"><div>';
echo '<input type="hidden" name="confirmupgrade" value="1" />';
echo '<input type="hidden" name="confirmrelease" value="1" />';
echo '</div>';
echo '<div class="continuebutton">';
echo '<br /><br /><input type="submit" value="'.get_string('continue').'" /></div>';
echo '</form>';
}
print_footer('none');
die;
} elseif (empty($confirmplugincheck)) {
$strplugincheck = get_string('plugincheck');
$navigation = build_navigation(array(array('name'=>$strplugincheck, 'link'=>null, 'type'=>'misc')));
print_header($strplugincheck, $strplugincheck, $navigation, "", "", false, "&nbsp;", "&nbsp;");
print_heading($strplugincheck);
print_box_start('generalbox', 'notice'); // MDL-8330
print_string('pluginchecknotice');
print_box_end();
print_plugin_tables();
echo "<br />";
echo '<div class="continuebutton">';
echo '<a href="index.php?confirmupgrade=1&amp;confirmrelease=1" title="'.get_string('reload').'" ><img src="'.$CFG->pixpath.'/i/reload.gif" alt="" /> '.get_string('reload').'</a>';
echo '</div><br />';
echo '<form action="index.php"><div>';
echo '<input type="hidden" name="confirmupgrade" value="1" />';
echo '<input type="hidden" name="confirmrelease" value="1" />';
echo '</fieldset>';
echo '<div class="continuebutton"><input name="autopilot" id="autopilot" type="checkbox" value="0" /><label for="autopilot">'.get_string('unattendedoperation', 'admin').'</label>';
echo '<input type="hidden" name="confirmplugincheck" value="1" />';
echo '</div>';
echo '<div class="continuebutton"><input name="autopilot" id="autopilot" type="checkbox" value="1" /><label for="autopilot">'.get_string('unattendedoperation', 'admin').'</label>';
echo '<br /><br /><input type="submit" value="'.get_string('continue').'" /></div>';
echo '</form>';
print_footer('none');
die;
die();
} else {
$strdatabasesuccess = get_string("databasesuccess");
print_header($strdatabasechecking, $stradministration, $strdatabasechecking,
$navigation = build_navigation(array(array('name'=>$strdatabasesuccess, 'link'=>null, 'type'=>'misc')));
print_header($strdatabasechecking, $stradministration, $navigation,
"", upgrade_get_javascript(), false, "&nbsp;", "&nbsp;");
/// return to original debugging level
@@ -290,7 +352,9 @@
upgrade_log_start();
/// Upgrade current language pack if we can
upgrade_language_pack();
if (empty($CFG->skiplangupgrade)) {
upgrade_language_pack();
}
print_heading($strdatabasechecking);
$db->debug=true;
@@ -307,12 +371,18 @@
/// If successful, continue upgrading roles and setting everything properly
if ($status) {
if (empty($CFG->rolesactive)) {
/// Groups upgrade is now in core above.
// Upgrade to the roles system.
moodle_install_roles();
set_config('rolesactive', 1);
} else if (!update_capabilities()) {
error('Had trouble upgrading the core capabilities for the Roles System');
}
// update core events
events_update_definition();
require_once($CFG->libdir.'/statslib.php');
if (!stats_upgrade_for_roles_wrapper()) {
notify('Couldn\'t upgrade the stats tables to use the new roles system');
@@ -329,7 +399,7 @@
/// Main upgrade not success
} else {
notify('Main Upgrade failed! See lib/db/upgrade.php');
print_continue('index.php?confirmupgrade=1&amp;confirmrelease=1');
print_continue('index.php?confirmupgrade=1&amp;confirmrelease=1&amp;confirmplugincheck=1');
print_footer('none');
die;
}
@@ -354,6 +424,9 @@
}
}
/// Groups install/upgrade is now in core above.
/// Find and check all main modules and load them up or upgrade them if necessary
/// first old *.php update and then the new upgrade.php script
upgrade_activity_modules("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards
@@ -381,6 +454,9 @@
/// first old *.php update and then the new upgrade.php script
upgrade_plugins('enrol', 'enrol', "$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards
/// Check all auth plugins and upgrade if necessary
upgrade_plugins('auth','auth',"$CFG->wwwroot/$CFG->admin/index.php");
/// Check all course formats and upgrade if necessary
upgrade_plugins('format','course/format',"$CFG->wwwroot/$CFG->admin/index.php");
@@ -389,14 +465,24 @@
require_once("$CFG->dirroot/lib/locallib.php");
upgrade_local_db("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards
/// Check for new groups and upgrade if necessary. TODO:
require_once("$CFG->dirroot/group/db/upgrade.php");
upgrade_group_db("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards
/// Check for changes to RPC functions
require_once($CFG->dirroot.'/admin/mnet/adminlib.php');
require_once("$CFG->dirroot/$CFG->admin/mnet/adminlib.php");
upgrade_RPC_functions("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards
/// Upgrade all plugins for gradebook
upgrade_plugins('gradeexport', 'grade/export', "$CFG->wwwroot/$CFG->admin/index.php");
upgrade_plugins('gradeimport', 'grade/import', "$CFG->wwwroot/$CFG->admin/index.php");
upgrade_plugins('gradereport', 'grade/report', "$CFG->wwwroot/$CFG->admin/index.php");
/// Check all message output plugins and upgrade if necessary
upgrade_plugins('message','message/output',"$CFG->wwwroot/$CFG->admin/index.php");
/// Check all course report plugins and upgrade if necessary
upgrade_plugins('coursereport', 'course/report', "$CFG->wwwroot/$CFG->admin/index.php");
/// Check all admin report plugins and upgrade if necessary
upgrade_plugins('report', $CFG->admin.'/report', "$CFG->wwwroot/$CFG->admin/index.php");
/// just make sure upgrade logging is properly terminated
upgrade_log_finish();
@@ -408,10 +494,10 @@
// We are about to create the site "course"
require_once($CFG->libdir.'/blocklib.php');
$newsite = new Object();
$newsite = new object();
$newsite->fullname = "";
$newsite->shortname = "";
$newsite->summary = "";
$newsite->summary = NULL;
$newsite->newsitems = 3;
$newsite->numsections = 0;
$newsite->category = 0;
@@ -422,21 +508,27 @@
$newsite->students = get_string("defaultcoursestudents");
$newsite->timemodified = time();
if ($newid = insert_record('course', $newsite)) {
// Site created, add blocks for it
$page = page_create_object(PAGE_COURSE_VIEW, $newid);
blocks_repopulate_page($page); // Return value not checked because you can always edit later
$cat = new Object();
$cat->name = get_string('miscellaneous');
if (insert_record('course_categories', $cat)) {
redirect('index.php');
} else {
error("Serious Error! Could not set up a default course category!");
}
} else {
if (!$newid = insert_record('course', $newsite)) {
error("Serious Error! Could not set up the site!");
}
// make sure course context exists
get_context_instance(CONTEXT_COURSE, $newid);
// Site created, add blocks for it
$page = page_create_object(PAGE_COURSE_VIEW, $newid);
blocks_repopulate_page($page); // Return value not checked because you can always edit later
$cat = new object();
$cat->name = get_string('miscellaneous');
$cat->depth = 1;
if (!$catid = insert_record('course_categories', $cat)) {
error("Serious Error! Could not set up a default course category!");
}
// make sure category context exists
get_context_instance(CONTEXT_COURSECAT, $catid);
mark_context_dirty('/'.SYSCONTEXTID);
redirect('index.php');
}
// initialise default blocks on admin and site page if needed
@@ -450,35 +542,23 @@
//add admin_tree block to site if not already present
if ($admintree = get_record('block', 'name', 'admin_tree')) {
$page = page_create_object(PAGE_COURSE_VIEW, SITEID);
blocks_execute_action($page, blocks_get_by_page($page), 'add', (int)$admintree->id, false, false);
$pageblocks=blocks_get_by_page($page);
blocks_execute_action($page, $pageblocks, 'add', (int)$admintree->id, false, false);
if ($admintreeinstance = get_record('block_instance', 'pagetype', $page->type, 'pageid', SITEID, 'blockid', $admintree->id)) {
blocks_execute_action($page, blocks_get_by_page($page), 'moveleft', $admintreeinstance, false, false);
$pageblocks=blocks_get_by_page($page); // Needs to be re-got, since has just changed
blocks_execute_action($page, $pageblocks, 'moveleft', $admintreeinstance, false, false);
}
}
set_config('adminblocks_initialised', 1);
}
/// Define the unique site ID code if it isn't already
if (empty($CFG->siteidentifier)) { // Unique site identification code
set_config('siteidentifier', random_string(32).$_SERVER['HTTP_HOST']);
}
/// Define the unique site ID code if it isn't already set. This getter does that as a side-effect.
get_site_identifier();
/// Check if the guest user exists. If not, create one.
if (! record_exists("user", "username", "guest")) {
$guest->auth = "manual";
$guest->username = "guest";
$guest->password = md5("guest");
$guest->firstname = addslashes(get_string("guestuser"));
$guest->lastname = " ";
$guest->email = "root@localhost";
$guest->description = addslashes(get_string("guestuserinfo"));
$guest->mnethostid = $CFG->mnet_localhost_id;
$guest->confirmed = 1;
$guest->lang = $CFG->lang;
$guest->timemodified= time();
if (! $guest->id = insert_record("user", $guest)) {
if (! $guest = create_guest_record()) {
notify("Could not create guest user record !!!");
}
}
@@ -486,19 +566,23 @@
/// Set up the admin user
if (empty($CFG->rolesactive)) {
build_context_path(); // just in case - should not be needed
create_admin_user();
}
/// Check for valid admin user
require_login();
/// Check for valid admin user - no guest autologin
require_login(0, false);
$context = get_context_instance(CONTEXT_SYSTEM, SITEID);
$context = get_context_instance(CONTEXT_SYSTEM);
require_capability('moodle/site:config', $context);
/// check that site is properly customized
if (empty($site->shortname) or empty($site->shortname)) {
redirect('settings.php?section=frontpagesettings&amp;return=site');
if (empty($site->shortname)) {
// probably new installation - lets return to frontpage after this step
// remove settings that we want uninitialised
unset_config('registerauth');
redirect('upgradesettings.php?return=site');
}
/// Check if we are returning from moodle.org registration and if so, we mark that fact to remove reminders
@@ -509,17 +593,29 @@
}
}
/// setup critical warnings before printing admin tree block
$insecuredataroot = is_dataroot_insecure(true);
$register_globals_enabled = ini_get_bool('register_globals');
$SESSION->admin_critical_warning = ($register_globals_enabled || $insecuredataroot==INSECURE_DATAROOT_ERROR);
$adminroot =& admin_get_root();
/// Check if there are any new admin settings which have still yet to be set
if (any_new_admin_settings($adminroot)){
redirect('upgradesettings.php');
}
/// Everything should now be set up, and the user is an admin
/// Print default admin page with notifications.
$adminroot = admin_get_root();
admin_externalpage_setup('adminnotifications', $adminroot);
admin_externalpage_print_header($adminroot);
admin_externalpage_setup('adminnotifications');
admin_externalpage_print_header();
/// Deprecated database! Warning!!
if (!empty($CFG->migrated_to_new_db)) {
print_box(print_string('dbmigrationdeprecateddb','admin'));
print_box(print_string('dbmigrationdeprecateddb', 'admin'), 'generalbox adminwarning');
}
/// Check for any special upgrades that might need to be run
@@ -527,12 +623,26 @@
print_box(get_string("upgrade$CFG->upgrade", "admin", "$CFG->wwwroot/$CFG->admin/upgrade$CFG->upgrade.php"));
}
if (ini_get_bool('register_globals') && !ini_get_bool('magic_quotes_gpc')) {
print_box(get_string('globalsquoteswarning', 'admin'));
if ($register_globals_enabled) {
print_box(get_string('globalswarning', 'admin'), 'generalbox adminerror');
}
if (is_dataroot_insecure()) {
print_box(get_string('datarootsecuritywarning', 'admin', $CFG->dataroot));
if ($insecuredataroot == INSECURE_DATAROOT_WARNING) {
print_box(get_string('datarootsecuritywarning', 'admin', $CFG->dataroot), 'generalbox adminwarning');
} else if ($insecuredataroot == INSECURE_DATAROOT_ERROR) {
print_box(get_string('datarootsecurityerror', 'admin', $CFG->dataroot), 'generalbox adminerror');
}
if (defined('WARN_DISPLAY_ERRORS_ENABLED')) {
print_box(get_string('displayerrorswarning', 'admin'), 'generalbox adminwarning');
}
if (substr($CFG->wwwroot, -1) == '/') {
print_box(get_string('cfgwwwrootslashwarning', 'admin'), 'generalbox adminwarning');
}
if (strpos($ME, $CFG->httpswwwroot.'/') === false) {
print_box(get_string('cfgwwwrootwarning', 'admin'), 'generalbox adminwarning');
}
/// If no recently cron run
@@ -540,60 +650,44 @@
if (time() - $lastcron > 3600 * 24) {
$strinstallation = get_string('installation', 'install');
$helpbutton = helpbutton('install', $strinstallation, 'moodle', true, false, '', true);
print_box(get_string('cronwarning', 'admin')."&nbsp;".$helpbutton);
print_box(get_string('cronwarning', 'admin')."&nbsp;".$helpbutton, 'generalbox adminwarning');
}
/// Print multilang upgrade notice if needed
if (empty($CFG->filter_multilang_converted)) {
print_box(get_string('multilangupgradenotice', 'admin'));
print_box(get_string('multilangupgradenotice', 'admin'), 'generalbox adminwarning');
}
/// Alert if we are currently in maintenance mode
if (file_exists($CFG->dataroot.'/1/maintenance.html')) {
print_box(get_string('sitemaintenancewarning', 'admin'));
print_box(get_string('sitemaintenancewarning', 'admin'), 'generalbox adminwarning');
}
/// Print slightly annoying registration button every six months ;-)
/// You can set the "registered" variable to something far in the future
/// if you really want to prevent this. eg 9999999999
if (!isset($CFG->registered) || $CFG->registered < (time() - 3600*24*30*6)) {
$options = array();
$options['sesskey'] = $USER->sesskey;
print_box_start();
print_string('pleaseregister', 'admin');
print_single_button('register.php', $options, get_string('registration'));
print_box_end();
$registrationbuttonshown = true;
/// Print slightly annoying registration button
$options = array();
$options['sesskey'] = $USER->sesskey;
print_box_start('generalbox adminwarning');
if(!isset($CFG->registered)) {
print_string('pleaseregister', 'admin');
}
else { /* if (isset($CFG->registered) && $CFG->registered < (time() - 3600*24*30*6)) { */
print_string('pleaserefreshregistration', 'admin', userdate($CFG->registered));
}
print_single_button('register.php', $options, get_string('registration'));
print_box_end();
//////////////////////////////////////////////////////////////////////////////////////////////////
//// IT IS ILLEGAL AND A VIOLATION OF THE GPL TO HIDE, REMOVE OR MODIFY THIS COPYRIGHT NOTICE ///
$copyrighttext = '<a href="http://moodle.org/">Moodle</a> '.
'<a href="http://docs.moodle.org/en/Release">'.$CFG->release.'</a> ('.$CFG->version.')<br />'.
'<a href="http://docs.moodle.org/en/Release" title="'.$CFG->version.'">'.$CFG->release.'</a><br />'.
'Copyright &copy; 1999 onwards, Martin Dougiamas<br />'.
'and <a href="http://docs.moodle.org/en/Credits">many other contributors</a>.<br />'.
'<a href="http://docs.moodle.org/en/License">GNU Public License</a>';
print_box($copyrighttext, 'copyright');
//////////////////////////////////////////////////////////////////////////////////////////////////
if (empty($registrationbuttonshown)) {
$options = array();
$options['sesskey'] = $USER->sesskey;
print_single_button('register.php', $options, get_string('registration'));
}
if (optional_param('dbmigrate')) { // ??? Is this actually used?
print_box_start();
require_once($CFG->dirroot.'/'.$CFG->admin.'/utfdbmigrate.php');
db_migrate2utf8();
print_box_end();
}
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+6 -6
View File
@@ -2,16 +2,16 @@
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('toinodb', $adminroot);
admin_externalpage_setup('toinodb');
$confirm = optional_param('confirm', 0, PARAM_BOOL);
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_heading('Convert all MySQL tables from MYISAM to InnoDB');
if ($CFG->dbfamily != 'mysql') {
@@ -31,13 +31,13 @@
}
notify('... done.', 'notifysuccess');
print_continue('index.php');
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
} else {
$optionsyes = array('confirm'=>'1', 'sesskey'=>sesskey());
notice_yesno('Are you sure you want convert all your tables to the InnoDB format?',
'innodb.php', 'index.php', $optionsyes, NULL, 'post', 'get');
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
}
?>
+941 -196
View File
File diff suppressed because it is too large Load Diff
+12 -10
View File
@@ -11,8 +11,7 @@
*/
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('langedit', $adminroot);
admin_externalpage_setup('langedit');
//
// Some local configuration
@@ -32,7 +31,10 @@
$strthislanguage = get_string("thislanguage");
$stredithelpdocs = get_string('edithelpdocs', 'admin');
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
notify('NOTICE: This interface is obsolete now and will be removed. You should use
improved <a href="lang.php?mode=helpfiles">lang.php</a> interface.');
$currentlang = current_language();
$langdir = "$CFG->dataroot/lang/$currentlang";
@@ -40,7 +42,7 @@
if (!file_exists($langdir)) {
error ('to edit this language pack, you need to put it in '.$CFG->dataroot.'/lang','',$adminroot);
error ('to edit this language pack, you need to put it in '.$CFG->dataroot.'/lang');
}
// Shall I save POSTed data?
@@ -49,7 +51,7 @@
if (langdoc_save_file($langdir, $currentfile, $_POST['filedata'])) {
notify(get_string("changessaved")." ($langdir/$currentfile)", "green");
} else {
error("Could not save the file '$currentfile'!", "langdoc.php?currentfile=$currentfile&sesskey=$USER->sesskey", $adminroot);
error("Could not save the file '$currentfile'!", "langdoc.php?currentfile=$currentfile&sesskey=$USER->sesskey");
}
}
}
@@ -61,7 +63,7 @@
// Get all files from /docs directory
if (! $files = get_directory_list("$CFG->dirroot/lang/en_utf8/docs", "CVS")) {
error("Could not find English language docs files!",'',$adminroot);
error("Could not find English language docs files!");
}
$options = array();
@@ -81,7 +83,7 @@
// Get all files from /help directory
if (! $files = get_directory_list("$CFG->dirroot/lang/en_utf8/help", "CVS")) {
error("Could not find English language help files!",'',$adminroot);
error("Could not find English language help files!");
}
foreach ($files as $filekey => $file) { // check all the help files.
@@ -184,7 +186,7 @@ $langdir/$currentfile")."</font></p>";
if ($preview_url) {
link_to_popup_window($preview_url, 'popup', get_string('preview'));
}
echo '<div align="center"><input type="submit" value="'.get_string('savechanges').': lang/'.$currentlang.'/'.$currentfile.'" /></div>';
echo '<div class="mdl-align"><input type="submit" value="'.get_string('savechanges').': lang/'.$currentlang.'/'.$currentfile.'" /></div>';
echo '</form>';
}
@@ -194,7 +196,7 @@ $langdir/$currentfile")."</font></p>";
error_reporting($CFG->debug);
}
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
//////////////////////////////////////////////////////////////////////
@@ -244,7 +246,7 @@ function langdoc_preview_url($currentfile) {
$currentfile = substr($currentfile, 5);
$currentpathexp = explode('/', $currentfile);
if (count($currentpathexp) > 1) {
$url = '/help.php?module='.$currentpathexp[0].'&amp;file='.$currentpathexp[1];
$url = '/help.php?module='.implode('/',array_slice($currentpathexp,0,count($currentpathexp)-1)).'&amp;file='.end($currentpathexp);
} else {
$url = '/help.php?module=moodle&amp;file='.$currentfile;
}
+271 -217
View File
@@ -6,93 +6,105 @@
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('langimport', $adminroot);
require_once($CFG->libdir.'/filelib.php');
require_once($CFG->libdir.'/componentlib.class.php');
admin_externalpage_setup('langimport');
if (!empty($CFG->skiplangupgrade)) {
admin_externalpage_print_header();
print_box(get_string('langimportdisabled', 'admin'));
print_footer();
die;
}
$mode = optional_param('mode', 0, PARAM_INT); //phase
$pack = optional_param('pack', '', PARAM_FILE); //pack to install
$pack = optional_param('pack', array(), PARAM_FILE); //pack to install
$displaylang = $pack;
$uninstalllang = optional_param('uninstalllang', '', PARAM_FILE);
$confirm = optional_param('confirm', 0, PARAM_BOOL);
$sitelang = optional_param('sitelangconfig', '', PARAM_FILE);
define('INSTALLATION_OF_SELECTED_LANG', 2);
define('CHANGE_SITE_LANG', 3);
define('DELETION_OF_SELECTED_LANG', 4);
define('UPDATE_ALL_LANG', 5);
$strlang = get_string('langimport','admin');
$strlang = get_string('langimport','admin');
$strlanguage = get_string('language');
$strthislanguage = get_string('thislanguage');
$title = $strlang;
$strlanguage = get_string("language");
$strthislanguage = get_string("thislanguage");
$title = $strlang;
admin_externalpage_print_header($adminroot);
//reset and diagnose lang cache permissions
@unlink($CFG->dataroot.'/cache/languages');
if (file_exists($CFG->dataroot.'/cache/languages')) {
error('Language cache can not be deleted, please fix permissions in dataroot/cache/languages!');
}
get_list_of_languages(true); //refresh lang cache
$notice_ok = array();
$notice_error = array();
switch ($mode){
case INSTALLATION_OF_SELECTED_LANG: ///installation of selected language pack
if (confirm_sesskey()) {
if (confirm_sesskey() and !empty($pack)) {
set_time_limit(0);
@mkdir ($CFG->dataroot.'/temp/'); //make it in case it's a fresh install, it might not be there
@mkdir ($CFG->dataroot.'/lang/');
require_once($CFG->libdir.'/componentlib.class.php');
if ($cd = new component_installer('http://download.moodle.org', 'lang16',
$pack.'.zip', 'languages.md5', 'lang')) {
$status = $cd->install(); //returns ERROR | UPTODATE | INSTALLED
switch ($status) {
if (is_array($pack)) {
$packs = $pack;
} else {
$packs = array($pack);
}
case ERROR:
if ($cd->get_error() == 'remotedownloadnotallowed') {
$a = new stdClass();
$a->url = 'http://download.moodle.org/lang16/'.$pack.'zip';
$a->dest= $CFG->dataroot.'/lang';
error(get_string($cd->get_error(), 'error', $a));
} else {
error(get_string($cd->get_error(), 'error'));
}
break;
foreach ($packs as $pack) {
if ($cd = new component_installer('http://download.moodle.org', 'lang16',
$pack.'.zip', 'languages.md5', 'lang')) {
$status = $cd->install(); //returns COMPONENT_(ERROR | UPTODATE | INSTALLED)
switch ($status) {
case INSTALLED:
@unlink($CFG->dataroot.'/cache/languages');
redirect('langimport.php', get_string('langpackupdated','admin',$pack));
break;
case COMPONENT_ERROR:
if ($cd->get_error() == 'remotedownloaderror') {
$a = new object();
$a->url = 'http://download.moodle.org/lang16/'.$pack.'.zip';
$a->dest= $CFG->dataroot.'/lang';
print_error($cd->get_error(), 'error', 'langimport.php', $a);
} else {
print_error($cd->get_error(), 'error', 'langimport.php');
}
break;
case UPTODATE:
break;
case COMPONENT_INSTALLED:
$notice_ok[] = get_string('langpackinstalled','admin',$pack);
break;
case COMPONENT_UPTODATE:
break;
}
} else {
notify('Had an unspecified error with the component installer, sorry.');
}
} else {
notify('Had an unspecified error with the component installer, sorry.');
}
}
break;
case CHANGE_SITE_LANG: //change site language
if (confirm_sesskey()) {
$langconfig = get_record('config','name','lang');
$langconfig->value = $sitelang;
if (!empty($sitelang) && update_record('config',$langconfig)){
redirect('langimport.php', get_string('sitelangchanged','admin'));
} else {
error('Could not update the default site language!');
}
}
break;
case DELETION_OF_SELECTED_LANG: //delete a directory(ies) containing a lang pack completely
if (!$confirm && confirm_sesskey()) {
if ($uninstalllang == 'en_utf8') {
$notice_error[] = 'en_utf8 can not be uninstalled!';
} else if (!$confirm && confirm_sesskey()) {
admin_externalpage_print_header();
notice_yesno(get_string('uninstallconfirm', 'admin', $uninstalllang),
'langimport.php?mode=4&amp;uninstalllang='.$uninstalllang.'&amp;confirm=1&amp;sesskey='.sesskey(),
'langimport.php?mode='.DELETION_OF_SELECTED_LANG.'&amp;uninstalllang='.$uninstalllang.'&amp;confirm=1&amp;sesskey='.sesskey(),
'langimport.php');
print_footer();
die;
} else if (confirm_sesskey()) {
if ($uninstalllang == 'en_utf8') {
error ('en_utf8 can not be uninstalled!');
}
$dest1 = $CFG->dataroot.'/lang/'.$uninstalllang;
$dest2 = $CFG->dirroot.'/lang/'.$uninstalllang;
$rm1 = false;
@@ -103,31 +115,30 @@
if (file_exists($dest2)){
$rm2 = remove_dir($dest2);
}
get_list_of_languages(true); //refresh lang cache
//delete the direcotries
if ($rm1 or $rm2) {
redirect('langimport.php', get_string('langpackremoved','admin'));
$notice_ok[] = get_string('langpackremoved','admin');
} else { //nothing deleted, possibly due to permission error
error('An error has occurred, language pack is not completely uninstalled, please check file permissions');
$notice_error[] = 'An error has occurred, language pack is not completely uninstalled, please check file permissions';
}
}
@unlink($CFG->dataroot.'/cache/languages');
break;
case UPDATE_ALL_LANG: //1 click update for all updatable language packs
set_time_limit(0);
//0th pull a list from download.moodle.org,
//key = langname, value = md5
$source = 'http://download.moodle.org/lang16/languages.md5';
$md5array = array();
$updated = 0; //any packs updated?
unset($CFG->langlist); // ignore admin's langlist
$alllangs = array_keys(get_list_of_languages());
$alllangs = array_keys(get_list_of_languages(false, true)); //get all available langs
$lang16 = array(); //all the Moodle 1.6 unicode lang packs (updated and not updated)
$packs = array(); //all the packs that needs updating
if (!$availablelangs = proxy_url($source)) {
error ('can not read from course');
if (!$availablelangs = get_remote_list_of_languages()) {
print_error('cannotdownloadlanguageupdatelist');
}
//and build an associative array
@@ -135,8 +146,12 @@
$md5array[$alang[0]] = $alang[1];
}
//filtering out non-16 packs
//filtering out non-16 and unofficial packs
foreach ($alllangs as $clang) {
if (!array_key_exists($clang, $md5array)) {
$notice_ok[] = get_string('langpackupdateskipped', 'admin', $clang);
continue;
}
$dest1 = $CFG->dataroot.'/lang/'.$clang;
$dest2 = $CFG->dirroot.'/lang/'.$clang;
@@ -158,6 +173,7 @@
if ($pack == 'en_utf8') { // no update for en_utf8
continue;
}
//1. delete old director(ies)
$dest1 = $CFG->dataroot.'/lang/'.$pack;
@@ -165,38 +181,40 @@
$rm1 = false;
$rm2 = false;
if (file_exists($dest1)) {
$rm1 = remove_dir($dest1);
if (!remove_dir($dest1)) {
$notice_error[] = 'Could not delete old directory '.$dest1.', update of '.$pack.' failed, please check permissions.';
continue;
}
}
if (file_exists($dest2)) {
$rm2 = remove_dir($dest2);
}
if (!($rm1 || $rm2)) {
error ('could not delete old directory, update failed');
if (!remove_dir($dest2)) {
$notice_error[] = 'Could not delete old directory '.$dest2.', update of '.$pack.' failed, please check permissions.';
continue;
}
}
//2. copy & unzip into new
require_once($CFG->libdir.'/componentlib.class.php');
if ($cd = new component_installer('http://download.moodle.org', 'lang16',
$pack.'.zip', 'languages.md5', 'lang')) {
$status = $cd->install(); //returns ERROR | UPTODATE | INSTALLED
$status = $cd->install(); //returns COMPONENT_(ERROR | UPTODATE | INSTALLED)
switch ($status) {
case ERROR:
if ($cd->get_error() == 'remotedownloadnotallowed') {
case COMPONENT_ERROR:
if ($cd->get_error() == 'remotedownloaderror') {
$a = new stdClass();
$a->url = 'http://download.moodle.org/lang16/'.$pack.'zip';
$a->url = 'http://download.moodle.org/lang16/'.$pack.'.zip';
$a->dest= $CFG->dataroot.'/lang';
error(get_string($cd->get_error(), 'error', $a));
print_error($cd->get_error(), 'error', "", $a); // not probable
} else {
error(get_string($cd->get_error(), 'error'));
print_error($cd->get_error(), 'error'); // not probable
}
break;
case UPTODATE:
case COMPONENT_UPTODATE:
//Print error string or whatever you want to do
break;
case INSTALLED:
notify(get_string('langpackupdated','admin',$pack), 'notifysuccess');
case COMPONENT_INSTALLED:
$notice_ok[] = get_string('langpackupdated', 'admin', $pack);
$updated = true;
//Print/do whatever you want
break;
@@ -208,132 +226,178 @@
}
if ($updated) {
notice(get_string('langupdatecomplete','admin'), 'langimport.php');
$notice_ok[] = get_string('langupdatecomplete','admin');
} else {
notice(get_string('nolangupdateneeded','admin'), 'langimport.php');
$notice_ok[] = get_string('nolangupdateneeded','admin');
}
break;
default: //display choice mode
$source = 'http://download.moodle.org/lang16/languages.md5';
$remote = 0; //flag for reading from remote or local
if ($availablelangs = proxy_url($source)) {
$remote = 1;
} else {
$availablelangs = get_local_list_of_languages();
}
/*
if ($fp = fopen($source, 'r')){ /// attempt to get the list from Moodle.org.
while(!feof ($fp)) {
$availablelangs[] = split(',', fgets($fp,1024));
}
$remote = 1; //can read from download.moodle.org
} else { /// fopen failed, we find local copy of list.
$availablelangs = get_local_list_of_languages();
}
*/
if (!$remote) {
print_box_start();
print_string('remotelangnotavailable','admin',$CFG->dataroot.'/lang/');
print_box_end();
}
print_box_start();
echo '<table summary="">';
echo '<tr><td align="center" valign="top">';
echo '<form id="uninstallform" action="langimport.php?mode=4" method="post">';
echo '<fieldset class="invisiblefieldset">';
echo '<input name="sesskey" type="hidden" value="'.sesskey().'" />';
unset($CFG->langlist); // ignore admin's langlist
$installedlangs = get_list_of_languages();
/// display installed langs here
echo '<label for="uninstalllang">'.get_string('installedlangs','admin')."</label><br />\n";
echo '<select name="uninstalllang" id="uninstalllang" size="15">';
foreach ($installedlangs as $clang =>$ilang){
echo '<option value="'.$clang.'">'.$ilang.'</option>';
}
echo '</select>';
echo '<br /><input type="submit" value="'.get_string('uninstall','admin').'" />';
echo '</fieldset>';
echo '</form>';
echo '<form id="updateform" action="langimport.php?mode=5" method="post">';
echo '<fieldset class="invisiblefieldset">';
echo '<br /><input type="submit" value="'.get_string('updatelangs','admin').'" />';
echo '</fieldset>';
echo '</form>';
/// Display option to change site language
/// display to be installed langs here
echo '</td><td align="center" valign="top">';
//availabe langs table
$empty = 1; //something to pring
/// if this language pack is not already installed, then we allow installation
echo '<form id="installform" method="post" action="langimport.php?mode=2">';
echo '<fieldset class="invisiblefieldset">';
echo '<input name="sesskey" type="hidden" value="'.sesskey().'" />';
echo '<label for="pack">'.get_string('availablelangs','admin')."</label><br />\n";
if ($remote) {
echo '<select name="pack" id="pack" size="15">';
}
foreach ($availablelangs as $alang) {
if (trim($alang[0]) != "en_utf8") {
if ($remote){
if (substr($alang[0], -5) == '_utf8') { //Remove the _utf8 suffix from the lang to show
$shortlang = substr($alang[0], 0, -5);
} else {
$shortlang = $alang[0];
}
if (!is_installed_lang($alang[0], $alang[1])){ //if not already installed
echo '<option value="'.$alang[0].'">'.$alang[2].' ('.$shortlang.')</option>';
}
} else { //print list in local format, and instruction to install
echo '<tr><td>'.$alang[2].'</td><td><a href="http://download.moodle.org/lang16/'.$alang[0].'.zip">'.get_string('download','admin').'</a></td></tr>';
}
$empty = 0;
}
}
if ($remote) {
echo '</select>';
echo '<br /><input type="submit" value="&larr; '.get_string('install','admin').'" />';
}
echo '</fieldset>';
echo '</form>';
if ($empty) {
echo '<br />';
print_string('nolanguagetodownload','admin');
}
//close available langs table
echo '</td></tr></table>';
print_simple_box_end();
break;
} //close of main switch
admin_externalpage_print_footer($adminroot);
/* returns a list of available language packs from a
admin_externalpage_print_header();
$installedlangs = get_list_of_languages(true, true);
$missingparents = array();
$oldlang = isset($SESSION->lang) ? $SESSION->lang : null; // override current lang
foreach($installedlangs as $l=>$unused) {
$SESSION->lang = $l;
$parent = get_string('parentlanguage');
if ($parent == 'en_utf8') {
continue;
}
if (strpos($parent, '[[') !== false) {
continue; // no parent
}
if (!isset($installedlangs[$parent])) {
$missingparents[$l] = $parent;
}
}
if (isset($oldlang)) {
$SESSION->lang = $oldlang;
} else {
unset($SESSION->lang);
}
if ($availablelangs = get_remote_list_of_languages()) {
$remote = 1;
} else {
$remote = 0; //flag for reading from remote or local
$availablelangs = get_local_list_of_languages();
}
if (!$remote) {
print_box_start();
print_string('remotelangnotavailable', 'admin', $CFG->dataroot.'/lang/');
print_box_end();
}
if ($notice_ok) {
$info = implode('<br />', $notice_ok);
notify($info, 'notifysuccess');
}
if ($notice_error) {
$info = implode('<br />', $notice_error);
notify($info, 'notifyproblem');
}
if ($missingparents) {
foreach ($missingparents as $l=>$parent) {
$a = new object();
$a->lang = $installedlangs[$l];
$a->parent = $parent;
foreach ($availablelangs as $alang) {
if ($alang[0] == $parent) {
if (substr($alang[0], -5) == '_utf8') { //Remove the _utf8 suffix from the lang to show
$shortlang = substr($alang[0], 0, -5);
} else {
$shortlang = $alang[0];
}
$a->parent = $alang[2].' ('.$shortlang.')';
}
}
$info = get_string('missinglangparent', 'admin', $a);
notify($info, 'notifyproblem');
}
}
print_box_start();
echo '<table summary="">';
echo '<tr><td align="center" valign="top">';
echo '<form id="uninstallform" action="langimport.php?mode='.DELETION_OF_SELECTED_LANG.'" method="post">';
echo '<fieldset class="invisiblefieldset">';
echo '<input name="sesskey" type="hidden" value="'.sesskey().'" />';
/// display installed langs here
echo '<label for="uninstalllang">'.get_string('installedlangs','admin')."</label><br />\n";
echo '<select name="uninstalllang" id="uninstalllang" size="15">';
foreach ($installedlangs as $clang =>$ilang){
echo '<option value="'.$clang.'">'.$ilang.'</option>';
}
echo '</select>';
echo '<br /><input type="submit" value="'.get_string('uninstall','admin').'" />';
echo '</fieldset>';
echo '</form>';
if ($remote) {
echo '<form id="updateform" action="langimport.php?mode='.UPDATE_ALL_LANG.'" method="post">';
echo '<div>';
echo '<br /><input type="submit" value="'.get_string('updatelangs','admin').'" />';
echo '</div>';
echo '</form>';
}
/// Display option to change site language
/// display to be installed langs here
echo '</td><td align="center" valign="top">';
//availabe langs table
$empty = 1; //something to pring
/// if this language pack is not already installed, then we allow installation
echo '<form id="installform" method="post" action="langimport.php?mode='.INSTALLATION_OF_SELECTED_LANG.'">';
echo '<fieldset class="invisiblefieldset">';
echo '<input name="sesskey" type="hidden" value="'.sesskey().'" />';
echo '<label for="pack">'.get_string('availablelangs','admin')."</label><br />\n";
if ($remote) {
echo '<select name="pack[]" id="pack" size="15" multiple="multiple">';
}
foreach ($availablelangs as $alang) {
if ($alang[0] == '') {
continue;
}
if (trim($alang[0]) != "en_utf8") {
if ($remote) {
if (substr($alang[0], -5) == '_utf8') { //Remove the _utf8 suffix from the lang to show
$shortlang = substr($alang[0], 0, -5);
} else {
$shortlang = $alang[0];
}
if (!is_installed_lang($alang[0], $alang[1])){ //if not already installed
echo '<option value="'.$alang[0].'">'.$alang[2].' ('.$shortlang.')</option>';
}
} else { //print list in local format, and instruction to install
echo '<tr><td>'.$alang[2].'</td><td><a href="http://download.moodle.org/lang16/'.$alang[0].'.zip">'.get_string('download','admin').'</a></td></tr>';
}
$empty = 0;
}
}
if ($remote) {
echo '</select>';
echo '<br /><input type="submit" value="'.$THEME->larrow.' '.get_string('install','admin').'" />';
}
echo '</fieldset>';
echo '</form>';
if ($empty) {
echo '<br />';
print_string('nolanguagetodownload','admin');
}
//close available langs table
echo '</td></tr></table>';
print_box_end();
admin_externalpage_print_footer();
/**
* Returns a list of available language packs from a
* local copy shipped with standard moodle distro
* this is for site that can't perform fopen
* this is for site that can't download components.
* @return array
*/
function get_local_list_of_languages() {
global $CFG;
$source = $CFG->wwwroot.'/lib/languages.md5';
$source = $CFG->dirroot.'/lib/languages.md5';
$availablelangs = array();
if ($fp = fopen($source, 'r')){
if ($fp = fopen($source, 'r')) {
while(!feof ($fp)) {
$availablelangs[] = split(',', fgets($fp,1024));
}
@@ -341,7 +405,8 @@
return $availablelangs;
}
/* checks the md5 of the zip file, grabbed from download.moodle.org,
/**
* checks the md5 of the zip file, grabbed from download.moodle.org,
* against the md5 of the local language file from last update
* @param string $lang
* @param string $md5check
@@ -356,37 +421,26 @@
return false;
}
//returns an array of languages, or false if can not read from source
//uses a socket if proxy is set as a config variable
function proxy_url($url) {
global $CFG;
/**
* Returns the latest list of available language packs from
* moodle.org
* @return array or false if can not download
*/
function get_remote_list_of_languages() {
$source = 'http://download.moodle.org/lang16/languages.md5';
$availablelangs = array();
if ($CFG->proxyhost && $CFG->proxyport) {
$proxy_fp = fsockopen($CFG->proxyhost, $CFG->proxyport);
if (!$proxy_fp) {
return false; //failed
}
fputs($proxy_fp, "GET $url HTTP/1.0\r\nHost: $CFG->proxyhost\r\n\r\n");
$i = 0;
while(!feof($proxy_fp)) {
$string = fgets($proxy_fp, 1024);
if ($i > 11) { //12 lines of info skipped
$availablelangs[] = split(',', $string);
if ($content = download_file_content($source)) {
$alllines = split("\n", $content);
foreach($alllines as $line) {
if (!empty($line)){
$availablelangs[] = split(',', $line);
}
$i++;
}
fclose($proxy_fp);
return $availablelangs;
} else { //proxy not in use
if ($fp = fopen($url, 'r')){ /// attempt to get the list from Moodle.org.
while(!feof ($fp)) {
$availablelangs[] = split(',', fgets($fp,1024));
}
} else { /// fopen failed, return false.
return false;
}
} else {
return false;
}
return $availablelangs;
}
?>
+77
View File
@@ -0,0 +1,77 @@
#!/usr/bin/php
<?php
/*
* Utility to debug mailouts - will save the content of emails to a
* logfile instead of sending them out. Use it as a sendmail
* "stand-in" when testing mailouts.
*
* It is not Moodle specific - use it anywhere by setting the php
* "sendmail_path" setting to this file with a logfile parameter.
*
* - Set in php.ini (not settable in config.php):
* sendmail_path=/path-to-moodle/admin/mailout-debugger.php');
* Or from the commandline
* php -d sendmail_path='/path-to-moodle/admin/mailout-debugger.php' /path/to/cron.php
*
* - Create a file in admin called mailout-debugger.enable
* (this is a security check to prevent execution in prod environments)
* touch /path/to/moodle/admin/mailout-debugger.enable
*
* - Mark as executable: chmod ugo+rx mailout-debugger.php
*
* - Run your admin/cron.php
*
* - Read /tmp/moodle-mailout.log
*
*
* This script will create logfiles in /tmp/ or in $TMPDIR if set.
* On windows, use php -r 'print sys_get_temp_dir()' to see where the file is saved.
*/
// Security check.
if (!file_exists(dirname(__FILE__).'/mailout-debugger.enable')) {
mdie("Disabled.");
}
$tmpdir=sys_get_temp_dir(); // default
if (isset($_SERVER['REMOTE_ADDR'])) {
mdie("should not be called from web server!");
}
if (isset($_ENV['TMPDIR']) && is_dir($_ENV['TMPDIR'])) {
$tmpdir = $_ENV['TMPDIR'];
}
$tmpfile = $tmpdir . '/moodle-mailout.log';
$fh = fopen($tmpfile, 'a+', false)
or mdie("Error openning $tmpfile on append\n");
fwrite($fh, "==== ".strftime("%a %b %e %H:%M:%S %Y", time())." ====\n");
fwrite($fh, "==== Commandline: " . implode(' ',$argv) . "\n");
$stdin = fopen('php://stdin', 'r');
while ($line = fgets($stdin)) {
fwrite($fh, $line);
}
fwrite($fh, "\n");
fclose($fh);
fclose($stdin);
/**
* Print an error to STDOUT and exit with a non-zero code. For commandline scripts.
* Default errorcode is 1.
*
* Very useful for perl-like error-handling:
*
* do_somethting() or mdie("Something went wrong");
*
* @param string $msg Error message
* @param integer $errorcode Error code to emit
*
*/
function mdie($msg='', $errorcode=1) {
trigger_error($msg);
exit($errorcode);
}
?>
+16 -8
View File
@@ -6,8 +6,7 @@
$action = optional_param('action', '', PARAM_ALPHA);
$adminroot = admin_get_root();
admin_externalpage_setup('maintenancemode', $adminroot);
admin_externalpage_setup('maintenancemode');
//Check folder exists
if (! make_upload_directory(SITEID)) { // Site folder
@@ -32,31 +31,38 @@
/// Print the header stuff
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_heading(get_string('sitemaintenancemode', 'admin'));
print_box_start();
/// Print the appropriate form
if (file_exists($filename)) { // We are in maintenance mode
echo '<div style="margin-left:auto;margin-right:auto">';
echo '<div class="buttons">';
echo '<p>'.get_string('sitemaintenanceon', 'admin').'</p>';
echo '<form action="maintenance.php" method="post">';
echo '<div>';
echo '<input type="hidden" name="action" value="disable" />';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '<p><input type="submit" value="'.get_string('disable').'" /></p>';
echo '</div>';
echo '</form>';
echo '</div>';
} else { // We are not in maintenance mode
$usehtmleditor = can_use_html_editor();
echo '<div style="text-align:center;margin-left:auto;margin-right:auto">';
echo '<div class="buttons">';
echo '<form action="maintenance.php" method="post">';
echo '<div>';
echo '<input type="hidden" name="action" value="enable" />';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '<p><input type="submit" value="'.get_string('enable').'" /></p>';
echo '<p>'.get_string('optionalmaintenancemessage', 'admin').':</p>';
echo '<table><tr><td>';
echo '<div class="editor" style="width:600px;">'; // contains the editor
print_textarea($usehtmleditor, 20, 50, 600, 400, "text");
echo '</td></tr></table>';
echo '</div>';
echo '</div>';
echo '</form>';
echo '</div>';
@@ -66,5 +72,7 @@
}
}
admin_externalpage_print_footer($adminroot);
print_box_end();
admin_externalpage_print_footer();
?>
+12 -18
View File
@@ -13,15 +13,13 @@ $perpage = optional_param('perpage', 30, PARAM_INT);
$action = trim(strtolower(optional_param('action', '', PARAM_ALPHA)));
require_login();
$adminroot = admin_get_root();
admin_externalpage_setup('ssoaccesscontrol');
admin_externalpage_setup('ssoaccesscontrol', $adminroot);
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
if (!extension_loaded('openssl')) {
print_error('requiresopenssl', 'mnet', '', NULL, true);
print_error('requiresopenssl', 'mnet');
}
$sitecontext = get_context_instance(CONTEXT_SYSTEM);
@@ -41,13 +39,13 @@ if (!empty($action) and confirm_sesskey()) {
// boot if insufficient permission
if (!has_capability('moodle/user:delete', $sitecontext)) {
error(get_string('nomodifyacl','mnet'));
print_error('nomodifyacl','mnet');
}
// fetch the record in question
$id = required_param('id', PARAM_INT);
if (!$idrec = get_record('mnet_sso_access_control', 'id', $id)) {
error(get_string('recordnoexists','mnet'), '/admin/mnet/access_control.php');
print_error('recordnoexists','mnet', "$CFG->wwwroot/$CFG->admin/mnet/access_control.php");
}
switch ($action) {
@@ -62,7 +60,7 @@ if (!empty($action) and confirm_sesskey()) {
// require the access parameter, and it must be 'allow' or 'deny'
$accessctrl = trim(strtolower(required_param('accessctrl', PARAM_ALPHA)));
if ($accessctrl != 'allow' and $accessctrl != 'deny') {
error(get_string('invalidaccessparam', 'mnet') , '/admin/mnet/access_control.php');
print_error('invalidaccessparam', 'mnet', "$CFG->wwwroot/$CFG->admin/mnet/access_control.php");
}
if (mnet_update_sso_access_control($idrec->username, $idrec->mnet_host_id, $accessctrl)) {
@@ -75,7 +73,7 @@ if (!empty($action) and confirm_sesskey()) {
break;
default:
print_error('invalidactionparam', 'mnet', '/admin/mnet/access_control.php');
print_error('invalidactionparam', 'mnet', "$CFG->wwwroot/$CFG->admin/mnet/access_control.php");
}
}
@@ -86,7 +84,7 @@ if ($form = data_submitted() and confirm_sesskey()) {
// check permissions and verify form input
if (!has_capability('moodle/user:delete', $sitecontext)) {
error(get_string('nomodifyacl','mnet'), '/admin/mnet/access_control.php');
print_error('nomodifyacl','mnet', "$CFG->wwwroot/$CFG->admin/mnet/access_control.php");
}
if (empty($form->username)) {
$formerror['username'] = get_string('enterausername','mnet');
@@ -127,15 +125,11 @@ $warn = '';
if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') {
$warn = '<p>' . get_string('mnetdisabled','mnet') .'</p>';
}
if (empty($CFG->auth_plugins_enabled)) {
if (!is_enabled_auth('mnet')) {
$warn .= '<p>' . get_string('authmnetdisabled','mnet').'</p>';
} else {
$auths = explode(',', $CFG->auth_plugins_enabled);
if (!in_array('mnet', $auths)) {
$warn .= '<p>' . get_string('authmnetdisabled','mnet').'</p>';
}
unset($auths);
}
if (get_config('auth/mnet', 'auto_add_remote_users') != true) {
$warn .= '<p>' . get_string('authmnetautoadddisabled','mnet').'</p>';
}
@@ -238,6 +232,6 @@ foreach ($formerror as $error) {
}
print_simple_box_end();
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+3 -3
View File
@@ -29,7 +29,7 @@ function mnet_get_functions($type, $parentname) {
$docname = 'rpclib.php';
$relname = '/mod/'.$parentname.'/'.$docname;
$filename = $CFG->dirroot.$relname;
if (file_exists($filename)) include $filename;
if (file_exists($filename)) include_once $filename;
$mnet_publishes = $parentname.'_mnet_publishes';
if (function_exists($mnet_publishes)) {
(array)$publishes = $mnet_publishes();
@@ -38,7 +38,7 @@ function mnet_get_functions($type, $parentname) {
// auth or enrol
$relname = '/'.$type.'/'.$parentname.'/'.$docname;
$filename = $CFG->dirroot.$relname;
if (file_exists($filename)) include $filename;
if (file_exists($filename)) include_once $filename;
$class = $type.($type=='enrol'? 'ment':'').'_plugin_'.$parentname;
if (class_exists($class)) {
$object = new $class();
@@ -72,7 +72,7 @@ function mnet_get_functions($type, $parentname) {
if (!file_exists($filename)) return false;
if (extension_loaded('tokenizer')) {
include_once $CFG->dirroot.'/admin/mnet/MethodTable.php';
include_once "$CFG->dirroot/$CFG->admin/mnet/MethodTable.php";
$functions = (array)MethodTable::create($filename,false);
}
+11 -8
View File
@@ -1,12 +1,15 @@
<?php
print_header("$site->shortname: $strmnetsettings", "$site->fullname",
'<a href="'.$CFG->wwwroot.'/admin/index.php">'.$stradministration.'</a> -> '.
'<a href="'.$CFG->wwwroot.'/admin/mnet/index.php">'.get_string('mnetsettings', 'mnet').'</a> -> Delete host');
$navlinks = array();
$navlinks[] = array('name' => $stradministration, 'link' => "$CFG->wwwroot/$CFG->admin/index.php", 'type' => 'misc');
$navlinks[] = array('name' => get_string('mnetsettings', 'mnet'), 'link' => "$CFG->wwwroot/$CFG->admin/mnet/index.php", 'type' => 'misc');
$navlinks[] = array('name' => get_string('deletehost', 'mnet'), 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header("$site->shortname: $strmnetsettings", "$site->fullname", $navigation);
print_heading(get_string('mnetsettings', 'mnet'));
?>
<center>
<table align="center" class="generalbox" border="0" cellpadding="5" cellspacing="0">
<div id="trustedhosts"><!-- See theme/standard/styles_layout.css #trustedhosts .generaltable for rules -->
<table class="generalbox standard" border="0" cellpadding="5" cellspacing="0">
<tr>
<td class="generalboxcontent">
<table cellpadding="9" cellspacing="0" >
@@ -14,7 +17,7 @@ print_heading(get_string('mnetsettings', 'mnet'));
<td colspan="2" class="header" cellpadding="0"><span><?php print_string('deleteaserver', 'mnet'); ?>Deleting a Server</span></td>
</tr>
<?php
if (count($warn) > 0):
if (count($warn) > 0){
?>
<tr valign="top">
<td align="right" colspan="2"><?php print_string('receivedwarnings','mnet'); ?>:<br />
@@ -22,7 +25,7 @@ print_heading(get_string('mnetsettings', 'mnet'));
</td>
</tr>
<?php
endif;
}
?>
<tr valign="top">
<td colspan="2"><?php print_string('reallydeleteserver','mnet'); ?>: "<?php echo $mnet_peer->name; ?>"?</td>
@@ -46,7 +49,7 @@ print_heading(get_string('mnetsettings', 'mnet'));
</td>
</tr>
</table>
</center>
</div>
<?php
print_footer();
?>
+3 -1
View File
@@ -1,10 +1,11 @@
<form id="assignform" method="post" action="">
<div id="trustedhosts"><!-- See theme/standard/styles_layout.css #trustedhosts .generaltable for rules -->
<input type="hidden" name="previoussearch" value="<?php p($previoussearch) ?>" />
<input type="hidden" name="courseid" value="<?php p($courseid) ?>" />
<input type="hidden" name="host" value="<?php p($mnet_peer->id) ?>" />
<input type="hidden" name="sesskey" value="<?php p(sesskey()) ?>" />
<table align="center" border="0" cellpadding="5" cellspacing="0">
<table class="generaltable" border="0" cellpadding="5" cellspacing="0">
<tr>
<td valign="top">
<?php print_string('existingusers', 'role', count($mnetenrolledusers)); ?>
@@ -99,4 +100,5 @@
<td valign="top"></td>
</tr>
</table>
</div>
</form>
+5 -7
View File
@@ -7,11 +7,10 @@
include_once($CFG->dirroot.'/mnet/xmlrpc/client.php');
if (!confirm_sesskey()) {
error(get_string('confirmsesskeybad', 'error'));
print_error('confirmsesskeybad', 'error');
}
$adminroot = admin_get_root();
admin_externalpage_setup('mnetenrol', $adminroot);
admin_externalpage_setup('mnetenrol');
$CFG->pagepath = 'admin/mnet';
require_once("$CFG->dirroot/enrol/enrol.class.php"); /// Open the factory class
@@ -244,7 +243,6 @@
$str = get_strings(array('enrolmentplugins', 'configuration', 'users', 'administration'));
/// Get some language strings
$strassignusers = get_string('assignusers', 'role');
$strpotentialusers = get_string('potentialusers', 'role');
$strexistingusers = get_string('existingusers', 'role');
$straction = get_string('assignroles', 'role');
@@ -255,10 +253,10 @@ $strshowall = get_string('showall');
$strparticipants = get_string('participants');
$strsearchresults = get_string('searchresults');
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_box('<strong>' . s($mnet_peer->name) . ' : '
. s($course->shortname) .' '. s($course->fullname)
. format_string($course->shortname) .' '. format_string($course->fullname)
. '</strong><br />'
. get_string("enrolcourseenrol_desc", "mnet"));
@@ -276,6 +274,6 @@ if (!empty($errors)) {
}
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+13 -13
View File
@@ -6,12 +6,11 @@
require_once($CFG->libdir.'/adminlib.php');
if (!confirm_sesskey()) {
error(get_string('confirmsesskeybad', 'error'));
print_error('confirmsesskeybad', 'error');
}
$adminroot = admin_get_root();
admin_externalpage_setup('mnetenrol', $adminroot);
admin_externalpage_setup('mnetenrol');
$CFG->pagepath = 'admin/mnet';
require_once("$CFG->dirroot/enrol/enrol.class.php"); /// Open the factory class
@@ -24,34 +23,35 @@
/// Print the page
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_box('<strong>' . s($host->name) . ' </strong><br />'
. get_string("enrolcourses_desc", "mnet"));
echo "<hr />";
echo '<hr />';
print ('<table align="center" >');
echo '<div id="trustedhosts"><!-- See theme/standard/styles_layout.css #trustedhosts .generaltable for rules -->'
. '<table class="generaltable">';
$icon = "<img src=\"$CFG->pixpath/i/course.gif\"".
" class=\"icon\" alt=\"".get_string("course")."\" />";
foreach ($courses as $course) {
$link = $CFG->wwwroot . '/admin/mnet/enr_course_enrol.php?'
$link = "$CFG->wwwroot/$CFG->admin/mnet/enr_course_enrol.php?"
. "host={$mnethost}&amp;courseid={$course->id}&amp;sesskey={$USER->sesskey}";
print ('<tr>'
echo '<tr>'
. "<td>$icon</td>"
. "<td><a href=\"$link\">".s($course->fullname). "</a></td>"
. "<td><a href=\"$link\">".format_string($course->fullname). "</a></td>"
. '</tr><tr>'
. '<td></td>'
. '<td>'.s($course->shortname). ' - ' .s($course->cat_name).'</td>'
. '<td>'.format_string($course->shortname). ' - ' .format_string($course->cat_name).'</td>'
. '</tr><tr>'
. '<td></td>'
. "<td align=\"left\" >{$course->summary}</td>"
. '</tr>');
. '</tr>';
}
print ('</table>');
echo '</table></div>';
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+13 -12
View File
@@ -5,8 +5,7 @@
require_once(dirname(__FILE__) . "/../../config.php");
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('mnetenrol', $adminroot);
admin_externalpage_setup('mnetenrol');
$CFG->pagepath = 'admin/mnet';
@@ -18,43 +17,45 @@
/// get language strings
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_box(get_string("remoteenrolhosts_desc", "mnet"));
echo "<hr />";
echo '<hr />';
if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') {
print_box(get_string('mnetdisabled','mnet'));
}
print ('<table align="center" cellspacing="0" cellpadding="5" width="500" id="hosts" class="generaltable generalbox" >'
echo '<div id="trustedhosts"><!-- See theme/standard/styles_layout.css #trustedhosts .generaltable for rules -->'
. '<table cellspacing="0" cellpadding="5" id="hosts" class="generaltable generalbox" >'
. '<tr>'
. '<th class="header c0"> '.get_string('host', 'mnet').' </th>'
. '<th class="header c1"> '.get_string('enrolments', 'mnet').' </th>'
. '<th class="header c2"> '.get_string('courses', 'mnet').' </th>'
// . '<th class="header c3"> &nbsp; </th>'
. '</tr>');
. '</tr>';
$hosts = $enrolment->list_remote_servers();
foreach ($hosts as $host) {
$coursesurl = "{$CFG->wwwroot}/admin/mnet/enr_courses.php?host={$host->id}&amp;sesskey={$USER->sesskey}";
$coursesurl = "$CFG->wwwroot/$CFG->admin/mnet/enr_courses.php?host={$host->id}&amp;sesskey={$USER->sesskey}";
$coursecount = get_field_sql("SELECT count(id) FROM {$CFG->prefix}mnet_enrol_course WHERE hostid={$host->id}");
if (empty($coursecount)) {
$coursecount = '?';
}
$enrolcount = get_field_sql("SELECT count(id) FROM {$CFG->prefix}mnet_enrol_assignments WHERE hostid={$host->id}");
print ('<tr>'
echo '<tr>'
. "<td><a href=\"{$coursesurl}\">{$host->name}</a></td>"
. "<td align=\"center\" >$enrolcount</td>"
. "<td align=\"center\" >$coursecount - <a href=\"{$coursesurl}\">".get_string('editenrolments', 'mnet')."</a></td>"
// TODO: teach report/log/index.php to show per-host-logs
// . '<td align="center" ><a href="{$CFG->wwwroot}/admin/report/log/index.php?course_host={$host->id}">'
// . '<td align="center" ><a href="$CFG->wwwroot/$CFG->admin/report/log/index.php?course_host={$host->id}">'
// . get_string('logs', 'mnet').'</a> </td>'
. '</tr>');
. '</tr>';
}
print ('</table>');
echo '</table>'
. '</div>';
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+9 -10
View File
@@ -7,8 +7,7 @@
include_once($CFG->dirroot.'/mnet/lib.php');
require_login();
$adminroot = admin_get_root();
admin_externalpage_setup('net', $adminroot);
admin_externalpage_setup('net');
$context = get_context_instance(CONTEXT_SYSTEM);
@@ -16,19 +15,19 @@
if (!extension_loaded('openssl')) {
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
set_config('mnet_dispatcher_mode', 'off');
print_error('requiresopenssl', 'mnet', '', NULL, true);
}
if (!$site = get_site()) {
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
set_config('mnet_dispatcher_mode', 'off');
print_error('nosite', '', '', NULL, true);
}
if (!function_exists('curl_init') ) {
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
set_config('mnet_dispatcher_mode', 'off');
print_error('nocurl', 'mnet', '', NULL, true);
}
@@ -40,7 +39,7 @@
/// If data submitted, process and store
if (($form = data_submitted()) && confirm_sesskey()) {
if (!empty($form->submit) && $form->submit == get_string('savechanges')) {
if (in_array($form->mode, array("off", "strict", "promiscuous"))) {
if (in_array($form->mode, array("off", "strict", "dangerous"))) {
if (set_config('mnet_dispatcher_mode', $form->mode)) {
redirect('index.php', get_string('changessaved'));
} else {
@@ -90,7 +89,7 @@
}
$hosts = get_records_select('mnet_host', " id != '{$CFG->mnet_localhost_id}' AND deleted = '0' ",'wwwroot ASC' );
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
?>
<center>
<form method="post" action="index.php">
@@ -112,8 +111,8 @@
<tr valign="top">
<td align="right"><?php print_string('net', 'mnet'); ?>:</td>
<td><input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="radio" name="mode" value="off" <?php echo ("off" == $CFG->mnet_dispatcher_mode)? 'checked="true"' : '' ?> /> <?php print_string('off', 'mnet'); ?> <br />
<input type="radio" name="mode" value="strict" <?php echo ("strict" == $CFG->mnet_dispatcher_mode)? 'checked="true"' : '' ?> /> <?php print_string('on', 'mnet'); ?><br />
<input type="radio" name="mode" value="off" <?php echo ("off" == $CFG->mnet_dispatcher_mode)? 'checked="checked"' : '' ?> /> <?php print_string('off', 'mnet'); ?> <br />
<input type="radio" name="mode" value="strict" <?php echo ("strict" == $CFG->mnet_dispatcher_mode)? 'checked="checked"' : '' ?> /> <?php print_string('on', 'mnet'); ?><br />
<input type="submit" name="submit" value="<?php print_string('savechanges'); ?>" />
</td>
</tr>
@@ -148,5 +147,5 @@
</center>
<?php
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+20 -13
View File
@@ -5,12 +5,15 @@ $logurl = $CFG->wwwroot.
'&amp;date=0'.
'&amp;modid=&amp;modaction=0&amp;logformat=showashtml';
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
if (isset($mnet_peer->id) && $mnet_peer->id > 0) {
$tabs[] = new tabobject('mnetdetails', 'peers.php?step=update&amp;hostid='.$mnet_peer->id, $strmnetedithost, $strmnetedithost, false);
$tabs[] = new tabobject('mnetservices', 'mnet_services.php?step=list&amp;hostid='.$mnet_peer->id, $strmnetservices, $strmnetservices, false);
$tabs[] = new tabobject('mnetlog', $logurl, $strmnetlog, $strmnetlog, false);
$tabs[] = new tabobject('mnetthemes', 'mnet_themes.php?step=list&amp;hostid='.$mnet_peer->id, $strmnetthemes, $strmnetthemes, false);
if ($mnet_peer->application->name == 'moodle') {
$tabs[] = new tabobject('mnetlog', $logurl, $strmnetlog, $strmnetlog, false);
}
} else {
$tabs[] = new tabobject('mnetdetails', '#', $strmnetedithost, $strmnetedithost, false);
}
@@ -19,10 +22,13 @@ print_tabs(array($tabs), 'mnetdetails');
print_simple_box_start("center", "");
?>
<form method="post" action="peers.php">
<div>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="hidden" name="step" value="commit" />
<input type="hidden" name="last_connect_time" value="<?php echo $mnet_peer->last_connect_time; ?>" />
<input type="hidden" name="id" value="<?php echo isset($mnet_peer->id)? $mnet_peer->id : '0' ; ?>" />
<input type="hidden" name="applicationid" value="<?php echo isset($mnet_peer->applicationid)? $mnet_peer->applicationid : '0' ; ?>" />
<input type="hidden" name="applicationname" value="<?php echo isset($mnet_peer->application->name)? $mnet_peer->application->name : '' ; ?>" />
<table cellpadding="9" cellspacing="0" width="635">
<tr>
@@ -47,7 +53,7 @@ if (empty($mnet_peer->public_key)) $mnet_peer->public_key = '';
if (isset($mnet_peer->deleted) && $mnet_peer->deleted > 0) {
$key = mnet_get_public_key($mnet_peer->wwwroot);
$key = mnet_get_public_key($mnet_peer->wwwroot, $mnet_peer->application->xmlrpc_server_url);
$mnet_peer->public_key = clean_param($key, PARAM_PEM);
}
?>
@@ -74,7 +80,7 @@ if (isset($mnet_peer->deleted) && $mnet_peer->deleted > 0) {
</tr>
<?php
if(!empty($currentkey)):
if(!empty($currentkey)) {
?>
<tr>
<td align="right" valign="top"></td>
@@ -85,30 +91,30 @@ if(!empty($currentkey)):
<td valign="top"><pre style="font-size: 8px;"><?php echo $currentkey;?></pre></td>
</tr>
<?php
endif;
}
if (isset($mnet_peer->id) && $mnet_peer->id > 0):
if (isset($mnet_peer->id) && $mnet_peer->id > 0) {
?>
<tr>
<td align="right" valign="top"><?php print_string('last_connect_time', 'mnet'); ?>:</td>
<td valign="top"><?php echo ($mnet_peer->last_connect_time == 0)? get_string('never','mnet') : date('H:i:s d/m/Y',$mnet_peer->last_connect_time);?></td>
</tr>
<?php
endif;
}
if (isset($mnet_peer->deleted) && $mnet_peer->deleted > 0):
if (isset($mnet_peer->deleted) && $mnet_peer->deleted > 0){
?>
<tr>
<td align="right" valign="top"><?php print_string('deleted'); ?>:</td>
<td valign="top">
<input type="radio" name="deleted" value="0" checked="true" /> <?php print_string('reenableserver','mnet'); ?><br />
<input type="radio" name="deleted" value="0" checked="checked" /> <?php print_string('reenableserver','mnet'); ?><br />
<input type="radio" name="deleted" value="1" /> <?php print_string('yes'); ?><br />
</td>
</tr>
<?php
endif;
}
if (isset($mnet_peer->ip_address) && '' != $mnet_peer->ip_address):
if (isset($mnet_peer->ip_address) && '' != $mnet_peer->ip_address){
?>
<tr>
<td align="right" valign="top"><?php print_string('ipaddress', 'mnet');
@@ -119,15 +125,16 @@ if (isset($mnet_peer->ip_address) && '' != $mnet_peer->ip_address):
</tr>
<?php
endif;
}
?>
<tr>
<td></td>
<td><input type="submit" value="<?php print_string("savechanges"); ?>" /></td>
</tr>
</table>
</div>
</form>
<?php
print_simple_box_end();
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+3 -2
View File
@@ -1,8 +1,9 @@
<?php
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
$tabs[] = new tabobject('mnetdetails', 'peers.php?step=update&amp;hostid='.$mnet_peer->id, $strmnetedithost, $strmnetedithost, false);
$tabs[] = new tabobject('mnetservices', 'mnet_services.php?step=list&amp;hostid='.$mnet_peer->id, $strmnetservices, $strmnetservices, false);
$tabs[] = new tabobject('mnetthemes', 'mnet_themes.php?step=list&amp;hostid='.$mnet_peer->id, $strmnetthemes, $strmnetthemes, false);
print_tabs(array($tabs), 'mnetdetails');
print_simple_box_start("center", "");
@@ -18,5 +19,5 @@ print_simple_box_start("center", "");
</table>
<?php
print_simple_box_end();
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+37 -11
View File
@@ -1,5 +1,5 @@
<?php
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
$logurl = $CFG->wwwroot.
'/course/report/log/index.php?chooselog=1&amp;showusers=1&amp;showcourses=1&amp;host_course='.$mnet_peer->id.
@@ -9,28 +9,32 @@ $logurl = $CFG->wwwroot.
$tabs[] = new tabobject('mnetdetails', 'peers.php?step=update&amp;hostid='.$mnet_peer->id, $strmnetedithost, $strmnetedithost, false);
$tabs[] = new tabobject('mnetservices', 'mnet_services.php?step=list&amp;hostid='.$mnet_peer->id, $strmnetservices, $strmnetservices, false);
if ($mnet_peer->id != $CFG->mnet_all_hosts_id) $tabs[] = new tabobject('mnetlog', $logurl, $strmnetlog, $strmnetlog, false);
$tabs[] = new tabobject('mnetthemes', 'mnet_themes.php?step=list&amp;hostid='.$mnet_peer->id, $strmnetthemes, $strmnetthemes, false);
if ($mnet_peer->id != $CFG->mnet_all_hosts_id && $mnet_peer->application->name == 'moodle') {
$tabs[] = new tabobject('mnetlog', $logurl, $strmnetlog, $strmnetlog, false);
}
print_tabs(array($tabs), 'mnetservices');
print_simple_box_start("center", "");
?>
<form method="post" action="mnet_services.php">
<div>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="hidden" name="step" value="<?php echo $mnet_peer->nextstep; ?>" />
<input type="hidden" name="hostid" value="<?php echo ($mnet_peer->id)? $mnet_peer->id : '0' ; ?>" />
<table cellpadding="9" cellspacing="0" >
<?php
foreach($myservices as $name => $versions):
foreach($myservices as $name => $versions) {
$version = current($versions);
?>
<tr>
<td align="left" valign="top" colspan="2">
<h3><?php echo get_string($name.'_name', $version['parent_type'].'_'.$version['parent'] , $mnet_peer->name); ?></h3>
<p><?php echo get_string($name.'_description', $version['parent_type'].'_'.$version['parent'], $mnet_peer->name); ?></p>
<?php echo get_string($name.'_description', $version['parent_type'].'_'.$version['parent'], $mnet_peer->name); ?>
<?php
$breakstring = '';
foreach($versions as $version):
foreach($versions as $version){
if (count($versions) > 1) {
$versionstring = '('.get_string('version','mnet') .' '.$version['apiversion'].')';
} else {
@@ -40,16 +44,37 @@ print_simple_box_start("center", "");
echo $breakstring;
?>
<input type="hidden" name="exists[<?php echo $version['serviceid']; ?>]" value="1" />
<input type="checkbox" name="publish[<?php echo $version['serviceid']; ?>]" <?php echo (!empty($version['I_publish']))? 'checked="checked" ': '' ; ?>/><?php print_string('publish','mnet'); ?><?php echo $versionstring; if (!empty($version['hostsubscribes'])) echo '<a href="#" title="'.get_string('issubscribed','mnet', $mnet_peer->name).'">&radic;</a> '; if (!empty($version['allhosts_publish'])) print_string("enabled_for_all",'mnet',!empty($version['I_publish'])); ?><br />
<input type="checkbox" name="subscribe[<?php echo $version['serviceid']; ?>]" <?php echo (!empty($version['I_subscribe']))? 'checked="checked" ': '' ; ?>/><?php print_string('subscribe','mnet'); ?><?php echo $versionstring; if (!empty($version['hostpublishes'])) echo '<a href="#" title="'.get_string('ispublished','mnet', $mnet_peer->name).'">&radic;</a> '; if (!empty($version['allhosts_subscribe'])) print_string("enabled_for_all",'mnet',!empty($version['I_subscribe'])); ?><br />
<?php
<input type="checkbox" name="publish[<?php echo $version['serviceid']; ?>]" <?php echo (!empty($version['I_publish']))? 'checked="checked" ': '' ; ?>/>
<?php
print_string('publish','mnet');
echo $versionstring;
if (!empty($version['hostsubscribes'])) {
echo '<a href="#" title="'.get_string('issubscribed','mnet', $mnet_peer->name).'">&radic;</a> ';
}
if (!empty($version['allhosts_publish'])) {
print_string("enabled_for_all",'mnet',!empty($version['I_publish']));
}
echo '<br />';
?>
<input type="checkbox" name="subscribe[<?php echo $version['serviceid']; ?>]" <?php echo (!empty($version['I_subscribe']))? 'checked="checked" ': '' ; ?>/>
<?php
print_string('subscribe','mnet');
echo $versionstring;
if (!empty($version['hostpublishes'])) {
echo '<a href="#" title="'.get_string('ispublished','mnet', $mnet_peer->name).'">&radic;</a> ';
}
if (!empty($version['allhosts_subscribe'])) {
print_string("enabled_for_all",'mnet',!empty($version['I_subscribe']));
}
echo '<br />';
$breakstring = '. . . . . . . . . . . . . . . . . . . . . . . . <br>';
endforeach;
} // end foreach
?>
</td>
</tr>
<?php
endforeach;
} // end foreach
?>
<tr>
<td align="left" valign="top" colspan="2">
@@ -70,8 +95,9 @@ print_simple_box_start("center", "");
</td>
</tr>
</table>
</div>
</form>
<?php
print_simple_box_end();
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+10 -3
View File
@@ -6,8 +6,7 @@
include_once($CFG->dirroot.'/mnet/lib.php');
require_login();
$adminroot = admin_get_root();
admin_externalpage_setup('mnetpeers', $adminroot);
admin_externalpage_setup('mnetpeers');
$context = get_context_instance(CONTEXT_SYSTEM);
@@ -34,6 +33,7 @@
$strconfiguration = get_string('configuration');
$strmnetsettings = get_string('mnetsettings', 'mnet');
$strmnetservices = get_string('mnetservices', 'mnet');
$strmnetthemes = get_string('mnetthemes', 'mnet');
$strmnetlog = get_string('mnetlog', 'mnet');
$strmnetedithost = get_string('reviewhostdetails', 'mnet');
$strmneteditservices = get_string('reviewhostservices', 'mnet');
@@ -48,7 +48,14 @@
$publish = (isset($_POST['publish'][$key]) && $_POST['publish'][$key] == 'on')? 1 : 0;
$subscribe = (isset($_POST['subscribe'][$key]) && $_POST['subscribe'][$key] == 'on')? 1 : 0;
if (false == $host2service && ($publish == 1 || $subscribe == 1)) {
if ($publish != 1 && $subscribe != 1) {
if (false == $host2service) {
// We don't have or need a record - do nothing!
} else {
// We don't need the record - delete it
delete_records('mnet_host2service', 'hostid', $_POST['hostid'], 'serviceid', $key);
}
} elseif (false == $host2service && ($publish == 1 || $subscribe == 1)) {
$host2service = new stdClass();
$host2service->hostid = $_POST['hostid'];
$host2service->serviceid = $key;
+127
View File
@@ -0,0 +1,127 @@
<?php
admin_externalpage_print_header();
print_heading(get_string('themes'));
$original_theme = fullclone($THEME);
$logurl = $CFG->wwwroot.
'/course/report/log/index.php?chooselog=1&amp;showusers=1&amp;showcourses=1&amp;host_course='.$mnet_peer->id.
'%2F1&amp;user='.'0'.
'&amp;date=0'.
'&amp;modid=&amp;modaction=0&amp;logformat=showashtml';
$tabs[] = new tabobject('mnetdetails', 'peers.php?step=update&amp;hostid='.$mnet_peer->id, $strmnetedithost, $strmnetedithost, false);
$tabs[] = new tabobject('mnetservices', 'mnet_services.php?step=list&amp;hostid='.$mnet_peer->id, $strmnetservices, $strmnetservices, false);
$tabs[] = new tabobject('mnetthemes', 'mnet_themes.php?step=list&amp;hostid='.$mnet_peer->id, $strmnetthemes, $strmnetthemes, false);
if ($mnet_peer->id != $CFG->mnet_all_hosts_id) {
$tabs[] = new tabobject('mnetlog', $logurl, $strmnetlog, $strmnetlog, false);
}
print_tabs(array($tabs), 'mnetthemes');
$themes = get_list_of_plugins("theme");
$sesskey = !empty($USER->id) ? $USER->sesskey : '';
echo "<table style=\"margin-left:auto;margin-right:auto;\" cellpadding=\"7\" cellspacing=\"5\">";
if (count($report)) {
echo '<tr>';
echo '<td align="center" colspan="2">';
echo '<span class="'.$report[1].'">'.$report[0].'</span>';
echo '</td>';
echo '</tr>';
}
if (!$USER->screenreader) {
echo "<tr class=\"generaltableheader\"><th scope=\"col\">$strtheme</th>";
echo "<th scope=\"col\">$strinfo</th></tr>";
}
echo "<tr>";
echo '<td align="center"><span class="informationbox">Choose this option to use your site\'s default theme: <strong>'.$CFG->theme.'</strong>.</span></td>';
if ($mnet_peer->theme == '') {
echo '<td valign="top" style="border-style:solid; border-width:1px; border-color=#555555">';
} else {
echo '<td valign="top">';
}
echo '<p style="font-size:1.5em;font-style:bold;">Site Theme</p>';
$options = null;
$options['choose'] = $unlikely_name;// Something unlikely to ever be a theme name... initially $unlikely_name = 'ZoqZoqZ';
$options['sesskey'] = $sesskey;
$options['hostid'] = $mnet_peer->id;
print_single_button('mnet_themes.php', $options, $strchoose);
echo '</td>';
echo "</tr>";
foreach ($themes as $theme) {
unset($THEME);
if (!file_exists($CFG->themedir.'/'.$theme.'/config.php')) { // bad folder
continue;
}
include($CFG->themedir.'/'.$theme.'/config.php');
$readme = '';
$screenshot = '';
$screenshotpath = '';
if (file_exists($CFG->themedir.'/'.$theme.'/README.html')) {
$readme = '<li>'.
link_to_popup_window($CFG->themewww .'/'. $theme .'/README.html', $theme, $strinfo, 400, 500, '', 'none', true).'</li>';
} else if (file_exists($CFG->themedir.'/'.$theme.'/README.txt')) {
$readme = '<li>'.
link_to_popup_window($CFG->themewww .'/'. $theme .'/README.txt', $theme, $strinfo, 400, 500, '', 'none', true).'</li>';
}
if (file_exists("$theme/screenshot.png")) {
$screenshotpath = "$theme/screenshot.png";
} else if (file_exists("$theme/screenshot.jpg")) {
$screenshotpath = "$theme/screenshot.jpg";
}
echo "<tr>";
// no point showing this if user is using screen reader
if (!$USER->screenreader) {
echo "<td align=\"center\">";
if ($screenshotpath) {
$screenshot = '<li><a href='.$CFG->wwwroot .'/theme/'. $theme.'/screenshot.jpg">'.$strscreenshot.'</a></li>';
echo "<object type=\"text/html\" data=\"$screenshotpath\" height=\"200\" width=\"400\">$theme</object></td>";
} else {
echo '<object type="text/html" data="'.$CFG->wwwroot.'/theme/preview.php?preview='.$theme.'" height="200" width="400">'.$theme.'</object></td>';
}
}
if ($mnet_peer->theme == $theme) {
echo '<td valign="top" style="border-style:solid; border-width:1px; border-color=#555555">';
} else {
echo '<td valign="top">';
}
if (isset($THEME->sheets)) {
echo '<p style="font-size:1.5em;font-style:bold;">'.$theme.'</p>';
} else {
echo '<p style="font-size:1.5em;font-style:bold;color:red;">'.$theme.' (Moodle 1.4)</p>';
}
if ($screenshot or $readme) {
echo '<ul>';
if (!$USER->screenreader) {
echo '<li><a href="'.$CFG->wwwroot.'/theme/preview.php?preview='.$theme.'">'.$strpreview.'</a></li>';
}
echo $screenshot.$readme;
echo '</ul>';
}
$options = null;
$options['choose'] = $theme;
$options['sesskey'] = $sesskey;
$options['hostid'] = $mnet_peer->id;
print_single_button('mnet_themes.php', $options, $strchoose);
echo '</td>';
echo "</tr>";
}
echo "</table>";
$THEME = $original_theme;
admin_externalpage_print_footer();
?>
+81
View File
@@ -0,0 +1,81 @@
<?php
// Allows the admin to configure services for remote hosts
require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
require_once($CFG->libdir.'/adminlib.php');
include_once($CFG->dirroot.'/mnet/lib.php');
require_login();
admin_externalpage_setup('mnetpeers');
$context = get_context_instance(CONTEXT_SYSTEM);
require_capability('moodle/site:config', $context, $USER->id, true, "nopermissions");
if (!$site = get_site()) {
print_error('nosite', '', '', NULL, true);
}
/// Initialize variables.
$hostid = required_param('hostid', PARAM_INT);
$stradministration = get_string('administration');
$strconfiguration = get_string('configuration');
$strmnetedithost = get_string('reviewhostdetails', 'mnet');
$strmnetsettings = get_string('mnetsettings', 'mnet');
$strmnetservices = get_string('mnetservices', 'mnet');
$strmnetthemes = get_string('mnetthemes', 'mnet');
$strmnetlog = get_string('mnetlog', 'mnet');
$mnet_peer = new mnet_peer();
if (is_int($hostid)) {
$mnet_peer->set_id($hostid);
}
$choose = optional_param("choose",'',PARAM_FILE); // set this theme as default
$stradministration = get_string("administration");
$strconfiguration = get_string("configuration");
$strthemes = get_string("themes");
$strpreview = get_string("preview");
$strchoose = get_string("choose");
$strinfo = get_string("info");
$strtheme = get_string("theme");
$strthemesaved = get_string("themesaved");
$strscreenshot = get_string("screenshot");
$stroldtheme = get_string("oldtheme");
$report = array();
$unlikely_name = 'ZoqZoqZ'; // Something unlikely to ever be a theme name
if ($choose) {
if (confirm_sesskey()) {
if ($choose == $unlikely_name) {
$mnet_peer->force_theme = 1;
$mnet_peer->updateparams->force_theme = 1;
$mnet_peer->theme = '';
$mnet_peer->updateparams->theme = '';
if ($mnet_peer->commit()) {
$report = array(get_string('themesaved'), 'informationbox');
} else {
$report = array(get_string('themesavederror', 'mnet'), 'errorbox');
}
} elseif (!is_dir($CFG->themedir .'/'. $choose) || !file_exists($CFG->themedir .'/'. $choose .'/config.php')) {
echo 'CHOOSE -'.$choose.' '. $CFG->themedir .'/'. $choose .'/config.php' ;
$report = array('This theme is not installed!'.'3', 'errorbox');
} else {
$mnet_peer->force_theme = 1;
$mnet_peer->theme = $choose;
$mnet_peer->updateparams->theme = addslashes($choose);
if ($mnet_peer->commit()) {
$report = array(get_string('themesaved').'1', 'informationbox');
} else {
$report = array(get_string('themesavederror', 'mnet').'2', 'errorbox');
}
}
}
}
$adminroot = admin_get_root();
require('./mnet_themes.html');
?>
+70 -57
View File
@@ -1,40 +1,42 @@
<?php
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') {
print_box(get_string('mnetdisabled','mnet'));
}
?>
<center>
<form method="post" action="peers.php">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="hidden" name="updateregisterall" value="1" />
<table cellspacing="0" cellpadding="5" width="500" id="hosts" class="generaltable generalbox" >
<tr>
<th class="header c0" nowrap="nowrap" colspan="2"><?php print_string('registerallhosts', 'mnet'); ?></th>
</tr>
<tr>
<td class="cell c1" colspan="2"><?php print_string('registerallhostsexplain', 'mnet'); ?></td>
</tr>
<tr>
<td class="cell c1"><input type="checkbox" name="registerallhosts" <?php if (!empty($CFG->mnet_register_allhosts)) echo 'checked="checked" '; ?>/></td>
<td class="cell c1"> <?php print_string('registerallhosts', 'mnet'); ?> </td>
</tr>
<tr>
<td align="right" colspan="2"><input type="submit" name="submit" value="<?php print_string('savechanges'); ?>" /></td>
</tr>
</table>
</form>
<table cellspacing="0" cellpadding="5" id="hosts" class="generaltable generalbox" >
<tr>
<th class="header c0" nowrap="nowrap"><?php print_string('site'); ?></th>
<th class="header c1" nowrap="nowrap"><?php print_string('system','mnet'); ?></th>
<th class="header c2" nowrap="nowrap"><?php print_string('last_connect_time', 'mnet'); ?></th>
<th class="header c3" nowrap="nowrap"></th>
</tr>
<div id="trustedhosts"><!-- See theme/standard/styles_layout.css #trustedhosts .generaltable for rules -->
<form method="post" action="peers.php">
<div>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="hidden" name="updateregisterall" value="1" />
<table cellspacing="0" cellpadding="5" class="generaltable generalbox" >
<tr>
<th class="header c0" colspan="2"><?php print_string('registerallhosts', 'mnet'); ?></th>
</tr>
<tr>
<td class="cell c1" colspan="2"><?php print_string('registerallhostsexplain', 'mnet'); ?></td>
</tr>
<tr>
<td class="cell c1"><input type="checkbox" name="registerallhosts" <?php if (!empty($CFG->mnet_register_allhosts)) echo 'checked="checked" '; ?>/></td>
<td class="cell c1"> <?php print_string('registerallhosts', 'mnet'); ?> </td>
</tr>
<tr>
<td align="right" colspan="2"><input type="submit" name="submit" value="<?php print_string('savechanges'); ?>" /></td>
</tr>
</table>
</div>
</form>
<table cellspacing="0" cellpadding="5" class="generaltable generalbox standard" >
<tr>
<th class="header c0"><?php print_string('site'); ?></th>
<th class="header c1"><?php print_string('system','mnet'); ?></th>
<th class="header c2"><?php print_string('last_connect_time', 'mnet'); ?></th>
<th class="header c3"></th>
</tr>
<?php
foreach($hosts as $host):
foreach($hosts as $host) {
if ($host->last_connect_time == 0) {
$last_connect = get_string('never');
@@ -46,43 +48,54 @@ if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict'
<tr>
<td class="cell c0"><a href="peers.php?step=update&amp;hostid=<?php echo $host->id; ?>"><?php echo $host->name; ?></a></td>
<td class="cell c1"><a href="peers.php?step=update&amp;hostid=<?php echo $host->id; ?>"><?php echo $host->wwwroot; ?></a></td>
<td class="cell c2" nowrap="nowrap"><?php if ($host->id != $CFG->mnet_all_hosts_id) echo $last_connect; ?></td>
<td class="cell c2"><?php if ($host->id != $CFG->mnet_all_hosts_id) echo $last_connect; ?></td>
<td class="cell c3">
<?php if ($host->id != $CFG->mnet_all_hosts_id): ?>
<?php if ($host->id != $CFG->mnet_all_hosts_id){ ?>
<form method="post" action="delete.php">
<div>
<input type="hidden" name="hostid" value="<?php echo $host->id; ?>" />
<input type="hidden" name="step" value="verify" />
<input type="submit" name="submit" value="<?php print_string('delete'); ?>"/>
</div>
</form>
<?php endif; ?>
<?php } ?>
</td>
</tr>
<?php
endforeach;
}
?>
<tr>
<td class="cell c4" colspan="4">&nbsp;</td>
</tr>
</table>
<form method="post" action="peers.php">
<tr>
<th class="header c4" nowrap="nowrap" colspan="4">
<?php print_string('addnewhost', 'mnet'); ?>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="hidden" name="step" value="input" />
</th>
</tr>
<tr>
<td class="cell c0"></td>
<td class="cell c1"><input type="text" name="wwwroot" value="" /></td>
<td class="cell c2"></td>
<td class="cell c3"></td>
</tr>
<tr>
<td class="cell c4" align="right" colspan="4"><input type="submit" value="<?php print_string('addhost','mnet'); ?>" /></td>
</tr>
</form>
</table>
</center>
<table cellspacing="0" cellpadding="5" class="generaltable generalbox standard" >
<tr>
<th class="header c4" colspan="4">
<?php print_string('addnewhost', 'mnet'); ?>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="hidden" name="step" value="input" />
</th>
</tr>
<tr>
<td class="cell c0">wwwroot:</td>
<td class="cell c1"><input type="text" name="wwwroot" value="" /></td>
<td class="cell c2">
<select name="applicationid">
<?php
admin_externalpage_print_footer($adminroot);
?>
foreach($applications as $application) {
echo ' <option value="'.$application->id.'">'.$application->display_name."</option>\n";
}
?>
</select>
</td>
<td class="cell c3"></td>
</tr>
<tr>
<td class="cell c4" align="right" colspan="4"><input type="submit" value="<?php print_string('addhost','mnet'); ?>" /></td>
</tr>
</table>
</form>
</div>
<?php
admin_externalpage_print_footer();
?>
+57 -17
View File
@@ -7,26 +7,25 @@ require_once($CFG->libdir.'/adminlib.php');
include_once($CFG->dirroot.'/mnet/lib.php');
require_login();
$adminroot = admin_get_root();
admin_externalpage_setup('mnetpeers', $adminroot);
admin_externalpage_setup('mnetpeers');
$context = get_context_instance(CONTEXT_SYSTEM);
require_capability('moodle/site:config', $context, $USER->id, true, "nopermissions");
if (!extension_loaded('openssl')) {
admin_externalpage_print_header($adminroot);
print_error('requiresopenssl', 'mnet', '', NULL, true);
admin_externalpage_print_header();
print_error('requiresopenssl', 'mnet');
}
if (!$site = get_site()) {
admin_externalpage_print_header($adminroot);
print_error('nosite', '', '', NULL, true);
admin_externalpage_print_header();
print_error('nosite', '');
}
if (!function_exists('curl_init') ) {
admin_externalpage_print_header($adminroot);
print_error('nocurl', 'mnet', '', NULL, true);
admin_externalpage_print_header();
print_error('nocurl', 'mnet');
}
/// Initialize variables.
@@ -41,6 +40,7 @@ $hostid = optional_param('hostid', NULL, PARAM_INT);
$strmnetservices = get_string('mnetservices', 'mnet');
$strmnetlog = get_string('mnetlog', 'mnet');
$strmnetedithost = get_string('reviewhostdetails', 'mnet');
$strmnetthemes = get_string('mnetthemes', 'mnet');
if (!isset($CFG->mnet_dispatcher_mode)) set_config('mnet_dispatcher_mode', 'off');
@@ -50,7 +50,19 @@ if (($form = data_submitted()) && confirm_sesskey()) {
if (!empty($form->wwwroot)) {
// ensure we remove trailing slashes
$form->wwwroot = preg_replace(':/$:', '', $form->wwwroot);
// ensure the wwwroot starts with a http or https prefix
if (strtolower(substr($form->wwwroot, 0, 4)) != 'http') {
$form->wwwroot = 'http://'.$form->wwwroot;
}
}
if(!function_exists('xmlrpc_encode_request')) {
trigger_error("You must have xml-rpc enabled in your PHP build to use this feature.");
print_error('xmlrpc-missing', 'mnet','peers.php');
exit;
}
if (!empty($form->updateregisterall)) {
if (!empty($form->registerallhosts)) {
set_config('mnet_register_allhosts',1);
@@ -70,38 +82,43 @@ if (($form = data_submitted()) && confirm_sesskey()) {
$temp_wwwroot = clean_param($form->wwwroot, PARAM_URL);
if ($temp_wwwroot !== $form->wwwroot) {
trigger_error("We now parse the wwwroot with PARAM_URL. Your URL will need to have a valid TLD, etc.");
error(get_string("invalidurl", 'mnet'),'peers.php');
print_error("invalidurl", 'mnet','peers.php');
exit;
}
unset($temp_wwwroot);
$mnet_peer->bootstrap($form->wwwroot);
$mnet_peer->set_applicationid($form->applicationid);
$application = get_field('mnet_application', 'name', 'id', $form->applicationid);
$mnet_peer->bootstrap($form->wwwroot, null, $application);
}
if (isset($form->name) && $form->name != $mnet_peer->name) {
$form->name = clean_param($form->name, PARAM_NOTAGS);
$mnet_peer->set_name($form->name);
}
if (isset($form->deleted) && ($form->deleted == '0' || $form->deleted == '1')) {
$mnet_peer->updateparams->deleted = $form->deleted;
$mnet_peer->deleted = $form->deleted;
}
if (isset($form->public_key)) {
$form->public_key = clean_param($form->public_key, PARAM_PEM);
if (empty($form->public_key)) {
error(get_string("invalidpubkey", 'mnet'),'peers.php?step=update&amp;hostid='.$mnet_peer->id);
print_error("invalidpubkey", 'mnet', 'peers.php?step=update&amp;hostid='.$mnet_peer->id);
exit;
} else {
$oldkey = $mnet_peer->public_key;
$mnet_peer->public_key = $form->public_key;
$mnet_peer->public_key_expires = $mnet_peer->check_common_name($form->public_key);
$mnet_peer->updateparams->public_key = addslashes($form->public_key);
$mnet_peer->public_key_expires = $mnet_peer->check_common_name($form->public_key);
$mnet_peer->updateparams->public_key_expires = $mnet_peer->check_common_name($form->public_key);
if ($mnet_peer->public_key_expires == false) {
$mnet_peer->public_key == $oldkey;
$errmsg = '<br />';
foreach ($mnet_peer->error as $err) {
$errmsg .= $err['code'] . ': ' . $err['text'].'<br />';
}
error(get_string("invalidpubkey", 'mnet') . $errmsg ,'peers.php?step=update&amp;hostid='.$mnet_peer->id);
//print_error("invalidpubkey", 'mnet', 'peers.php?step=update&amp;hostid='.$mnet_peer->id, $errmsg);
exit;
}
}
@@ -110,7 +127,7 @@ if (($form = data_submitted()) && confirm_sesskey()) {
// PREVENT DUPLICATE RECORDS ///////////////////////////////////////////
if ('input' == $form->step) {
if ( isset($mnet_peer->id) && $mnet_peer->id > 0 ) {
error(get_string("hostexists", 'mnet', $mnet_peer->id),'peers.php?step=update&amp;hostid='.$mnet_peer->id);
print_error("hostexists", 'mnet', 'peers.php?step=update&amp;hostid='.$mnet_peer->id, $mnet_peer->id);
}
}
@@ -128,7 +145,7 @@ if (($form = data_submitted()) && confirm_sesskey()) {
} elseif (is_int($hostid)) {
$mnet_peer = new mnet_peer();
$mnet_peer->set_id($hostid);
$currentkey = mnet_get_public_key($mnet_peer->wwwroot);
$currentkey = mnet_get_public_key($mnet_peer->wwwroot, $mnet_peer->application);
if($currentkey == $mnet_peer->public_key) unset($currentkey);
$form = new stdClass();
if ($hostid != $CFG->mnet_all_hosts_id) {
@@ -137,8 +154,31 @@ if (($form = data_submitted()) && confirm_sesskey()) {
include('./mnet_review_allhosts.html');
}
} else {
$hosts = get_records_select('mnet_host', " id != '{$CFG->mnet_localhost_id}' AND deleted = '0' ",'wwwroot ASC' );
$hosts = get_records_sql(' SELECT
h.id,
h.wwwroot,
h.ip_address,
h.name,
h.public_key,
h.public_key_expires,
h.transport,
h.portno,
h.last_connect_time,
h.last_log_id,
h.applicationid,
a.name as app_name,
a.display_name as app_display_name,
a.xmlrpc_server_url
FROM
'.$CFG->prefix.'mnet_host h,
'.$CFG->prefix.'mnet_application a
WHERE
h.id != \''.$CFG->mnet_localhost_id.'\' AND
h.deleted = \'0\' AND
h.applicationid=a.id');
if (empty($hosts)) $hosts = array();
$applications = get_records('mnet_application');
include('./peers.html');
}
?>
+27 -21
View File
@@ -1,36 +1,39 @@
<?php
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
?>
<center>
<table cellspacing="0" cellpadding="5" width="500" id="hosts" class="generaltable generalbox" >
<div id="trustedhosts"><!-- See theme/standard/styles_layout.css #trustedhosts .generaltable for rules -->
<table cellspacing="0" cellpadding="5" class="generaltable generalbox" >
<tr>
<th class="header c0" nowrap="nowrap" colspan="2"><?php print_string('trustedhosts', 'mnet'); ?></th>
<th class="header c0" colspan="2"><?php print_string('trustedhosts', 'mnet'); ?></th>
</tr>
<tr>
<td class="cell c1" colspan="2"><?php print_string('trustedhostsexplain', 'mnet'); ?></td>
</tr>
<tr>
<td class="cell c1" colspan="2"><form method="post" action="trustedhosts.php">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<textarea name="hostlist" cols="40" rows="20"><?php echo $trusted_hosts; ?></textarea><br />
<input type="submit" value="<?php print_string('savechanges'); ?>" />
<td class="cell c1" colspan="2">
<form method="post" action="trustedhosts.php">
<div>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<textarea name="hostlist" cols="40" rows="20"><?php echo $trusted_hosts; ?></textarea><br />
<input type="submit" value="<?php print_string('savechanges'); ?>" />
</div>
</form>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="5" width="500" id="hosts" class="generaltable generalbox" >
<table cellspacing="0" cellpadding="5" class="generaltable generalbox" >
<tr>
<th class="header c0" nowrap="nowrap" colspan="2"><?php print_string('testtrustedhosts', 'mnet'); ?></th>
<th class="header c0" colspan="2"><?php print_string('testtrustedhosts', 'mnet'); ?></th>
</tr>
<?php
if (!empty($test_ip_address)):
if (!empty($test_ip_address)){
?>
<tr>
<td class="cell c1" colspan="2">
<?php
if ($in_range) {
print_string('is_in_range', 'mnet', $test_ip_address);
echo '<br>';
echo '<br />';
print_string('validated_by', 'mnet', $validated_by);
} else {
print_string('not_in_range', 'mnet', $test_ip_address);
@@ -39,24 +42,27 @@ admin_externalpage_print_header($adminroot);
</td>
</tr>
<?php
else:
} else {
?>
<tr>
<td class="cell c1" colspan="2"><?php print_string('testtrustedhostsexplain', 'mnet'); ?></td>
</tr>
<?php
endif;
}
?>
<tr>
<td class="cell c1" colspan="2"><form method="get" action="trustedhosts.php">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="text" name="testipaddress" value="<?php echo $test_ip_address; ?>" />
<input type="submit" value="<?php print_string('go'); ?>" />
<td class="cell c1" colspan="2">
<form method="get" action="trustedhosts.php">
<div>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="text" name="testipaddress" value="<?php echo $test_ip_address; ?>" />
<input type="submit" value="<?php print_string('go'); ?>" />
</div>
</form>
</td>
</tr>
</table>
</center>
</div>
<?php
admin_externalpage_print_footer($adminroot);
?>
admin_externalpage_print_footer();
?>
+3 -5
View File
@@ -6,20 +6,19 @@
include_once($CFG->dirroot.'/mnet/lib.php');
require_login();
$adminroot = admin_get_root();
admin_externalpage_setup('trustedhosts', $adminroot);
admin_externalpage_setup('trustedhosts');
$context = get_context_instance(CONTEXT_SYSTEM);
require_capability('moodle/site:config', $context, $USER->id, true, "nopermissions");
if (!extension_loaded('openssl')) {
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_error('requiresopenssl', 'mnet', '', NULL, true);
}
if (!$site = get_site()) {
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_error('nosite', '', '', NULL, true);
}
@@ -49,7 +48,6 @@
/// If data submitted, process and store
if (($form = data_submitted()) && confirm_sesskey()) {
echo 'a';
$hostlist = preg_split("/[\s,]+/", $form->hostlist);
foreach($hostlist as $host) {
list($address, $mask) = explode('/', $host.'/');
+10 -8
View File
@@ -3,8 +3,6 @@
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('managemodules', $adminroot);
/// If data submitted, then process and store.
@@ -12,11 +10,12 @@
$module = optional_param('module', '', PARAM_SAFEDIR);
if (!confirm_sesskey()) {
error(get_string('confirmsesskeybad', 'error'));
print_error('confirmsesskeybad', 'error');
}
if ($module != '') {
require_once("$CFG->dirroot/mod/$module/lib.php");
include_once("$CFG->dirroot/mod/$module/lib.php");
admin_externalpage_setup('modsetting'.$module);
// if the config.html contains a hidden form field giving
// the module name then the form does not have to prefix all
// its variable names, we will do it here.
@@ -28,6 +27,8 @@
$moduleconfig($config);
}
} else {
admin_externalpage_setup('managemodules');
$moduleprefix = '';
}
@@ -43,7 +44,8 @@
/// Otherwise print the form.
$module = required_param('module', PARAM_SAFEDIR);
require_once("$CFG->dirroot/mod/$module/lib.php");
include_once("$CFG->dirroot/mod/$module/lib.php");
admin_externalpage_setup('modsetting'.$module);
$strmodulename = get_string("modulename", $module);
@@ -51,17 +53,17 @@
// of the page. It is also used to generate the link to the Moodle Docs for this view.
$CFG->pagepath = 'mod/' . $module . '/config';
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_heading($strmodulename);
print_simple_box("<center>".get_string("configwarning", 'admin')."</center>", "center", "60%");
print_simple_box(get_string("configwarning", 'admin'), "center", "60%");
echo "<br />";
print_simple_box_start("center", "");
include("$CFG->dirroot/mod/$module/config.html");
print_simple_box_end();
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+125 -50
View File
@@ -2,10 +2,15 @@
// Allows the admin to manage activity modules
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('managemodules', $adminroot);
require_once('../course/lib.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/tablelib.php');
require_once($CFG->libdir.'/ddllib.php');
// defines
define('MODULE_TABLE','module_administration_table');
admin_externalpage_setup('managemodules');
$show = optional_param('show', '', PARAM_SAFEDIR);
$hide = optional_param('hide', '', PARAM_SAFEDIR);
@@ -23,13 +28,7 @@
$strsettings = get_string("settings");
$stractivities = get_string("activities");
$stractivitymodule = get_string("activitymodule");
admin_externalpage_print_header($adminroot);
print_heading($stractivities);
$coursesaffected = false;
$strshowmodulecourse = get_string('showmodulecourse');
/// If data submitted, then process and store.
@@ -37,23 +36,46 @@
if (!$module = get_record("modules", "name", $hide)) {
error("Module doesn't exist!");
}
set_field("modules", "visible", "0", "id", $module->id); // Hide main module
set_field('course_modules', 'visibleold', '1', 'visible' ,'1', 'module', $module->id); // Remember the previous visible state so we can toggle this back if the module is unhidden.
set_field('course_modules', 'visibleold', '0', 'visible' ,'0', 'module', $module->id);
set_field("course_modules", "visible", "0", "module", $module->id); // Hide all related activity modules
$coursesaffected = true;
set_field("modules", "visible", "0", "id", $module->id); // Hide main module
// Remember the visibility status in visibleold
// and hide...
$sql = "UPDATE {$CFG->prefix}course_modules
SET visibleold=visible,
visible=0
WHERE module={$module->id}";
execute_sql($sql, false);
// clear the course modinfo cache for courses
// where we just deleted something
$sql = "UPDATE {$CFG->prefix}course
SET modinfo=''
WHERE id IN (SELECT DISTINCT course
FROM {$CFG->prefix}course_modules
WHERE visibleold=1 AND module={$module->id})";
execute_sql($sql, false);
admin_get_root(true, false); // settings not required - only pages
}
if (!empty($show) and confirm_sesskey()) {
if (!$module = get_record("modules", "name", $show)) {
error("Module doesn't exist!");
}
set_field("modules", "visible", "1", "id", $module->id); // Show main module
set_field('course_modules', 'visible', '1', 'visibleold', '1', 'module', $module->id); // Get the previous saved visible state for the course module.
$coursesaffected = true;
set_field("modules", "visible", "1", "id", $module->id); // Show main module
set_field('course_modules', 'visible', '1', 'visibleold',
'1', 'module', $module->id); // Get the previous saved visible state for the course module.
// clear the course modinfo cache for courses
// where we just made something visible
$sql = "UPDATE {$CFG->prefix}course
SET modinfo=''
WHERE id IN (SELECT DISTINCT course
FROM {$CFG->prefix}course_modules
WHERE visible=1 AND module={$module->id})";
execute_sql($sql, false);
admin_get_root(true, false); // settings not required - only pages
}
if (!empty($delete) and confirm_sesskey()) {
admin_externalpage_print_header();
print_heading($stractivities);
$strmodulename = get_string("modulename", "$delete");
@@ -61,7 +83,7 @@
notice_yesno(get_string("moduledeleteconfirm", "", $strmodulename),
"modules.php?delete=$delete&amp;confirm=1&amp;sesskey=$USER->sesskey",
"modules.php");
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
exit;
} else { // Delete everything!!
@@ -83,10 +105,31 @@
}
}
// delete calendar events
if (!delete_records("event", "modulename", $delete)) {
notify("Error occurred while deleting all $strmodulename records in calendar event table");
}
// clear course.modinfo for courses
// that used this module...
$sql = "UPDATE {$CFG->prefix}course
SET modinfo=''
WHERE id IN (SELECT DISTINCT course
FROM {$CFG->prefix}course_modules
WHERE module={$module->id})";
execute_sql($sql, false);
// Now delete all the course module records
if (!delete_records("course_modules", "module", $module->id)) {
notify("Error occurred while deleting all $strmodulename records in course_modules table");
}
if ($coursemods) {
foreach ($coursemods as $coursemod) {
if (!delete_context(CONTEXT_MODULE, $coursemod->id)) {
notify("Could not delete the context for $strmodulename with id = $coursemod->id");
}
}
}
// Then delete all the logs
if (!delete_records("log", "module", $module->name)) {
@@ -103,23 +146,34 @@
notify("Error occurred while deleting the $strmodulename record from modules table");
}
// Then the tables themselves
if ($tables = $db->Metatables()) {
$prefix = $CFG->prefix.$module->name;
foreach ($tables as $table) {
if (strpos($table, $prefix) === 0) {
if (!execute_sql("DROP TABLE $table", false)) {
notify("ERROR: while trying to drop table $table");
}
}
}
// And the module configuration records
if (!execute_sql("DELETE FROM {$CFG->prefix}config WHERE name LIKE '{$module->name}_%'")) {
notify("Error occurred while deleting the $strmodulename records from the config table");
}
// cleanup the gradebook
require_once($CFG->libdir.'/gradelib.php');
grade_uninstalled_module($module->name);
// Then the tables themselves
drop_plugin_tables($module->name, "$CFG->dirroot/mod/$module->name/db/install.xml", false);
// Delete the capabilities that were defined by this module
capabilities_cleanup('mod/'.$module->name);
// rebuild_course_cache(); // Because things have changed
$coursesaffected = true;
// remove entent handlers and dequeue pending events
events_uninstall('mod/'.$module->name);
// Perform any custom uninstall tasks
if (file_exists($CFG->dirroot . '/mod/' . $module->name . '/lib.php')) {
require_once($CFG->dirroot . '/mod/' . $module->name . '/lib.php');
$uninstallfunction = $module->name . '_uninstall';
if (function_exists($uninstallfunction)) {
if (! $uninstallfunction() ) {
notify('Encountered a problem running uninstall function for '. $module->name.'!');
}
}
}
$a->module = $strmodulename;
$a->directory = "$CFG->dirroot/mod/$delete";
@@ -127,10 +181,8 @@
}
}
if ($coursesaffected) {
rebuild_course_cache(); // Because things have changed
}
admin_externalpage_print_header();
print_heading($stractivities);
/// Get and sort the existing modules
@@ -146,15 +198,17 @@
}
$modulebyname[$strmodulename] = $module;
}
ksort($modulebyname);
ksort($modulebyname, SORT_LOCALE_STRING);
/// Print the table of all modules
$table->head = array ($stractivitymodule, $stractivities, $strversion, "$strhide/$strshow", $strdelete, $strsettings);
$table->align = array ("left", "right", "left", "center", "center", "center");
$table->wrap = array ("nowrap", "", "", "", "","");
$table->size = array ("100%", "10", "10", "10", "10","12");
$table->width = "100";
// construct the flexible table ready to display
$table = new flexible_table(MODULE_TABLE);
$table->define_columns(array('name', 'instances', 'version', 'hideshow', 'delete', 'settings'));
$table->define_headers(array($stractivitymodule, $stractivities, $strversion, "$strhide/$strshow", $strdelete, $strsettings));
$table->define_baseurl($CFG->wwwroot.'/'.$CFG->admin.'/modules.php');
$table->set_attribute('id', 'modules');
$table->set_attribute('class', 'generaltable generalbox boxaligncenter boxwidthwide');
$table->setup();
foreach ($modulebyname as $modulename => $module) {
@@ -163,13 +217,22 @@
$delete = "<a href=\"modules.php?delete=$module->name&amp;sesskey=$USER->sesskey\">$strdelete</a>";
if (file_exists("$CFG->dirroot/mod/$module->name/config.html")) {
if (file_exists("$CFG->dirroot/mod/$module->name/settings.php")) {
$settings = "<a href=\"settings.php?section=modsetting$module->name\">$strsettings</a>";
} else if (file_exists("$CFG->dirroot/mod/$module->name/config.html")) {
$settings = "<a href=\"module.php?module=$module->name\">$strsettings</a>";
} else {
$settings = "";
}
$count = count_records("$module->name");
$count = count_records_select("$module->name",'course<>0');
if ($count>0) {
$countlink = "<a href=\"{$CFG->wwwroot}/course/search.php?modulelist=$module->name" .
"&amp;sesskey={$USER->sesskey}\" title=\"$strshowmodulecourse\">$count</a>";
}
else {
$countlink = "$count";
}
if ($module->visible) {
$visible = "<a href=\"modules.php?hide=$module->name&amp;sesskey=$USER->sesskey\" title=\"$strhide\">".
@@ -178,19 +241,31 @@
} else {
$visible = "<a href=\"modules.php?show=$module->name&amp;sesskey=$USER->sesskey\" title=\"$strshow\">".
"<img src=\"$CFG->pixpath/i/show.gif\" class=\"icon\" alt=\"$strshow\" /></a>";
$class = "class=\"dimmed_text\"";
$class = " class=\"dimmed_text\"";
}
if ($module->name == "forum") {
$delete = "";
$visible = "";
$class = "";
}
$table->data[] = array ("<span $class>$icon $modulename</span>", $count, $module->version, $visible, $delete, $settings);
$extra = '';
if (!file_exists("$CFG->dirroot/mod/$module->name/lib.php")) {
$extra = ' <span class="notifyproblem">('.get_string('missingfromdisk').')</span>';
}
$table->add_data(array(
'<span'.$class.'>'.$icon.' '.$modulename.$extra.'</span>',
$countlink,
'<span'.$class.'>'.$module->version.'</span>',
$visible,
$delete,
$settings
));
}
print_table($table);
echo "<br /><br />";
$table->print_html();
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+26 -17
View File
@@ -4,17 +4,13 @@
require_once('../config.php');
require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('multilangupgrade', $adminroot);
admin_externalpage_setup('multilangupgrade');
$go = optional_param('go', 0, PARAM_BOOL);
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));
###################################################################
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_heading(get_string('multilangupgrade', 'admin'));
@@ -23,7 +19,7 @@ $strmultilangupgrade = get_String('multilangupgradeinfo', 'admin');
if (!$go or !data_submitted() or !confirm_sesskey()) { /// Print a form
$optionsyes = array('go'=>1, 'sesskey'=>sesskey());
notice_yesno($strmultilangupgrade, 'multilangupgrade.php', 'index.php', $optionsyes, null, 'post', 'get');
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
die;
}
@@ -42,7 +38,7 @@ while(@ob_end_flush());
echo '<strong>Progress:</strong>';
$i = 0;
$skiptables = array($CFG->prefix.'config');//, $CFG->prefix.'sessions2');
$skiptables = array($CFG->prefix.'config', $CFG->prefix.'user_students', $CFG->prefix.'user_teachers');//, $CFG->prefix.'sessions2');
foreach ($tables as $table) {
if (($CFG->prefix && strpos($table, $CFG->prefix) !== 0)
@@ -60,15 +56,11 @@ foreach ($tables as $table) {
if (in_array($data->type, array('text','mediumtext','longtext','varchar'))) { // Text stuff only
// first find candidate records
$rs = get_recordset_sql("SELECT id, $column FROM $table WHERE $column LIKE '%</lang>%' OR $column LIKE '%<span lang=%'");
if ($rs and $rs->RecordCount() > 0) {
if ($rs) {
while (!$rs->EOF) {
$text = $rs->fields[$column];
$search = '/(<(?:lang|span) lang="[a-zA-Z0-9_-]*".*?>.+?<\/(?:lang|span)>)(\s*<(?:lang|span) lang="[a-zA-Z0-9_-]*".*?>.+?<\/(?:lang|span)>)+/is';
$newtext = preg_replace_callback($search, 'multilangupgrade_impl', $text);
if ($newtext != $text) {
$newtext = addslashes($newtext);
execute_sql("UPDATE $table SET $column='$newtext' WHERE id=".$rs->fields['id'], false);
}
$id = $rs->fields['id'];
if ($i % 600 == 0) {
echo '<br />';
}
@@ -77,7 +69,24 @@ foreach ($tables as $table) {
}
$i++;
$rs->MoveNext();
if (empty($text) or is_numeric($text)) {
continue; // nothing to do
}
$search = '/(<(?:lang|span) lang="[a-zA-Z0-9_-]*".*?>.+?<\/(?:lang|span)>)(\s*<(?:lang|span) lang="[a-zA-Z0-9_-]*".*?>.+?<\/(?:lang|span)>)+/is';
$newtext = preg_replace_callback($search, 'multilangupgrade_impl', $text);
if (is_null($newtext)) {
continue; // regex error
}
if ($newtext != $text) {
$newtext = addslashes($newtext);
execute_sql("UPDATE $table SET $column='$newtext' WHERE id=$id", false);
}
}
rs_close($rs);
}
}
}
@@ -96,7 +105,7 @@ notify('...finished', 'notifysuccess');
print_continue('index.php');
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
die;
+5 -9
View File
@@ -4,16 +4,12 @@ if (!isset($CFG)) {
require('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('oacleanup', $adminroot);
require_login();
admin_externalpage_setup('oacleanup');
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
online_assignment_cleanup(true);
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
}
@@ -46,7 +42,7 @@ function online_assignment_cleanup($output=false) {
/// get a list of all courses on this site
$courses = get_courses();
$courses = get_records('course');
/// cycle through each course
foreach ($courses as $course) {
@@ -99,7 +95,7 @@ function online_assignment_cleanup($output=false) {
/// grab the section record
if (!($section = get_record('course_sections', 'id', $newsection))) {
if ($output) echo 'Serious error: Cannot retrieve section: '.$newsection.' for course: '.$course->fullname.'<br />';
if ($output) echo 'Serious error: Cannot retrieve section: '.$newsection.' for course: '. format_string($course->fullname) .'<br />';
continue;
}
+65 -37
View File
@@ -15,68 +15,63 @@ define('BLOCK_L_MIN_WIDTH', $lmin);
define('BLOCK_L_MAX_WIDTH', $lmax);
define('BLOCK_R_MIN_WIDTH', $rmin);
define('BLOCK_R_MAX_WIDTH', $rmax);
page_map_class(PAGE_ADMIN, 'page_admin');
class page_admin extends page_base {
var $section;
var $pathtosection;
var $section = '';
var $visiblepathtosection;
var $extraurlparams = array();
var $extrabutton = '';
var $url = '';
// hack alert!
// this function works around the inability to store the section name
// in default block, maybe we should "improve" the blocks a bit?
function init_extra($section) {
function init_extra($section) {
global $CFG;
if($this->full_init_done) {
return;
}
$adminroot = admin_get_root();
$adminroot =& admin_get_root(false, false); //settings not required - only pages
// fetch the path parameter
$this->section = $section;
$this->visiblepathtosection = array();
// this part is (potentially) processor-intensive... there's gotta be a better way
// of handling this
if ($this->pathtosection = $adminroot->path($this->section)) {
foreach($this->pathtosection as $element) {
if ($pointer = $adminroot->locate($element)) {
array_push($this->visiblepathtosection, $pointer->visiblename);
}
}
}
$current =& $adminroot->locate($section, true);
$this->visiblepathtosection = array_reverse($current->visiblepath);
// all done
$this->full_init_done = true;
}
function blocks_get_default() {
return 'admin_tree,admin_bookmarks';
}
// seems reasonable that the only people that can edit blocks on the admin pages
// are the admins... but maybe we want a role for this?
function user_allowed_editing() {
return has_capability('moodle/site:manageblocks', get_context_instance(CONTEXT_SYSTEM, SITEID));
function user_allowed_editing() {
return has_capability('moodle/site:manageblocks', get_context_instance(CONTEXT_SYSTEM));
}
// has to be fixed. i know there's a "proper" way to do this
function user_is_editing() {
function user_is_editing() {
global $USER;
return $USER->adminediting;
}
function url_get_path() {
function url_get_path() {
global $CFG;
if (!empty($this->url)) {
return $this->url;
}
$adminroot = admin_get_root();
$adminroot =& admin_get_root(false, false); //settings not required - only pages
$root = $adminroot->locate($this->section);
$root =& $adminroot->locate($this->section);
if (is_a($root, 'admin_externalpage')) {
return $root->url;
} else {
@@ -84,15 +79,36 @@ class page_admin extends page_base {
}
}
function url_get_parameters() { // only handles parameters relevant to the admin pagetype
return array('section' => (isset($this->section) ? $this->section : ''));
/**
* Use this to pass extra HTML that is added after the turn blocks editing on/off button.
*
* @param string $extrabutton HTML code.
*/
function set_extra_button($extrabutton) {
$this->extrabutton = $extrabutton;
}
function blocks_get_positions() {
/**
* Use this to pass extra URL parameters that, for example, the blocks editing controls need to reload the current page accurately.
*
* @param array $extraurlparams paramname => value array.
*/
function set_extra_url_params($extraurlparams, $actualurl = '') {
$this->extraurlparams = $extraurlparams;
if (!empty($actualurl)) {
$this->url = $actualurl;
}
}
function url_get_parameters() { // only handles parameters relevant to the admin pagetype
return array_merge($this->extraurlparams, array('section' => $this->section));
}
function blocks_get_positions() {
return array(BLOCK_POS_LEFT, BLOCK_POS_RIGHT);
}
function blocks_default_position() {
function blocks_default_position() {
return BLOCK_POS_LEFT;
}
@@ -110,23 +126,35 @@ class page_admin extends page_base {
parent::init_quick($data);
}
function print_header($section = '') {
function print_header($section = '', $focus='') {
global $USER, $CFG, $SITE;
$this->init_full($section); // we're trusting that init_full() has already been called by now; it should have.
// if not, print_header() has to be called with a $section parameter
if ($this->user_allowed_editing()) {
$buttons = '<div><form '.$CFG->frametarget.' method="get" action="' . $this->url_get_path() . '">'.
'<fieldset class="invisiblefieldset"><input type="hidden" name="adminedit" value="'.($this->user_is_editing()?'off':'on').'" />'.
'<input type="hidden" name="section" value="'.$this->section.'" />'.
'<input type="submit" value="'.get_string($this->user_is_editing()?'blockseditoff':'blocksediton').'" /></fieldset></form></div>';
// The search page currently doesn't handle block editing
if ($this->section != 'search' and $this->user_allowed_editing()) {
$options = $this->url_get_parameters();
if ($this->user_is_editing()) {
$caption = get_string('blockseditoff');
$options['adminedit'] = 'off';
} else {
$caption = get_string('blocksediton');
$options['adminedit'] = 'on';
}
$buttons = print_single_button($this->url_get_path(), $options, $caption, 'get', '', true);
} else {
$buttons = '&nbsp;';
}
print_header("$SITE->shortname: " . implode(": ",$this->visiblepathtosection), $SITE->fullname,
implode(" -> ",$this->visiblepathtosection),'', '', true, $buttons, '');
$buttons .= $this->extrabutton;
$navlinks = array();
foreach ($this->visiblepathtosection as $element) {
$navlinks[] = array('name' => $element, 'link' => null, 'type' => 'misc');
}
$navigation = build_navigation($navlinks);
print_header("$SITE->shortname: " . implode(": ",$this->visiblepathtosection), $SITE->fullname, $navigation, $focus, '', true, $buttons, '');
}
function get_type() {
+3 -8
View File
@@ -4,14 +4,9 @@
require_once("../config.php");
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('phpinfo', $adminroot);
admin_externalpage_setup('phpinfo');
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
echo '<div class="phpinfo">';
@@ -33,6 +28,6 @@
echo '</div>';
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+3 -3
View File
@@ -16,8 +16,8 @@ if ($_ENV['RECIPIENT'] == $CFG->noreplyaddress) {
}
$site = get_site();
$subject = get_string('noreplybouncesubject','moodle',$site->fullname);
$body = get_string('noreplybouncemessage','moodle',$site->fullname)."\n\n";
$subject = get_string('noreplybouncesubject','moodle',format_string($site->fullname));
$body = get_string('noreplybouncemessage','moodle',format_string($site->fullname))."\n\n";
$fd = fopen('php://stdin','r');
if ($fd) {
@@ -54,7 +54,7 @@ if ($modid == '0') { // special
}
else {
$modname = get_field("modules","name","id",$modid);
require_once('mod/'.$modname.'/lib.php');
include_once('mod/'.$modname.'/lib.php');
}
$function = $modname.'_process_email';
+16 -20
View File
@@ -5,14 +5,14 @@
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
if (!$site = get_site()) {
redirect("index.php");
}
if (!confirm_sesskey()) {
error(get_string('confirmsesskeybad', 'error'));
print_error('confirmsesskeybad', 'error');
}
if (!$admin = get_admin()) {
@@ -23,19 +23,15 @@
$admin->country = $CFG->country;
}
if (empty($CFG->siteidentifier)) { // Unique site identification code
set_config('siteidentifier', random_string(32).$_SERVER['HTTP_HOST']);
}
/// Print headings
$stradministration = get_string("administration");
$strregistration = get_string("registration");
$strregistrationinfo = get_string("registrationinfo");
print_header("$site->shortname: $strregistration", "$site->fullname",
"<a href=\"../$CFG->admin/index.php\">$stradministration</a> -> $strregistration");
$navlinks = array();
$navlinks[] = array('name' => $stradministration, 'link' => "../$CFG->admin/index.php", 'type' => 'misc');
$navlinks[] = array('name' => $strregistration, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header("$site->shortname: $strregistration", $site->fullname, $navigation);
print_heading($strregistration);
@@ -52,7 +48,7 @@
echo "<!-- Together they form a key. If any of these change between updates then the entry -->\n";
echo "<!-- is flagged as a new entry and will be manually checked by the list maintainer -->\n";
echo "<input type=\"hidden\" name=\"url\" value=\"$CFG->wwwroot\" />\n";
echo "<input type=\"hidden\" name=\"secret\" value=\"$CFG->siteidentifier\" />\n";
echo "<input type=\"hidden\" name=\"secret\" value=\"" . get_site_identifier() . "\" />\n";
echo "<input type=\"hidden\" name=\"host\" value=\"".$_SERVER["HTTP_HOST"]."\" />\n";
echo "<input type=\"hidden\" name=\"lang\" value=\"".current_language()."\" />\n";
@@ -63,16 +59,16 @@
echo '<div class="fitemtitle"><label>URL</label></div>';
echo '<div class="felement ftext">'.$CFG->wwwroot.'</div>';
echo '</div>';
echo '<div class="fitem">';
echo '<div class="fitemtitle"><label>'.get_string("currentversion").'</label></div>';
echo '<div class="felement ftext">'."$CFG->release ($CFG->version)".'</div>';
echo '</div>';
echo '<div class="fitem">';
echo '<div class="fitemtitle"><label for="sitename">'.get_string("fullsitename").'</label></div>';
echo '<div class="felement ftext">';
echo '<input size="50" id="sitename" type="text" name="sitename" value="'.$site->fullname.'" />';
echo '<input size="50" id="sitename" type="text" name="sitename" value="'.format_string($site->fullname).'" />';
echo '</div>';
echo '</div>';
@@ -103,7 +99,7 @@
unset($options);
echo '</div>';
echo '</div>';
echo '<div class="fitem">';
echo '<div class="fitemtitle"><label>'.get_string("statistics")."<br />(".get_string("notpublic").')'.'</label></div>';
echo '<div class="felement ftext">';
@@ -119,7 +115,7 @@
echo '<br />';
// total number of role assignments
$count = count_records('role_assignments');
$count = count_records('role_assignments');
echo get_string('roleassignments', 'role').": ".$count;
echo "<input type=\"hidden\" name=\"roleassignments\" value=\"$count\" />\n";
echo '<br />';
@@ -127,13 +123,13 @@
// first find all distinct roles with mod/course:update
// please change the name and strings to something appropriate to reflect the new data collected
$sql = "SELECT COUNT(DISTINCT u.id)
FROM {$CFG->prefix}role_capabilities rc,
FROM {$CFG->prefix}role_capabilities rc,
{$CFG->prefix}role_assignments ra,
{$CFG->prefix}user u
WHERE (rc.capability = 'moodle/course:update' or rc.capability='moodle/site:doanything')
AND rc.roleid = ra.roleid
AND u.id = ra.userid";
$count = count_records_sql($sql);
echo get_string("teachers").": ".$count;
echo "<input type=\"hidden\" name=\"courseupdaters\" value=\"$count\" />\n";
@@ -154,7 +150,7 @@
echo "<input type=\"hidden\" name=\"resources\" value=\"$count\" />\n";
echo '</div>';
echo '</div>';
echo '<div class="fitem">';
echo '<div class="fitemtitle"><label for="adminname">'.get_string("administrator").'</label></div>';
echo '<div class="felement ftext">';
+8 -34
View File
@@ -4,18 +4,14 @@
require_once('../config.php');
require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('replace', $adminroot);
admin_externalpage_setup('replace');
$search = optional_param('search', '', PARAM_RAW);
$replace = optional_param('replace', '', PARAM_RAW);
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));
###################################################################
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_heading('Search and replace text throughout the whole database');
@@ -23,7 +19,7 @@ print_heading('Search and replace text throughout the whole database');
if (!data_submitted() or !$search or !$replace or !confirm_sesskey()) { /// Print a form
print_simple_box_start('center');
echo '<div align="center">';
echo '<div class="mdl-align">';
echo '<form action="replace.php" method="post">';
echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
echo 'Search whole database for: <input type="text" name="search" /><br />';
@@ -32,36 +28,14 @@ if (!data_submitted() or !$search or !$replace or !confirm_sesskey()) { /// Pr
echo '</form>';
echo '</div>';
print_simple_box_end();
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
die;
}
if (!$tables = $db->Metatables() ) { // No tables yet at all.
error("no tables");
}
print_simple_box_start('center');
/// Turn off time limits, sometimes upgrades can be slow.
@set_time_limit(0);
@ob_implicit_flush(true);
while(@ob_end_flush());
foreach ($tables as $table) {
if (in_array($table, array($CFG->prefix.'config'))) { // Don't process these
continue;
}
if ($columns = $db->MetaColumns($table, false)) {
foreach ($columns as $column => $data) {
if (in_array($data->type, array('text','mediumtext','longtext','varchar'))) { // Text stuff only
$db->debug = true;
execute_sql("UPDATE $table SET $column = REPLACE($column, '$search', '$replace');");
$db->debug = false;
}
}
}
if (!db_replace($search, $replace)) {
error('An error has occured during this process');
}
print_simple_box_end();
@@ -73,6 +47,6 @@ notify('...finished');
print_continue('index.php');
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+135
View File
@@ -0,0 +1,135 @@
<?php // $Id$
// index.php - scheduled backup logs
require_once('../../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot.'/backup/lib.php');
$courseid = optional_param('courseid', 0, PARAM_INT);
admin_externalpage_setup('reportbackups');
admin_externalpage_print_header();
/// Scheduled backups are disabled by the server admin
if (!empty($CFG->disablescheduledbackups)) {
print_error('scheduledbackupsdisabled', '', '', NULL, true);
}
/// Scheduled backups aren't active by the site admin
$backup_config = backup_get_config();
if (empty($backup_config->backup_sche_active)) {
notify(get_string('scheduledbackupsinactive'));
}
/// Get needed strings
$backuploglaststatus = get_string("backuploglaststatus");
$backuplogdetailed = get_string("backuplogdetailed");
$stradmin = get_string("administration");
$strconfiguration = get_string("configuration");
$strbackup = get_string("backup");
$strbackupdetails = get_string("backupdetails");
$strlogs = get_string("logs");
$strftimedatetime = get_string("strftimerecent");
$strftimetime = get_string("strftimetime").":%S";
$strerror = get_string("error");
$strok = get_string("ok");
$strunfinished = get_string("unfinished");
$strskipped = get_string("skipped");
$strcourse = get_string("course");
$strtimetaken = get_string("timetaken","quiz");
$strstatus = get_string("status");
$strnext = get_string("next");
/// Decide when to show last execution logs or detailed logs
/// Lastlog view
if (!$courseid) {
print_heading($backuploglaststatus);
print_simple_box_start('center');
/// Now, get every record from backup_courses
$courses = get_records("backup_courses");
if (!$courses) {
notify(get_string('nologsfound'));
} else {
echo "<table border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"3\">";
//Print table header
echo "<tr>";
echo "<td nowrap=\"nowrap\" align=\"center\"><font size=\"3\">$strcourse</font></td>";
echo "<td nowrap=\"nowrap\" align=\"center\" colspan=\"3\"><font size=\"3\">$strtimetaken</font></td>";
echo "<td nowrap=\"nowrap\" align=\"center\"><font size=\"3\">$strstatus</font></td>";
echo "<td nowrap=\"nowrap\" align=\"center\"><font size=\"3\">$strnext</font></td></tr>";
foreach ($courses as $course) {
/// Get the course shortname
$coursename = get_field ("course","fullname","id",$course->courseid);
if ($coursename) {
echo "<tr>";
echo "<td nowrap=\"nowrap\"><font size=\"2\"><a href=\"index.php?courseid=$course->courseid\">".$coursename."</a></font></td>";
echo "<td nowrap=\"nowrap\"><font size=\"2\">".userdate($course->laststarttime,$strftimedatetime)."</font></td>";
echo "<td nowrap=\"nowrap\"><font size=\"2\"> - </font></td>";
echo "<td nowrap=\"nowrap\"><font size=\"2\">".userdate($course->lastendtime,$strftimedatetime)."</font></td>";
if ($course->laststatus == 1) {
echo "<td nowrap=\"nowrap\" align=\"center\"><font size=\"2\" color=\"green\">".$strok."</font></td>";
} else if ($course->laststatus == 2) {
echo "<td nowrap=\"nowrap\" align=\"center\"><font size=\"2\" color=\"red\">".$strunfinished."</font></td>";
} else if ($course->laststatus == 3) {
echo "<td nowrap=\"nowrap\" align=\"center\"><font size=\"2\" color=\"green\">".$strskipped."</font></td>";
} else {
echo "<td nowrap=\"nowrap\" align=\"center\"><font size=\"2\" color=\"red\">".$strerror."</font></td>";
}
echo "<td nowrap=\"nowrap\"><font size=\"2\">".userdate($course->nextstarttime,$strftimedatetime)."</font></td>";
echo "</tr>";
}
}
echo "</table>";
}
print_simple_box_end();
/// Detailed View !!
} else {
print_heading($backuplogdetailed);
$coursename = get_field("course","fullname","id","$courseid");
print_heading("$strcourse: $coursename");
print_simple_box_start('center');
/// First, me get all the distinct backups for that course in backup_log
$executions = get_records_sql("SELECT DISTINCT laststarttime,laststarttime
FROM {$CFG->prefix}backup_log
WHERE courseid = '$courseid'
ORDER BY laststarttime DESC");
/// Iterate over backup executions
if (!$executions) {
notify(get_string('nologsfound'));
} else {
echo "<table border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"3\">";
foreach($executions as $execution) {
echo "<tr>";
echo "<td nowrap=\"nowrap\" align=\"center\" colspan=\"3\">";
print_simple_box("<center>".userdate($execution->laststarttime)."</center>", "center");
echo "</td>";
echo "</tr>";
$logs = get_records_sql("SELECT *
FROM {$CFG->prefix}backup_log
WHERE courseid = '$courseid' AND
laststarttime = '$execution->laststarttime'
ORDER BY id");
if ($logs) {
foreach ($logs as $log) {
echo "<tr>";
echo "<td nowrap=\"nowrap\"><font size=\"2\">".userdate($log->time,$strftimetime)."</font></td>";
$log->info = str_replace("- ERROR!!","- <font color=\"red\">ERROR!!</font>",$log->info);
$log->info = str_replace("- OK","- <font color=\"green\">OK</font>",$log->info);
echo "<td nowrap=\"nowrap\"><font size=\"2\">".str_replace(" ","&nbsp;&nbsp;&nbsp;&nbsp;",$log->info)."</font></td>";
echo "</tr>";
}
}
}
echo "</table>";
}
print_simple_box_end();
}
print_footer();
?>
+3
View File
@@ -0,0 +1,3 @@
<?php // $Id$
$ADMIN->add('reports', new admin_externalpage('reportbackups', get_string('backups', 'admin'), "$CFG->wwwroot/$CFG->admin/report/backups/index.php",'moodle/site:backup'));
?>
+42
View File
@@ -0,0 +1,42 @@
<?php // $Id$
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
// //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
$report_courseoverview_capabilities = array(
'report/courseoverview:view' => array(
'riskbitmask' => RISK_PERSONAL,
'captype' => 'read',
'contextlevel' => CONTEXT_SYSTEM,
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
'admin' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/site:viewreports',
)
);
?>
+18 -18
View File
@@ -4,23 +4,21 @@
require_once($CFG->dirroot.'/lib/statslib.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('reportcourseoverview', $adminroot);
admin_externalpage_print_header($adminroot);
$report = optional_param('report', STATS_REPORT_ACTIVE_COURSES, PARAM_INT);
$time = optional_param('time', 0, PARAM_INT);
$numcourses = optional_param('numcourses', 20, PARAM_INT);
require_capability('moodle/site:viewreports', get_context_instance(CONTEXT_SYSTEM, SITEID)); // needed?
admin_externalpage_setup('reportcourseoverview');
admin_externalpage_print_header();
if (empty($CFG->enablestats)) {
redirect("$CFG->wwwroot/$CFG->admin/settings.php?section=stats", get_string('mustenablestats', 'admin'));
if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) {
redirect("$CFG->wwwroot/$CFG->admin/settings.php?section=stats", get_string('mustenablestats', 'admin'), 3);
} else {
error("Stats is not enabled.");
}
}
$course = get_site();
stats_check_uptodate($course->id);
@@ -46,11 +44,11 @@
$timeoptions = stats_get_time_options($now,$lastweekend,$lastmonthend,$earliestday,$earliestweek,$earliestmonth);
if (empty($timeoptions)) {
error(get_string('nostatstodisplay'), $CFG->wwwroot.'/course/view.php?id='.$course->id, $adminroot);
print_error('nostatstodisplay', "", $CFG->wwwroot.'/course/view.php?id='.$course->id);
}
echo '<form action="index.php" method="post">'."\n";
echo '<fieldset class="invisiblefieldset">';
echo '<div>';
$table->width = '*';
$table->align = array('left','left','left','left','left','left');
@@ -60,17 +58,19 @@
'<input type="submit" value="'.get_string('view').'" />') ;
print_table($table);
echo '</fieldset>';
echo '</div>';
echo '</form>';
print_heading($reportoptions[$report]);
if (!empty($report) && !empty($time)) {
$param = stats_get_parameters($time,$report,SITEID,STATS_MODE_RANKED);
if (!empty($param->sql)) {
$sql = $param->sql;
} else {
$sql = "SELECT courseid,".$param->fields." FROM ".$CFG->prefix.'stats_'.$param->table
." WHERE timeend >= ".$param->timeafter.' AND stattype = \'activity\''
." WHERE timeend >= $param->timeafter AND stattype = 'activity' AND roleid = 0"
." GROUP BY courseid "
.$param->extras
." ORDER BY ".$param->orderby;
@@ -84,9 +84,9 @@
} else {
if (empty($CFG->gdversion)) {
echo '<div class="boxaligncenter">(' . get_string("gdneed") .')</div>';
echo '<div class="graph">(' . get_string("gdneed") .')</div>';
} else {
echo '<div class="boxaligncenter"><img alt="'.get_string('courseoverviewgraph').'" src="'.$CFG->wwwroot.'/'.$CFG->admin.'/report/courseoverview/reportsgraph.php?time='.$time.'&report='.$report.'&numcourses='.$numcourses.'" /></div>';
echo '<div class="graph"><img alt="'.get_string('courseoverviewgraph').'" src="'.$CFG->wwwroot.'/'.$CFG->admin.'/report/courseoverview/reportsgraph.php?time='.$time.'&report='.$report.'&numcourses='.$numcourses.'" /></div>';
}
$table = new StdClass;
@@ -115,6 +115,6 @@
print_table($table);
}
}
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
?>
+4 -4
View File
@@ -10,9 +10,9 @@
require_login();
require_capability('moodle/site:viewreports', get_context_instance(CONTEXT_SYSTEM, SITEID));
require_capability('report/courseoverview:view', get_context_instance(CONTEXT_SYSTEM));
stats_check_uptodate($course->id);
stats_check_uptodate();
$param = stats_get_parameters($time,$report,SITEID,STATS_MODE_RANKED);
@@ -20,7 +20,7 @@
$sql = $param->sql;
} else {
$sql = "SELECT courseid,".$param->fields." FROM ".$CFG->prefix.'stats_'.$param->table
." WHERE timeend >= ".$param->timeafter.' AND stattype = \'activity\''
." WHERE timeend >= $param->timeafter AND stattype = 'activity' AND roleid = 0"
." GROUP BY courseid "
.$param->extras
." ORDER BY ".$param->orderby;
@@ -29,7 +29,7 @@
$courses = get_records_sql($sql, 0, $numcourses);
if (empty($courses)) {
error(get_string('statsnodata'),$CFG->wwwroot.'/'.$CFG->admin.'/report/course/index.php');
print_error('statsnodata', "", $CFG->wwwroot.'/'.$CFG->admin.'/report/courseoverview/index.php');
}
+3
View File
@@ -0,0 +1,3 @@
<?php // $Id$
$ADMIN->add('reports', new admin_externalpage('reportcourseoverview', get_string('courseoverview', 'admin'), "$CFG->wwwroot/$CFG->admin/report/courseoverview/index.php",'report/courseoverview:view'));
?>
+29
View File
@@ -0,0 +1,29 @@
<?PHP // $Id$
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
// //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
$plugin->version = 2007101503;
$plugin->requires = 2007101532;
?>
-33
View File
@@ -1,33 +0,0 @@
<?php // $Id$
require_once('../../../config.php');
require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->dirroot.'/course/report/log/lib.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('reportlog', $adminroot);
admin_externalpage_print_header($adminroot);
$course = get_site();
print_heading(get_string('chooselogs') .':');
print_mnet_log_selector_form($CFG->mnet_localhost_id, $course);
echo '<br />';
print_heading(get_string('chooselivelogs') .':');
$heading = link_to_popup_window('/course/report/log/live.php?id='. $course->id,
'livelog', get_string('livelogs'),
500, 800, '', 'none', true);
print_heading($heading, 'center', 3);
admin_externalpage_print_footer($adminroot);
?>
+5
View File
@@ -0,0 +1,5 @@
<?php // $Id$
// just a link to course report
$ADMIN->add('reports', new admin_externalpage('reportlog', get_string('log', 'admin'), "$CFG->wwwroot/course/report/log/index.php?id=".SITEID, 'coursereport/log:view'));
$ADMIN->add('reports', new admin_externalpage('reportloglive', get_string('loglive', 'coursereport_log'), "$CFG->wwwroot/course/report/log/indexlive.php?id=".SITEID, 'coursereport/log:viewlive'));
?>
+73
View File
@@ -0,0 +1,73 @@
<?php // $Id$
require_once('../../../config.php');
require_once($CFG->dirroot.'/question/upgrade.php');
require_once($CFG->libdir.'/adminlib.php');
admin_externalpage_setup('reportquestion');
admin_externalpage_print_header();
print_heading(get_string('adminreport', 'question'));
$probstr = '';
$contextupgradeversion = 2007081000;
if ($CFG->version < $contextupgradeversion){
///cwrqpfs issue
$probstr = print_heading(get_string('cwrqpfs', 'question'), '', 3, 'main', true);
if ($updates = question_cwqpfs_to_update()){
$probstr .=get_string('cwrqpfsinfo', 'question');
$probstr .= '<ul>';
$catlist = join(array_keys($updates), ',');
//get info about cateogries and no of questions used outside category's course
$categories = get_records_sql('SELECT qc.*, c.fullname as coursename FROM '.$CFG->prefix.'question_categories as qc, '
.$CFG->prefix.'course as c WHERE qc.course = c.id AND qc.id IN ('.$catlist.')');
foreach ($updates as $id => $publish){
$categories[$id]->caturl = "$CFG->wwwroot/question/category.php?sesskey=".sesskey().
"&amp;edit=$id&amp;courseid=".$categories[$id]->course;
if ($categories[$id]->publish){
$categories[$id]->changefrom = get_string('published', 'question');
$categories[$id]->changeto = get_string('unpublished', 'question');
} else {
$categories[$id]->changefrom = get_string('unpublished', 'question');
$categories[$id]->changeto = get_string('published', 'question');
}
$probstr .= '<li>'.get_string('changepublishstatuscat', 'question', $categories[$id]);
if ($questions = get_records_sql('SELECT q.*, qui.id as quizid, qui.name as quizname, cm.id as cmid, '
.'qui.course, c.fullname as coursename FROM '.$CFG->prefix.'question q, '
.$CFG->prefix.'quiz_question_instances qqi, '
.$CFG->prefix.'quiz qui, '
.$CFG->prefix.'course_modules cm, '
.$CFG->prefix.'modules m, '
.$CFG->prefix.'course c '
.'WHERE (q.category = '.$id.' AND qqi.question = q.id '
.'AND qqi.quiz = qui.id '
.'AND qui.course = c.id '
.'AND cm.instance = qui.id '
.'AND cm.module = m.id '
.'AND m.name = \'quiz\''
.'AND ('.$categories[$id]->course.' <> qui.course)) ORDER BY qui.id ASC')){
$probstr .= '<ul>';
foreach ($questions as $question){
$question->quizurl = "$CFG->wwwroot/mod/quiz/edit.php?cmid=".$question->cmid;
$question->qurl = "$CFG->wwwroot/question/question.php?cmid={$question->cmid}&amp;id={$question->id}&amp;returnurl=".urlencode($FULLME);
$probstr .= '<li>'.get_string('questionaffected', 'question', $question).'</li>';
}
$probstr .= '</ul>';
}
$probstr .= '</li>';
}
$probstr .= '</ul>';
} else {
$probstr .=('<p>'.get_string('cwrqpfsnoprob', 'question').'</p>');
}
}
if ($probstr) {
print_box($probstr);
} else {
print_box(get_string('noprobs', 'question'), 'boxwidthnarrow boxaligncenter generalbox');
}
admin_externalpage_print_footer();
?>
+3
View File
@@ -0,0 +1,3 @@
<?php // $Id$
$ADMIN->add('reports', new admin_externalpage('reportquestion', get_string('question', 'admin'), "$CFG->wwwroot/$CFG->admin/report/question/index.php", 'moodle/site:config'));
?>
+36
View File
@@ -0,0 +1,36 @@
<?php // $Id$
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
// //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
$report_security_capabilities = array(
'report/security:view' => array(
'riskbitmask' => RISK_CONFIG,
'captype' => 'read',
'contextlevel' => CONTEXT_SYSTEM,
'legacy' => array(
'admin' => CAP_ALLOW
),
)
);
+125
View File
@@ -0,0 +1,125 @@
<?php //$Id$
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.org //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com //
// //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
require_once('../../../config.php');
require_once($CFG->dirroot.'/'.$CFG->admin.'/report/security/lib.php');
require_once($CFG->libdir.'/adminlib.php');
require_login();
$issue = optional_param('issue', '', PARAM_FILE); // show detailed info about one issue only
$issues = report_security_get_issue_list();
// test if issue valid string
if (array_search($issue, $issues, true) === false) {
$issue = '';
}
// we may need a bit more memory and this may take a long time to process
@raise_memory_limit('128M');
@set_time_limit(0);
// Print the header.
admin_externalpage_setup('reportsecurity');
admin_externalpage_print_header();
print_heading(get_string('reportsecurity', 'report_security'));
echo '<div id="timewarning">'.get_string('timewarning', 'report_security').'</div>';
while(@ob_end_flush());
@flush();
$strok = '<span class="statusok">'.get_string('statusok', 'report_security').'</span>';
$strinfo = '<span class="statusinfo">'.get_string('statusinfo', 'report_security').'</span>';
$strwarning = '<span class="statuswarning">'.get_string('statuswarning', 'report_security').'</span>';
$strserious = '<span class="statusserious">'.get_string('statusserious', 'report_security').'</span>';
$strcritical = '<span class="statuscritical">'.get_string('statuscritical', 'report_security').'</span>';
$strissue = get_string('issue', 'report_security');
$strstatus = get_string('status', 'report_security');
$strdesc = get_string('description', 'report_security');
$strconfig = get_string('configuration', 'report_security');
$statusarr = array(REPORT_SECURITY_OK => $strok,
REPORT_SECURITY_INFO => $strinfo,
REPORT_SECURITY_WARNING => $strwarning,
REPORT_SECURITY_SERIOUS => $strserious,
REPORT_SECURITY_CRITICAL => $strcritical);
$url = "$CFG->wwwroot/$CFG->admin/report/security/index.php";
if ($issue and ($result = $issue(true))) {
report_security_hide_timearning();
$table = new object();
$table->head = array($strissue, $strstatus, $strdesc, $strconfig);
$table->size = array('30%', '10%', '50%', '10%' );
$table->align = array('left', 'left', 'left', 'left');
$table->width = '90%';
$table->data = array();
// print detail of one issue only
$row = array();
$row[0] = $result->name;
$row[1] = $statusarr[$result->status];
$row[2] = $result->info;
$row[3] = is_null($result->link) ? '&nbsp;' : $result->link;
$table->data[] = $row;
print_table($table);
print_box($result->details, 'generalbox boxwidthnormal boxaligncenter'); // TODO: add proper css
print_continue($url);
} else {
report_security_hide_timearning();
$table = new object();
$table->head = array($strissue, $strstatus, $strdesc);
$table->size = array('30%', '10%', '60%' );
$table->align = array('left', 'left', 'left');
$table->width = '90%';
$table->data = array();
foreach ($issues as $issue) {
$result = $issue(false);
if (!$result) {
// ignore this test
continue;
}
$row = array();
$row[0] = "<a href='$url?issue=$result->issue'>$result->name</a>";
$row[1] = $statusarr[$result->status];
$row[2] = $result->info;
$table->data[] = $row;
}
print_table($table);
}
print_footer();
File diff suppressed because it is too large Load Diff
+3
View File
@@ -0,0 +1,3 @@
<?php //$Id$
$ADMIN->add('reports', new admin_externalpage('reportsecurity', get_string('reportsecurity', 'report_security'), "$CFG->wwwroot/$CFG->admin/report/security/index.php",'report/security:view'));
+29
View File
@@ -0,0 +1,29 @@
<?PHP // $Id$
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
// //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
$plugin->version = 2007101500;
$plugin->requires = 2007101533;
?>
-77
View File
@@ -1,77 +0,0 @@
<?php // $Id$
require_once('../../../config.php');
require_once($CFG->dirroot.'/lib/statslib.php');
require_once($CFG->dirroot.'/course/report/stats/lib.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('reportstats', $adminroot);
admin_externalpage_print_header($adminroot);
$courseid = optional_param('course', SITEID, PARAM_INT);
$report = optional_param('report', 0, PARAM_INT);
$time = optional_param('time', 0, PARAM_INT);
$mode = optional_param('mode', STATS_MODE_GENERAL, PARAM_INT);
$userid = optional_param('userid', 0, PARAM_INT);
$roleid = 0;
if ($report > 50) {
$roleid = substr($report,1);
$report = 5;
}
if ($report == STATS_REPORT_USER_LOGINS) {
$courseid = SITEID; //override
}
if ($mode == STATS_MODE_RANKED) {
redirect($CFG->wwwroot.'/'.$CFG->admin.'/report/stats/index.php?time='.$time);
}
if (!$course = get_record("course","id",$courseid)) {
error("That's an invalid course id");
}
if (!empty($userid)) {
if (!$user = get_record('user','id',$userid)) {
error("That's an invalid user id");
}
}
require_login();
if (empty($CFG->enablestats)) {
redirect("$CFG->wwwroot/$CFG->admin/settings.php?section=stats", get_string('mustenablestats', 'admin'));
}
require_capability('moodle/site:viewreports', get_context_instance(CONTEXT_COURSE, $course->id));
add_to_log($course->id, "course", "report stats", "report/stats/index.php?course=$course->id", $course->id);
stats_check_uptodate($course->id);
// $strreports = get_string("reports");
// $strstats = get_string('stats');
//
// $menu = report_stats_mode_menu($course, $mode, $time); // add 4th $url parameter if uncommented!
//
//
// $crumb = "<a href=\"{$CFG->wwwroot}/admin\">".get_string('administration')."</a> ->
// <a href=\"{$CFG->wwwroot}/admin/report.php\">$strreports</a> ->
// $strstats";
// print_header("$course->shortname: $strstats", "$course->fullname",
// $crumb, '', '', true, '&nbsp;', $menu);
require_once($CFG->dirroot.'/course/report/stats/report.php');
admin_externalpage_print_footer($adminroot);
?>
+4
View File
@@ -0,0 +1,4 @@
<?php // $Id$
// just a link to course report
$ADMIN->add('reports', new admin_externalpage('reportstats', get_string('stats', 'admin'), "$CFG->wwwroot/course/report/stats/index.php", 'coursereport/stats:view'));
?>
+40
View File
@@ -0,0 +1,40 @@
<?php // $Id$
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
// //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
$report_unittest_capabilities = array(
'report/unittest:view' => array(
'riskbitmask' => RISK_DATALOSS,
'captype' => 'read',
'contextlevel' => CONTEXT_SYSTEM,
'legacy' => array(
'admin' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/site:config',
)
);
?>
@@ -9,9 +9,10 @@
* @package SimpleTestEx
*/
/** */
require_once(dirname(__FILE__) . '/../../../config.php');
require_once($CFG->libdir . '/moodlelib.php');
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
require_once($CFG->libdir . '/simpletestlib/reporter.php');
/**
@@ -45,8 +46,7 @@ class ExHtmlReporter extends HtmlReporter {
$this->strrunonlyfolder = $this->get_string('runonlyfolder');
$this->strrunonlyfile = $this->get_string('runonlyfile');
check_theme_arrows();
$this->strseparator = ' <span class="sep">'.$THEME->rarrow.'</span> ';
$this->strseparator = get_separator();
}
/**
@@ -147,9 +147,9 @@ class ExHtmlReporter extends HtmlReporter {
$summarydata->exceptions = $this->getExceptionCount();
if ($summarydata->fails == 0 && $summarydata->exceptions == 0) {
$status = "pass";
$status = "passed";
} else {
$status = "fail";
$status = "failed";
}
echo '<div class="unittestsummary ', $status, '">';
echo $this->get_string('summary', $summarydata);
@@ -10,8 +10,10 @@
* @package SimpleTestEx
*/
/** */
require_once(dirname(__FILE__) . '/../../../config.php');
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
require_once($CFG->libdir . '/simpletestlib/test_case.php');
/**
@@ -10,20 +10,12 @@
*/
/** */
require_once(dirname(__FILE__) . '/../../../config.php');
require_once($CFG->libdir . '/moodlelib.php');
require_once(dirname(__FILE__).'/../../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/simpletestlib.php');
require_once('ex_simple_test.php');
require_once('ex_reporter.php');
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));
/* The UNITTEST constant can be checked elsewhere if you need to know
* when your code is being run as part of a unit test. */
define('UNITTEST', true);
$langfile = 'simpletest';
// CGI arguments
$path = optional_param('path', null, PARAM_PATH);
$showpasses = optional_param('showpasses', false, PARAM_BOOL);
@@ -31,10 +23,16 @@ $showsearch = optional_param('showsearch', false, PARAM_BOOL);
$thorough = optional_param('thorough', false, PARAM_BOOL);
// Print the header.
$adminroot = admin_get_root();
admin_externalpage_setup('reportsimpletest', $adminroot);
admin_externalpage_setup('reportunittest', '', array('showpasses' => $showpasses,
'showsearch' => $showsearch, 'thorough' => $thorough));
admin_externalpage_print_header();
/* The UNITTEST constant can be checked elsewhere if you need to know
* when your code is being run as part of a unit test. */
define('UNITTEST', true);
$langfile = 'simpletest';
$strtitle = get_string('unittests', $langfile);
admin_externalpage_print_header($adminroot);
if (!is_null($path)) {
// Create the group of tests.
@@ -106,6 +104,6 @@ echo '</form>';
print_simple_box_end();
// Footer.
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>
+3
View File
@@ -0,0 +1,3 @@
<?php //$Id$
$ADMIN->add('reports', new admin_externalpage('reportunittest', get_string('simpletest', 'admin'), "$CFG->wwwroot/$CFG->admin/report/unittest/index.php", 'report/unittest:view'));
?>
+29
View File
@@ -0,0 +1,29 @@
<?PHP // $Id$
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
// //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
$plugin->version = 2007101501;
$plugin->requires = 2007101532;
?>
+8 -9
View File
@@ -8,14 +8,11 @@
* then he can modify the roles_allow_assign table via this interface.
*/
require_once('../../config.php');
/// check capabilities here
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('defineroles', $adminroot);
admin_externalpage_setup('defineroles', '', array(), $CFG->wwwroot . '/' . $CFG->admin . '/roles/allowassign.php');
$sitecontext = get_context_instance(CONTEXT_SYSTEM, SITEID);
$sitecontext = get_context_instance(CONTEXT_SYSTEM);
require_capability('moodle/role:manage', $sitecontext);
/// form processiong here
@@ -47,10 +44,12 @@
}
}
}
// updated allowassigns sitewide...
mark_context_dirty($sitecontext->path);
}
/// displaying form here
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
$currenttab='allowassign';
require_once('managetabs.php');
@@ -80,11 +79,11 @@
echo '<form action="allowassign.php" method="post">';
print_table($table);
echo '<div class="singlebutton"><input type="submit" value="'.get_string('savechanges').'"/></div>';
echo '<div class="buttons"><input type="submit" value="'.get_string('savechanges').'"/>';
echo '<input type="hidden" name="dummy" value="1" />'; // this is needed otherwise we do not know a form has been submitted
echo '</form>';
echo '</div></form>';
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
+9 -10
View File
@@ -6,14 +6,11 @@
* and be in the roles_allow_override table.
*/
require_once('../../config.php');
/// check capabilities here
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('defineroles', $adminroot);
admin_externalpage_setup('defineroles', '', array(), $CFG->wwwroot . '/' . $CFG->admin . '/roles/allowoverride.php');
$sitecontext = get_context_instance(CONTEXT_SYSTEM, SITEID);
$sitecontext = get_context_instance(CONTEXT_SYSTEM);
require_capability('moodle/role:manage', $sitecontext);
/// form processiong here
@@ -45,10 +42,12 @@
}
}
}
// updated allowoverride sitewide...
mark_context_dirty($sitecontext->path);
}
/// displaying form here
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
$currenttab='allowoverride';
require_once('managetabs.php');
@@ -74,15 +73,15 @@
$table->data[] = array_merge(array(format_string($role->name)), $beta);
}
print_simple_box(get_string('configallowoverride', 'admin'), 'center');
print_simple_box(get_string('configallowoverride2', 'admin'), 'center');
echo '<form action="allowoverride.php" method="post">';
print_table($table);
echo '<div class="singlebutton"><input type="submit" value="'.get_string('savechanges').'"/></div>';
echo '<div class="buttons"><input type="submit" value="'.get_string('savechanges').'"/>';
echo '<input type="hidden" name="dummy" value="1" />'; // this is needed otherwise we do not know a form has been submitted
echo '</form>';
echo '</div></form>';
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
// returns array
function get_box_list($roleid, $arraylist){
+46 -38
View File
@@ -1,5 +1,8 @@
<form id="assignform" method="post" action="">
<div>
<div style="text-align:center;">
<label for="extendperiod"><?php print_string('enrolperiod') ?></label> <?php choose_from_menu($periodmenu, "extendperiod", $defaultperiod, $unlimitedperiod); ?>
<label for="extendbase"><?php print_string('startingfrom') ?></label> <?php choose_from_menu($basemenu, "extendbase", 3, ""); ?>
<input type="hidden" name="previoussearch" value="<?php p($previoussearch) ?>" />
<input type="hidden" name="userid" value="<?php p($userid) ?>" />
<input type="hidden" name="courseid" value="<?php p($courseid) ?>" />
@@ -15,31 +18,36 @@
onfocus="getElementById('assignform').add.disabled=true;
getElementById('assignform').remove.disabled=false;
getElementById('assignform').addselect.selectedIndex=-1;">
<?php
foreach ($contextusers as $contextuser) {
$fullname = fullname($contextuser, true);
if ($contextuser->hidden) {
$hidden=' ('.get_string('hiddenassign').') ';
} else {
$hidden="";
}
echo "<option value=\"$contextuser->id\">".$fullname.", ".$contextuser->email.$hidden."</option>\n";
}
$i = 0;
foreach ($contextusers as $contextuser) {
$fullname = fullname($contextuser, true);
if ($contextuser->hidden) {
$hidden=' ('.get_string('hiddenassign').') ';
} else {
$hidden="";
}
echo "<option value=\"$contextuser->id\">".$fullname.", ".$contextuser->email.$hidden."</option>\n";
$i++;
}
if ($i==0) {
echo '<option/>'; // empty select breaks xhtml strict
}
?>
<option/>
</select></td>
<td valign="top">
<br />
<label title="<?php print_string('hiddenassign') ?>">
<input type="checkbox" name="hidden" value="1" />
<img src="<?php echo $CFG->pixpath; ?>/t/hide.gif" alt="<?php print_string('hiddenassign') ?>" class="hide-show-image" />
<?php helpbutton('hiddenassign', get_string('hiddenassign')); ?>
</label>
<?php check_theme_arrows(); ?>
<p class="arrow_button">
<input name="add" id="add" type="submit" value="<?php echo '&nbsp;'.$THEME->larrow.' &nbsp; &nbsp; '.get_string('add'); ?>" title="<?php print_string('add'); ?>" />
<br />
<input name="remove" id="remove" type="submit" value="<?php echo '&nbsp; '.$THEME->rarrow.' &nbsp; &nbsp; '.get_string('remove'); ?>" title="<?php print_string('remove'); ?>" />
<input name="add" id="add" type="submit" value="<?php echo $THEME->larrow.'&nbsp;'.get_string('add'); ?>" title="<?php print_string('add'); ?>" /><br />
<input name="remove" id="remove" type="submit" value="<?php echo get_string('remove').'&nbsp;'.$THEME->rarrow; ?>" title="<?php print_string('remove'); ?>" />
</p>
</td>
<td valign="top">
@@ -50,32 +58,32 @@
getElementById('assignform').remove.disabled=true;
getElementById('assignform').removeselect.selectedIndex=-1;">
<?php
$i=0;
if (!empty($searchtext)) {
echo "<optgroup label=\"$strsearchresults (" . $usercount . ")\">\n";
while ($user = rs_fetch_next_record($availableusers)) {
$fullname = fullname($user, true);
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
$i++;
}
echo "</optgroup>\n";
if (!empty($searchtext)) {
echo "<optgroup label=\"$strsearchresults (" . $availableusers->_numOfRows . ")\">\n";
while ($user = rs_fetch_next_record($availableusers)) {
if (!isset($contextusers[$user->id])) {
$fullname = fullname($user, true);
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
}
}
echo "</optgroup>\n";
} else {
if ($usercount > MAX_USERS_PER_PAGE) {
echo '<optgroup label="'.get_string('toomanytoshow').'"><option></option></optgroup>'."\n"
} else {
if ($usercount > MAX_USERS_PER_PAGE) {
echo '<optgroup label="'.get_string('toomanytoshow').'"><option></option></optgroup>'."\n"
.'<optgroup label="'.get_string('trysearching').'"><option></option></optgroup>'."\n";
} else {
while ($user = rs_fetch_next_record($availableusers)) {
if (!isset($contextusers[$user->id])) {
$fullname = fullname($user, true);
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
}
}
}
}
} else {
while ($user = rs_fetch_next_record($availableusers)) {
$fullname = fullname($user, true);
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
$i++;
}
}
}
if ($i==0) {
echo '<option/>'; // empty select breaks xhtml strict
}
?>
<option/>
</select>
<br />
<label for="searchtext" class="accesshide"><?php p($strsearch) ?></label>
+227 -55
View File
@@ -6,6 +6,7 @@
require_once($CFG->libdir.'/adminlib.php');
define("MAX_USERS_PER_PAGE", 5000);
define("MAX_USERS_TO_LIST_PER_ROLE", 10);
$contextid = required_param('contextid',PARAM_INT); // context id
$roleid = optional_param('roleid', 0, PARAM_INT); // required role id
@@ -15,11 +16,11 @@
$searchtext = optional_param('searchtext', '', PARAM_RAW); // search string
$previoussearch = optional_param('previoussearch', 0, PARAM_BOOL);
$hidden = optional_param('hidden', 0, PARAM_BOOL); // whether this assignment is hidden
$timestart = optional_param('timestart', 0, PARAM_INT);
$timeend = optional_param('timened', 0, PARAM_INT);
$extendperiod = optional_param('extendperiod', 0, PARAM_INT);
$extendbase = optional_param('extendbase', 0, PARAM_INT);
$userid = optional_param('userid', 0, PARAM_INT); // needed for user tabs
$courseid = optional_param('courseid', 0, PARAM_INT); // needed for user tabs
$errors = array();
$previoussearch = ($searchtext != '') or ($previoussearch) ? 1:0;
@@ -44,43 +45,68 @@
} else {
error('Invalid course id');
}
} else if (!empty($courseid)){ // we need this for user tabs in user context
if (!$course = get_record('course', 'id', $courseid)) {
error('Invalid course id');
}
} else {
$courseid = SITEID;
$course = get_site();
$course = clone($SITE);
}
if ($context->contextlevel == CONTEXT_COURSE) {
require_login($context->instanceid);
} else {
require_login();
}
require_login($course);
require_capability('moodle/role:assign', $context);
$assignableroles = get_assignable_roles($context);
/// needed for tabs.php
$overridableroles = get_overridable_roles($context, 'name', ROLENAME_BOTH);
$assignableroles = get_assignable_roles($context, 'name', ROLENAME_BOTH);
/// Get some language strings
$strassignusers = get_string('assignusers', 'role');
$strpotentialusers = get_string('potentialusers', 'role');
$strexistingusers = get_string('existingusers', 'role');
$straction = get_string('assignroles', 'role');
$strroletoassign = get_string('roletoassign', 'role');
$strcurrentcontext = get_string('currentcontext', 'role');
$strsearch = get_string('search');
$strshowall = get_string('showall');
$strparticipants = get_string('participants');
$strsearchresults = get_string('searchresults');
$unlimitedperiod = get_string('unlimited');
$defaultperiod = $course->enrolperiod;
for ($i=1; $i<=365; $i++) {
$seconds = $i * 86400;
$periodmenu[$seconds] = get_string('numdays', '', $i);
}
$timeformat = get_string('strftimedate');
$today = time();
$today = make_timestamp(date('Y', $today), date('m', $today), date('d', $today), 0, 0, 0);
// MDL-12420, preventing course start date showing up as an option at system context and front page roles.
if ($course->startdate > 0) {
$basemenu[0] = get_string('startdate') . ' (' . userdate($course->startdate, $timeformat) . ')';
}
if ($course->enrollable != 2 || ($course->enrolstartdate == 0 || $course->enrolstartdate <= $today) && ($course->enrolenddate == 0 || $course->enrolenddate > $today)) {
$basemenu[3] = get_string('today') . ' (' . userdate($today, $timeformat) . ')' ;
}
if($course->enrollable == 2) {
if($course->enrolstartdate > 0) {
$basemenu[4] = get_string('courseenrolstartdate') . ' (' . userdate($course->enrolstartdate, $timeformat) . ')';
}
if($course->enrolenddate > 0) {
$basemenu[5] = get_string('courseenrolenddate') . ' (' . userdate($course->enrolenddate, $timeformat) . ')';
}
}
/// Make sure this user can assign that role
if ($roleid) {
if (!user_can_assign($context, $roleid)) {
if (!isset($assignableroles[$roleid])) {
error ('you can not override this role in this context');
}
}
@@ -95,46 +121,49 @@
if ($context->contextlevel == CONTEXT_USER) {
/// course header
$navlinks = array();
if ($courseid != SITEID) {
print_header("$fullname", "$fullname",
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->
<a href=\"$CFG->wwwroot/user/index.php?id=$course->id\">$strparticipants</a> -> <a href=\"$CFG->wwwroot/user/view.php?id=$userid&amp;course=$courseid\">$fullname</a> ->".$straction,
"", "", true, "&nbsp;", navmenu($course));
if (has_capability('moodle/course:viewparticipants', get_context_instance(CONTEXT_COURSE, $course->id))) {
$navlinks[] = array('name' => $strparticipants, 'link' => "$CFG->wwwroot/user/index.php?id=$course->id", 'type' => 'misc');
}
$navlinks[] = array('name' => $fullname, 'link' => "$CFG->wwwroot/user/view.php?id=$userid&amp;course=$courseid", 'type' => 'misc');
$navlinks[] = array('name' => $straction, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header("$fullname", "$fullname", $navigation, "", "", true, "&nbsp;", navmenu($course));
/// site header
} else {
print_header("$course->fullname: $fullname", "$course->fullname",
"<a href=\"$CFG->wwwroot/user/view.php?id=$userid&amp;course=$courseid\">$fullname</a> -> $straction", "", "", true, "&nbsp;", navmenu($course));
$navlinks[] = array('name' => $fullname, 'link' => "$CFG->wwwroot/user/view.php?id=$userid&amp;course=$courseid", 'type' => 'misc');
$navlinks[] = array('name' => $straction, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header("$course->fullname: $fullname", $course->fullname, $navigation, "", "", true, "&nbsp;", navmenu($course));
}
$showroles = 1;
$currenttab = 'assign';
include_once($CFG->dirroot.'/user/tabs.php');
} else if ($context->contextlevel == CONTEXT_SYSTEM) {
$adminroot = admin_get_root();
admin_externalpage_setup('assignroles', $adminroot);
admin_externalpage_print_header($adminroot);
admin_externalpage_setup('assignroles', '', array('contextid' => $contextid, 'roleid' => $roleid));
admin_externalpage_print_header('');
} else if ($context->contextlevel==CONTEXT_COURSE and $context->instanceid == SITEID) {
$adminroot = admin_get_root();
admin_externalpage_setup('frontpageroles', $adminroot);
admin_externalpage_print_header($adminroot);
$currenttab = '';
$tabsmode = 'assign';
admin_externalpage_setup('frontpageroles', '', array('contextid' => $contextid, 'roleid' => $roleid));
admin_externalpage_print_header('');
$currenttab = 'assign';
include_once('tabs.php');
} else {
$currenttab = '';
$tabsmode = 'assign';
$currenttab = 'assign';
include_once('tabs.php');
}
/// Process incoming role assignment
if ($frm = data_submitted()) {
if ($add and !empty($frm->addselect) and confirm_sesskey()) {
$timemodified = time();
foreach ($frm->addselect as $adduser) {
if (!$adduser = clean_param($adduser, PARAM_INT)) {
continue;
@@ -153,17 +182,39 @@
}
}
if ($allow) {
switch($extendbase) {
case 0:
$timestart = $course->startdate;
break;
case 3:
$timestart = $today;
break;
case 4:
$timestart = $course->enrolstartdate;
break;
case 5:
$timestart = $course->enrolenddate;
break;
}
if($extendperiod > 0) {
$timeend = $timestart + $extendperiod;
} else {
$timeend = 0;
}
if (! role_assign($roleid, $adduser, 0, $context->id, $timestart, $timeend, $hidden)) {
$errors[] = "Could not add user with id $adduser to this role!";
}
}
}
$rolename = get_field('role', 'name', 'id', $roleid);
add_to_log($course->id, 'role', 'assign', 'admin/roles/assign.php?contextid='.$context->id.'&roleid='.$roleid, $rolename, '', $USER->id);
} else if ($remove and !empty($frm->removeselect) and confirm_sesskey()) {
$sitecontext = get_context_instance(CONTEXT_SYSTEM);
$topleveladmin = false;
// we only worry about this if the role has doanything capability at site level
if ($context->id == $sitecontext->id && $adminroles = get_roles_with_capability('moodle/site:doanything', CAP_ALLOW, $sitecontext)) {
foreach ($adminroles as $adminrole) {
@@ -172,7 +223,7 @@
}
}
}
foreach ($frm->removeselect as $removeuser) {
$removeuser = clean_param($removeuser, PARAM_INT);
@@ -192,17 +243,26 @@
}
}
}
$rolename = get_field('role', 'name', 'id', $roleid);
add_to_log($course->id, 'role', 'unassign', 'admin/roles/assign.php?contextid='.$context->id.'&roleid='.$roleid, $rolename, '', $USER->id);
} else if ($showall) {
$searchtext = '';
$previoussearch = 0;
}
}
if ($context->contextlevel==CONTEXT_COURSE and $context->instanceid == SITEID) {
print_heading_with_help(get_string('frontpageroles', 'admin'), 'assignroles');
} else {
print_heading_with_help(get_string('assignroles', 'role'), 'assignroles');
print_heading_with_help(get_string('assignrolesin', 'role', print_context_name($context)), 'assignroles');
}
if ($context->contextlevel==CONTEXT_SYSTEM) {
print_box(get_string('globalroleswarning', 'role'));
}
if ($roleid) { /// prints a form to swap roles
@@ -210,12 +270,12 @@
/// Get all existing participants in this context.
// Why is this not done with get_users???
if (!$contextusers = get_role_users($roleid, $context, false, 'u.id, u.firstname, u.lastname, u.email, r.hidden')) {
if (!$contextusers = get_role_users($roleid, $context, false, 'u.id, u.firstname, u.lastname, u.email, ra.hidden')) {
$contextusers = array();
}
$select = "username <> 'guest' AND deleted = 0 AND confirmed = 1";
$usercount = count_records_select('user', $select) - count($contextusers);
$searchtext = trim($searchtext);
@@ -224,21 +284,101 @@
$LIKE = sql_ilike();
$FULLNAME = sql_fullname();
$select .= " AND ($FULLNAME $LIKE '%$searchtext%' OR email $LIKE '%$searchtext%') ";
$selectsql = " AND ($FULLNAME $LIKE '%$searchtext%' OR email $LIKE '%$searchtext%') ";
$select .= $selectsql;
} else {
$selectsql = "";
}
$availableusers = get_recordset_sql('SELECT id, firstname, lastname, email
FROM '.$CFG->prefix.'user
WHERE '.$select.'
ORDER BY lastname ASC, firstname ASC');
if ($context->contextlevel > CONTEXT_COURSE && !is_inside_frontpage($context)) { // mod or block (or group?)
/// In the .html file below we loop through these results and exclude any in $contextusers
/************************************************************************
* *
* context level is above or equal course context level *
* in this case we pull out all users matching search criteria (if any) *
* *
* MDL-11324 *
* a mini get_users_by_capability() call here, this is done instead of *
* get_users_by_capability() because *
* 1) get_users_by_capability() does not deal with searching by name *
* 2) exceptions array can be potentially large for large courses *
* 3) get_recordset_sql() is more efficient *
* *
************************************************************************/
echo '<div style="text-align:center">'.$strcurrentcontext.': '.print_context_name($context).'<br/>';
echo '<label>'.$strroletoassign.'</label>: ';
$assignableroles = array('0'=>get_string('listallroles', 'role').'...') + $assignableroles;
if ($possibleroles = get_roles_with_capability('moodle/course:view', CAP_ALLOW, $context)) {
$doanythingroles = get_roles_with_capability('moodle/site:doanything', CAP_ALLOW, get_context_instance(CONTEXT_SYSTEM));
$validroleids = array();
foreach ($possibleroles as $possiblerole) {
if (isset($doanythingroles[$possiblerole->id])) { // We don't want these included
continue;
}
if ($caps = role_context_capabilities($possiblerole->id, $context, 'moodle/course:view')) { // resolved list
if (isset($caps['moodle/course:view']) && $caps['moodle/course:view'] > 0) { // resolved capability > 0
$validroleids[] = $possiblerole->id;
}
}
}
if ($validroleids) {
$roleids = '('.implode(',', $validroleids).')';
$select = " SELECT u.id, u.firstname, u.lastname, u.email";
$countselect = "SELECT COUNT(u.id)";
$from = " FROM {$CFG->prefix}user u
INNER JOIN {$CFG->prefix}role_assignments ra ON ra.userid = u.id
INNER JOIN {$CFG->prefix}role r ON r.id = ra.roleid";
$where = " WHERE ra.contextid ".get_related_contexts_string($context)."
AND u.deleted = 0
AND ra.roleid in $roleids";
$excsql = " AND u.id NOT IN (
SELECT u.id
FROM {$CFG->prefix}role_assignments r,
{$CFG->prefix}user u
WHERE r.contextid = $contextid
AND u.id = r.userid
AND r.roleid = $roleid
$selectsql)";
$availableusers = get_recordset_sql($select . $from . $where . $selectsql . $excsql);
}
$usercount = $availableusers->_numOfRows;
}
} else {
/************************************************************************
* *
* context level is above or equal course context level *
* in this case we pull out all users matching search criteria (if any) *
* *
************************************************************************/
/// MDL-11111 do not include user already assigned this role in this context as available users
/// so that the number of available users is right and we save time looping later
$availableusers = get_recordset_sql('SELECT id, firstname, lastname, email
FROM '.$CFG->prefix.'user
WHERE '.$select.'
AND id NOT IN (
SELECT u.id
FROM '.$CFG->prefix.'role_assignments r,
'.$CFG->prefix.'user u
WHERE r.contextid = '.$contextid.'
AND u.id = r.userid
AND r.roleid = '.$roleid.'
'.$selectsql.')
ORDER BY lastname ASC, firstname ASC');
$usercount = $availableusers->_numOfRows;
}
echo '<div class="selector">';
$assignableroles = array('0'=>get_string('listallroles', 'role').'...') + $assignableroles;
popup_form("$CFG->wwwroot/$CFG->admin/roles/assign.php?userid=$userid&amp;courseid=$courseid&amp;contextid=$contextid&amp;roleid=",
$assignableroles, 'switchrole', $roleid, '');
$assignableroles, 'switchrole', $roleid, '', '', '', false, 'self', $strroletoassign);
echo '</div>';
print_simple_box_start('center');
@@ -263,6 +403,34 @@
sync_metacourse($course);
}
// Get the names of role holders for roles with between 1 and MAX_USERS_TO_LIST_PER_ROLE users,
// and so determine whether to show the extra column.
$rolehodlercount = array();
$rolehodlernames = array();
$strmorethanten = get_string('morethan', 'role', MAX_USERS_TO_LIST_PER_ROLE);
$showroleholders = false;
foreach ($assignableroles as $roleid => $rolename) {
$countusers = count_role_users($roleid, $context);
$rolehodlercount[$roleid] = $countusers;
$roleusers = '';
if (0 < $countusers && $countusers <= MAX_USERS_TO_LIST_PER_ROLE) {
$roleusers = get_role_users($roleid, $context, false, 'u.id, u.lastname, u.firstname');
if (!empty($roleusers)) {
$strroleusers = array();
foreach ($roleusers as $user) {
$strroleusers[] = '<a href="' . $CFG->wwwroot . '/user/view.php?id=' . $user->id . '" >' . fullname($user) . '</a>';
}
$rolehodlernames[$roleid] = implode('<br />', $strroleusers);
$showroleholders = true;
}
} else if ($countusers > MAX_USERS_TO_LIST_PER_ROLE) {
$rolehodlernames[$roleid] = '<a href="'.$baseurl.'&amp;roleid='.$roleid.'">'.$strmorethanten.'</a>';
} else {
$rolehodlernames[$roleid] = '';
}
}
// Print overview table
$table->tablealign = 'center';
$table->cellpadding = 5;
$table->cellspacing = 0;
@@ -270,20 +438,24 @@
$table->head = array(get_string('roles', 'role'), get_string('description'), get_string('users'));
$table->wrap = array('nowrap', '', 'nowrap');
$table->align = array('right', 'left', 'center');
if ($showroleholders) {
$table->head[] = '';
$table->wrap[] = 'nowrap';
$table->align[] = 'left';
}
foreach ($assignableroles as $roleid => $rolename) {
$countusers = count_role_users($roleid, $context);
$description = format_string(get_field('role', 'description', 'id', $roleid));
$table->data[] = array('<a href="'.$baseurl.'&amp;roleid='.$roleid.'">'.$rolename.'</a>',$description, $countusers);
$row = array('<a href="'.$baseurl.'&amp;roleid='.$roleid.'">'.$rolename.'</a>',$description, $rolehodlercount[$roleid]);
if ($showroleholders) {
$row[] = $rolehodlernames[$roleid];
}
$table->data[] = $row;
}
print_table($table);
}
if ($context->contextlevel == CONTEXT_SYSTEM or ($context->contextlevel==CONTEXT_COURSE and $context->instanceid == SITEID)) {
admin_externalpage_print_footer($adminroot);
} else {
print_footer($course);
}
print_footer($course);
?>
+112 -58
View File
@@ -4,67 +4,98 @@
case 'add':
$submitlabel = get_string('addrole', 'role');
break;
case 'view':
$submitlabel = get_string('listallroles', 'role');
break;
case 'edit':
default:
$submitlabel = get_string('savechanges');
}
if ($action == 'view') {
?>
<?php
}
?>
<div align="right">
<a href="manage.php?roleid=<?php p($roleid); ?>&amp;action=duplicate"><?php print_string('duplicaterole'); ?></a>
</div>
<form id="rolesform" action="manage.php" method="post">
<fieldset class="invisiblefieldset">
<input type="hidden" name="roleid" value="<?php p($roleid) ?>" />
<input type="hidden" name="sesskey" value="<?php p(sesskey()) ?>" />
<input type="hidden" name="action" value="<?php if ($action != 'view') { echo p($action); } ?>" />
<table cellpadding="9" cellspacing="0" align="center">
<tr valign="top">
<td align="right"><?php print_string('name') ?>:</td>
<td><?php
if ($action == 'view') {
p($role->name);
} else {
echo '<input type="text" name="name" maxlength="254" size="50" value="'.s($role->name).'" />';
if (isset($errors["name"])) formerr($errors["name"]);
} ?></td>
</tr>
<tr valign="top">
<td align="right"><?php print_string('shortname') ?>:</td>
<td><?php
if ($action == 'view') {
p($role->shortname);
} else {
echo '<input type="text" name="shortname" maxlength="20" size="15" value="'.s($role->shortname).'" />';
if (isset($errors["shortname"])) formerr($errors["shortname"]);
} ?></td>
</tr>
<tr valign="top">
<td align="right"><?php print_string('description') ?>:</td>
<td><?php
if ($action == 'view') {
p($role->description);
$usehtmleditor = false;
} else {
print_textarea($usehtmleditor, 10, 50, 50, 10, 'description', $role->description);
} ?></td>
</tr>
</fieldset>
<table class="roledesc" cellpadding="9" cellspacing="0">
<?php if ($action == 'view') { ?>
<tr valign="top">
<td align="right"><?php print_string('name') ?>:</td>
<td><?php p(format_string($role->name)); ?></td>
</tr>
<tr valign="top">
<td align="right"><?php print_string('shortname') ?>:</td>
<td><?php p($role->shortname); ?></td>
</tr>
<tr valign="top">
<td align="right"><?php print_string('description') ?>:</td>
<td><?php p(format_text($role->description, FORMAT_HTML)); $usehtmleditor = false; ?></td>
</tr>
<tr valign="top">
<td align="right"><?php print_string('legacytype', 'role') ?>:</td>
<td><?php
$usehtmleditor = false;
if (empty($role->legacytype)) {
print_string('none');
} else {
print_string('legacy:'.$role->legacytype, 'role');
}
?>
</td>
</tr>
<?php } else { ?>
<tr valign="top">
<td align="right"><label for="name"><?php print_string('name') ?></label></td>
<td><?php
echo '<input type="text" id="name" name="name" maxlength="254" size="50" value="'.s($role->name).'" />';
if (isset($errors["name"])) formerr($errors["name"]);
?>
</td>
</tr>
<tr valign="top">
<td align="right"><label for="shortname"><?php print_string('shortname') ?></label></td>
<td><?php
echo '<input type="text" id="shortname" name="shortname" maxlength="100" size="15" value="'.s($role->shortname).'" />';
if (isset($errors["shortname"])) formerr($errors["shortname"]);
?>
</td>
</tr>
<tr valign="top">
<td align="right"><label for="edit-description"><?php print_string('description') ?></label></td>
<td><?php
print_textarea($usehtmleditor, 10, 50, 50, 10, 'description', $role->description);
?>
</td>
</tr>
<tr valign="top">
<td align="right"><label for="menulegacytype"><?php print_string('legacytype', 'role') ?></label></td>
<td><?php
$options = array();
$options[''] = get_string('none');
$legacyroles = get_legacy_roles();
foreach($legacyroles as $ltype=>$lcap) {
$options[$ltype] = get_string('legacy:'.$ltype, 'role');
}
choose_from_menu($options, 'legacytype', $role->legacytype, '');
?>
</td>
</tr>
<?php } ?>
</table>
<?php
<?php
print_heading_with_help(get_string('permissions','role'), 'permissions');
$strinherit = get_string('inherit','role');
$strinherit = get_string('notset','role');
$strallow = get_string('allow','role');
$strprevent = get_string('prevent','role');
$strprohibit = get_string('prohibit','role');
?>
<table class="rolecap" align="center">
<table class="rolecap">
<tr>
<th class="name" align="left" scope="col"><?php print_string('capability','role') ?></th>
@@ -82,11 +113,26 @@ $contextlevel = 0;
$component = '';
$strrisks = s(get_string('risks', 'role'));
$strcapabilities = s(get_string('capabilities', 'role'));
// MDL-11687
$strcapabilities = 'Capabilities';//s(get_string('capabilities', 'role'));
// prepare legacy defaults
if (!empty($role->legacytype)) {
$defaultcaps = get_default_capabilities($role->legacytype);
} else {
$defaultcaps = false;
}
foreach ($capabilities as $capability) {
//legacy caps have their own selector
if (islegacy($capability->name)) {
continue;
}
// prints a breaker if component or name or context level
if ($capability->component != $component or $capability->contextlevel != $contextlevel) {
if (component_level_changed($capability, $component, $contextlevel)) {
//if ($capability->component != $component or $capability->contextlevel != $contextlevel) {
echo ('<tr class="rolecapheading header"><td colspan="10" class="header"><strong>'.
get_component_string($capability->component, $capability->contextlevel).'</strong></td></tr>');
}
@@ -97,7 +143,6 @@ foreach ($capabilities as $capability) {
if (empty($errors)) {
// check the capability override for this cap, this role in this context
$sitecontext = get_context_instance(CONTEXT_SYSTEM, SITEID);
$localoverride = get_local_override($roleid, $sitecontext->id, $capability->name);
} else {
$localoverride = new object();
@@ -109,44 +154,53 @@ foreach ($capabilities as $capability) {
$riskinfo = '<td class="risk managetrust">';
$rowclasses = '';
if (RISK_MANAGETRUST & (int)$capability->riskbitmask) {
$riskinfo .= '<a target="docspopup" title="'.get_string('riskmanagetrust', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<a onclick="this.target=\'docspopup\'" title="'.get_string('riskmanagetrust', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<img src="'.$CFG->pixpath.'/i/risk_managetrust.gif" alt="'.get_string('riskmanagetrustshort', 'admin').'" /></a>';
$rowclasses .= ' riskmanagetrust';
}
$riskinfo .= '</td><td class="risk config">';
if (RISK_CONFIG & (int)$capability->riskbitmask) {
$riskinfo .= '<a target="docspopup" title="'.get_string('riskconfig', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<a onclick="this.target=\'docspopup\'" title="'.get_string('riskconfig', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<img src="'.$CFG->pixpath.'/i/risk_config.gif" alt="'.get_string('riskconfigshort', 'admin').'" /></a>';
$rowclasses .= ' riskconfig';
}
$riskinfo .= '</td><td class="risk xss">';
if (RISK_XSS & (int)$capability->riskbitmask) {
$riskinfo .= '<a target="docspopup" title="'.get_string('riskxss', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<a onclick="this.target=\'docspopup\'" title="'.get_string('riskxss', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<img src="'.$CFG->pixpath.'/i/risk_xss.gif" alt="'.get_string('riskxssshort', 'admin').'" /></a>';
$rowclasses .= ' riskxss';
}
$riskinfo .= '</td><td class="risk personal">';
if (RISK_PERSONAL & (int)$capability->riskbitmask) {
$riskinfo .= '<a target="docspopup" title="'.get_string('riskpersonal', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<a onclick="this.target=\'docspopup\'" title="'.get_string('riskpersonal', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<img src="'.$CFG->pixpath.'/i/risk_personal.gif" alt="'.get_string('riskpersonalshort', 'admin').'" /></a>';
$rowclasses .= ' riskpersonal';
}
$riskinfo .= '</td><td class="risk spam">';
if (RISK_SPAM & (int)$capability->riskbitmask) {
$riskinfo .= '<a target="docspopup" title="'.get_string('riskspam', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<a onclick="this.target=\'docspopup\'" title="'.get_string('riskspam', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<img src="'.$CFG->pixpath.'/i/risk_spam.gif" alt="'.get_string('riskspamshort', 'admin').'" /></a>';
$rowclasses .= ' riskspam';
}
$riskinfo .= '</td>';
$isinherit = (!isset($defaultcaps[$capability->name]) or $defaultcaps[$capability->name] == CAP_INHERIT) ? 'capdefault' : '';
$isallow = (isset($defaultcaps[$capability->name]) and $defaultcaps[$capability->name] == CAP_ALLOW) ? 'capdefault' : '';
$isprevent = (isset($defaultcaps[$capability->name]) and $defaultcaps[$capability->name] == CAP_PREVENT) ? 'capdefault' : '';
$isprohibit = (isset($defaultcaps[$capability->name]) and $defaultcaps[$capability->name] == CAP_PROHIBIT) ? 'capdefault' : '';
?>
<tr class="rolecap <?php echo $rowclasses; ?>">
<td class="name"><span class="cap-desc"><a target="docspopup" href="<?php echo $CFG->docroot.'/'.$lang.'/'.$strcapabilities.'/'.$capability->name ?>"><?php echo get_capability_string($capability->name); ?></a><span class="cap-name"><?php echo $capability->name ?></span></span></td>
<td class="inherit"><input type="radio" title="<?php p($strinherit); ?>" name="<?php echo $capability->name; ?>" value="<?php echo CAP_INHERIT ?>" <?php if (!isset($localoverride->permission) || $localoverride->permission==CAP_INHERIT){ echo 'checked="checked"'; }?> <?php echo $disabled; ?>/></td>
<td class="allow"><input type="radio" title="<?php p($strallow); ?>" name="<?php echo $capability->name; ?>" value="<?php echo CAP_ALLOW ?>" <?php if (isset($localoverride->permission) && $localoverride->permission==CAP_ALLOW){ echo 'checked="checked"'; }?> <?php echo $disabled; ?>/></td>
<td class="prevent" ><input type="radio" title="<?php p($strprevent); ?>" name="<?php echo $capability->name; ?>" value="<?php echo CAP_PREVENT ?>" <?php if (isset($localoverride->permission) && $localoverride->permission==CAP_PREVENT){ echo 'checked="checked"'; }?> <?php echo $disabled; ?>/></td>
<td class="prohibit" ><input type="radio" title="<?php p($strprohibit); ?>" name="<?php echo $capability->name; ?>" value="<?php echo CAP_PROHIBIT ?>" <?php if (isset($localoverride->permission) && $localoverride->permission==CAP_PROHIBIT){ echo 'checked="checked"'; }?> <?php echo $disabled; ?>/></td>
<td class="name"><span class="cap-desc"><a onclick="this.target='docspopup'" href="<?php echo $CFG->docroot.'/'.$lang.'/'.$strcapabilities.'/'.$capability->name ?>"><?php echo get_capability_string($capability->name); ?></a><span class="cap-name"><?php echo $capability->name ?></span></span></td>
<td class="inherit <?php echo $isinherit ?>">
<input type="radio" title="<?php p($strinherit); ?>" name="<?php echo $capability->name; ?>" value="<?php echo CAP_INHERIT ?>" <?php if (!isset($localoverride->permission) || $localoverride->permission==CAP_INHERIT){ echo 'checked="checked"'; }?> <?php echo $disabled; ?>/></td>
<td class="allow <?php echo $isallow ?>">
<input type="radio" title="<?php p($strallow); ?>" name="<?php echo $capability->name; ?>" value="<?php echo CAP_ALLOW ?>" <?php if (isset($localoverride->permission) && $localoverride->permission==CAP_ALLOW){ echo 'checked="checked"'; }?> <?php echo $disabled; ?>/></td>
<td class="prevent <?php echo $isprevent ?>" >
<input type="radio" title="<?php p($strprevent); ?>" name="<?php echo $capability->name; ?>" value="<?php echo CAP_PREVENT ?>" <?php if (isset($localoverride->permission) && $localoverride->permission==CAP_PREVENT){ echo 'checked="checked"'; }?> <?php echo $disabled; ?>/></td>
<td class="prohibit <?php echo $isprohibit ?>" >
<input type="radio" title="<?php p($strprohibit); ?>" name="<?php echo $capability->name; ?>" value="<?php echo CAP_PROHIBIT ?>" <?php if (isset($localoverride->permission) && $localoverride->permission==CAP_PROHIBIT){ echo 'checked="checked"'; }?> <?php echo $disabled; ?>/></td>
<?php echo $riskinfo; ?>
@@ -155,11 +209,11 @@ foreach ($capabilities as $capability) {
<?php } ?>
</table>
<div class="submit" align="center">
<input type="submit" value="<?php p($submitlabel) ?>" />
<?php if ($action != 'view') { ?>
<div class="submit buttons">
<input type="submit" value="<?php p($submitlabel) ?>" />
<input type="submit" name="cancel" value="<?php print_string('cancel') ?>" />
<?php } ?>
</div>
<?php } ?>
</form>
+182 -86
View File
@@ -3,9 +3,6 @@
require_once('../../config.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('defineroles', $adminroot);
$roleid = optional_param('roleid', 0, PARAM_INT); // if set, we are editing a role
$name = optional_param('name', '', PARAM_MULTILANG); // new role name
@@ -15,7 +12,11 @@
$confirm = optional_param('confirm', 0, PARAM_BOOL);
$cancel = optional_param('cancel', 0, PARAM_BOOL);
$sitecontext = get_context_instance(CONTEXT_SYSTEM, SITEID);
admin_externalpage_setup('defineroles', '', array('roleid' => $roleid));
$sitecontext = get_context_instance(CONTEXT_SYSTEM);
require_capability('moodle/role:manage', $sitecontext);
if ($cancel) {
redirect('manage.php');
@@ -55,6 +56,12 @@
if ($data = data_submitted() and confirm_sesskey()) {
$shortname = moodle_strtolower(clean_param(clean_filename($shortname), PARAM_SAFEDIR)); // only lowercase safe ASCII characters
$legacytype = required_param('legacytype', PARAM_RAW);
$legacyroles = get_legacy_roles();
if (!array_key_exists($legacytype, $legacyroles)) {
$legacytype = '';
}
if (empty($name)) {
$errors['name'] = get_string('errorbadrolename', 'role');
@@ -69,12 +76,19 @@
}
if (empty($errors)) {
$newrole = create_role($name, $shortname, $description);
$newroleid = create_role($name, $shortname, $description);
// set proper legacy type
if (!empty($legacytype)) {
assign_capability($legacyroles[$legacytype], CAP_ALLOW, $newroleid, $sitecontext->id);
}
} else {
$newrole = new object();
$newrole->name = $name;
$newrole->shortname = $shortname;
$newrole->name = $name;
$newrole->shortname = $shortname;
$newrole->description = $description;
$newrole->legacytype = $legacytype;
}
$allowed_values = array(CAP_INHERIT, CAP_ALLOW, CAP_PREVENT, CAP_PROHIBIT);
@@ -84,6 +98,12 @@
if (!isset($data->{$cap->name})) {
continue;
}
// legacy caps have their own selector
if (islegacy($data->{$cap->name})) {
continue;
}
$capname = $cap->name;
$value = clean_param($data->{$cap->name}, PARAM_INT);
if (!in_array($value, $allowed_values)) {
@@ -91,21 +111,34 @@
}
if (empty($errors)) {
assign_capability($capname, $value, $newrole, $sitecontext->id);
assign_capability($capname, $value, $newroleid, $sitecontext->id);
} else {
$newrole->$capname = $value;
}
}
// added a role sitewide...
mark_context_dirty($sitecontext->path);
if (empty($errors)) {
$rolename = get_field('role', 'name', 'id', $newroleid);
add_to_log(SITEID, 'role', 'add', 'admin/roles/manage.php?action=add', $rolename, '', $USER->id);
redirect('manage.php');
}
}
break;
case 'edit':
if ($data = data_submitted() and confirm_sesskey()) {
$shortname = moodle_strtolower(clean_param(clean_filename($shortname), PARAM_SAFEDIR)); // only lowercase safe ASCII characters
$legacytype = required_param('legacytype', PARAM_RAW);
$legacyroles = get_legacy_roles();
if (!array_key_exists($legacytype, $legacyroles)) {
$legacytype = '';
}
if (empty($name)) {
$errors['name'] = get_string('errorbadrolename', 'role');
@@ -126,9 +159,10 @@
}
if (!empty($errors)) {
$newrole = new object();
$newrole->name = $name;
$newrole->shortname = $shortname;
$newrole->name = $name;
$newrole->shortname = $shortname;
$newrole->description = $description;
$newrole->legacytype = $legacytype;
}
$allowed_values = array(CAP_INHERIT, CAP_ALLOW, CAP_PREVENT, CAP_PROHIBIT);
@@ -138,6 +172,12 @@
if (!isset($data->{$cap->name})) {
continue;
}
// legacy caps have their own selector
if (islegacy($data->{$cap->name}) === 0 ) {
continue;
}
$capname = $cap->name;
$value = clean_param($data->{$cap->name}, PARAM_INT);
if (!in_array($value, $allowed_values)) {
@@ -171,6 +211,7 @@
assign_capability($capname, $value, $roleid, $sitecontext->id);
}
}
}
if (empty($errors)) {
@@ -183,23 +224,47 @@
if (!update_record('role', $role)) {
error('Could not update role!');
}
// set proper legacy type
foreach($legacyroles as $ltype=>$lcap) {
if ($ltype == $legacytype) {
assign_capability($lcap, CAP_ALLOW, $roleid, $sitecontext->id);
} else {
unassign_capability($lcap, $roleid);
}
}
// edited a role sitewide...
mark_context_dirty($sitecontext->path);
add_to_log(SITEID, 'role', 'edit', 'admin/roles/manage.php?action=edit&roleid='.$role->id, $role->name, '', $USER->id);
redirect('manage.php');
}
// edited a role sitewide - with errors, but still...
mark_context_dirty($sitecontext->path);
}
break;
case 'delete':
if (in_array($roleid, $defaultroles)) {
error('This role is used as one of the default system roles, it can not be deleted');
error('This role is used as one of the default system roles, it can not be deleted');
}
if ($confirm and data_submitted() and confirm_sesskey()) {
if (!delete_role($roleid)) {
// partially deleted a role sitewide...?
mark_context_dirty($sitecontext->path);
error('Could not delete role with ID '.$roleid);
}
// deleted a role sitewide...
mark_context_dirty($sitecontext->path);
} else if (confirm_sesskey()){
// show confirmation
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
$optionsyes = array('action'=>'delete', 'roleid'=>$roleid, 'sesskey'=>sesskey(), 'confirm'=>1);
$a = new object();
$a->id = $roleid;
@@ -207,7 +272,7 @@
$a->shortname = $roles[$roleid]->shortname;
$a->count = (int)count_records('role_assignments', 'roleid', $roleid);
notice_yesno(get_string('deleterolesure', 'role', $a), 'manage.php', 'manage.php', $optionsyes, NULL, 'post', 'get');
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
die;
}
@@ -243,17 +308,38 @@
redirect('manage.php');
break;
case 'duplicate':
if (!array_key_exists($roleid, $roles)) {
redirect('manage.php');
}
if ($confirm and data_submitted() and confirm_sesskey()) {
//ok - lets duplicate!
} else {
// show confirmation
admin_externalpage_print_header();
$optionsyes = array('action'=>'duplicate', 'roleid'=>$roleid, 'sesskey'=>sesskey(), 'confirm'=>1);
$optionsno = array('action'=>'view', 'roleid'=>$roleid);
$a = new object();
$a->id = $roleid;
$a->name = $roles[$roleid]->name;
$a->shortname = $roles[$roleid]->shortname;
notice_yesno(get_string('duplicaterolesure', 'role', $a), 'manage.php', 'manage.php', $optionsyes, $optionsno, 'post', 'get');
admin_externalpage_print_footer();
die;
}
// duplicate current role
$sourcerole = get_record('role','id',$roleid);
$fullname = $sourcerole->name;
$shortname = $sourcerole->shortname;
$currentfullname = "";
$currentshortname = "";
$counter = 0;
// find a name for the duplicated role
// find a name for the duplicated role
do {
if ($counter) {
$suffixfull = " ".get_string("copyasnoun")." ".$counter;
@@ -263,27 +349,72 @@
$suffixshort = "";
}
$currentfullname = $fullname.$suffixfull;
// Limit the size of shortname - database column accepts <= 15 chars
$currentshortname = substr($shortname, 0, 15 - strlen($suffixshort)).$suffixshort;
// Limit the size of shortname - database column accepts <= 100 chars
$currentshortname = substr($shortname, 0, 100 - strlen($suffixshort)).$suffixshort;
$coursefull = get_record("role","name",addslashes($currentfullname));
$courseshort = get_record("role","shortname",addslashes($currentshortname));
$counter++;
} while ($coursefull || $courseshort);
$description = 'duplicate of '.$fullname;
$description = 'duplicate of '.$fullname;
if ($newrole = create_role($currentfullname, $currentshortname, $description)) {
// dupilcate all the capabilities
role_cap_duplicate($sourcerole, $newrole);
}
// dup'ed a role sitewide...
mark_context_dirty($sitecontext->path);
}
$rolename = get_field('role', 'name', 'id', $newrole);
add_to_log(SITEID, 'role', 'duplicate', 'admin/roles/manage.php?roleid='.$newrole.'&action=duplicate', $rolename, '', $USER->id);
redirect('manage.php');
break;
case 'reset':
if (!array_key_exists($roleid, $roles)) {
redirect('manage.php');
}
if ($confirm and data_submitted() and confirm_sesskey()) {
reset_role_capabilities($roleid);
// reset a role sitewide...
mark_context_dirty($sitecontext->path);
$rolename = get_field('role', 'name', 'id', $roleid);
add_to_log(SITEID, 'role', 'reset', 'admin/roles/manage.php?roleid='.$roleid.'&action=reset', $rolename, '', $USER->id);
redirect('manage.php?action=view&amp;roleid='.$roleid);
} else {
// show confirmation
admin_externalpage_print_header();
$optionsyes = array('action'=>'reset', 'roleid'=>$roleid, 'sesskey'=>sesskey(), 'confirm'=>1);
$optionsno = array('action'=>'view', 'roleid'=>$roleid);
$a = new object();
$a->id = $roleid;
$a->name = $roles[$roleid]->name;
$a->shortname = $roles[$roleid]->shortname;
$a->legacytype = get_legacy_type($roleid);
if (empty($a->legacytype)) {
$warning = get_string('resetrolesurenolegacy', 'role', $a);
} else {
$warning = get_string('resetrolesure', 'role', $a);
}
notice_yesno($warning, 'manage.php', 'manage.php', $optionsyes, $optionsno, 'post', 'get');
admin_externalpage_print_footer();
die;
}
break;
default:
break;
}
/// print UI now
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header('');
$currenttab = 'manage';
include_once('managetabs.php');
@@ -294,9 +425,10 @@
$roleid = 0;
if (empty($errors) or empty($newrole)) {
$role = new object();
$role->name='';
$role->shortname='';
$role->description='';
$role->name = '';
$role->shortname = '';
$role->description = '';
$role->legacytype = '';
} else {
$role = stripslashes_safe($newrole);
}
@@ -306,6 +438,7 @@
if(!$role = get_record('role', 'id', $roleid)) {
error('Incorrect role ID!');
}
$role->legacytype = get_legacy_type($role->id);
}
foreach ($roles as $rolex) {
@@ -332,18 +465,28 @@
break;
}
echo '<div align="center" class="selector">';
echo '<div class="selector">';
if ($action == 'view') {
echo get_string('selectrole', 'role').': ';
echo '<form style="display:inline;" id="switchrole" action="manage.php" method="get">';
echo '<input type="hidden" name="action" value="view" />';
choose_from_menu ($roleoptions, 'roleid', $roleid, get_string('listallroles', 'role').'...', $script='switchrole.submit()');
echo '</form>';
echo '<form style="display:inline;" id="editrole" action="manage.php" method="get">';
echo '<input type="hidden" name="roleid" value="'.$roleid.'" />';
echo '<input type="hidden" name="action" value="edit" />';
echo '<input type="submit" value="'.get_string('edit').'" />';
echo '</form>';
popup_form('manage.php?action=view&amp;roleid=', $roleoptions, 'switchrole', $roleid, '', '', '',
false, 'self', get_string('selectrole', 'role'));
echo '<div class="buttons">';
$legacytype = get_legacy_type($roleid);
$options = array();
$options['roleid'] = $roleid;
$options['action'] = 'edit';
print_single_button('manage.php', $options, get_string('edit'));
$options['action'] = 'reset';
if (empty($legacytype)) {
print_single_button('manage.php', $options, get_string('resetrolenolegacy', 'role'));
} else {
print_single_button('manage.php', $options, get_string('resetrole', 'role'));
}
$options['action'] = 'duplicate';
print_single_button('manage.php', $options, get_string('duplicaterole', 'role'));
print_single_button('manage.php', null, get_string('listallroles', 'role'));
echo '</div>';
}
echo '</div>';
@@ -419,61 +562,14 @@
$options = new object();
$options->action = 'add';
echo '<div class="buttons">';
print_single_button('manage.php', $options, get_string('addrole', 'role'), 'get');
echo '</div>';
}
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
die;
/// ================ some internal functions ====================////
function switch_roles($first, $second) {
$status = true;
//first find temorary sortorder number
$tempsort = count_records('role') + 3;
while (get_record('role','sortorder', $tempsort)) {
$tempsort += 3;
}
$r1 = new object();
$r1->id = $first->id;
$r1->sortorder = $tempsort;
$r2 = new object();
$r2->id = $second->id;
$r2->sortorder = $first->sortorder;
if (!update_record('role', $r1)) {
debugging("Can not update role with ID $r1->id!");
$status = false;
}
if (!update_record('role', $r2)) {
debugging("Can not update role with ID $r2->id!");
$status = false;
}
$r1->sortorder = $second->sortorder;
if (!update_record('role', $r1)) {
debugging("Can not update role with ID $r1->id!");
$status = false;
}
return $status;
}
// duplicates all the base definitions of a role
function role_cap_duplicate($sourcerole, $targetrole) {
global $CFG;
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
$caps = get_records_sql("SELECT * FROM {$CFG->prefix}role_capabilities
WHERE roleid = $sourcerole->id
AND contextid = $systemcontext->id");
// adding capabilities
foreach ($caps as $cap) {
unset($cap->id);
$cap->roleid = $targetrole;
insert_record('role_capabilities', $cap);
}
}
?>
+7 -1
View File
@@ -1,7 +1,13 @@
<?php
// this page deals with the 2 tabs for manage.php and grant.php
$toprow[] = new tabobject('manage', $CFG->wwwroot.'/'.$CFG->admin.'/roles/manage.php', get_string('manageroles', 'role'),'', true);
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
$toprow = array();
$toprow[] = new tabobject('manage', $CFG->wwwroot.'/'.$CFG->admin.'/roles/manage.php', get_string('manageroles', 'role'));
$toprow[] = new tabobject('allowassign', $CFG->wwwroot.'/'.$CFG->admin.'/roles/allowassign.php', get_string('allowassign', 'role'));
+29 -18
View File
@@ -3,14 +3,17 @@
$strallow = get_string('allow','role');
$strprevent = get_string('prevent','role');
$strprohibit = get_string('prohibit','role');
$strsafewarning = get_string('safeoverridenotice', 'role');
?>
<form id="overrideform" action="override.php" method="post">
<fieldset class="invisiblefieldset">
<input type="hidden" name="contextid" value="<?php p($contextid) ?>" />
<input type="hidden" name="roleid" value="<?php p($roleid) ?>" />
<input type="hidden" name="sesskey" value="<?php p(sesskey()) ?>" />
<input type="hidden" name="userid" value="<?php p($userid) ?>" />
<input type="hidden" name="courseid" value="<?php p($courseid) ?>" />
</fieldset>
<table class="rolecap">
<tr>
@@ -28,11 +31,19 @@
$component = '';
$strrisks = s(get_string('risks', 'role'));
$strcapabilities = s(get_string('capabilities', 'role'));
// MDL-11687
$strcapabilities = 'Capabilities';//s(get_string('capabilities', 'role'));
foreach ($capabilities as $capability) {
// legacy caps should not be overriden - we must use proper capabilities if needed
if (islegacy($capability->name)) {
continue;
}
// prints a breaker if component or name or context level
if ($capability->component != $component or $capability->contextlevel != $contextlevel) {
//if ($capability->component != $component or $capability->contextlevel != $contextlevel) {
if (component_level_changed($capability, $component, $contextlevel)) {
echo ('<tr class="rolecapheading header"><td colspan="10" class="header"><strong>'.get_component_string($capability->component, $capability->contextlevel).'</strong></td></tr>');
}
@@ -57,36 +68,36 @@
$isprohibit = 0;
}
$isdisabled = $isprohibit || islegacy($capability->name);
$isdisabled = $isprohibit || $capability->locked;
$riskinfo = '<td class="risk managetrust">';
$rowclasses = '';
if (RISK_MANAGETRUST & (int)$capability->riskbitmask) {
$riskinfo .= '<a target="docspopup" title="'.get_string('riskmanagetrust', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<a onclick="this.target=\'docspopup\'" title="'.get_string('riskmanagetrust', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<img src="'.$CFG->pixpath.'/i/risk_managetrust.gif" alt="'.get_string('riskmanagetrustshort', 'admin').'" /></a>';
$rowclasses .= ' riskmanagetrust';
}
$riskinfo .= '</td><td class="risk config">';
if (RISK_CONFIG & (int)$capability->riskbitmask) {
$riskinfo .= '<a target="docspopup" title="'.get_string('riskconfig', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<a onclick="this.target=\'docspopup\'" title="'.get_string('riskconfig', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<img src="'.$CFG->pixpath.'/i/risk_config.gif" alt="'.get_string('riskconfigshort', 'admin').'" /></a>';
$rowclasses .= ' riskconfig';
}
$riskinfo .= '</td><td class="risk xss">';
if (RISK_XSS & (int)$capability->riskbitmask) {
$riskinfo .= '<a target="docspopup" title="'.get_string('riskxss', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<a onclick="this.target=\'docspopup\'" title="'.get_string('riskxss', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<img src="'.$CFG->pixpath.'/i/risk_xss.gif" alt="'.get_string('riskxssshort', 'admin').'" /></a>';
$rowclasses .= ' riskxss';
}
$riskinfo .= '</td><td class="risk personal">';
if (RISK_PERSONAL & (int)$capability->riskbitmask) {
$riskinfo .= '<a target="docspopup" title="'.get_string('riskpersonal', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<a onclick="this.target=\'docspopup\'" title="'.get_string('riskpersonal', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<img src="'.$CFG->pixpath.'/i/risk_personal.gif" alt="'.get_string('riskpersonalshort', 'admin').'" /></a>';
$rowclasses .= ' riskpersonal';
}
$riskinfo .= '</td><td class="risk spam">';
if (RISK_SPAM & (int)$capability->riskbitmask) {
$riskinfo .= '<a target="docspopup" title="'.get_string('riskspam', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<a onclick="this.target=\'docspopup\'" title="'.get_string('riskspam', 'admin').'" href="'.$CFG->docroot.'/'.$lang.'/'.$strrisks.'">';
$riskinfo .= '<img src="'.$CFG->pixpath.'/i/risk_spam.gif" alt="'.get_string('riskspamshort', 'admin').'" /></a>';
$rowclasses .= ' riskspam';
}
@@ -96,13 +107,7 @@
?>
<tr class="rolecap <?php echo $rowclasses; ?>">
<td class="name">
<span class="cap-desc">
<a target="docspopup" href="<?php echo $CFG->docroot.'/'.$lang.'/'.$strcapabilities.'/'.$capability->name ?>">
<?php echo get_capability_string($capability->name); ?></a>
</span>
<span class="cap-name"><?php echo $capability->name ?></span>
</td>
<td class="name"><span class="cap-desc"><a onclick="this.target='docspopup'" href="<?php echo $CFG->docroot.'/'.$lang.'/'.$strcapabilities.'/'.$capability->name ?>"><?php echo get_capability_string($capability->name); ?></a><span class="cap-name"><?php echo $capability->name ?></span></span></td>
<td class="inherit">
<input type="radio" title="<?php p($strinherit); ?>" name="<?php echo $capability->name; ?>" value="0"
@@ -134,11 +139,17 @@
<?php echo $riskinfo; ?>
</tr>
<?php } ?>
<?php } ?>
</table>
<br />
<div align="center">
<div class="submit buttons">
<input type="submit" value="<?php print_string('savechanges') ?>" />
<input type="submit" name="cancel" value="<?php print_string('cancel') ?>" />
</div>
<?php
if ($safeoverridenotice) {
echo '<div class="sefeoverridenotice">'.$strsafewarning.'</div>';
}
?>
</form>
+90 -65
View File
@@ -2,7 +2,7 @@
require_once('../../config.php');
$contextid = required_param('contextid',PARAM_INT); // context id
$contextid = required_param('contextid', PARAM_INT); // context id
$roleid = optional_param('roleid', 0, PARAM_INT); // requested role id
$userid = optional_param('userid', 0, PARAM_INT); // needed for user tabs
$courseid = optional_param('courseid', 0, PARAM_INT); // needed for user tabs
@@ -12,29 +12,36 @@
error('Bad context ID');
}
if (!$sitecontext = get_context_instance(CONTEXT_SYSTEM, SITEID)) {
if (!$sitecontext = get_context_instance(CONTEXT_SYSTEM)) {
error('No site ID');
}
if ($context->id == $sitecontext->id) {
error ('Can not override base role capabilities');
error('Can not override base role capabilities');
}
require_capability('moodle/role:override', $context); // Just to make sure
$canoverride = has_capability('moodle/role:override', $context);
if (!$canoverride and !has_capability('moodle/role:safeoverride', $context)) {
error('You do not have permission to change overrides in this context!');
}
if ($courseid) {
if (!$course = get_record('course', 'id', $courseid)) {
error('Bad course ID');
}
} else {
$course = $SITE;
$course = clone($SITE);
$courseid = SITEID;
}
require_login($course);
$baseurl = 'override.php?contextid='.$context->id;
if (!empty($userid)) {
$baseurl .= '&amp;userid='.$userid;
}
if (!empty($courseid)) {
if ($courseid != SITEID) {
$baseurl .= '&amp;courseid='.$courseid;
}
@@ -42,19 +49,21 @@
redirect($baseurl);
}
/// needed for tabs.php
$overridableroles = get_overridable_roles($context, 'name', ROLENAME_BOTH);
$assignableroles = get_assignable_roles($context, 'name', ROLENAME_BOTH);
/// Get some language strings
$strroletooverride = get_string('roletooverride', 'role');
$stroverrideusers = get_string('overrideusers', 'role');
$straction = get_string('overrideroles', 'role');
$strcurrentrole = get_string('currentrole', 'role');
$strcurrentcontext = get_string('currentcontext', 'role');
$strparticipants = get_string('participants');
/// Make sure this user can override that role
if ($roleid) {
if (!user_can_override($context, $roleid)) {
if (!isset($overridableroles[$roleid])) {
error ('you can not override this role in this context');
}
}
@@ -64,54 +73,74 @@
$fullname = fullname($user, has_capability('moodle/site:viewfullnames', $context));
}
/// get all cababilities
$safeoverridenotice = false;
if ($roleid) {
if ($capabilities = fetch_context_capabilities($context)) {
// find out if we need to lock some capabilities
foreach ($capabilities as $capname=>$capability) {
$capabilities[$capname]->locked = false;
if ($canoverride) {
//ok no locking at all
continue;
}
//only limited safe overrides - spam only allowed
if ((RISK_DATALOSS & (int)$capability->riskbitmask)
or (RISK_MANAGETRUST & (int)$capability->riskbitmask)
or (RISK_CONFIG & (int)$capability->riskbitmask)
or (RISK_XSS & (int)$capability->riskbitmask)
or (RISK_PERSONAL & (int)$capability->riskbitmask)) {
$capabilities[$capname]->locked = true;
$safeoverridenotice = true;
}
}
}
} else {
$capabilities = null;
}
/// Process incoming role override
if ($data = data_submitted() and $roleid and confirm_sesskey()) {
$allowed_values = array(CAP_INHERIT, CAP_ALLOW, CAP_PREVENT, CAP_PROHIBIT);
$capabilities = fetch_context_capabilities($context); // capabilities applicable in this context
$localoverrides = get_records_select('role_capabilities', "roleid = $roleid AND contextid = $context->id",
'', 'capability, permission, id');
foreach ($capabilities as $cap) {
if (!isset($data->{$cap->name})) {
if ($cap->locked) {
//user not allowed to change this cap
continue;
}
if (!isset($data->{$cap->name})) {
//cap not specified in form
continue;
}
if (islegacy($data->{$cap->name})) {
continue;
}
$capname = $cap->name;
$value = clean_param($data->{$cap->name}, PARAM_INT);
if (!in_array($value, $allowed_values)) {
continue;
}
if (isset($localoverrides[$capname])) { // Something exists, so update it
if ($value == CAP_INHERIT) { // inherit = delete
delete_records('role_capabilities', 'roleid', $roleid, 'contextid', $context->id,
'capability', $capname);
} else {
$localoverride = new object();
$localoverride->id = $localoverrides[$capname]->id;
$localoverride->permission = $value;
$localoverride->timemodified = time();
$localoverride->modifierid = $USER->id;
if (!update_record('role_capabilities', $localoverride)) {
error('Could not update a capability!');
}
}
if (isset($localoverrides[$capname])) {
// Something exists, so update it
assign_capability($capname, $value, $roleid, $context->id, true);
} else { // insert a record
if ($value != CAP_INHERIT) { // Ignore inherits
$localoverride = new object();
$localoverride->capability = $capname;
$localoverride->contextid = $context->id;
$localoverride->roleid = $roleid;
$localoverride->permission = $value;
$localoverride->timemodified = time();
$localoverride->modifierid = $USER->id;
if (!insert_record('role_capabilities', $localoverride)) {
error('Could not insert a capability!');
}
assign_capability($capname, $value, $roleid, $context->id);
}
}
}
// force accessinfo refresh for users visiting this context...
mark_context_dirty($context->path);
$rolename = get_field('role', 'name', 'id', $roleid);
add_to_log($course->id, 'role', 'override', 'admin/roles/override.php?contextid='.$context->id.'&roleid='.$roleid, $rolename, '', $USER->id);
redirect($baseurl);
}
@@ -119,47 +148,46 @@
/// Print the header and tabs
if ($context->contextlevel == CONTEXT_USER) {
$navlinks = array();
/// course header
if ($course->id != SITEID) {
print_header("$fullname", "$fullname",
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->
<a href=\"$CFG->wwwroot/user/index.php?id=$course->id\">$strparticipants</a> -> <a href=\"$CFG->wwwroot/user/view.php?id=$userid&amp;course=$course->id\">$fullname</a> -> $straction",
"", "", true, "&nbsp;", navmenu($course));
if (has_capability('moodle/course:viewparticipants', get_context_instance(CONTEXT_COURSE, $course->id))) {
$navlinks[] = array('name' => $strparticipants, 'link' => "$CFG->wwwroot/user/index.php?id=$course->id", 'type' => 'misc');
}
$navlinks[] = array('name' => $fullname, 'link' => "$CFG->wwwroot/user/view.php?id=$userid&amp;course=$courseid", 'type' => 'misc');
$navlinks[] = array('name' => $straction, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header("$fullname", "$fullname", $navigation, "", "", true, "&nbsp;", navmenu($course));
/// site header
} else {
print_header("$course->fullname: $fullname", "$course->fullname",
"<a href=\"$CFG->wwwroot/user/view.php?id=$userid&amp;course=$course->id\">$fullname</a> -> $straction", "", "", true, "&nbsp;", navmenu($course));
$navlinks[] = array('name' => $fullname, 'link' => "$CFG->wwwroot/user/view.php?id=$userid&amp;course=$courseid", 'type' => 'misc');
$navlinks[] = array('name' => $straction, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header("$course->fullname: $fullname", $course->fullname, $navigation, "", "", true, "&nbsp;", navmenu($course));
}
$showroles = 1;
$currenttab = 'override';
include_once($CFG->dirroot.'/user/tabs.php');
} else if ($context->contextlevel==CONTEXT_COURSE and $context->instanceid == SITEID) {
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('frontpageroles', $adminroot);
admin_externalpage_print_header($adminroot);
$currenttab = '';
$tabsmode = 'override';
admin_externalpage_setup('frontpageroles', '', array('contextid' => $contextid, 'roleid' => $roleid), $CFG->wwwroot . '/' . $CFG->admin . '/roles/override.php');
admin_externalpage_print_header();
$currenttab = 'override';
include_once('tabs.php');
} else {
$currenttab = '';
$tabsmode = 'override';
$currenttab = 'override';
include_once('tabs.php');
}
print_heading_with_help(get_string('overrides', 'role'), 'overrides');
$overridableroles = get_overridable_roles($context);
print_heading_with_help(get_string('overridepermissionsin', 'role', print_context_name($context)), 'overrides');
if ($roleid) {
/// prints a form to swap roles
echo '<div align="center">'.$strcurrentcontext.': '.print_context_name($context).'<br/>';
echo $strroletooverride.': ';
$overridableroles = array('0'=>get_string('listallroles', 'role').'...') + $overridableroles;
echo '<div class="selector">';
$overridableroles = array('0'=>get_string('listallroles', 'role').'...') + $overridableroles;
popup_form("$CFG->wwwroot/$CFG->admin/roles/override.php?userid=$userid&amp;courseid=$courseid&amp;contextid=$contextid&amp;roleid=",
$overridableroles, 'switchrole', $roleid, '');
$overridableroles, 'switchrole', $roleid, '', '', '', false, 'self', $strroletooverride);
echo '</div>';
$parentcontexts = get_parent_contexts($context);
@@ -177,11 +205,12 @@
$lang = str_replace('_utf8', '', current_language());
// Get the capabilities overrideable in this context
if ($capabilities = fetch_context_capabilities($context)) {
if (!empty($capabilities)) {
// Print the capabilities overrideable in this context
print_simple_box_start('center');
include_once('override.html');
include('override.html');
print_simple_box_end();
} else {
notice(get_string('nocapabilitiesincontext', 'role'),
$CFG->wwwroot.'/'.$CFG->admin.'/roles/'.$baseurl);
@@ -207,10 +236,6 @@
print_table($table);
}
if ($context->contextlevel == CONTEXT_SYSTEM or ($context->contextlevel==CONTEXT_COURSE and $context->instanceid == SITEID)) {
admin_externalpage_print_footer($adminroot);
} else {
print_footer($course);
}
print_footer($course);
?>
+126 -66
View File
@@ -1,16 +1,22 @@
<?php // $Id$
// Handles headers and tabs for the roles control at any level apart from SYSTEM level
// We also assume that $currenttab, $assignableroles and $overridableroles are defined
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
$navlinks = array();
if ($currenttab != 'update') {
switch ($context->contextlevel) {
case CONTEXT_SYSTEM:
$stradministration = get_string('administration');
print_header($SITE->fullname, "$SITE->fullname","<a href=\"../index.php\">$stradministration</a> -> $straction");
break;
case CONTEXT_PERSONAL:
$navlinks[] = array('name' => $stradministration, 'link' => '../index.php', 'type' => 'misc');
$navlinks[] = array('name' => $straction, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header($SITE->fullname, "$SITE->fullname", $navigation);
break;
case CONTEXT_USER:
@@ -22,18 +28,31 @@ if ($currenttab != 'update') {
$strcategories = get_string("categories");
$strcategory = get_string("category");
$strcourses = get_string("courses");
print_header("$SITE->shortname: $category->name", "$SITE->fullname: $strcourses",
"<a href=\"$CFG->wwwroot/course/index.php\">$strcategories</a> -> <a href=\"$CFG->wwwroot/course/category.php?id=$category->id\">$category->name</a> -> $straction", "", "", true);
$navlinks[] = array('name' => $strcategories,
'link' => "$CFG->wwwroot/course/index.php",
'type' => 'misc');
$navlinks[] = array('name' => $category->name,
'link' => "$CFG->wwwroot/course/category.php?id=$category->id",
'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header("$SITE->shortname: $category->name", "$SITE->fullname: $strcourses", $navigation, "", "", true);
break;
case CONTEXT_COURSE:
if ($context->instanceid != SITEID) {
$streditcoursesettings = get_string("editcoursesettings");
$course = get_record('course', 'id', $context->instanceid);
print_header($streditcoursesettings, "$course->fullname",
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> -> $straction");
}
require_login($course);
$navlinks[] = array('name' => get_string('roles'),
'link' => "$CFG->wwwroot/$CFG->admin/roles/assign.php?contextid=$context->id",
'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header($streditcoursesettings, $course->fullname, $navigation);
}
break;
case CONTEXT_GROUP:
@@ -54,9 +73,10 @@ if ($currenttab != 'update') {
error("The required instance of this module doesn't exist");
}
$strnav = "<a href=\"$CFG->wwwroot/mod/$module->name/view.php?id=$cm->id\">$instance->name</a> ->";
$fullmodulename = get_string("modulename", $module->name);
$streditinga = get_string("editinga", "moodle", $fullmodulename);
require_login($course);
$fullmodulename = get_string("modulename", $module->name);
$streditinga = get_string("editinga", "moodle", $fullmodulename);
$strmodulenameplural = get_string("modulenameplural", $module->name);
if ($module->name == "label") {
@@ -65,10 +85,21 @@ if ($currenttab != 'update') {
$focuscursor = "form.name";
}
$COURSE = $course;
print_header_simple($streditinga, '',
"<a href=\"$CFG->wwwroot/mod/$module->name/index.php?id=$course->id\">$strmodulenameplural</a> ->
$strnav <a href=\"$CFG->wwwroot/course/mod.php?update=$cm->id&amp;sesskey=".sesskey()."\">$streditinga</a> -> $straction", $focuscursor, "", false);
$navlinks[] = array('name' => $strmodulenameplural,
'link' => "$CFG->wwwroot/mod/$module->name/index.php?id=$course->id",
'type' => 'misc');
$navlinks[] = array('name' => $instance->name,
'link' => "$CFG->wwwroot/mod/$module->name/view.php?id=$cm->id",
'type' => 'misc');
$navlinks[] = array('name' => $streditinga,
'link' => "$CFG->wwwroot/course/mod.php?update=$cm->id&amp;sesskey=".sesskey(),
'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header_simple($streditinga, '', $navigation, $focuscursor, "", false);
break;
@@ -76,26 +107,47 @@ if ($currenttab != 'update') {
if ($blockinstance = get_record('block_instance', 'id', $context->instanceid)) {
if ($block = get_record('block', 'id', $blockinstance->blockid)) {
$blockname = print_context_name($context);
$navigation = $blockname. ' -> '.$straction;
switch ($blockinstance->pagetype) {
case 'course-view':
if ($course = get_record('course', 'id', $blockinstance->pageid)) {
if ($course->id != SITEID) {
$navigation = "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> -> $navigation";
}
require_login($course);
$navlinks[] = array('name' => $blockname, 'link' => null, 'type' => 'misc');
$navlinks[] = array('name' => $straction, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header("$straction: $blockname", $course->fullname, $navigation);
}
break;
case 'blog-view':
$strblogs = get_string('blogs','blog');
$navigation = '<a href="'.$CFG->wwwroot.'/blog/index.php">'.
$strblogs.'</a> -> '.$navigation;
$navlinks[] = array('name' => $strblogs,
'link' => $CFG->wwwroot.'/blog/index.php',
'type' => 'misc');
$navlinks[] = array('name' => $blockname, 'link' => null, 'type' => 'misc');
$navlinks[] = array('name' => $straction, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header("$straction: $strblogs", $SITE->fullname, $navigation);
break;
case 'tag-index':
$strtags = get_string('tags');
$navlinks[] = array('name' => $strtags,
'link' => $CFG->wwwroot.'/tag/index.php',
'type' => 'misc');
$navlinks[] = array('name' => $blockname, 'link' => null, 'type' => 'misc');
$navlinks[] = array('name' => $straction, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header("$straction: $strtags", $SITE->fullname, $navigation);
break;
default:
$navlinks[] = array('name' => $blockname, 'link' => null, 'type' => 'misc');
$navlinks[] = array('name' => $straction, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header("$straction: $blockname", $SITE->fullname, $navigation);
break;
}
@@ -104,66 +156,74 @@ if ($currenttab != 'update') {
break;
default:
error ('This is an unknown context!');
error ('This is an unknown context (' . $context->contextlevel . ') in admin/roles/tabs.php!');
return false;
}
}
$toprow = array();
$inactive = array();
$activetwo = array();
if ($context->contextlevel != CONTEXT_SYSTEM) { // Print tabs for anything except SYSTEM context
if ($context->contextlevel == CONTEXT_MODULE) { // only show update button if module?
if ($context->contextlevel == CONTEXT_MODULE) { // Only show update button if module
$toprow[] = new tabobject('update', $CFG->wwwroot.'/course/mod.php?update='.
$context->instanceid.'&amp;return=true&amp;sesskey='.sesskey(), get_string('update'));
$context->instanceid.'&amp;return=true&amp;sesskey='.sesskey(), get_string('settings'));
}
$toprow[] = new tabobject('roles', $CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.
$context->id, get_string('roles'));
if (isset($tabsmode)) {
if (!isset($assignableroles)) {
$assignableroles = get_assignable_roles($context);
}
if (!isset($overridableroles)) {
$overridableroles = get_overridable_roles($context);
}
if (!empty($assignableroles)) {
$secondrow[] = new tabobject('assign',
$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.$context->id,
get_string('assignroles', 'role'),
get_string('showallroles', 'role'),
true);
}
if (!empty($overridableroles)) {
$secondrow[] = new tabobject('override',
$CFG->wwwroot.'/'.$CFG->admin.'/roles/override.php?contextid='.$context->id,
get_string('overrideroles', 'role'),
get_string('showallroles', 'role'),
true);
}
$inactive[] = 'roles';
$activetwo = array('roles');
$currenttab = $tabsmode;
} else {
$inactive[] = '';
$activetwo = array();
if (!empty($assignableroles)) {
$toprow[] = new tabobject('assign',
$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.$context->id,
get_string('localroles', 'role'),
get_string('showallroles', 'role'),
true);
}
if (!empty($secondrow)) {
$tabs = array($toprow, $secondrow);
} else {
$tabs = array($toprow);
if (!empty($overridableroles)) {
$toprow[] = new tabobject('override',
$CFG->wwwroot.'/'.$CFG->admin.'/roles/override.php?contextid='.$context->id,
get_string('overridepermissions', 'role'),
get_string('showallroles', 'role'),
true);
}
}
/// Here other core tabs should go (always calling tabs.php files)
/// All the logic to decide what to show must be self-contained in the tabs file
/// eg:
/// include_once($CFG->dirroot . '/grades/tabs.php');
/// Finally, we support adding some 'on-the-fly' tabs here
/// All the logic to decide what to show must be self-cointained in the tabs file
if (isset($CFG->extratabs) && !empty($CFG->extratabs)) {
if ($extratabs = explode(',', $CFG->extratabs)) {
asort($extratabs);
foreach($extratabs as $extratab) {
/// Each extra tab must be one $CFG->dirroot relative file
if (file_exists($CFG->dirroot . '/' . $extratab)) {
include_once($CFG->dirroot . '/' . $extratab);
}
}
}
}
$inactive[] = $currenttab;
$tabs = array($toprow);
/// If there are any secondrow defined, let's introduce it
if (isset($secondrow) && is_array($secondrow) && !empty($secondrow)) {
$tabs[] = $secondrow;
}
print_tabs($tabs, $currenttab, $inactive, $activetwo);
}
?>
+29 -117
View File
@@ -5,146 +5,58 @@
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$query = trim(stripslashes_safe(required_param('query', PARAM_NOTAGS))); // Search string
$query = trim(stripslashes(optional_param('query', '', PARAM_NOTAGS))); // Search string
$adminroot = admin_get_root();
admin_externalpage_setup('search', $adminroot); // now hidden page
$CFG->adminsearchquery = $query; // So we can reference it in search boxes later in this invocation
$adminroot =& admin_get_root(); // need all settings here
$adminroot->search = $query; // So we can reference it in search boxes later in this invocation
$statusmsg = '';
$errormsg = '';
$focus = '';
admin_externalpage_setup('search'); // now hidden page
// now we'll deal with the case that the admin has submitted the form with changed settings
$statusmsg = '';
if ($data = data_submitted()) {
$unslashed = (array)stripslashes_recursive($data);
if (confirm_sesskey()) {
$olddbsessions = !empty($CFG->dbsessions);
$changedsettings = search_settings(admin_get_root(), $query);
$errors = '';
foreach($changedsettings as $changedsetting) {
if (!isset($unslashed['s_' . $changedsetting->name])) {
$unslashed['s_' . $changedsetting->name] = ''; // needed for checkboxes
}
$errors .= $changedsetting->write_setting($unslashed['s_' . $changedsetting->name]);
}
if ($olddbsessions != !empty($CFG->dbsessions)) {
require_logout();
}
if (empty($errors)) {
$statusmsg = get_string('changessaved');
} else {
$statusmsg = get_string('errorwithsettings', 'admin') . ' <br />' . $errors;
}
} else {
error(get_string('confirmsesskeybad', 'error'));
if ($data = data_submitted() and confirm_sesskey()) {
if (admin_write_settings($data)) {
$statusmsg = get_string('changessaved');
}
$adminroot =& admin_get_root(true); //reload tree
if (!empty($adminroot->errors)) {
$errormsg = get_string('errorwithsettings', 'admin');
$firsterror = reset($adminroot->errors);
$focus = $firsterror->id;
}
// now update $SITE - it might have been changed
$SITE = get_record('course', 'id', $SITE->id);
$COURSE = clone($SITE);
}
// and finally, if we get here, then there are matching settings and we have to print a form
// to modify them
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header($focus);
if ($statusmsg != '') {
notify ($statusmsg);
if ($errormsg !== '') {
notify ($errormsg);
} else if ($statusmsg !== '') {
notify ($statusmsg, 'notifysuccess');
}
$resultshtml = search_settings_html(admin_get_root(), $query);
$resultshtml = admin_search_settings_html($query); // case insensitive search only
echo '<form action="search.php" method="post" id="adminsettings">';
echo '<input type="hidden" name="sesskey" value="' . sesskey() . '" />';
echo '<input type="hidden" name="query" value="' . s($query) . '" />';
echo '<div>';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '<input type="hidden" name="query" value="'.s($query).'" />';
echo '</div>';
echo '<fieldset>';
echo '<div class="clearer"><!-- --></div>';
if ($resultshtml != '') {
echo $resultshtml;
echo '<div class="form-buttons"><input class="form-submit" type="submit" value="' . get_string('savechanges','admin') . '" /></div>';
} else {
echo get_string('noresults','admin');
}
echo '</fieldset>';
echo '</form>';
admin_externalpage_print_footer($adminroot);
/**
* Find settings using a query.
*
* @param string &$node The node at which to start searching. Should be $ADMIN for all external calls to this function.
* @param string $query The search string.
* @return array An array containing admin_setting objects that match $query.
*/
function search_settings(&$node, $query) {
if (is_a($node, 'admin_category')) {
$return = array();
$entries = array_keys($node->children);
foreach ($entries as $entry) {
$return = array_merge($return, search_settings($node->children[$entry], $query));
}
return $return;
}
if (is_a($node, 'admin_settingpage')) {
$return = array();
foreach ($node->settings as $setting) {
if (stristr($setting->name,$query) || stristr($setting->visiblename,$query) || stristr($setting->description,$query)) {
$return[] =& $setting;
}
unset($setting); // needed to prevent odd (imho) reference behaviour
// see http://www.php.net/manual/en/language.references.whatdo.php#AEN6399
}
return $return;
}
return array();
}
function search_settings_html(&$node, $query) {
global $CFG;
if (is_a($node, 'admin_category')) {
$entries = array_keys($node->children);
$return = '';
foreach ($entries as $entry) {
$return .= search_settings_html($node->children[$entry], $query);
}
return $return;
}
if (is_a($node, 'admin_settingpage')) {
$foundsettings = array();
foreach ($node->settings as $setting) {
if (stristr($setting->name,$query) || stristr($setting->visiblename,$query) || stristr($setting->description,$query)) {
$foundsettings[] =& $setting;
}
unset($setting); // needed to prevent odd (imho) reference behaviour
// see http://www.php.net/manual/en/language.references.whatdo.php#AEN6399
}
$return = '';
if (count($foundsettings) > 0) {
$return .= print_heading(get_string('searchresults','admin').' - '. '<a href="' . $CFG->wwwroot . '/' . $CFG->admin . '/settings.php?section=' . $node->name . '">' . $node->visiblename . '</a>', '', 2, 'main', true);
$return .= '<fieldset class="adminsettings">' . "\n";
foreach ($foundsettings as $foundsetting) {
$return .= '<div class="clearer"><!-- --></div>' . "\n";
$return .= highlight($query,$foundsetting->output_html());
}
$return .= '</fieldset>';
}
return $return;
}
return '';
}
print_footer();
?>
+79 -110
View File
@@ -5,21 +5,56 @@ require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/blocklib.php');
require_once($CFG->dirroot.'/'.$CFG->admin.'/pagelib.php');
if ($site = get_site()) {
require_login();
$section = required_param('section', PARAM_SAFEDIR);
$return = optional_param('return','', PARAM_ALPHA);
$adminediting = optional_param('adminedit', -1, PARAM_BOOL);
/// no guest autologin
require_login(0, false);
$adminroot =& admin_get_root(); // need all settings
$page =& $adminroot->locate($section);
if (empty($page) or !is_a($page, 'admin_settingpage')) {
print_error('sectionerror', 'admin', "$CFG->wwwroot/$CFG->admin/");
die;
}
if (!($page->check_access())) {
print_error('accessdenied', 'admin');
die;
}
/// WRITING SUBMITTED DATA (IF ANY) -------------------------------------------------------------------------------
$statusmsg = '';
$errormsg = '';
$focus = '';
if ($data = data_submitted() and confirm_sesskey()) {
if (admin_write_settings($data)) {
$statusmsg = get_string('changessaved');
}
if (empty($adminroot->errors)) {
switch ($return) {
case 'site': redirect("$CFG->wwwroot/");
case 'admin': redirect("$CFG->wwwroot/$CFG->admin/");
}
} else {
$errormsg = get_string('errorwithsettings', 'admin');
$firsterror = reset($adminroot->errors);
$focus = $firsterror->id;
}
$adminroot =& admin_get_root(true); //reload tree
$page =& $adminroot->locate($section);
}
/// very hacky page setup
page_map_class(PAGE_ADMIN, 'page_admin');
$PAGE = page_create_object(PAGE_ADMIN, 0); // there must be any constant id number
$section = optional_param('section', '', PARAM_ALPHAEXT);
$PAGE->init_extra($section); // hack alert!
$adminediting = optional_param('adminedit', -1, PARAM_BOOL);
$return = optional_param('return','', PARAM_ALPHA);
$PAGE->init_extra($section);
$CFG->pagepath = 'admin/setting/'.$section;
if (!isset($USER->adminediting)) {
$USER->adminediting = false;
@@ -33,87 +68,36 @@ if ($PAGE->user_allowed_editing()) {
}
}
$adminroot = admin_get_root();
$root = $adminroot->locate($PAGE->section);
if (!is_a($root, 'admin_settingpage')) {
error(get_string('sectionerror', 'admin'));
die;
}
if (!($root->check_access())) {
error(get_string('accessdenied', 'admin'));
die;
}
$CFG->pagepath = 'admin/setting/'.$section;
/// WRITING SUBMITTED DATA (IF ANY) -------------------------------------------------------------------------------
$statusmsg = '';
if ($data = data_submitted()) {
if (confirm_sesskey()) {
$olddbsessions = !empty($CFG->dbsessions);
$unslashed = (array)stripslashes_recursive($data);
$errors = $root->write_settings($unslashed);
//force logout if dbsession setting changes
if ($olddbsessions != !empty($CFG->dbsessions)) {
require_logout();
}
if (empty($errors)) {
switch ($return) {
case 'site':
redirect("$CFG->wwwroot/");
case 'admin':
redirect("$CFG->wwwroot/$CFG->admin/");
default:
$statusmsg = get_string('changessaved');
}
} else {
$statusmsg = get_string('errorwithsettings', 'admin') . ' <br />' . $errors;
}
} else {
error(get_string('confirmsesskeybad', 'error'));
}
// now update $SITE - it might have been changed
$SITE = get_record('course', 'id', $SITE->id);
$COURSE = clone($SITE);
}
/// print header stuff ------------------------------------------------------------
// header must be printed after the redirects and require_logout
if (empty($SITE->fullname)) {
print_header();
print_header($page->visiblename, $page->visiblename, '', $focus);
print_simple_box(get_string('configintrosite', 'admin'), 'center', '50%');
if ($statusmsg != '') {
notify ($statusmsg);
if ($errormsg !== '') {
notify ($errormsg);
} else if ($statusmsg !== '') {
notify ($statusmsg, 'notifysuccess');
}
// ---------------------------------------------------------------------------------------------------------------
echo '<form action="settings.php" method="post" id="adminsettings">';
echo '<div class="settingsform">';
echo '<input type="hidden" name="section" value="' . $PAGE->section . '" />';
echo '<input type="hidden" name="sesskey" value="' . $USER->sesskey . '" />';
echo '<input type="hidden" name="return" value="' . $return . '" />';
print_heading($root->visiblename);
echo '<div class="settingsform clearfix">';
echo '<input type="hidden" name="section" value="'.$PAGE->section.'" />';
echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
echo '<input type="hidden" name="return" value="'.$return.'" />';
echo $root->output_html();
echo $page->output_html();
echo '<div class="form-buttons"><input class="form-submit" type="submit" value="' . get_string('savechanges','admin') . '" /></div>';
echo '<div class="form-buttons"><input class="form-submit" type="submit" value="'.get_string('savechanges','admin').'" /></div>';
echo '</div>';
echo '</form>';
}
if (!empty($SITE->fullname)) {
} else {
$pageblocks = blocks_setup($PAGE);
$preferred_width_left = bounded_number(BLOCK_L_MIN_WIDTH, blocks_preferred_width($pageblocks[BLOCK_POS_LEFT]),
@@ -121,71 +105,56 @@ if (!empty($SITE->fullname)) {
$preferred_width_right = bounded_number(BLOCK_R_MIN_WIDTH, blocks_preferred_width($pageblocks[BLOCK_POS_RIGHT]),
BLOCK_R_MAX_WIDTH);
$PAGE->print_header();
$PAGE->print_header('', $focus);
echo '<table id="layout-table"><tr>';
$lt = (empty($THEME->layouttable)) ? array('left', 'middle', 'right') : $THEME->layouttable;
foreach ($lt as $column) {
switch ($column) {
case 'left':
echo '<td style="width: ' . $preferred_width_left . 'px;" id="left-column">';
if (!empty($THEME->roundcorners)) {
echo '<div class="bt"><div></div></div>';
echo '<div class="i1"><div class="i2"><div class="i3">';
}
echo '<td style="width: '.$preferred_width_left.'px;" id="left-column">';
print_container_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
if (!empty($THEME->roundcorners)) {
echo '</div></div></div>';
echo '<div class="bb"><div></div></div>';
}
print_container_end();
echo '</td>';
break;
case 'middle':
echo '<td id="middle-column">';
if (!empty($THEME->roundcorners)) {
echo '<div class="bt"><div></div></div>';
echo '<div class="i1"><div class="i2"><div class="i3">';
}
print_container_start();
echo '<a name="startofcontent"></a>';
if ($statusmsg != '') {
notify ($statusmsg);
if ($errormsg !== '') {
notify ($errormsg);
} else if ($statusmsg !== '') {
notify ($statusmsg, 'notifysuccess');
}
// ---------------------------------------------------------------------------------------------------------------
echo '<form action="settings.php" method="post" id="adminsettings">';
echo '<div class="settingsform">';
echo '<input type="hidden" name="section" value="' . $PAGE->section . '" />';
echo '<input type="hidden" name="sesskey" value="' . $USER->sesskey . '" />';
echo '<input type="hidden" name="return" value="' . $return . '" />';
print_heading($root->visiblename);
echo '<div class="settingsform clearfix">';
echo '<input type="hidden" name="section" value="'.$PAGE->section.'" />';
echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
echo '<input type="hidden" name="return" value="'.$return.'" />';
print_heading($page->visiblename);
echo $root->output_html();
echo $page->output_html();
echo '<div class="form-buttons"><input class="form-submit" type="submit" value="' . get_string('savechanges','admin') . '" /></div>';
echo '<div class="form-buttons"><input class="form-submit" type="submit" value="'.get_string('savechanges','admin').'" /></div>';
echo '</div>';
echo '</form>';
if (!empty($THEME->roundcorners)) {
echo '</div></div></div>';
echo '<div class="bb"><div></div></div>';
}
print_container_end();
echo '</td>';
break;
case 'right':
if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT)) {
echo '<td style="width: ' . $preferred_width_right . 'px;" id="right-column">';
if (!empty($THEME->roundcorners)) {
echo '<div class="bt"><div></div></div>';
echo '<div class="i1"><div class="i2"><div class="i3">';
}
echo '<td style="width: '.$preferred_width_right.'px;" id="right-column">';
print_container_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
if (!empty($THEME->roundcorners)) {
echo '</div></div></div>';
echo '<div class="bb"><div></div></div>';
}
print_container_end();
echo '</td>';
}
break;
+82 -93
View File
@@ -2,107 +2,96 @@
// This file defines settingpages and externalpages under the "appearance" category
$ADMIN->add('appearance', new admin_category('themes', get_string('themes')));
// "themesettings" settingpage
$temp = new admin_settingpage('themesettings', get_string('themesettings', 'admin'));
$temp->add(new admin_setting_configtext('themelist', get_string('themelist', 'admin'), get_string('configthemelist','admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configcheckbox('allowuserthemes', get_string('allowuserthemes', 'admin'), get_string('configallowuserthemes', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowcoursethemes', get_string('allowcoursethemes', 'admin'), get_string('configallowcoursethemes', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowuserblockhiding', get_string('allowuserblockhiding', 'admin'), get_string('configallowuserblockhiding', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('showblocksonmodpages', get_string('showblocksonmodpages', 'admin'), get_string('configshowblocksonmodpages', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('tabselectedtofront', get_string('tabselectedtofronttext', 'admin'), get_string('tabselectedtofront', 'admin'), 0));
$ADMIN->add('themes', $temp);
$ADMIN->add('themes', new admin_externalpage('themeselector', get_string('themeselector','admin'), $CFG->wwwroot . '/theme/index.php'));
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$ADMIN->add('appearance', new admin_category('themes', get_string('themes')));
// "themesettings" settingpage
$temp = new admin_settingpage('themesettings', get_string('themesettings', 'admin'));
$temp->add(new admin_setting_configtext('themelist', get_string('themelist', 'admin'), get_string('configthemelist','admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configcheckbox('allowuserthemes', get_string('allowuserthemes', 'admin'), get_string('configallowuserthemes', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowcoursethemes', get_string('allowcoursethemes', 'admin'), get_string('configallowcoursethemes', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowcategorythemes', get_string('allowcategorythemes', 'admin'), get_string('configallowcategorythemes', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowuserblockhiding', get_string('allowuserblockhiding', 'admin'), get_string('configallowuserblockhiding', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('showblocksonmodpages', get_string('showblocksonmodpages', 'admin'), get_string('configshowblocksonmodpages', 'admin'), 0));
$temp->add(new admin_setting_configselect('hideactivitytypenavlink', get_string('hideactivitytypenavlink', 'admin'), get_string('confighideactivitytypenavlink', 'admin'), 0,
array(
0 => get_string('hidefromnone', 'admin'),
1 => get_string('hidefromstudents', 'admin'),
2 => get_string('hidefromall', 'admin')
)));
$ADMIN->add('themes', $temp);
$ADMIN->add('themes', new admin_externalpage('themeselector', get_string('themeselector','admin'), $CFG->wwwroot . '/theme/index.php'));
// calendar
$temp = new admin_settingpage('calendar', get_string('calendarsettings','admin'));
$temp->add(new admin_setting_special_adminseesall());
$temp->add(new admin_setting_configselect('calendar_startwday', get_string('configstartwday', 'admin'), get_string('helpstartofweek', 'admin'), 0,
array(
0 => get_string('sunday', 'calendar'),
1 => get_string('monday', 'calendar'),
2 => get_string('tuesday', 'calendar'),
3 => get_string('wednesday', 'calendar'),
4 => get_string('thursday', 'calendar'),
5 => get_string('friday', 'calendar'),
6 => get_string('saturday', 'calendar')
)));
$temp->add(new admin_setting_special_calendar_weekend());
$temp->add(new admin_setting_configtext('calendar_lookahead',get_string('configlookahead','admin'),get_string('helpupcominglookahead', 'admin'),21,PARAM_INT));
$temp->add(new admin_setting_configtext('calendar_maxevents',get_string('configmaxevents','admin'),get_string('helpupcomingmaxevents', 'admin'),10,PARAM_INT));
$ADMIN->add('appearance', $temp);
// calendar
$temp = new admin_settingpage('calendar', get_string('calendarsettings','admin'));
$temp->add(new admin_setting_special_adminseesall());
//this is hacky because we do not want to include the stuff from calendar/lib.php
$temp->add(new admin_setting_configselect('calendar_site_timeformat', get_string('pref_timeformat', 'calendar'),
get_string('explain_site_timeformat', 'calendar'), '0',
array('0' => get_string('default', 'calendar'),
'%I:%M %p' => get_string('timeformat_12', 'calendar'),
'%H:%M' => get_string('timeformat_24', 'calendar'))));
$temp->add(new admin_setting_configselect('calendar_startwday', get_string('configstartwday', 'admin'), get_string('helpstartofweek', 'admin'), 0,
array(
0 => get_string('sunday', 'calendar'),
1 => get_string('monday', 'calendar'),
2 => get_string('tuesday', 'calendar'),
3 => get_string('wednesday', 'calendar'),
4 => get_string('thursday', 'calendar'),
5 => get_string('friday', 'calendar'),
6 => get_string('saturday', 'calendar')
)));
$temp->add(new admin_setting_special_calendar_weekend());
$temp->add(new admin_setting_configtext('calendar_lookahead',get_string('configlookahead','admin'),get_string('helpupcominglookahead', 'admin'),21,PARAM_INT));
$temp->add(new admin_setting_configtext('calendar_maxevents',get_string('configmaxevents','admin'),get_string('helpupcomingmaxevents', 'admin'),10,PARAM_INT));
$temp->add(new admin_setting_configcheckbox('enablecalendarexport', get_string('enablecalendarexport', 'admin'), get_string('configenablecalendarexport','admin'), 1));
$temp->add(new admin_setting_configtext('calendar_exportsalt', get_string('calendarexportsalt','admin'), get_string('configcalendarexportsalt', 'admin'), random_string(60)));
$ADMIN->add('appearance', $temp);
// "filtersettings" settingpage
$temp = new admin_settingpage('filtersettings', get_string('filtersettings', 'admin'));
$temp->add(new admin_setting_configselect('cachetext', get_string('cachetext', 'admin'), get_string('configcachetext', 'admin'), 60, array(604800 => get_string('numdays','',7),
86400 => get_string('numdays','',1),
43200 => get_string('numhours','',12),
10800 => get_string('numhours','',3),
7200 => get_string('numhours','',2),
3600 => get_string('numhours','',1),
2700 => get_string('numminutes','',45),
1800 => get_string('numminutes','',30),
900 => get_string('numminutes','',15),
600 => get_string('numminutes','',10),
540 => get_string('numminutes','',9),
480 => get_string('numminutes','',8),
420 => get_string('numminutes','',7),
360 => get_string('numminutes','',6),
300 => get_string('numminutes','',5),
240 => get_string('numminutes','',4),
180 => get_string('numminutes','',3),
120 => get_string('numminutes','',2),
60 => get_string('numminutes','',1),
30 => get_string('numseconds','',30),
0 => get_string('no'))));
$temp->add(new admin_setting_configselect('filteruploadedfiles', get_string('filteruploadedfiles', 'admin'), get_string('configfilteruploadedfiles', 'admin'), 0, array('0' => get_string('none'),
'1' => get_string('allfiles'),
'2' => get_string('htmlfilesonly'))));
$temp->add(new admin_setting_configcheckbox('filtermatchoneperpage', get_string('filtermatchoneperpage', 'admin'), get_string('configfiltermatchoneperpage', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('filtermatchonepertext', get_string('filtermatchonepertext', 'admin'), get_string('configfiltermatchonepertext', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('filterall', get_string('filterall', 'admin'), get_string('configfilterall', 'admin'), 0));
$ADMIN->add('appearance', $temp);
// "htmleditor" settingpage
$temp = new admin_settingpage('htmleditor', get_string('htmleditor', 'admin'));
$temp->add(new admin_setting_configcheckbox('htmleditor', get_string('usehtmleditor', 'admin'), get_string('confightmleditor','admin'), 1));
$temp->add(new admin_setting_configtext('editorbackgroundcolor', get_string('editorbackgroundcolor', 'admin'), get_string('edhelpbgcolor'), '#ffffff', PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('editorfontfamily', get_string('editorfontfamily', 'admin'), get_string('edhelpfontfamily'), 'Trebuchet MS,Verdana,Arial,Helvetica,sans-serif', PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('editorfontsize', get_string('editorfontsize', 'admin'), get_string('edhelpfontsize'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_special_editorfontlist());
$temp->add(new admin_setting_configcheckbox('editorkillword', get_string('editorkillword', 'admin'), get_string('edhelpcleanword'), 1));
if (!empty($CFG->aspellpath)) { // make aspell settings disappear if path isn't set
$temp->add(new admin_setting_configcheckbox('editorspelling', get_string('editorspelling', 'admin'), get_string('editorspellinghelp', 'admin'), 0));
$temp->add(new admin_setting_special_editordictionary());
}
$temp->add(new admin_setting_special_editorhidebuttons());
$temp->add(new admin_setting_emoticons());
$ADMIN->add('appearance', $temp);
// "htmlsettings" settingpage
$temp = new admin_settingpage('htmlsettings', get_string('htmlsettings', 'admin'));
$temp->add(new admin_setting_configcheckbox('formatstringstriptags', get_string('stripalltitletags', 'admin'), get_string('configstripalltitletags', 'admin'), 1));
$ADMIN->add('appearance', $temp);
// "documentation" settingpage
$temp = new admin_settingpage('documentation', get_string('moodledocs'));
$temp->add(new admin_setting_configtext('docroot', get_string('docroot', 'admin'), get_string('configdocroot', 'admin'), 'http://docs.moodle.org', PARAM_URL));
$temp->add(new admin_setting_configcheckbox('doctonewwindow', get_string('doctonewwindow', 'admin'), get_string('configdoctonewwindow', 'admin'), 0));
$ADMIN->add('appearance', $temp);
$temp = new admin_settingpage('mymoodle', get_string('mymoodle', 'admin'));
$temp->add(new admin_setting_configcheckbox('mymoodleredirect', get_string('mymoodleredirect', 'admin'), get_string('configmymoodleredirect', 'admin'), 0));
$ADMIN->add('appearance', $temp);
// new CFG variable for coursemanager (what roles to display)
$temp = new admin_settingpage('coursemanager', get_string('coursemanager', 'admin'));
$temp->add(new admin_setting_special_coursemanager());
$ADMIN->add('appearance', $temp);
// "htmleditor" settingpage
$temp = new admin_settingpage('htmleditor', get_string('htmleditor', 'admin'));
$temp->add(new admin_setting_configcheckbox('htmleditor', get_string('usehtmleditor', 'admin'), get_string('confightmleditor','admin'), 1));
$temp->add(new admin_setting_configtext('editorbackgroundcolor', get_string('editorbackgroundcolor', 'admin'), get_string('edhelpbgcolor'), '#ffffff', PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('editorfontfamily', get_string('editorfontfamily', 'admin'), get_string('edhelpfontfamily'), 'Trebuchet MS,Verdana,Arial,Helvetica,sans-serif', PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('editorfontsize', get_string('editorfontsize', 'admin'), get_string('edhelpfontsize'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_special_editorfontlist());
$temp->add(new admin_setting_configcheckbox('editorkillword', get_string('editorkillword', 'admin'), get_string('edhelpcleanword'), 1));
if (!empty($CFG->aspellpath)) { // make aspell settings disappear if path isn't set
$temp->add(new admin_setting_configcheckbox('editorspelling', get_string('editorspelling', 'admin'), get_string('editorspellinghelp', 'admin'), 0));
$temp->add(new admin_setting_special_editordictionary());
}
$temp->add(new admin_setting_special_editorhidebuttons());
$ADMIN->add('appearance', $temp);
$temp = new admin_settingpage('ajax', get_string('ajaxuse'));
$temp->add(new admin_setting_configcheckbox('enableajax', get_string('enableajax', 'admin'), get_string('configenableajax', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('disablecourseajax', get_string('disablecourseajax', 'admin'), get_string('configdisablecourseajax', 'admin'),
isset($CFG->disablecourseajax) ? 1 : empty($CFG->enableajax)));
$ADMIN->add('appearance', $temp);
// "documentation" settingpage
$temp = new admin_settingpage('documentation', get_string('moodledocs'));
$temp->add(new admin_setting_configtext('docroot', get_string('docroot', 'admin'), get_string('configdocroot', 'admin'), 'http://docs.moodle.org', PARAM_URL));
$temp->add(new admin_setting_configcheckbox('doctonewwindow', get_string('doctonewwindow', 'admin'), get_string('configdoctonewwindow', 'admin'), 0));
$ADMIN->add('appearance', $temp);
$temp = new admin_settingpage('mymoodle', get_string('mymoodle', 'admin'));
$temp->add(new admin_setting_configcheckbox('mymoodleredirect', get_string('mymoodleredirect', 'admin'), get_string('configmymoodleredirect', 'admin'), 0));
$ADMIN->add('appearance', $temp);
// new CFG variable for gradebook (what roles to display)
$temp = new admin_settingpage('gradebook', get_string('gradebook', 'admin'));
$temp->add(new admin_setting_special_gradebookroles());
$ADMIN->add('appearance', $temp);
// new CFG variable for coursemanager (what roles to display)
$temp = new admin_settingpage('coursemanager', get_string('coursemanager', 'admin'));
$temp->add(new admin_setting_special_coursemanager());
$ADMIN->add('appearance', $temp);
$ADMIN->add('appearance', new admin_externalpage('stickyblocks', get_string('stickyblocks', 'admin'), "$CFG->wwwroot/$CFG->admin/stickyblocks.php"));
// link to tag management interface
$ADMIN->add('appearance', new admin_externalpage('managetags', get_string('managetags', 'tag'), "$CFG->wwwroot/tag/manage.php"));
} // end of speedup
?>
+62 -38
View File
@@ -2,49 +2,73 @@
// This file defines settingpages and externalpages under the "courses" category
if ($hassiteconfig
or has_capability('moodle/site:backup', $systemcontext)
or has_capability('moodle/category:manage', $systemcontext)
or has_capability('moodle/course:create', $systemcontext)
or has_capability('moodle/site:approvecourse', $systemcontext)) { // speedup for non-admins, add all caps used on this page
$ADMIN->add('courses', new admin_externalpage('coursemgmt', get_string('coursemgmt', 'admin'), $CFG->wwwroot . '/course/index.php?categoryedit=on'));
$ADMIN->add('courses', new admin_externalpage('coursemgmt', get_string('coursemgmt', 'admin'), $CFG->wwwroot . '/course/index.php?categoryedit=on',
array('moodle/category:manage', 'moodle/course:create')));
$ADMIN->add('courses', new admin_externalpage('enrolment', get_string('enrolments'), $CFG->wwwroot . '/'.$CFG->admin.'/enrol.php'));
$ADMIN->add('courses', new admin_enrolment_page());
// "courserequests" settingpage
$temp = new admin_settingpage('courserequest', get_string('courserequest'));
$temp->add(new admin_setting_configcheckbox('enablecourserequests', get_string('enablecourserequests', 'admin'), get_string('configenablecourserequests', 'admin'), 0));
require_once($CFG->dirroot.'/course/lib.php');
$temp->add(new admin_setting_configselect('defaultrequestcategory', get_string('defaultrequestcategory', 'admin'), get_string('configdefaultrequestcategory', 'admin'), 1, make_categories_options()));
$ADMIN->add('courses', $temp);
// "courserequests" settingpage
$temp = new admin_settingpage('courserequest', get_string('courserequest'));
$temp->add(new admin_setting_configcheckbox('enablecourserequests', get_string('enablecourserequests', 'admin'), get_string('configenablecourserequests', 'admin'), 0));
$temp->add(new admin_settings_coursecat_select('defaultrequestcategory', get_string('defaultrequestcategory', 'admin'), get_string('configdefaultrequestcategory', 'admin'), 1));
$temp->add(new admin_setting_users_with_capability('courserequestnotify', get_string('courserequestnotify', 'admin'), get_string('configcourserequestnotify2', 'admin'), array(), 'moodle/site:approvecourse'));
$ADMIN->add('courses', $temp);
// Pending course requests.
if (!empty($CFG->enablecourserequests)) {
$ADMIN->add('courses', new admin_externalpage('coursespending', get_string('pendingrequests'),
$CFG->wwwroot . '/course/pending.php', array('moodle/site:approvecourse')));
}
// "backups" settingpage
if (!empty($CFG->backup_version)) {
$bi = array();
$bi[] = new admin_setting_configcheckbox('backup_sche_modules', get_string('includemodules'), get_string('backupincludemoduleshelp'), 0);
$bi[] = new admin_setting_configcheckbox('backup_sche_withuserdata', get_string('includemoduleuserdata'), get_string('backupincludemoduleuserdatahelp'), 0);
$bi[] = new admin_setting_configcheckbox('backup_sche_metacourse', get_string('metacourse'), get_string('backupmetacoursehelp'), 0);
$bi[] = new admin_setting_configselect('backup_sche_users', get_string('users'), get_string('backupusershelp'),
0, array(0 => get_string('all'), 1 => get_string('course')));
$bi[] = new admin_setting_configcheckbox('backup_sche_logs', get_string('logs'), get_string('backuplogshelp'), 0);
$bi[] = new admin_setting_configcheckbox('backup_sche_userfiles', get_string('userfiles'), get_string('backupuserfileshelp'), 0);
$bi[] = new admin_setting_configcheckbox('backup_sche_coursefiles', get_string('coursefiles'), get_string('backupcoursefileshelp'), 0);
$bi[] = new admin_setting_configcheckbox('backup_sche_sitefiles', get_string('sitefiles'), get_string('backupsitefileshelp'), 0);
$bi[] = new admin_setting_configcheckbox('backup_sche_gradebook_history', get_string('gradebookhistories', 'grades'), get_string('backupgradebookhistoryhelp'), 0);
$bi[] = new admin_setting_configcheckbox('backup_sche_messages', get_string('messages', 'message'), get_string('backupmessageshelp','message'), 0);
$bi[] = new admin_setting_configcheckbox('backup_sche_blogs', get_string('blogs', 'blog'), get_string('backupblogshelp','blog'), 0);
$bi[] = new admin_setting_configselect('backup_sche_keep', get_string('keep'),
get_string('backupkeephelp'), 1, array(0 => get_string('all'), 1 => '1',
2 => '2',
5 => '5',
10 => '10',
20 => '20',
30 => '30',
40 => '40',
50 => '50',
100 => '100',
200 => '200',
300 => '300',
400 => '400',
500 => '500'));
$bi[] = new admin_setting_configcheckbox('backup_sche_active', get_string('active'), get_string('backupactivehelp'), 0);
$bi[] = new admin_setting_special_backupdays();
$bi[] = new admin_setting_configtime('backup_sche_hour', 'backup_sche_minute', get_string('executeat'),
get_string('backupexecuteathelp'), array('h' => 0, 'm' => 0));
$bi[] = new admin_setting_configdirectory('backup_sche_destination', get_string('saveto'), get_string('backupsavetohelp'), '');
// "backups" settingpage
$temp = new admin_settingpage('backups', get_string('backups','admin'));
$temp->add(new admin_setting_backupcheckbox('backup_sche_modules', get_string('includemodules'), get_string('backupincludemoduleshelp'), 0));
$temp->add(new admin_setting_backupcheckbox('backup_sche_withuserdata', get_string('includemoduleuserdata'), get_string('backupincludemoduleuserdatahelp'), 0));
$temp->add(new admin_setting_backupcheckbox('backup_sche_metacourse', get_string('metacourse'), get_string('backupmetacoursehelp'), 0));
$temp->add(new admin_setting_backupselect('backup_sche_users', get_string('users'), get_string('backupusershelp'), 0, array(0 => get_string('all'),
1 => get_string('course'))));
$temp->add(new admin_setting_backupcheckbox('backup_sche_logs', get_string('logs'), get_string('backuplogshelp'), 0));
$temp->add(new admin_setting_backupcheckbox('backup_sche_userfiles', get_string('userfiles'), get_string('backupuserfileshelp'), 0));
$temp->add(new admin_setting_backupcheckbox('backup_sche_coursefiles', get_string('coursefiles'), get_string('backupcoursefileshelp'), 0));
$temp->add(new admin_setting_backupcheckbox('backup_sche_messages', get_string('messages', 'message'), get_string('backupmessageshelp','message'), 0));
$temp->add(new admin_setting_backupselect('backup_sche_keep', get_string('keep'), get_string('backupkeephelp'), 1, array(0 => get_string('all'),
1 => '1',
2 => '2',
5 => '5',
10 => '10',
20 => '20',
30 => '30',
40 => '40',
50 => '50',
100 => '100',
200 => '200',
300 => '300',
400 => '400',
500 => '500')));
$temp->add(new admin_setting_backupcheckbox('backup_sche_active', get_string('active'), get_string('backupactivehelp'), 0));
$temp->add(new admin_setting_special_backupdays());
$temp->add(new admin_setting_special_backuptime());
$temp->add(new admin_setting_special_backupsaveto());
$ADMIN->add('courses', $temp);
$temp = new admin_settingpage('backups', get_string('backups','admin'), 'moodle/site:backup');
foreach ($bi as $backupitem) {
$backupitem->plugin = 'backup';
$temp->add($backupitem);
}
$ADMIN->add('courses', $temp);
}
} // end of speedup
?>
+76 -38
View File
@@ -4,42 +4,80 @@
if (get_site()) { //do not use during installation
$frontpagecontext = get_context_instance(CONTEXT_COURSE, SITEID);
$frontpagecontextid = $frontpagecontext->id;
} else {
$frontpagecontext = NULL;
$frontpagecontextid = 0;
if ($hassiteconfig or has_any_capability(array(
'moodle/course:update',
'moodle/role:assign',
'moodle/site:restore',
'moodle/site:backup',
'moodle/course:managefiles',
'moodle/question:add',
'moodle/question:editmine',
'moodle/question:editall',
'moodle/question:viewmine',
'moodle/question:viewall',
'moodle/question:movemine',
'moodle/question:moveall'), $frontpagecontext)) {
// "frontpage" settingpage
$temp = new admin_settingpage('frontpagesettings', get_string('frontpagesettings','admin'), 'moodle/course:update', false, $frontpagecontext);
$temp->add(new admin_setting_sitesettext('fullname', get_string('fullsitename'), '', NULL)); // no default
$temp->add(new admin_setting_sitesettext('shortname', get_string('shortsitename'), '', NULL)); // no default
$temp->add(new admin_setting_special_frontpagedesc());
$temp->add(new admin_setting_courselist_frontpage(false)); // non-loggedin version of the setting (that's what the parameter is for :) )
$temp->add(new admin_setting_courselist_frontpage(true)); // loggedin version of the setting
$options = array();
$options[] = get_string('unlimited');
for ($i=1; $i<100; $i++) {
$options[$i] = $i;
}
$temp->add(new admin_setting_configselect('maxcategorydepth', get_string('configsitemaxcategorydepth','admin'), get_string('configsitemaxcategorydepthhelp','admin'), 0, $options));
$temp->add(new admin_setting_sitesetcheckbox('numsections', get_string('sitesection'), get_string('sitesectionhelp','admin'), 1));
$temp->add(new admin_setting_sitesetselect('newsitems', get_string('newsitemsnumber'), '', 3,
array('0' => '0',
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
'6' => '6',
'7' => '7',
'8' => '8',
'9' => '9',
'10' => '10')));
$temp->add(new admin_setting_configtext('coursesperpage', get_string('coursesperpage', 'admin'), get_string('configcoursesperpage', 'admin'), 20, PARAM_INT));
$temp->add(new admin_setting_configcheckbox('allowvisiblecoursesinhiddencategories', get_string('allowvisiblecoursesinhiddencategories', 'admin'), get_string('configvisiblecourses', 'admin'), 0));
// front page default role
$roleoptions = array(0=>get_string('none')); // roles to choose from
if ($roles = get_all_roles()) {
foreach ($roles as $role) {
$roleoptions[$role->id] = strip_tags(format_string($role->name, true));
}
}
$temp->add(new admin_setting_configselect('defaultfrontpageroleid', get_string('frontpagedefaultrole', 'admin'), '', 0, $roleoptions));
$ADMIN->add('frontpage', $temp);
$ADMIN->add('frontpage', new admin_externalpage('frontpageroles', get_string('frontpageroles', 'admin'), "$CFG->wwwroot/$CFG->admin/roles/assign.php?contextid=" . $frontpagecontext->id, 'moodle/role:assign', false, $frontpagecontext));
$ADMIN->add('frontpage', new admin_externalpage('frontpagebackup', get_string('frontpagebackup', 'admin'), $CFG->wwwroot.'/backup/backup.php?id='.SITEID, 'moodle/site:backup', false, $frontpagecontext));
$ADMIN->add('frontpage', new admin_externalpage('frontpagerestore', get_string('frontpagerestore', 'admin'), $CFG->wwwroot.'/files/index.php?id='.SITEID.'&amp;wdir=/backupdata', 'moodle/site:restore', false, $frontpagecontext));
$questioncapabilites = array(
'moodle/question:add',
'moodle/question:editmine',
'moodle/question:editall',
'moodle/question:viewmine',
'moodle/question:viewall',
'moodle/question:movemine',
'moodle/question:moveall');
$ADMIN->add('frontpage', new admin_externalpage('frontpagequestions', get_string('frontpagequestions', 'admin'), $CFG->wwwroot.'/question/edit.php?courseid='.SITEID, $questioncapabilites, false, $frontpagecontext));
$ADMIN->add('frontpage', new admin_externalpage('sitefiles', get_string('sitefiles'), $CFG->wwwroot . '/files/index.php?id=' . SITEID, 'moodle/course:managefiles', false, $frontpagecontext));
}
}
// "frontpage" settingpage
$temp = new admin_settingpage('frontpagesettings', get_string('frontpagesettings','admin'), 'moodle/course:update', false, $frontpagecontext);
$temp->add(new admin_setting_sitesettext('fullname', get_string('fullsitename'), '', ''));
$temp->add(new admin_setting_sitesettext('shortname', get_string('shortsitename'), '', ''));
$temp->add(new admin_setting_special_frontpagedesc());
$temp->add(new admin_setting_courselist_frontpage(false)); // non-loggedin version of the setting (that's what the parameter is for :) )
$temp->add(new admin_setting_courselist_frontpage(true)); // loggedin version of the setting
$temp->add(new admin_setting_sitesetcheckbox('numsections', get_string('sitesection'), get_string('sitesectionhelp','admin'), 1));
$temp->add(new admin_setting_sitesetselect('newsitems', get_string('newsitemsnumber'), '', 3,
array('0' => '0',
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
'6' => '6',
'7' => '7',
'8' => '8',
'9' => '9',
'10' => '10')));
$temp->add(new admin_setting_configtext('coursesperpage', get_string('coursesperpage', 'admin'), get_string('configcoursesperpage', 'admin'), 20, PARAM_INT));
$temp->add(new admin_setting_configcheckbox('allowvisiblecoursesinhiddencategories', get_string('allowvisiblecoursesinhiddencategories', 'admin'), get_string('configvisiblecourses', 'admin'), 0));
$ADMIN->add('frontpage', $temp);
$ADMIN->add('frontpage', new admin_externalpage('frontpageroles', get_string('frontpageroles', 'admin'), "$CFG->wwwroot/$CFG->admin/roles/assign.php?contextid=" . $frontpagecontextid, 'moodle/role:assign', false, $frontpagecontext));
$ADMIN->add('frontpage', new admin_externalpage('frontpagebackup', get_string('frontpagebackup', 'admin'), $CFG->wwwroot.'/backup/backup.php?id='.SITEID, 'moodle/site:backup', false, $frontpagecontext));
$ADMIN->add('frontpage', new admin_externalpage('frontpagerestore', get_string('frontpagerestore', 'admin'), $CFG->wwwroot.'/files/index.php?id='.SITEID.'&amp;wdir=/backupdata', 'moodle/site:restore', false, $frontpagecontext));
$ADMIN->add('frontpage', new admin_externalpage('sitefiles', get_string('sitefiles'), $CFG->wwwroot . '/files/index.php?id=' . SITEID, 'moodle/course:managefiles', false, $frontpagecontext));
?>
?>
+201
View File
@@ -0,0 +1,201 @@
<?php // $Id$
// This file defines settingpages and externalpages under the "grades" section
if (has_capability('moodle/grade:manage', $systemcontext)
or has_capability('moodle/grade:manageletters', $systemcontext)) { // speedup for non-admins, add all caps used on this page
require_once $CFG->libdir.'/grade/constants.php';
$display_types = array(GRADE_DISPLAY_TYPE_REAL => get_string('real', 'grades'),
GRADE_DISPLAY_TYPE_PERCENTAGE => get_string('percentage', 'grades'),
GRADE_DISPLAY_TYPE_LETTER => get_string('letter', 'grades'),
GRADE_DISPLAY_TYPE_REAL_PERCENTAGE => get_string('realpercentage', 'grades'),
GRADE_DISPLAY_TYPE_REAL_LETTER => get_string('realletter', 'grades'),
GRADE_DISPLAY_TYPE_LETTER_REAL => get_string('letterreal', 'grades'),
GRADE_DISPLAY_TYPE_LETTER_PERCENTAGE => get_string('letterpercentage', 'grades'),
GRADE_DISPLAY_TYPE_PERCENTAGE_LETTER => get_string('percentageletter', 'grades'),
GRADE_DISPLAY_TYPE_PERCENTAGE_REAL => get_string('percentagereal', 'grades')
);
asort($display_types);
// General settings
$temp = new admin_settingpage('gradessettings', get_string('generalsettings', 'grades'), 'moodle/grade:manage');
if ($ADMIN->fulltree) {
// new CFG variable for gradebook (what roles to display)
$temp->add(new admin_setting_special_gradebookroles());
// enable outcomes checkbox
$temp->add(new admin_setting_configcheckbox('enableoutcomes', get_string('enableoutcomes', 'grades'), get_string('configenableoutcomes', 'grades'), 0, PARAM_INT));
$temp->add(new admin_setting_grade_profilereport());
$temp->add(new admin_setting_configselect('grade_aggregationposition', get_string('aggregationposition', 'grades'),
get_string('configaggregationposition', 'grades'), GRADE_REPORT_AGGREGATION_POSITION_LAST,
array(GRADE_REPORT_AGGREGATION_POSITION_FIRST => get_string('positionfirst', 'grades'),
GRADE_REPORT_AGGREGATION_POSITION_LAST => get_string('positionlast', 'grades'))));
$temp->add(new admin_setting_regradingcheckbox('grade_includescalesinaggregation', get_string('includescalesinaggregation', 'grades'), get_string('configincludescalesinaggregation', 'grades'), 1));
$temp->add(new admin_setting_configcheckbox('grade_hiddenasdate', get_string('hiddenasdate', 'grades'), get_string('confighiddenasdate', 'grades'), 0));
// enable publishing in exports/imports
$temp->add(new admin_setting_configcheckbox('gradepublishing', get_string('gradepublishing', 'grades'), get_string('configgradepublishing', 'grades'), 0));
$temp->add(new admin_setting_configselect('grade_export_displaytype', get_string('gradeexportdisplaytype', 'grades'),
get_string('configgradeexportdisplaytype', 'grades'), GRADE_DISPLAY_TYPE_REAL, $display_types));
$temp->add(new admin_setting_configselect('grade_export_decimalpoints', get_string('gradeexportdecimalpoints', 'grades'),
get_string('configexportdecimalpoints', 'grades'), 2,
array( '0' => '0',
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5')));
$temp->add(new admin_setting_special_gradeexport());
}
$ADMIN->add('grades', $temp);
/// Grade category settings
$temp = new admin_settingpage('gradecategorysettings', get_string('gradecategorysettings', 'grades'), 'moodle/grade:manage');
if ($ADMIN->fulltree) {
$temp->add(new admin_setting_configcheckbox('grade_hideforcedsettings', get_string('hideforcedsettings', 'grades'), get_string('confighideforcedsettings', 'grades'), '1'));
$strnoforce = get_string('noforce', 'grades');
// Aggregation type
$options = array(GRADE_AGGREGATE_MEAN =>get_string('aggregatemean', 'grades'),
GRADE_AGGREGATE_WEIGHTED_MEAN =>get_string('aggregateweightedmean', 'grades'),
GRADE_AGGREGATE_WEIGHTED_MEAN2 =>get_string('aggregateweightedmean2', 'grades'),
GRADE_AGGREGATE_EXTRACREDIT_MEAN=>get_string('aggregateextracreditmean', 'grades'),
GRADE_AGGREGATE_MEDIAN =>get_string('aggregatemedian', 'grades'),
GRADE_AGGREGATE_MIN =>get_string('aggregatemin', 'grades'),
GRADE_AGGREGATE_MAX =>get_string('aggregatemax', 'grades'),
GRADE_AGGREGATE_MODE =>get_string('aggregatemode', 'grades'),
GRADE_AGGREGATE_SUM =>get_string('aggregatesum', 'grades'));
$defaults = array('value'=>GRADE_AGGREGATE_WEIGHTED_MEAN2, 'forced'=>false, 'adv'=>false);
$temp->add(new admin_setting_gradecat_combo('grade_aggregation', get_string('aggregation', 'grades'), get_string('aggregationhelp', 'grades'), $defaults, $options));
$options = array(0 => get_string('no'), 1 => get_string('yes'));
$defaults = array('value'=>1, 'forced'=>false, 'adv'=>true);
$temp->add(new admin_setting_gradecat_combo('grade_aggregateonlygraded', get_string('aggregateonlygraded', 'grades'),
get_string('aggregateonlygradedhelp', 'grades'), $defaults, $options));
$defaults = array('value'=>0, 'forced'=>false, 'adv'=>true);
$temp->add(new admin_setting_gradecat_combo('grade_aggregateoutcomes', get_string('aggregateoutcomes', 'grades'),
get_string('aggregateoutcomeshelp', 'grades'), $defaults, $options));
$temp->add(new admin_setting_gradecat_combo('grade_aggregatesubcats', get_string('aggregatesubcats', 'grades'),
get_string('aggregatesubcatshelp', 'grades'), $defaults, $options));
$options = array(0 => get_string('none'));
for ($i=1; $i<=20; $i++) {
$options[$i] = $i;
}
$defaults['value'] = 0;
$defaults['forced'] = true;
$temp->add(new admin_setting_gradecat_combo('grade_keephigh', get_string('keephigh', 'grades'),
get_string('keephighhelp', 'grades'), $defaults, $options));
$defaults['forced'] = false;
$temp->add(new admin_setting_gradecat_combo('grade_droplow', get_string('droplow', 'grades'),
get_string('droplowhelp', 'grades'), $defaults, $options));
}
$ADMIN->add('grades', $temp);
/// Grade item settings
$temp = new admin_settingpage('gradeitemsettings', get_string('gradeitemsettings', 'grades'), 'moodle/grade:manage');
if ($ADMIN->fulltree) {
$temp->add(new admin_setting_configselect('grade_displaytype', get_string('gradedisplaytype', 'grades'),
get_string('configgradedisplaytype', 'grades'), GRADE_DISPLAY_TYPE_REAL, $display_types));
$temp->add(new admin_setting_configselect('grade_decimalpoints', get_string('decimalpoints', 'grades'),
get_string('configdecimalpoints', 'grades'), 2,
array( '0' => '0',
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5')));
$temp->add(new admin_setting_configmultiselect('grade_item_advanced', get_string('gradeitemadvanced', 'grades'), get_string('configgradeitemadvanced', 'grades'),
array('iteminfo', 'idnumber', 'gradepass', 'plusfactor', 'multfactor', 'display', 'decimals', 'hiddenuntil', 'locktime'),
array('iteminfo' => get_string('iteminfo', 'grades'),
'idnumber' => get_string('idnumbermod'),
'gradetype' => get_string('gradetype', 'grades'),
'scaleid' => get_string('scale'),
'grademin' => get_string('grademin', 'grades'),
'grademax' => get_string('grademax', 'grades'),
'gradepass' => get_string('gradepass', 'grades'),
'plusfactor' => get_string('plusfactor', 'grades'),
'multfactor' => get_string('multfactor', 'grades'),
'display' => get_string('gradedisplaytype', 'grades'),
'decimals' => get_string('decimalpoints', 'grades'),
'hidden' => get_string('hidden', 'grades'),
'hiddenuntil' => get_string('hiddenuntil', 'grades'),
'locked' => get_string('locked', 'grades'),
'locktime' => get_string('locktime', 'grades'),
'aggregationcoef' => get_string('aggregationcoef', 'grades'),
'parentcategory' => get_string('parentcategory', 'grades'))));
}
$ADMIN->add('grades', $temp);
/// Scales and outcomes
$scales = new admin_externalpage('scales', get_string('scales'), $CFG->wwwroot.'/grade/edit/scale/index.php', 'moodle/grade:manage');
$ADMIN->add('grades', $scales);
$outcomes = new admin_externalpage('outcomes', get_string('outcomes', 'grades'), $CFG->wwwroot.'/grade/edit/outcome/index.php', 'moodle/grade:manage');
$ADMIN->add('grades', $outcomes);
$letters = new admin_externalpage('letters', get_string('letters', 'grades'), $CFG->wwwroot.'/grade/edit/letter/edit.php', 'moodle/grade:manageletters');
$ADMIN->add('grades', $letters);
// The plugins must implement a settings.php file that adds their admin settings to the $settings object
// Reports
$ADMIN->add('grades', new admin_category('gradereports', get_string('reportsettings', 'grades')));
foreach (get_list_of_plugins('grade/report') as $plugin) {
// Include all the settings commands for this plugin if there are any
if (file_exists($CFG->dirroot.'/grade/report/'.$plugin.'/settings.php')) {
$settings = new admin_settingpage('gradereport'.$plugin, get_string('modulename', 'gradereport_'.$plugin), 'moodle/grade:manage');
if ($ADMIN->fulltree) {
include($CFG->dirroot.'/grade/report/'.$plugin.'/settings.php');
}
$ADMIN->add('gradereports', $settings);
}
}
// Imports
$ADMIN->add('grades', new admin_category('gradeimports', get_string('importsettings', 'grades')));
foreach (get_list_of_plugins('grade/import') as $plugin) {
// Include all the settings commands for this plugin if there are any
if (file_exists($CFG->dirroot.'/grade/import/'.$plugin.'/settings.php')) {
$settings = new admin_settingpage('gradeimport'.$plugin, get_string('modulename', 'gradeimport_'.$plugin), 'moodle/grade:manage');
if ($ADMIN->fulltree) {
include($CFG->dirroot.'/grade/import/'.$plugin.'/settings.php');
}
$ADMIN->add('gradeimports', $settings);
}
}
// Exports
$ADMIN->add('grades', new admin_category('gradeexports', get_string('exportsettings', 'grades')));
foreach (get_list_of_plugins('grade/export') as $plugin) {
// Include all the settings commands for this plugin if there are any
if (file_exists($CFG->dirroot.'/grade/export/'.$plugin.'/settings.php')) {
$settings = new admin_settingpage('gradeexport'.$plugin, get_string('modulename', 'gradeexport_'.$plugin), 'moodle/grade:manage');
if ($ADMIN->fulltree) {
include($CFG->dirroot.'/grade/export/'.$plugin.'/settings.php');
}
$ADMIN->add('gradeexports', $settings);
}
}
} // end of speedup
?>
+20 -10
View File
@@ -2,18 +2,28 @@
// This file defines settingpages and externalpages under the "appearance" category
// "languageandlocation" settingpage
$temp = new admin_settingpage('langsettings', get_string('languagesettings', 'admin'));
$temp->add(new admin_setting_configselect('lang', get_string('lang', 'admin'), get_string('configlang', 'admin'), current_language(), get_list_of_languages())); // $CFG->lang might be set in installer already, default en or en_utf8 is in setup.php
$temp->add(new admin_setting_configcheckbox('langmenu', get_string('langmenu', 'admin'), get_string('configlangmenu', 'admin'), 1));
$temp->add(new admin_setting_configtext('langlist', get_string('langlist', 'admin'), get_string('configlanglist', 'admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configcheckbox('langcache', get_string('langcache', 'admin'), get_string('configlangcache', 'admin'), 1));
$temp->add(new admin_setting_configtext('locale', get_string('localetext', 'admin'), get_string('configlocale', 'admin'), '', PARAM_FILE));
$ADMIN->add('language', $temp);
if ($hassiteconfig
or has_capability('moodle/site:langeditmaster', $systemcontext)
or has_capability('moodle/site:langeditlocal', $systemcontext)) { // speedup for non-admins, add all caps used on this page
// "languageandlocation" settingpage
$temp = new admin_settingpage('langsettings', get_string('languagesettings', 'admin'));
$temp->add(new admin_setting_configcheckbox('autolang', get_string('autolang', 'admin'), get_string('configautolang', 'admin'), 1));
$temp->add(new admin_setting_configselect('lang', get_string('lang', 'admin'), get_string('configlang', 'admin'), current_language(), get_list_of_languages())); // $CFG->lang might be set in installer already, default en or en_utf8 is in setup.php
$temp->add(new admin_setting_configcheckbox('langmenu', get_string('langmenu', 'admin'), get_string('configlangmenu', 'admin'), 1));
$temp->add(new admin_setting_langlist());
$temp->add(new admin_setting_configcheckbox('langcache', get_string('langcache', 'admin'), get_string('configlangcache', 'admin'), 1));
$temp->add(new admin_setting_configtext('locale', get_string('localetext', 'admin'), get_string('configlocale', 'admin'), '', PARAM_FILE));
// new CFG variable for excel encoding
$temp->add(new admin_setting_configselect('latinexcelexport', get_string('latinexcelexport', 'admin'), get_string('configlatinexcelexport', 'admin'), '0', array('0'=>'Unicode','1'=>'Latin')));
$ADMIN->add('language', $temp);
$ADMIN->add('language', new admin_externalpage('langedit', get_string('langedit', 'admin'), "$CFG->wwwroot/$CFG->admin/lang.php"));
$ADMIN->add('language', new admin_externalpage('langimport', get_string('langpacks', 'admin'), "$CFG->wwwroot/$CFG->admin/langimport.php"));
$ADMIN->add('language', new admin_externalpage('langedit', get_string('langedit', 'admin'), "$CFG->wwwroot/$CFG->admin/lang.php", array('moodle/site:langeditmaster', 'moodle/site:langeditlocal') ));
$ADMIN->add('language', new admin_externalpage('langimport', get_string('langpacks', 'admin'), "$CFG->wwwroot/$CFG->admin/langimport.php"));
} // end of speedup
?>
+19 -20
View File
@@ -1,28 +1,27 @@
<?php // $Id$
// "locations" settingpage
$temp = new admin_settingpage('locationsettings', get_string('locationsettings', 'admin'));
$options = get_list_of_timezones();
$options[99] = get_string('serverlocaltime');
$temp->add(new admin_setting_configselect('timezone', get_string('timezone','admin'), get_string('configtimezone', 'admin'), 99, $options));
$options = get_list_of_timezones();
$options[99] = get_string('timezonenotforced', 'admin');
$temp->add(new admin_setting_configselect('forcetimezone', get_string('forcetimezone', 'admin'), get_string('helpforcetimezone', 'admin'), 99, $options));
$options = get_list_of_countries();
$options[0] = get_string('choose') .'...';
$temp->add(new admin_setting_configselect('country', get_string('country', 'admin'), get_string('configcountry', 'admin'), 0, $options));
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$iplookups = array();
if ($plugins = get_list_of_plugins('iplookup')) {
foreach ($plugins as $plugin) {
$iplookups[$plugin] = $plugin;
}
}
$temp->add(new admin_setting_configselect('iplookup', get_string('iplookup', 'admin'), get_string('configiplookup', 'admin'), 'hostip', $iplookups));
// "locations" settingpage
$temp = new admin_settingpage('locationsettings', get_string('locationsettings', 'admin'));
$options = get_list_of_timezones();
$options[99] = get_string('serverlocaltime');
$temp->add(new admin_setting_configselect('timezone', get_string('timezone','admin'), get_string('configtimezone', 'admin'), 99, $options));
$options[99] = get_string('timezonenotforced', 'admin');
$temp->add(new admin_setting_configselect('forcetimezone', get_string('forcetimezone', 'admin'), get_string('helpforcetimezone', 'admin'), 99, $options));
$options = get_list_of_countries();
$options[0] = get_string('choose') .'...';
$temp->add(new admin_setting_configselect('country', get_string('country', 'admin'), get_string('configcountry', 'admin'), 0, $options));
$ADMIN->add('location', $temp);
$temp->add(new admin_setting_heading('iplookup', get_string('iplookup', 'admin'), get_string('iplookupinfo', 'admin')));
$temp->add(new admin_setting_configfile('geoipfile', get_string('geoipfile', 'admin'), get_string('configgeoipfile', 'admin', $CFG->dataroot.'/geoip/'), $CFG->dataroot.'/geoip/GeoLiteCity.dat'));
$temp->add(new admin_setting_configtext('googlemapkey', get_string('googlemapkey', 'admin'), get_string('configgooglemapkey', 'admin', $CFG->wwwroot), ''));
$ADMIN->add('location', $temp);
$ADMIN->add('location', new admin_externalpage('timezoneimport', get_string('updatetimezones', 'admin'), "$CFG->wwwroot/$CFG->admin/timezoneimport.php"));
$ADMIN->add('location', new admin_externalpage('timezoneimport', get_string('updatetimezones', 'admin'), "$CFG->wwwroot/$CFG->admin/timezoneimport.php"));
} // end of speedup
?>
+24 -13
View File
@@ -2,21 +2,32 @@
// * Miscellaneous settings
// Experimental settings page
$temp = new admin_settingpage('experimental', get_string('experimental', 'admin'));
$temp->add(new admin_setting_configcheckbox('enableajax', get_string('enableajax', 'admin'), get_string('configenableajax', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('enableglobalsearch', get_string('enableglobalsearch', 'admin'), get_string('configenableglobalsearch', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('smartpix', get_string('smartpix', 'admin'), get_string('configsmartpix', 'admin'), 0));
$ADMIN->add('misc', $temp);
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// XMLDB editor
$ADMIN->add('misc', new admin_externalpage('xmldbeditor', get_string('xmldbeditor'), "$CFG->wwwroot/$CFG->admin/xmldb/"));
// Experimental settings page
$temp = new admin_settingpage('experimental', get_string('experimental', 'admin'));
$temp->add(new admin_setting_configcheckbox('enableglobalsearch', get_string('enableglobalsearch', 'admin'), get_string('configenableglobalsearch', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('smartpix', get_string('smartpix', 'admin'), get_string('configsmartpix', 'admin'), 0));
$item = new admin_setting_configcheckbox('enablehtmlpurifier', get_string('enablehtmlpurifier', 'admin'), get_string('configenablehtmlpurifier', 'admin'), 0);
$item->set_updatedcallback('reset_text_filters_cache');
$temp->add($item);
$temp->add(new admin_setting_configcheckbox('enablegroupings', get_string('enablegroupings', 'admin'), get_string('configenablegroupings', 'admin'), 0));
$rqsetting = new admin_setting_configcheckbox('selectmanual', get_string('selectmanualquestions', 'qtype_random'), get_string('configselectmanualquestions', 'qtype_random'), 0);
$rqsetting->plugin = 'qtype_random';
$temp->add($rqsetting);
$ADMIN->add('misc', $temp);
// XMLDB editor
$ADMIN->add('misc', new admin_externalpage('xmldbeditor', get_string('xmldbeditor'), "$CFG->wwwroot/$CFG->admin/xmldb/"));
// hidden scripts linked from elsewhere
$ADMIN->add('misc', new admin_externalpage('oacleanup', 'Online Assignment Cleanup', $CFG->wwwroot.'/'.$CFG->admin.'/oacleanup.php', 'moodle/site:config', true));
$ADMIN->add('misc', new admin_externalpage('upgradeforumread', 'Upgrade forum', $CFG->wwwroot.'/'.$CFG->admin.'/upgradeforumread.php', 'moodle/site:config', true));
$ADMIN->add('misc', new admin_externalpage('upgradelogs', 'Upgrade logs', $CFG->wwwroot.'/'.$CFG->admin.'/upgradelogs.php', 'moodle/site:config', true));
$ADMIN->add('misc', new admin_externalpage('multilangupgrade', get_string('multilangupgrade', 'admin'), $CFG->wwwroot.'/'.$CFG->admin.'/multilangupgrade.php', 'moodle/site:config', !empty($CFG->filter_multilang_converted)));
// hidden scripts linked from elsewhere
$ADMIN->add('misc', new admin_externalpage('oacleanup', 'Online Assignment Cleanup', $CFG->wwwroot.'/'.$CFG->admin.'/oacleanup.php', 'moodle/site:config', true));
$ADMIN->add('misc', new admin_externalpage('upgradeforumread', 'Upgrade forum', $CFG->wwwroot.'/'.$CFG->admin.'/upgradeforumread.php', 'moodle/site:config', true));
$ADMIN->add('misc', new admin_externalpage('upgradelogs', 'Upgrade logs', $CFG->wwwroot.'/'.$CFG->admin.'/upgradelogs.php', 'moodle/site:config', true));
$ADMIN->add('misc', new admin_externalpage('multilangupgrade', get_string('multilangupgrade', 'admin'), $CFG->wwwroot.'/'.$CFG->admin.'/multilangupgrade.php', 'moodle/site:config', !empty($CFG->filter_multilang_converted)));
} // end of speedup
?>
+15 -9
View File
@@ -2,20 +2,26 @@
// This file defines settingpages and externalpages under the "mnet" category
$ADMIN->add('mnet', new admin_externalpage('net', get_string('settings', 'mnet'),
$CFG->wwwroot . '/admin/mnet/index.php',
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$ADMIN->add('mnet', new admin_externalpage('net', get_string('settings', 'mnet'),
"$CFG->wwwroot/$CFG->admin/mnet/index.php",
'moodle/site:config'));
$ADMIN->add('mnet', new admin_externalpage('mnetpeers', get_string('mnetpeers', 'mnet'),
$CFG->wwwroot . '/admin/mnet/peers.php',
$ADMIN->add('mnet', new admin_externalpage('mnetpeers', get_string('mnetpeers', 'mnet'),
"$CFG->wwwroot/$CFG->admin/mnet/peers.php",
'moodle/site:config'));
$ADMIN->add('mnet', new admin_externalpage('ssoaccesscontrol', get_string('ssoaccesscontrol', 'mnet'),
$CFG->wwwroot . '/admin/mnet/access_control.php',
"$CFG->wwwroot/$CFG->admin/mnet/access_control.php",
'moodle/site:config'));
$ADMIN->add('mnet', new admin_externalpage('mnetenrol', get_string('mnetenrol', 'mnet'),
$CFG->wwwroot . '/admin/mnet/enr_hosts.php',
$ADMIN->add('mnet', new admin_externalpage('mnetenrol', get_string('mnetenrol', 'mnet'),
"$CFG->wwwroot/$CFG->admin/mnet/enr_hosts.php",
'moodle/site:config'));
$ADMIN->add('mnet', new admin_externalpage('trustedhosts', get_string('trustedhosts', 'mnet'),
$CFG->wwwroot . '/admin/mnet/trustedhosts.php',
$ADMIN->add('mnet', new admin_externalpage('trustedhosts', get_string('trustedhosts', 'mnet'),
"$CFG->wwwroot/$CFG->admin/mnet/trustedhosts.php",
'moodle/site:config'));
} // end of speedup
?>
+164
View File
@@ -0,0 +1,164 @@
<?php //$Id$
if ($hassiteconfig) {
$ADMIN->add('modules', new admin_category('modsettings', get_string('activities')));
$ADMIN->add('modsettings', new admin_page_managemods());
if ($modules = get_records('modules')) {
$modulebyname = array();
foreach ($modules as $module) {
$strmodulename = get_string('modulename', $module->name);
// Deal with modules which are lacking the language string
if ($strmodulename == '[[modulename]]') {
$textlib = textlib_get_instance();
$strmodulename = $textlib->strtotitle($module->name);
}
$modulebyname[$strmodulename] = $module;
}
ksort($modulebyname);
foreach ($modulebyname as $strmodulename=>$module) {
$modulename = $module->name;
if (file_exists($CFG->dirroot.'/mod/'.$modulename.'/settingstree.php')) {
include($CFG->dirroot.'/mod/'.$modulename.'/settingstree.php');
} else if (file_exists($CFG->dirroot.'/mod/'.$modulename.'/settings.php')) {
// do not show disabled modules in tree, keep only settings link on manage page
$settings = new admin_settingpage('modsetting'.$modulename, $strmodulename, 'moodle/site:config', !$module->visible);
if ($ADMIN->fulltree) {
include($CFG->dirroot.'/mod/'.$modulename.'/settings.php');
}
$ADMIN->add('modsettings', $settings);
} else if (file_exists($CFG->dirroot.'/mod/'.$modulename.'/config.html')) {
$ADMIN->add('modsettings', new admin_externalpage('modsetting'.$modulename, $strmodulename, "$CFG->wwwroot/$CFG->admin/module.php?module=$modulename", 'moodle/site:config', !$module->visible));
}
}
}
$ADMIN->add('modules', new admin_category('blocksettings', get_string('blocks')));
$ADMIN->add('blocksettings', new admin_page_manageblocks());
$ADMIN->add('blocksettings', new admin_externalpage('stickyblocks', get_string('stickyblocks', 'admin'), "$CFG->wwwroot/$CFG->admin/stickyblocks.php"));
if (!empty($CFG->blocks_version) and $blocks = get_records('block')) {
$blockbyname = array();
foreach ($blocks as $block) {
if(($blockobject = block_instance($block->name)) === false) {
// Failed to load
continue;
}
$blockbyname[$blockobject->get_title()] = $block;
}
ksort($blockbyname);
foreach ($blockbyname as $strblockname=>$block) {
$blockname = $block->name;
if (file_exists($CFG->dirroot.'/blocks/'.$blockname.'/settings.php')) {
$settings = new admin_settingpage('blocksetting'.$blockname, $strblockname, 'moodle/site:config', !$block->visible);
if ($ADMIN->fulltree) {
include($CFG->dirroot.'/blocks/'.$blockname.'/settings.php');
}
$ADMIN->add('blocksettings', $settings);
} else if (file_exists($CFG->dirroot.'/blocks/'.$blockname.'/config_global.html')) {
$ADMIN->add('blocksettings', new admin_externalpage('blocksetting'.$blockname, $strblockname, "$CFG->wwwroot/$CFG->admin/block.php?block=$block->id", 'moodle/site:config', !$block->visible));
}
}
}
$ADMIN->add('modules', new admin_category('filtersettings', get_string('managefilters')));
// "filtersettings" settingpage
$temp = new admin_settingpage('managefilters', get_string('filtersettings', 'admin'));
if ($ADMIN->fulltree) {
$items = array();
$items[] = new admin_setting_managefilters();
$items[] = new admin_setting_heading('managefilterscommonheading', get_string('commonsettings', 'admin'), '');
$items[] = new admin_setting_configselect('cachetext', get_string('cachetext', 'admin'), get_string('configcachetext', 'admin'), 60, array(604800 => get_string('numdays','',7),
86400 => get_string('numdays','',1),
43200 => get_string('numhours','',12),
10800 => get_string('numhours','',3),
7200 => get_string('numhours','',2),
3600 => get_string('numhours','',1),
2700 => get_string('numminutes','',45),
1800 => get_string('numminutes','',30),
900 => get_string('numminutes','',15),
600 => get_string('numminutes','',10),
540 => get_string('numminutes','',9),
480 => get_string('numminutes','',8),
420 => get_string('numminutes','',7),
360 => get_string('numminutes','',6),
300 => get_string('numminutes','',5),
240 => get_string('numminutes','',4),
180 => get_string('numminutes','',3),
120 => get_string('numminutes','',2),
60 => get_string('numminutes','',1),
30 => get_string('numseconds','',30),
0 => get_string('no')));
$items[] = new admin_setting_configselect('filteruploadedfiles', get_string('filteruploadedfiles', 'admin'), get_string('configfilteruploadedfiles', 'admin'), 0, array('0' => get_string('none'),
'1' => get_string('allfiles'),
'2' => get_string('htmlfilesonly')));
$items[] = new admin_setting_configcheckbox('filtermatchoneperpage', get_string('filtermatchoneperpage', 'admin'), get_string('configfiltermatchoneperpage', 'admin'), 0);
$items[] = new admin_setting_configcheckbox('filtermatchonepertext', get_string('filtermatchonepertext', 'admin'), get_string('configfiltermatchonepertext', 'admin'), 0);
$items[] = new admin_setting_configcheckbox('filterall', get_string('filterall', 'admin'), get_string('configfilterall', 'admin'), 0);
foreach ($items as $item) {
$item->set_updatedcallback('reset_text_filters_cache');
$temp->add($item);
}
}
$ADMIN->add('filtersettings', $temp);
if (empty($CFG->textfilters)) {
$activefilters = array();
} else {
$activefilters = explode(',', $CFG->textfilters);
}
$filterlocations = array('mod','filter');
foreach ($filterlocations as $filterlocation) {
$filters = get_list_of_plugins($filterlocation);
$filterbyname = array();
foreach ($filters as $filter) {
$strfiltername = get_string('filtername', $filter);
// Deal with filters which are lacking the language string
if ($strfiltername == '[[filtername]]') {
$textlib = textlib_get_instance();
$strfiltername = $textlib->strtotitle($filter);
}
$filterbyname[$strfiltername] = "$filterlocation/$filter";
}
ksort($filterbyname);
foreach ($filterbyname as $strfiltername=>$filterfull) {
if (file_exists("$CFG->dirroot/$filterfull/filtersettings.php")) {
$settings = new admin_settingpage('filtersetting'.str_replace('/', '', $filterfull), $strfiltername, 'moodle/site:config', !in_array($filterfull, $activefilters));
if ($ADMIN->fulltree) {
include("$CFG->dirroot/$filterfull/filtersettings.php");
}
$ADMIN->add('filtersettings', $settings);
} else if (file_exists("$CFG->dirroot/$filterfull/filterconfig.html")) {
$ADMIN->add('filtersettings', new admin_externalpage('filtersetting'.str_replace('/', '', $filterfull), $strfiltername, "$CFG->wwwroot/$CFG->admin/filter.php?filter=$filterfull", !in_array($filterfull, $activefilters)));
}
}
}
}
/// Now add reports
foreach (get_list_of_plugins($CFG->admin.'/report') as $plugin) {
$settings_path = "$CFG->dirroot/$CFG->admin/report/$plugin/settings.php";
if (file_exists($settings_path)) {
include($settings_path);
continue;
}
$index_path = "$CFG->dirroot/$CFG->admin/report/$plugin/index.php";
if (!file_exists($index_path)) {
continue;
}
// old style 3rd party plugin without settings.php
$www_path = "$CFG->wwwroot/$CFG->admin/report/$plugin/index.php";
$ADMIN->add('reports', new admin_externalpage('report'.$plugin, $plugin, $www_path, 'moodle/site:viewreports'));
}
+100 -77
View File
@@ -1,98 +1,121 @@
<?php // $Id$
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// "sitepolicies" settingpage
$temp = new admin_settingpage('sitepolicies', get_string('sitepolicies', 'admin'));
$temp->add(new admin_setting_configcheckbox('protectusernames', get_string('protectusernames', 'admin'), get_string('configprotectusernames', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('forcelogin', get_string('forcelogin', 'admin'), get_string('configforcelogin', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('forceloginforprofiles', get_string('forceloginforprofiles', 'admin'), get_string('configforceloginforprofiles', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('opentogoogle', get_string('opentogoogle', 'admin'), get_string('configopentogoogle', 'admin'), 0));
$temp->add(new admin_setting_configtext('maxbytes', get_string('maxbytes', 'admin'), get_string('configmaxbytes', 'admin'), 0, PARAM_INT));
$temp->add(new admin_setting_configcheckbox('messaging', get_string('messaging', 'admin'), get_string('configmessaging','admin'), 1));
$temp->add(new admin_setting_configcheckbox('allowobjectembed', get_string('allowobjectembed', 'admin'), get_string('configallowobjectembed', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('enabletrusttext', get_string('enabletrusttext', 'admin'), get_string('configenabletrusttext', 'admin'), 0));
$temp->add(new admin_setting_configselect('maxeditingtime', get_string('maxeditingtime','admin'), get_string('configmaxeditingtime','admin'), 1800,
array(60 => get_string('numminutes', '', 1),
300 => get_string('numminutes', '', 5),
900 => get_string('numminutes', '', 15),
1800 => get_string('numminutes', '', 30),
2700 => get_string('numminutes', '', 45),
3600 => get_string('numminutes', '', 60))));
$temp->add(new admin_setting_configselect('fullnamedisplay', get_string('fullnamedisplay', 'admin'), get_string('configfullnamedisplay', 'admin'),
'firstname lastname', array('language' => get_string('language'),
'firstname lastname' => get_string('firstname') . ' + ' . get_string('lastname'),
'lastname firstname' => get_string('lastname') . ' + ' . get_string('firstname'),
'firstname' => get_string('firstname'))));
$temp->add(new admin_setting_configcheckbox('extendedusernamechars', get_string('extendedusernamechars', 'admin'), get_string('configextendedusernamechars', 'admin'), 0));
$temp->add(new admin_setting_configtext('sitepolicy', get_string('sitepolicy', 'admin'), get_string('configsitepolicy', 'admin'), '', PARAM_URL));
$temp->add(new admin_setting_configselect('bloglevel', get_string('bloglevel', 'admin'), get_string('configbloglevel', 'admin'), 4, array(5 => get_string('worldblogs','blog'),
4 => get_string('siteblogs','blog'),
3 => get_string('courseblogs','blog'),
2 => get_string('groupblogs','blog'),
1 => get_string('personalblogs','blog'),
0 => get_string('disableblogs','blog'))));
// "sitepolicies" settingpage
$temp = new admin_settingpage('sitepolicies', get_string('sitepolicies', 'admin'));
$temp->add(new admin_setting_configcheckbox('protectusernames', get_string('protectusernames', 'admin'), get_string('configprotectusernames', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('forcelogin', get_string('forcelogin', 'admin'), get_string('configforcelogin', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('forceloginforprofiles', get_string('forceloginforprofiles', 'admin'), get_string('configforceloginforprofiles', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('opentogoogle', get_string('opentogoogle', 'admin'), get_string('configopentogoogle', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('cronclionly', get_string('cronclionly', 'admin'), get_string('configcronclionly', 'admin'), 0));
$temp->add(new admin_setting_configtext('cronremotepassword', get_string('cronremotepassword', 'admin'), get_string('configcronremotepassword', 'admin'), '', PARAM_RAW));
$max_upload_choices = get_max_upload_sizes();
// maxbytes set to 0 will allow the maxium server lmit for uploads
$max_upload_choices[0] = get_string('serverlimit', 'admin');
$temp->add(new admin_setting_configselect('maxbytes', get_string('maxbytes', 'admin'), get_string('configmaxbytes', 'admin'), 0, $max_upload_choices));
$ADMIN->add('security', $temp);
$temp->add(new admin_setting_configcheckbox('messaging', get_string('messaging', 'admin'), get_string('configmessaging','admin'), 1));
$temp->add(new admin_setting_configcheckbox('allowobjectembed', get_string('allowobjectembed', 'admin'), get_string('configallowobjectembed', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('enabletrusttext', get_string('enabletrusttext', 'admin'), get_string('configenabletrusttext', 'admin'), 0));
$temp->add(new admin_setting_configselect('maxeditingtime', get_string('maxeditingtime','admin'), get_string('configmaxeditingtime','admin'), 1800,
array(60 => get_string('numminutes', '', 1),
300 => get_string('numminutes', '', 5),
900 => get_string('numminutes', '', 15),
1800 => get_string('numminutes', '', 30),
2700 => get_string('numminutes', '', 45),
3600 => get_string('numminutes', '', 60))));
$temp->add(new admin_setting_configselect('fullnamedisplay', get_string('fullnamedisplay', 'admin'), get_string('configfullnamedisplay', 'admin'),
'firstname lastname', array('language' => get_string('language'),
'firstname lastname' => get_string('firstname').' + '.get_string('lastname'),
'lastname firstname' => get_string('lastname').' + '.get_string('firstname'),
'firstname' => get_string('firstname'))));
$temp->add(new admin_setting_configcheckbox('extendedusernamechars', get_string('extendedusernamechars', 'admin'), get_string('configextendedusernamechars', 'admin'), 0));
$temp->add(new admin_setting_configtext('sitepolicy', get_string('sitepolicy', 'admin'), get_string('configsitepolicy', 'admin'), '', PARAM_RAW));
$temp->add(new admin_setting_configselect('bloglevel', get_string('bloglevel', 'admin'), get_string('configbloglevel', 'admin'), 4, array(5 => get_string('worldblogs','blog'),
4 => get_string('siteblogs','blog'),
3 => get_string('courseblogs','blog'),
2 => get_string('groupblogs','blog'),
1 => get_string('personalblogs','blog'),
0 => get_string('disableblogs','blog'))));
$temp->add(new admin_setting_configcheckbox('usetags', get_string('usetags','admin'),get_string('configusetags', 'admin'),'1'));
$temp->add(new admin_setting_configcheckbox('keeptagnamecase', get_string('keeptagnamecase','admin'),get_string('configkeeptagnamecase', 'admin'),'1'));
$temp->add(new admin_setting_configcheckbox('profilesforenrolledusersonly', get_string('profilesforenrolledusersonly','admin'),get_string('configprofilesforenrolledusersonly', 'admin'),'1'));
$temp->add(new admin_setting_configcheckbox('cronclionly', get_string('cronclionly', 'admin'), get_string('configcronclionly', 'admin'), 0));
$temp->add(new admin_setting_configpasswordunmask('cronremotepassword', get_string('cronremotepassword', 'admin'), get_string('configcronremotepassword', 'admin'), ''));
$temp->add(new admin_setting_configcheckbox('passwordpolicy', get_string('passwordpolicy', 'admin'), get_string('configpasswordpolicy', 'admin'), 0));
$temp->add(new admin_setting_configtext('minpasswordlength', get_string('minpasswordlength', 'admin'), get_string('configminpasswordlength', 'admin'), 8, PARAM_INT));
$temp->add(new admin_setting_configtext('minpassworddigits', get_string('minpassworddigits', 'admin'), get_string('configminpassworddigits', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_configtext('minpasswordlower', get_string('minpasswordlower', 'admin'), get_string('configminpasswordlower', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_configtext('minpasswordupper', get_string('minpasswordupper', 'admin'), get_string('configminpasswordupper', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_configtext('minpasswordnonalphanum', get_string('minpasswordnonalphanum', 'admin'), get_string('configminpasswordnonalphanum', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_configcheckbox('disableuserimages', get_string('disableuserimages', 'admin'), get_string('configdisableuserimages', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('emailchangeconfirmation', get_string('emailchangeconfirmation', 'admin'), get_string('configemailchangeconfirmation', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('enablenotes', get_string('enablenotes', 'notes'), get_string('configenablenotes', 'notes'), 1));
$ADMIN->add('security', $temp);
// "httpsecurity" settingpage
$temp = new admin_settingpage('httpsecurity', get_string('httpsecurity', 'admin'));
$temp->add(new admin_setting_configcheckbox('loginhttps', get_string('loginhttps', 'admin'), get_string('configloginhttps', 'admin'), 0));
$ADMIN->add('security', $temp);
// "httpsecurity" settingpage
$temp = new admin_settingpage('httpsecurity', get_string('httpsecurity', 'admin'));
$temp->add(new admin_setting_configcheckbox('loginhttps', get_string('loginhttps', 'admin'), get_string('configloginhttps', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('cookiesecure', get_string('cookiesecure', 'admin'), get_string('configcookiesecure', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('cookiehttponly', get_string('cookiehttponly', 'admin'), get_string('configcookiehttponly', 'admin'), 0));
$ADMIN->add('security', $temp);
// "modulesecurity" settingpage
$temp = new admin_settingpage('modulesecurity', get_string('modulesecurity', 'admin'));
$temp->add(new admin_setting_configselect('restrictmodulesfor', get_string('restrictmodulesfor', 'admin'), get_string('configrestrictmodulesfor', 'admin'), 'none', array('none' => 'No courses',
'all' => 'All courses',
'requested' => 'Requested courses')));
$temp->add(new admin_setting_configcheckbox('restrictbydefault', get_string('restrictbydefault', 'admin'), get_string('configrestrictbydefault', 'admin'), 0));
if (!$options = get_records("modules")) {
// "modulesecurity" settingpage
$temp = new admin_settingpage('modulesecurity', get_string('modulesecurity', 'admin'));
$temp->add(new admin_setting_configselect('restrictmodulesfor', get_string('restrictmodulesfor', 'admin'), get_string('configrestrictmodulesfor', 'admin'), 'none', array('none' => 'No courses',
'all' => 'All courses',
'requested' => 'Requested courses')));
$temp->add(new admin_setting_configcheckbox('restrictbydefault', get_string('restrictbydefault', 'admin'), get_string('configrestrictbydefault', 'admin'), 0));
if (!$options = get_records("modules")) {
$options = array();
}
$options2 = array();
foreach ($options as $option) {
$options2[$option->id] = $option->name;
}
$temp->add(new admin_setting_configmultiselect('defaultallowedmodules', get_string('defaultallowedmodules', 'admin'), get_string('configdefaultallowedmodules', 'admin'), array(), $options2));
$ADMIN->add('security', $temp);
// "notifications" settingpage
$temp = new admin_settingpage('notifications', get_string('notifications', 'admin'));
$temp->add(new admin_setting_configselect('displayloginfailures', get_string('displayloginfailures', 'admin'), get_string('configdisplayloginfailures', 'admin'), '', array('' => get_string('nobody'),
'admin' => get_string('administrators'),
'teacher' => get_string('administratorsandteachers'),
'everybody' => get_string('everybody'))));
$temp->add(new admin_setting_configselect('notifyloginfailures', get_string('notifyloginfailures', 'admin'), get_string('confignotifyloginfailures', 'admin'), '', array('' => get_string('nobody'),
'mainadmin' => get_string('administrator'),
'alladmins' => get_string('administratorsall'))));
$options = array();
}
$options2 = array();
foreach ($options as $option) {
$options2[$option->id] = $option->name;
}
$temp->add(new admin_setting_configmultiselect('defaultallowedmodules', get_string('defaultallowedmodules', 'admin'), get_string('configdefaultallowedmodules', 'admin'), array(), $options2));
$ADMIN->add('security', $temp);
// "notifications" settingpage
$temp = new admin_settingpage('notifications', get_string('notifications', 'admin'));
$temp->add(new admin_setting_configselect('displayloginfailures', get_string('displayloginfailures', 'admin'), get_string('configdisplayloginfailures', 'admin'), '', array('' => get_string('nobody'),
'admin' => get_string('administrators'),
'teacher' => get_string('administratorsandteachers'),
'everybody' => get_string('everybody'))));
$temp->add(new admin_setting_configselect('notifyloginfailures', get_string('notifyloginfailures', 'admin'), get_string('confignotifyloginfailures', 'admin'), '', array('' => get_string('nobody'),
'mainadmin' => get_string('administrator'),
'alladmins' => get_string('administratorsall'))));
$options = array();
for ($i = 1; $i <= 100; $i++) {
$options[$i] = $i;
}
$temp->add(new admin_setting_configselect('notifyloginthreshold', get_string('notifyloginthreshold', 'admin'), get_string('confignotifyloginthreshold', 'admin'), '10', $options));
$ADMIN->add('security', $temp);
for ($i = 1; $i <= 100; $i++) {
$options[$i] = $i;
}
$temp->add(new admin_setting_configselect('notifyloginthreshold', get_string('notifyloginthreshold', 'admin'), get_string('confignotifyloginthreshold', 'admin'), '10', $options));
$ADMIN->add('security', $temp);
// "antivirus" settingpage
$temp = new admin_settingpage('antivirus', get_string('antivirus', 'admin'));
$temp->add(new admin_setting_configcheckbox('runclamonupload', get_string('runclamavonupload', 'admin'), get_string('configrunclamavonupload', 'admin'), 0));
$temp->add(new admin_setting_configtext('pathtoclam', get_string('pathtoclam', 'admin'), get_string('configpathtoclam', 'admin'), '', PARAM_RAW)); // TODO: add path validation
$temp->add(new admin_setting_configtext('quarantinedir', get_string('quarantinedir', 'admin'), get_string('configquarantinedir', 'admin'), '', PARAM_RAW)); // TODO: add path validation
$temp->add(new admin_setting_configselect('clamfailureonupload', get_string('clamfailureonupload', 'admin'), get_string('configclamfailureonupload', 'admin'), 'donothing', array('donothing' => get_string('configclamdonothing', 'admin'),
'actlikevirus' => get_string('configclamactlikevirus', 'admin'))));
$ADMIN->add('security', $temp);
// "antivirus" settingpage
$temp = new admin_settingpage('antivirus', get_string('antivirus', 'admin'));
$temp->add(new admin_setting_configcheckbox('runclamonupload', get_string('runclamavonupload', 'admin'), get_string('configrunclamavonupload', 'admin'), 0));
$temp->add(new admin_setting_configexecutable('pathtoclam', get_string('pathtoclam', 'admin'), get_string('configpathtoclam', 'admin'), ''));
$temp->add(new admin_setting_configdirectory('quarantinedir', get_string('quarantinedir', 'admin'), get_string('configquarantinedir', 'admin'), ''));
$temp->add(new admin_setting_configselect('clamfailureonupload', get_string('clamfailureonupload', 'admin'), get_string('configclamfailureonupload', 'admin'), 'donothing', array('donothing' => get_string('configclamdonothing', 'admin'),
'actlikevirus' => get_string('configclamactlikevirus', 'admin'))));
$ADMIN->add('security', $temp);
} // end of speedup
?>
+106 -29
View File
@@ -2,27 +2,29 @@
// This file defines settingpages and externalpages under the "server" category
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// "systempaths" settingpage
$temp = new admin_settingpage('systempaths', get_string('systempaths','admin'));
$temp->add(new admin_setting_configselect('gdversion', get_string('gdversion','admin'), get_string('configgdversion', 'admin'), check_gd_version(), array('0' => get_string('gdnot'),
'1' => get_string('gd1'),
'2' => get_string('gd2'))));
$temp->add(new admin_setting_configtext('zip', get_string('pathtozip','admin'), get_string('configzip', 'admin'), '', PARAM_RAW)); // TODO: add path validation
$temp->add(new admin_setting_configtext('unzip', get_string('pathtounzip','admin'), get_string('configunzip', 'admin'), '', PARAM_RAW)); // TODO: add path validation
$temp->add(new admin_setting_configtext('pathtodu', get_string('pathtodu', 'admin'), get_string('configpathtodu', 'admin'), '', PARAM_RAW)); // TODO: add path validation
$temp->add(new admin_setting_configtext('aspellpath', get_string('aspellpath', 'admin'), get_string('edhelpaspellpath'), '', PARAM_RAW)); // TODO: add path validation
$temp->add(new admin_setting_configexecutable('zip', get_string('pathtozip','admin'), get_string('configzip', 'admin'), ''));
$temp->add(new admin_setting_configexecutable('unzip', get_string('pathtounzip','admin'), get_string('configunzip', 'admin'), ''));
$temp->add(new admin_setting_configexecutable('pathtodu', get_string('pathtodu', 'admin'), get_string('configpathtodu', 'admin'), ''));
$temp->add(new admin_setting_configexecutable('aspellpath', get_string('aspellpath', 'admin'), get_string('edhelpaspellpath'), ''));
$ADMIN->add('server', $temp, 0);
// "email" settingpage
$temp = new admin_settingpage('mail', get_string('mail','admin'));
$temp->add(new admin_setting_configtext('smtphosts', get_string('smtphosts', 'admin'), get_string('configsmtphosts', 'admin'), '', PARAM_HOST));
$temp->add(new admin_setting_configtext('smtphosts', get_string('smtphosts', 'admin'), get_string('configsmtphosts', 'admin'), '', PARAM_RAW));
$temp->add(new admin_setting_configtext('smtpuser', get_string('smtpuser', 'admin'), get_string('configsmtpuser', 'admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('smtppass', get_string('smtppass', 'admin'), get_string('configsmtpuser', 'admin'), '', PARAM_RAW));
$temp->add(new admin_setting_configpasswordunmask('smtppass', get_string('smtppass', 'admin'), get_string('configsmtpuser', 'admin'), ''));
$temp->add(new admin_setting_configtext('smtpmaxbulk', get_string('smtpmaxbulk', 'admin'), get_string('configsmtpmaxbulk', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_configtext('noreplyaddress', get_string('noreplyaddress', 'admin'), get_string('confignoreplyaddress', 'admin'), 'noreply@' . $_SERVER['HTTP_HOST'], PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('allowemailaddresses', get_string('allowemailaddresses', 'admin'), get_string('configallowemailaddresses', 'admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('denyemailaddresses', get_string('denyemailaddresses', 'admin'), get_string('configdenyemailaddresses', 'admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configselect('digestmailtime', get_string('digestmailtime', 'admin'), get_string('configdigestmailtime', 'admin'), 17, array('00' => '00',
'01' => '01',
'02' => '02',
@@ -48,11 +50,27 @@ $temp->add(new admin_setting_configselect('digestmailtime', get_string('digestma
'22' => '22',
'23' => '23')));
$charsets = get_list_of_charsets();
unset($charsets['UTF-8']); // not needed here
$options = array();
$options['0'] = get_string('none');
$options['0'] = 'UTF-8';
$options = array_merge($options, $charsets);
$temp->add(new admin_setting_configselect('sitemailcharset', get_string('sitemailcharset', 'admin'), get_string('configsitemailcharset','admin'), '', $options));
$temp->add(new admin_setting_configselect('sitemailcharset', get_string('sitemailcharset', 'admin'), get_string('configsitemailcharset','admin'), '0', $options));
$temp->add(new admin_setting_configcheckbox('allowusermailcharset', get_string('allowusermailcharset', 'admin'), get_string('configallowusermailcharset', 'admin'), 0));
$options = array('LF'=>'LF', 'CRLF'=>'CRLF');
$temp->add(new admin_setting_configselect('mailnewline', get_string('mailnewline', 'admin'), get_string('configmailnewline','admin'), 'LF', $options));
if (isloggedin()) {
global $USER;
$primaryadminemail = $USER->email;
$primaryadminname = fullname($USER, true);
} else {
// no defaults during installation - admin user must be created first
$primaryadminemail = NULL;
$primaryadminname = NULL;
}
$temp->add(new admin_setting_configtext('supportname', get_string('supportname', 'admin'), get_string('configsupportname', 'admin'), $primaryadminname, PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('supportemail', get_string('supportemail', 'admin'), get_string('configsupportemail', 'admin'), $primaryadminemail, PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('supportpage', get_string('supportpage', 'admin'), get_string('configsupportpage', 'admin'), '', PARAM_URL));
$ADMIN->add('server', $temp, 100);
@@ -71,6 +89,7 @@ $temp->add(new admin_setting_configselect('sessiontimeout', get_string('sessiont
300 => get_string('numminutes', '', 5))));
$temp->add(new admin_setting_configtext('sessioncookie', get_string('sessioncookie', 'admin'), get_string('configsessioncookie', 'admin'), '', PARAM_ALPHANUM));
$temp->add(new admin_setting_configtext('sessioncookiepath', get_string('sessioncookiepath', 'admin'), get_string('configsessioncookiepath', 'admin'), '/', PARAM_LOCALURL));
$temp->add(new admin_setting_configtext('sessioncookiedomain', get_string('sessioncookiedomain', 'admin'), get_string('configsessioncookiedomain', 'admin'), '', PARAM_TEXT, 50));
$ADMIN->add('server', $temp, 50);
@@ -84,8 +103,10 @@ $ADMIN->add('server', $temp);
// "debugging" settingpage
$temp = new admin_settingpage('debugging', get_string('debugging', 'admin'));
$temp->add(new admin_setting_special_debug());
$temp->add(new admin_setting_special_debugdisplay());
$temp->add(new admin_setting_special_perfdebug());
$temp->add(new admin_setting_configcheckbox('debugdisplay', get_string('debugdisplay', 'admin'), get_string('configdebugdisplay', 'admin'), ini_get_bool('display_errors')));
$temp->add(new admin_setting_configcheckbox('xmlstrictheaders', get_string('xmlstrictheaders', 'admin'), get_string('configxmlstrictheaders', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('debugsmtp', get_string('debugsmtp', 'admin'), get_string('configdebugsmtp', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('perfdebug', get_string('perfdebug', 'admin'), get_string('configperfdebug', 'admin'), '7', '15', '7'));
$ADMIN->add('server', $temp);
@@ -103,7 +124,9 @@ $temp->add(new admin_setting_configselect('statsfirstrun', get_string('statsfirs
60*60*24*140 => get_string('nummonths','moodle',5),
60*60*24*168 => get_string('nummonths','moodle',6),
'all' => get_string('all') )));
$temp->add(new admin_setting_configselect('statsmaxruntime', get_string('statsmaxruntime', 'admin'), get_string('configstatsmaxruntime', 'admin'), 0, array(0 => get_string('untilcomplete'),
$temp->add(new admin_setting_configselect('statsmaxruntime', get_string('statsmaxruntime', 'admin'), get_string('configstatsmaxruntime3', 'admin'), 0, array(0 => get_string('untilcomplete'),
60*30 => '10 '.get_string('minutes'),
60*30 => '30 '.get_string('minutes'),
60*60 => '1 '.get_string('hour'),
60*60*2 => '2 '.get_string('hours'),
60*60*3 => '3 '.get_string('hours'),
@@ -112,17 +135,36 @@ $temp->add(new admin_setting_configselect('statsmaxruntime', get_string('statsma
60*60*6 => '6 '.get_string('hours'),
60*60*7 => '7 '.get_string('hours'),
60*60*8 => '8 '.get_string('hours') )));
$temp->add(new admin_setting_configtext('statsruntimedays', get_string('statsruntimedays', 'admin'), get_string('configstatsruntimedays', 'admin'), 31, PARAM_INT));
$temp->add(new admin_setting_configtime('statsruntimestarthour', 'statsruntimestartminute', get_string('statsruntimestart', 'admin'), get_string('configstatsruntimestart', 'admin'), array('h' => 0, 'm' => 0)));
$temp->add(new admin_setting_configtext('statsuserthreshold', get_string('statsuserthreshold', 'admin'), get_string('configstatsuserthreshold', 'admin'), 0, PARAM_INT));
$options = array(0=>0, 1=>1, 2=>2, 3=>3, 4=>4, 5=>5, 6=>6);
$temp->add(new admin_setting_configselect('statscatdepth', get_string('statscatdepth', 'admin'), get_string('configstatscatdepth', 'admin'), 1, $options));
$ADMIN->add('server', $temp);
// "http" settingpage
$temp = new admin_settingpage('http', get_string('http', 'admin'));
$temp->add(new admin_setting_configtext('framename', get_string('framename', 'admin'), get_string('configframename', 'admin'), '_top', PARAM_ALPHAEXT));
$temp->add(new admin_Setting_configcheckbox('slasharguments', get_string('slasharguments', 'admin'), get_string('configslasharguments', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('slasharguments', get_string('slasharguments', 'admin'), get_string('configslasharguments', 'admin'), 1));
$temp->add(new admin_setting_heading('reverseproxy', get_string('reverseproxy', 'admin'), '', ''));
$options = array(
0 => 'HTTP_CLIENT_IP, HTTP_X_FORWARDED_FOR, REMOTE_ADDR',
GETREMOTEADDR_SKIP_HTTP_CLIENT_IP => 'HTTP_X_FORWARDED_FOR, REMOTE_ADDR',
GETREMOTEADDR_SKIP_HTTP_X_FORWARDED_FOR => 'HTTP_CLIENT, REMOTE_ADDR',
GETREMOTEADDR_SKIP_HTTP_X_FORWARDED_FOR|GETREMOTEADDR_SKIP_HTTP_CLIENT_IP => 'REMOTE_ADDR');
$temp->add(new admin_setting_configselect('getremoteaddrconf', get_string('getremoteaddrconf', 'admin'), get_string('configgetremoteaddrconf', 'admin'), 0, $options));
$temp->add(new admin_setting_heading('webproxy', get_string('webproxy', 'admin'), get_string('webproxyinfo', 'admin')));
$temp->add(new admin_setting_configtext('proxyhost', get_string('proxyhost', 'admin'), get_string('configproxyhost', 'admin'), '', PARAM_HOST));
$temp->add(new admin_setting_configtext('proxyport', get_string('proxyport', 'admin'), get_string('configproxyport', 'admin'), 0, PARAM_INT));
$options = array('HTTP'=>'HTTP');
if (defined('CURLPROXY_SOCKS5')) {
$options['SOCKS5'] = 'SOCKS5';
}
$temp->add(new admin_setting_configselect('proxytype', get_string('proxytype', 'admin'), get_string('configproxytype','admin'), 'HTTP', $options));
$temp->add(new admin_setting_configtext('proxyuser', get_string('proxyuser', 'admin'), get_string('configproxyuser', 'admin'), ''));
$temp->add(new admin_setting_configpasswordunmask('proxypassword', get_string('proxypassword', 'admin'), get_string('configproxypassword', 'admin'), ''));
$ADMIN->add('server', $temp);
$ADMIN->add('server', new admin_externalpage('maintenancemode', get_string('sitemaintenancemode', 'admin'), "$CFG->wwwroot/$CFG->admin/maintenance.php"));
@@ -153,6 +195,15 @@ $temp->add(new admin_setting_configselect('deleteunconfirmed', get_string('delet
6 => get_string('numhours', '', 6),
1 => get_string('numhours', '', 1))));
$temp->add(new admin_setting_configselect('deleteincompleteusers', get_string('deleteincompleteusers', 'admin'), get_string('configdeleteincompleteusers', 'admin'), 0, array(0 => get_string('never'),
168 => get_string('numdays', '', 7),
144 => get_string('numdays', '', 6),
120 => get_string('numdays', '', 5),
96 => get_string('numdays', '', 4),
72 => get_string('numdays', '', 3),
48 => get_string('numdays', '', 2),
24 => get_string('numdays', '', 1))));
$temp->add(new admin_setting_configselect('loglifetime', get_string('loglifetime', 'admin'), get_string('configloglifetime', 'admin'), 0, array(0 => get_string('neverdeletelogs'),
1000 => get_string('numdays', '', 1000),
365 => get_string('numdays', '', 365),
@@ -161,7 +212,25 @@ $temp->add(new admin_setting_configselect('loglifetime', get_string('loglifetime
120 => get_string('numdays', '', 120),
90 => get_string('numdays', '', 90),
60 => get_string('numdays', '', 60),
30 => get_string('numdays', '', 30))));
35 => get_string('numdays', '', 35),
10 => get_string('numdays', '', 10),
5 => get_string('numdays', '', 5),
2 => get_string('numdays', '', 2))));
$temp->add(new admin_setting_configcheckbox('disablegradehistory', get_string('disablegradehistory', 'grades'),
get_string('configdisablegradehistory', 'grades'), 0, PARAM_INT));
$temp->add(new admin_setting_configselect('gradehistorylifetime', get_string('gradehistorylifetime', 'grades'),
get_string('configgradehistorylifetime', 'grades'), 0, array(0 => get_string('neverdeletehistory', 'grades'),
1000 => get_string('numdays', '', 1000),
365 => get_string('numdays', '', 365),
180 => get_string('numdays', '', 180),
150 => get_string('numdays', '', 150),
120 => get_string('numdays', '', 120),
90 => get_string('numdays', '', 90),
60 => get_string('numdays', '', 60),
30 => get_string('numdays', '', 30))));
$ADMIN->add('server', $temp);
@@ -173,17 +242,17 @@ $ADMIN->add('server', new admin_externalpage('phpinfo', get_string('phpinfo'), "
// "performance" settingpage
$temp = new admin_settingpage('performance', get_string('performance', 'admin'));
$temp->add(new admin_setting_configselect('cachetype', get_string('cachetype', 'admin'),
get_string('configcachetype', 'admin'), false,
array( '' => 'none',
'internal' => 'internal',
'memcached' => 'memcached',
$temp->add(new admin_setting_special_selectsetup('cachetype', get_string('cachetype', 'admin'),
get_string('configcachetype', 'admin'), '',
array( '' => get_string('none'),
'internal' => 'internal',
'memcached' => 'memcached',
'eaccelerator' => 'eaccelerator')));
// NOTE: $CFG->rcache is forced to bool in lib/setup.php
$temp->add(new admin_setting_configselect('rcache', get_string('rcache', 'admin'),
get_string('configrcache', 'admin'), false,
array( '0' => 'false',
'1' => 'true')));
$temp->add(new admin_setting_special_selectsetup('rcache', get_string('rcache', 'admin'),
get_string('configrcache', 'admin'), 0,
array( '0' => get_string('no'),
'1' => get_string('yes'))));
$temp->add(new admin_setting_configtext('rcachettl', get_string('rcachettl', 'admin'),
get_string('configrcachettl', 'admin'), 10));
$temp->add(new admin_setting_configtext('intcachemax', get_string('intcachemax', 'admin'),
@@ -191,13 +260,21 @@ $temp->add(new admin_setting_configtext('intcachemax', get_string('intcachemax',
$temp->add(new admin_setting_configtext('memcachedhosts', get_string('memcachedhosts', 'admin'),
get_string('configmemcachedhosts', 'admin'), ''));
$temp->add(new admin_setting_configselect('memcachedpconn', get_string('memcachedpconn', 'admin'),
get_string('configmemcachedpconn', 'admin'), false,
array( '0' => 'false',
'1' => 'true')));
get_string('configmemcachedpconn', 'admin'), 0,
array( '0' => get_string('no'),
'1' => get_string('yes'))));
$ADMIN->add('server', $temp);
if (file_exists("$CFG->dirroot/$CFG->admin/mysql/frame.php")) {
$ADMIN->add('server', new admin_externalpage('database', get_string('managedatabase'), "$CFG->wwwroot/$CFG->admin/mysql/frame.php"));
if ($CFG->dbfamily === 'mysql') {
if (file_exists("$CFG->dirroot/$CFG->admin/mysql/frame.php")) {
$ADMIN->add('server', new admin_externalpage('database', get_string('managedatabase'), "$CFG->wwwroot/$CFG->admin/mysql/frame.php"));
}
} else if ($CFG->dbfamily === 'postgres') {
if (file_exists("$CFG->dirroot/$CFG->admin/pgsql/frame.php")) {
$ADMIN->add('server', new admin_externalpage('database', get_string('managedatabase'), "$CFG->wwwroot/$CFG->admin/pgsql/frame.php"));
}
}
} // end of speedup
?>
+12 -18
View File
@@ -5,43 +5,37 @@
// since they need to exist *before* settingpages and externalpages
// are added to them.
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
if (get_site()) {
$hassiteconfig = has_capability('moodle/site:config', $systemcontext);
} else {
// installation starts - no permission checks
$hassiteconfig = true;
}
$ADMIN->add('root', new admin_externalpage('adminnotifications', get_string('notifications'), "$CFG->wwwroot/$CFG->admin/index.php"));
// hidden upgrade script
$ADMIN->add('root', new admin_externalpage('upgradesettings', get_string('upgradesettings', 'admin'), "$CFG->wwwroot/$CFG->admin/upgradesettings.php", 'moodle/site:config', true));
// hidden search script
$ADMIN->add('root', new admin_externalpage('search', get_string('search', 'admin'), "$CFG->wwwroot/$CFG->admin/search.php", 'moodle/site:config', true));
$ADMIN->add('root', new admin_category('users', get_string('users','admin')));
$ADMIN->add('root', new admin_category('courses', get_string('courses','admin')));
$ADMIN->add('root', new admin_category('grades', get_string('grades')));
$ADMIN->add('root', new admin_category('location', get_string('location','admin')));
$ADMIN->add('root', new admin_category('language', get_string('language')));
$ADMIN->add('root', new admin_category('modules', get_string('plugins', 'admin')));
$ADMIN->add('modules', new admin_externalpage('managemodules', get_string('activities'), "$CFG->wwwroot/$CFG->admin/modules.php"));
$ADMIN->add('modules', new admin_externalpage('manageblocks', get_string('blocks'), "$CFG->wwwroot/$CFG->admin/blocks.php"));
$ADMIN->add('modules', new admin_externalpage('managefilters', get_string('managefilters'), "$CFG->wwwroot/$CFG->admin/filters.php"));
$ADMIN->add('root', new admin_category('security', get_string('security','admin')));
$ADMIN->add('root', new admin_category('appearance', get_string('appearance','admin')));
$ADMIN->add('root', new admin_category('frontpage', get_string('frontpage','admin')));
$ADMIN->add('root', new admin_category('server', get_string('server','admin')));
$ADMIN->add('root', new admin_category('mnet', get_string('net','mnet')));
$ADMIN->add('root', new admin_category('reports', get_string('reports')));
foreach (get_list_of_plugins('admin/report') as $plugin) {
/// This snippet is temporary until simpletest can be fixed to use xmldb. See MDL-7377 XXX TODO
if ($plugin == 'simpletest' && $CFG->dbfamily != 'mysql' && $CFG->dbfamily != 'postgres') {
continue;
}
/// End of removable snippet
$ADMIN->add('reports', new admin_externalpage('report'.$plugin, get_string($plugin, 'admin'), "$CFG->wwwroot/$CFG->admin/report/$plugin/index.php"));
}
$ADMIN->add('root', new admin_category('misc', get_string('miscellaneous')));
// hidden unsupported category
$ADMIN->add('root', new admin_category('unsupported', get_string('unsupported', 'admin'), true));
// hidden search script
$ADMIN->add('root', new admin_externalpage('search', get_string('searchresults'), "$CFG->wwwroot/$CFG->admin/search.php", 'moodle/site:config', true));
?>
+7 -4
View File
@@ -2,10 +2,13 @@
// This file defines settingpages and externalpages in the "unsupported" hidden category, use wisely!
$ADMIN->add('unsupported', new admin_externalpage('purgemoodledata', 'Purge moodledata', $CFG->wwwroot.'/'.$CFG->admin.'/delete.php'));
$ADMIN->add('unsupported', new admin_externalpage('healthcenter', get_string('healthcenter'), $CFG->wwwroot.'/'.$CFG->admin.'/health.php'));
$ADMIN->add('unsupported', new admin_externalpage('toinodb', 'Convert to InnoDB', $CFG->wwwroot.'/'.$CFG->admin.'/innodb.php'));
$ADMIN->add('unsupported', new admin_externalpage('replace', 'Search and replace', $CFG->wwwroot.'/'.$CFG->admin.'/replace.php'));
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$ADMIN->add('unsupported', new admin_externalpage('purgemoodledata', 'Purge moodledata', $CFG->wwwroot.'/'.$CFG->admin.'/delete.php', 'moodle/site:config', true));
$ADMIN->add('unsupported', new admin_externalpage('healthcenter', get_string('healthcenter'), $CFG->wwwroot.'/'.$CFG->admin.'/health.php', 'moodle/site:config', true));
$ADMIN->add('unsupported', new admin_externalpage('toinodb', 'Convert to InnoDB', $CFG->wwwroot.'/'.$CFG->admin.'/innodb.php', 'moodle/site:config', true));
$ADMIN->add('unsupported', new admin_externalpage('replace', 'Search and replace', $CFG->wwwroot.'/'.$CFG->admin.'/replace.php', 'moodle/site:config', true));
} // end of speedup
?>

Some files were not shown because too many files have changed in this diff Show More