Compare commits

...

2133 Commits

Author SHA1 Message Date
moodler e5b21c96b2 Moodle 1.5.4 - yay! 2006-05-21 08:00:05 +00:00
moodler 0df8e06a76 I'm in a rush, unfortunately, but here are Martin Langhoff's auto-generated
change list items integrated into the other stuff.

It's not pretty but it's probably getting close to complete.
2006-05-21 07:59:15 +00:00
moodler 414b660d26 Added release notes from documentation wiki 2006-05-21 07:11:59 +00:00
stronk7 5e0bf81737 This was really old and it's useful to determine versions... 2006-05-20 00:08:42 +00:00
martinlanghoff 78f6c5d5c0 login: Changing passwords now works when logged in as guest 2006-05-18 00:49:36 +00:00
vyshane 61e86f7f16 Fixed Bug #5354 - Gradebook [DropXLowest and Exclude] 2006-05-16 04:07:47 +00:00
skodak 9a817ca1ab better cleaning of post title SC#251 revisited; backported from MOODLE_16_STABLE 2006-05-15 14:49:24 +00:00
skodak 4e13cae284 better cleaning of post title SC#251; backported from MOODLE_16_STABLE 2006-05-15 14:35:13 +00:00
urs_hunkler 9bc5c7f85e patch for prototype compatibility 2006-05-14 09:22:24 +00:00
gustav_delius 569936ac79 Making sure timelimit is converted to integer before being written to database, otherwise postgreSQL complains. Closing bug 5401 2006-05-13 17:28:28 +00:00
stronk7 344c9e0034 Now, when a single forum is restored and no user data was created,
the initial discussion/post is automatically generated. Bug 5418.
(http://moodle.org/bugs/bug.php?op=show&bugid=5418)
2006-05-06 16:53:14 +00:00
moodler 61d575f3d3 Fixed: Bug #5164 - Assignment email lacks student name 2006-05-03 08:19:43 +00:00
moodler 7cb1f891c4 An old fix for optional_variable use 2006-05-02 08:04:11 +00:00
moodler f41ab276c7 Old addition never checked in 2006-05-02 07:59:38 +00:00
moodler e2b4f1f361 Changed all files to DOS and added some Id tags 2006-05-02 05:57:12 +00:00
stronk7 49ee0aa3be One debug line killed! :-/ 2006-04-30 10:05:17 +00:00
stronk7 8397552338 Too much restrictive optional_param was producing
some undesired efects with formats. Bug 4858.
(http://moodle.org/bugs/bug.php?op=show&bugid=4858)
2006-04-30 10:02:23 +00:00
stronk7 206afb4c2e entrylist format now show the 'send ratings' button. Bug 4915.
(http://moodle.org/bugs/bug.php?op=show&bugid=4915)

Merged from HEAD
2006-04-30 09:44:26 +00:00
exe-cutor c6e8932e50 Fixed a bug that was not yet merged for stable version 2006-04-27 11:48:25 +00:00
ethem a83254c3e1 1 - Shorter coding. I like short codes. Martin D had made longer before.
2 - Create indexes sliently.
2006-04-27 08:21:17 +00:00
ethem c58f510d09 Shorter coding. I like short codes. Martin D had made longer before. 2006-04-26 15:31:28 +00:00
urs_hunkler 9d08fbc3fd bug #5347 - JS code after page end??? corrected 2006-04-26 14:58:32 +00:00
ethem 08cdce7e5e SQL file contains all upgrades. 2006-04-26 11:18:50 +00:00
ethem 594d381aa2 SQL file contains all upgrades. 2006-04-26 10:20:07 +00:00
moodler 5c8708ef3a Removed forecolor hilitecolor in htmleditor 2006-04-26 08:05:46 +00:00
skodak 9ce42fa860 fixed typo bug #4527; backported from HEAD 2006-04-23 23:17:14 +00:00
urs_hunkler 7fec43e72f Bug #4315 - Use current_theme() instead of the $CFG-theme 2006-04-23 18:53:15 +00:00
ethem 44f68ae516 Create indexes sliently. 2006-04-23 10:23:27 +00:00
ethem 825bae0a90 WE use postgres7.sql, not mysql.sql... 2006-04-23 09:40:56 +00:00
koenr 0ae9d84183 New and modified strings from Ling 2006-04-23 06:51:19 +00:00
moodler d5cc30d905 DON't show notices on new installs 2006-04-23 04:43:54 +00:00
moodler 1f36f2dbc5 Fix for bug 5190 and a warning 2006-04-23 03:46:28 +00:00
moodler ebbc59e575 Latest tags file for stable 2006-04-23 02:56:14 +00:00
toyomoyo 9190ff6e4e fix for 4977 2006-04-21 07:01:33 +00:00
moodler 0a8223b036 Bug 5223 fix 2006-04-21 04:26:08 +00:00
martinlanghoff d866cc69da Backported from HEAD: Skodak's short tag fixes. 2006-04-20 22:40:11 +00:00
martinlanghoff 77a08a9c43 weblib:validate_email() - emails with trailing dot in the local-part (user.@host.com) are invalid as per rfc822 2006-04-20 22:30:53 +00:00
moodler e8b719403a Merged formatting improvement from HEAD 2006-04-19 12:49:23 +00:00
mchurch 68156b0c36 Fixed bug that wouldn't allow a user who's response was deleted from taking the questionnaire again. 2006-04-18 19:34:56 +00:00
moodler 705834be9e Merged fix for bug 5230 from HEAD 2006-04-18 09:47:30 +00:00
moodler f7beddbab8 Fix for Estonian bug #5239 2006-04-18 09:38:42 +00:00
moodler b9f1a09443 Fixed some wrongly defined "parentlanguage" strings 2006-04-17 05:29:49 +00:00
moodler 5da6fbd00f Character set fix for bug 5010 2006-04-16 16:03:57 +00:00
moodler 80682fab3a 1) Removed timeout when processing digests (can be long) bug 4532
2) Cleaned up logic for tracking cleaning (use set_config function)
2006-04-13 12:05:02 +00:00
moodler c9c2d4741d print_header should never happen twice on a page - see bug 4198 2006-04-10 14:43:06 +00:00
vyshane b839781a95 Fix for Bug #5057 - hidden teachers aren't completely hidden 2006-04-10 07:48:34 +00:00
moodler e761ca0c54 Added navmenu to loginas page 2006-04-09 07:27:27 +00:00
moodler c781c781fb Clean up of forum_user_can_view_post() 2006-04-07 14:50:12 +00:00
ikawhero 794bdefb1c Fix to logic for require_login so guest access to courses works. 2006-04-07 01:46:05 +00:00
moodler b7678dfebe Reduce possible notices from bad calls 2006-04-06 16:43:48 +00:00
moodler e53b9f76aa Undone the effect of Patrick Lee's check in for bug 4074. 2006-04-06 05:26:33 +00:00
moodler e86bd81b37 Added an index on course_sections that some old sites might not have 2006-04-05 13:39:50 +00:00
gustav_delius ab4595f640 Prevent student from seeing quiz when closed, bug 5070 2006-04-05 09:49:17 +00:00
moodler a33c2b909b Allow RSS feeds everywhere 2006-04-05 08:36:49 +00:00
ethem f28c6f05b0 IIS https fix. It doesn't recognize empty($_SERVER['HTTPS']). 2006-04-05 07:54:10 +00:00
moodler 7832b22767 FIxing some blank lines as per bug 5095 2006-04-05 06:41:13 +00:00
moodler bb7232305f Changed all the requires to require_once, solves some problems 2006-04-05 03:16:48 +00:00
moodler 4d90cfeadb Fixed some Javascript errors 2006-04-05 02:41:49 +00:00
bobopinna 4a7b01c061 Fixed two problems in AICC importing 2006-03-30 06:50:44 +00:00
gustav_delius fb6dd5f2b1 Reverted Martin's encryption of the key in the responses table for now until we are sure all potential problems have been ironed out. See discussion at http://security.moodle.org/mod/forum/discuss.php?d=178 2006-03-29 10:13:36 +00:00
gustav_delius 3b7d7fe9c0 Moving <td>, fixing bug 5019 2006-03-29 08:46:03 +00:00
moodler f2feb260f7 A fix for SC178. The match question is now encrypted slightly. 2006-03-29 06:11:50 +00:00
koenr 28680c9b32 some documentation missing 2006-03-28 09:20:27 +00:00
michaelpenne a60906a298 [BugFix] Multiple essays were not showing for grading: http://moodle.org/mod/forum/discuss.php?d=41999#195580 2006-03-28 00:37:42 +00:00
gustav_delius e475c02f33 Fixed tolerance problem, see bug 3225 2006-03-27 16:39:55 +00:00
ethem 9e3e2938fc First time install detection. 2006-03-27 09:50:39 +00:00
ethem 6682f3a231 Close tag ?> was forgotten. But it wasn't cause a problem. 2006-03-27 09:34:36 +00:00
moodler be1cd60e93 Improved date range 2006-03-27 05:15:53 +00:00
moodler 5e253a13bb Some extensions to print_time_selector() etc to make them more compatible
with 1.6  (so they can return strings)
2006-03-27 03:40:39 +00:00
mjollnir_ b5c8bf7a26 Since there was no pg support for enrol/authorize until later, the versioning was screwey in postgres, so check the table exists first before trying to add columns to it, create it if it is not there 2006-03-26 22:57:42 +00:00
moodler 1e3787c407 Fix for the infamous zero problem in short answers.
You can now have answers that are "0"
2006-03-26 15:01:00 +00:00
gustav_delius 7649c6ff5c Turned off regrading of quizzes that have the attemptonlast option set because of the bug reported in http://moodle.org/mod/forum/discuss.php?d=42029#194212 2006-03-26 08:16:18 +00:00
moodler be0cfa86bf Added Yahoo and MSN to allowed search engines 2006-03-25 07:34:37 +00:00
moodler 12be03f0fd Added missing text 2006-03-23 01:28:01 +00:00
koenr 008eb2cc15 fix for bug #4885: spaces were missing before and after $a 2006-03-22 08:13:14 +00:00
stronk7 427b2f0c21 Some excess of security was causing Bug 4713.
(http://moodle.org/bugs/bug.php?op=show&bugid=4713)
2006-03-21 20:07:13 +00:00
thepurpleblob 35c808396a Fixed hardcoded filepath. Bug #4544. 2006-03-21 16:50:07 +00:00
ethem 2efe76b0b3 Merged from HEAD 2006-03-21 13:37:44 +00:00
moodler a5a520fdc1 Speedup! get_timezone_record wasn't caching! :-) 2006-03-20 09:36:09 +00:00
moodler eb759836b0 Fixed bug 4928 - editing text outside of textarea! 2006-03-16 10:05:36 +00:00
vyshane bdd7aedc44 Updated print_textarea() 2006-03-16 04:10:44 +00:00
skodak ff84313378 fixed typo PARAM_CLEAR; backported from HEAD 2006-03-15 18:11:13 +00:00
vyshane 0e2445d398 Fixed undefined variable notice. 2006-03-15 08:43:51 +00:00
vyshane ace6341d83 Fixed bug in use_html_editor(). HTMLArea is now displayed correctly even when
$name is not supplied.
2006-03-15 08:31:57 +00:00
vyshane d9f5169972 Modified use_html_editor() and print_editor_config() so that the database
module is compatible with Moodle 1.5 stable.
2006-03-15 07:48:53 +00:00
vyshane 760b407069 Added insertAtCursor() function. So far this function is only used by the
datbase module.
2006-03-15 07:45:19 +00:00
moodler 7caf140453 Applied fix for bug 4639 - thanks 2006-03-14 04:11:54 +00:00
moodler 07264dd81f A series of old fixes never committed 2006-03-13 12:52:39 +00:00
koenr ffa4458986 new nn strings from Thormod 2006-03-10 12:55:03 +00:00
moodler 6e8070f46e Added rss_get_url() to 1.5 to help support data module 2006-03-10 09:05:02 +00:00
moodler 3bf1bd27fc Updated copyright notice 2006-03-10 08:26:05 +00:00
moodler 8a2cc7a379 New files from Aidan for 1.5 2006-03-10 07:27:54 +00:00
moodler 1fbe1f7ced Updates from Aidan 2006-03-10 07:26:39 +00:00
koenr 0e6d35a167 new strings from Tormod 2006-03-08 18:40:27 +00:00
moodler d28d58dc75 Added support for having a linked tab even if it is currently selected. 2006-03-08 06:22:53 +00:00
skodak e7546a2233 fixed includes in included files - see bug #4891; backported from HEAD 2006-03-07 23:44:02 +00:00
skodak 8857a374e4 improved kses cleaning of html SC#204 2006-03-02 21:35:13 +00:00
dhawes cbb0a49aa7 removed secondary cache to close bug 4625 2006-03-02 17:06:49 +00:00
koenr 18357f7118 emailconfirmation doesn't support lastname
see bug 4869
2006-03-02 11:13:18 +00:00
moodler 6c3adcf7f9 Fixed some typos 2006-03-01 09:12:43 +00:00
moodler 528d1ca043 Merged feature to email database connection erorrs to someone into stable 2006-03-01 09:09:03 +00:00
gustav_delius b21be43f6b Committed fix for bug 4829 2006-02-28 20:44:44 +00:00
skodak 24d9df692e prevent unwanted password change here SC#225 2006-02-28 20:25:59 +00:00
moodler 3fb68fb075 Fixing Bug #4849.
Committed by Vy-Shane Sin Fat
2006-02-28 03:53:59 +00:00
michaelpenne 7e42b04bbc [Fix] $navigation and $grade_value were undefined when lesson was added to site main page 2006-02-24 21:27:51 +00:00
michaelpenne f0ebc0976f [BugFix] Bug #4174 - Lesson Essay Question Can't be Graded when attempt not finished 2006-02-24 20:25:36 +00:00
michaelpenne c200adccf6 [BugFix] Bug #4216 - cancel button 2006-02-24 19:19:11 +00:00
mjollnir_ 4c6dc44de1 Fixing a problem reported about self enrolment in child courses and not being able to access the parent without logging in and out again at http://moodle.org/mod/forum/post.php?reply=185699 2006-02-23 22:14:22 +00:00
moodler f0172f52cf Fixed some English grammatical errors 2006-02-20 03:16:52 +00:00
gustav_delius 02dd661361 Backported fix for bug 4217 to STABLE 2006-02-19 21:47:42 +00:00
koenr e4ac8267b9 Lots of changes by Dmitry Pupinin 2006-02-17 23:34:48 +00:00
toyomoyo 3ceb1580b5 better fix for 4360 2006-02-17 01:30:47 +00:00
gustav_delius ddf32e386a Bug in "Prevent late submissions" setting fixed, thanks to Samuli, see bug 4780 2006-02-16 22:00:32 +00:00
gustav_delius 2caa75465e Bug in "Prevent late submissions" setting fixed, thanks to Samuli, see bug 4780 2006-02-16 21:53:41 +00:00
gustav_delius e94270f61d Applied fixes from bug 4319. Thanks to Jaroslav 2006-02-15 08:56:06 +00:00
patrickslee 3ab5df5a97 Re-formatted the imporved flat file enorlment description 2006-02-15 03:27:23 +00:00
toyomoyo ff306b2645 fix for 4360 2006-02-15 02:15:31 +00:00
gustav_delius 32ddabcb9f Sorry, I was a bit hasty in my last commit. 2006-02-15 00:21:58 +00:00
gustav_delius 33dde42697 Don't apply lateness check when teacher previews. Bug 4495 2006-02-15 00:19:12 +00:00
mjollnir_ 41fb3602d3 Committing a fix to the get_course_mods warning that I fixed in head yesterday but forgot to commit here. 2006-02-14 23:48:58 +00:00
gustav_delius 181d29fefb backported fixes from HEAD, closing bug 4688 2006-02-14 22:55:11 +00:00
gustav_delius b0d1fa4ff8 Rounding errors could lead to "Partially correct" for correct answers, see http://moodle.org/mod/forum/discuss.php?d=39548 2006-02-14 19:18:07 +00:00
skodak 1a0fe7131a backported notice fix from HEAD 2006-02-13 21:20:36 +00:00
toyomoyo 633fe52763 fix for 4724 2006-02-13 01:36:26 +00:00
patrickslee 71767f13f9 Imporved the documentation for flatfile enrolment plugin on the configuration page 2006-02-13 00:30:02 +00:00
gustav_delius aa6bdce1ff Added missing percentages to the grade selector, closing bug 4250 2006-02-12 22:37:20 +00:00
gustav_delius aff698756b Avoid error messages in case $quiz->sumgrades is zero, closing bug 4454 2006-02-12 21:02:18 +00:00
gustav_delius aa9e82825c removed two method definitions that are used for the editing form
removed an extraneous addslashes
2006-02-11 16:42:49 +00:00
gustav_delius c8a6cdb32e get_actual_response() method for cloze question type contributed by Jean-Michel, see http://moodle.org/mod/forum/discuss.php?d=27730#181773
Also merged some comments from HEAD
2006-02-11 16:17:57 +00:00
moodler 27cc4df4d1 Added missing statement: require_once('locallib.php'); 2006-02-10 03:56:42 +00:00
gustav_delius affcbadb7a Added defaults to database fields needed by msyql 5 2006-02-09 12:29:43 +00:00
gustav_delius e4bcb36474 Added default = '' to various text fields because otherwise I get warnings since I upgraded to mysql 5 2006-02-09 12:18:37 +00:00
michaelpenne 178f9028fd [Fixed] Bug #1187 2006-02-08 20:38:00 +00:00
koenr 945eb217b4 fix for this discussion http://moodle.org/mod/forum/discuss.php?d=39248 2006-02-08 10:13:57 +00:00
koenr 1a320e8140 new files and strings for no moodle 1.5.3 from tormod - some XHTML issues to be solved 2006-02-08 10:02:58 +00:00
patrickslee 71397cc9f0 Show category list rather than the whole list of courses if there is only one category and with more than 200 courses in it
Otherwise we will have a HUGE list of courses flooding our browser.
2006-02-08 04:19:56 +00:00
moodler 6aa427a253 Fixed missing close tag 2006-02-07 00:56:41 +00:00
moodler 4d76481659 Fix missing closing tag 2006-02-07 00:52:36 +00:00
gustav_delius b9b2939acd Fixing wrong language string name, see bug 4254 2006-02-06 21:41:31 +00:00
gustav_delius dc2bfe815d Added addslashes 2006-02-06 21:29:20 +00:00
mjollnir_ 6f4b73112d Fixing bug #4345: quiz report perf issues I fixed last year not working on mysql 3.23. We have JOIN ... ON for INNER JOIN but not JOIN in mysql 3.23. Not merging to 1.6 as requirements are bumped 2006-02-06 20:54:56 +00:00
moodler 8e11a7290c Latest versions from head 2006-02-06 10:00:44 +00:00
koenr c03c64d685 file block_attendance.php was added on branch MOODLE_15_STABLE on 2006-02-17 23:34:47 +0000 2006-02-06 09:14:23 +00:00
koenr c6833b0e6c file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:11 +00:00
koenr 73f9745b0e file webquest.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:11 +00:00
koenr a84c94658b file wiki.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:11 +00:00
koenr 40473e4af7 file timezones.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:11 +00:00
koenr c6d8f693f7 file block_rss_client.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr 68cf317656 file block_course_list.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr 3e5f001ba4 file block_online_users.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr ed55d58b2c file grades.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr dbb3a2c7b6 file matching.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr 5a089497ec file hotpot.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr 07bd956435 file install.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr 79cdc1ce64 file block_search_forums.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr 73b8d053bd file appointment.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr 94e2614632 file block_html.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr 6f96033490 file message.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr 9cddcb2365 file block_glossary_random.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr 9236c5f572 file emailprotect.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr be5c4c8902 file calendar.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr d4c00d4e00 file flashcard.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr 8e27eea26b file activitynames.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr 92c07b4a66 file block_course_summary.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr 95e0d416a8 file block_social_activities.php was added on branch MOODLE_15_STABLE on 2006-02-08 10:02:58 +0000 2006-02-06 09:14:10 +00:00
koenr afca273014 file block_rss_client.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr d928921a65 file README was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 02b7f813fa file exercise.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr de7f0b94e6 file block_course_list.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 60459b55a5 file auth.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 9cbaa1783d file countries.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 2796f927f7 file block_online_users.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 41d4d4d2b0 file assignment.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr a4b6786d19 file attendance.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 8fc3d8f208 file webquest.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 300ff5f792 file editor.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 74503992e0 file chat.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 7117601050 file matching.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 64a5e30034 file forum.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 80f2de83c9 file hotpot.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr c3c292dd8f file dialogue.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 39826dd8d6 file survey.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 63a714c536 file choice.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 3245d74f2a file multilang.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 4e68f63f16 file block_html.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 01986cae05 file moodle.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 6a2a6a3077 file block_course_summary.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 17def53fd2 file admin.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr dfae7ea7ac file calendar.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 212cee1740 file flashcard.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 6599fbec10 file block_social_activities.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 18463f013a file glossary.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 824ae0c599 file activitynames.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 9a537b93cd file workshop.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr bffe533dad file quiz.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr 95ede38b57 file error.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr b07e7223b1 file block_quiz_results.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr ff499ff2cd file lesson.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr df4e998d1f file block_section_links.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
koenr b432bd3300 file resource.php was added on branch MOODLE_15_STABLE on 2006-03-10 12:55:03 +0000 2006-02-06 09:14:10 +00:00
moodler 9faf1249c0 file webquest.php was added on branch MOODLE_15_STABLE on 2006-03-10 07:27:54 +0000 2006-02-06 09:13:59 +00:00
moodler bfef9df662 file tex.php was added on branch MOODLE_15_STABLE on 2006-03-10 07:27:54 +0000 2006-02-06 09:13:59 +00:00
moodler c87eeb190c file algebra.php was added on branch MOODLE_15_STABLE on 2006-03-10 07:27:54 +0000 2006-02-06 09:13:59 +00:00
moodler dd768d9569 file emailprotect.php was added on branch MOODLE_15_STABLE on 2006-03-10 07:27:54 +0000 2006-02-06 09:13:59 +00:00
moodler f17588726e file block_quiz_results.php was added on branch MOODLE_15_STABLE on 2006-03-10 07:27:54 +0000 2006-02-06 09:13:59 +00:00
gustav_delius 00aad1aee6 Fixed a potential bug that would have hit if one quiz would have had two random questions for the same category, one of which was set to recurse into subcategories and the other not.
At the same time this improves performance because no longer all the potential questions are loaded from the database but only their ids.
2006-02-05 21:50:37 +00:00
stronk7 e034804630 Perform one aditional check to avoid one, in my opinion,
bad behaviour of PHP5.

Merged from MOODLE_HEAD
2006-02-05 10:13:36 +00:00
gustav_delius d336b1888d Fix for bug 4678 contributed by rwmoore 2006-02-05 00:34:49 +00:00
stronk7 ad03392414 Latest functionalities (feedback messages, bypass tests...) added.
Merged from MOODLE_HEAD
2006-02-04 19:19:37 +00:00
stronk7 28ce8fa510 Updating to last xml version available (from HEAD) 2006-02-04 19:17:05 +00:00
bobopinna 3a19de6dd2 Fixed lesson status skin support 2006-02-03 08:51:13 +00:00
moodler 8eae75e36f Moved ENvironment line and made consistent 2006-02-03 07:52:32 +00:00
moodler e986ef72e5 Added a space 2006-02-03 07:37:45 +00:00
moodler 7773aa2406 Added simple webstatus icon for skype 2006-02-03 07:28:34 +00:00
mjollnir_ 3c9d0038dd Moved check_dir_exists function from backup/lib.php to moodlelib 2006-02-02 20:29:34 +00:00
mjollnir_ 50c38beb53 Fixing bug#4659 - don't make upload directories unless there's something to save 2006-02-01 20:01:25 +00:00
stronk7 17b04836ac Solved one bug when decoding encoded links for
resource->reference
(http://moodle.org/mod/forum/discuss.php?d=38801)
2006-02-01 19:08:13 +00:00
gustav_delius cc18f37b11 fixed grammar problem reported by Nicole Hansen in bug 4515 2006-01-30 22:57:26 +00:00
gustav_delius d80fcee1b4 Fixed alignment of form elements in IE 2006-01-30 21:04:31 +00:00
gustav_delius cb10ac600f Fixed alignment of module icon so it looks correct also in Firefox 2006-01-30 20:42:37 +00:00
moodler 4765def7b5 Fixed some missing tags 2006-01-30 03:31:48 +00:00
moodler 5a2d6616db Fixed the missing .highlight 2006-01-30 03:21:18 +00:00
defacer 5bb82b2c37 Fix for bug 4627:
Hide "change password" link in admin block if the user is restricted.
Not a security issue, as the script doesn't allow you to change your
password even if you go there by typing in the URL.

Credits for report & patch go to Joseph Rezeau.
2006-01-28 19:41:22 +00:00
stronk7 67f74d8964 Solving double addslashes to DB when the site is running with
magic_quotes_gpc() disabled (because Moodle addslashes to
everything). Not a pretty hack, but it seems to work.
(http://moodle.org/mod/forum/discuss.php?d=38127)
2006-01-27 22:59:41 +00:00
julmis 65f0d15c41 Adding bug fix for Bug 4562. Fix posted by sgarcia. 2006-01-25 23:41:11 +00:00
stronk7 fa4a720513 Raising MySQL minimum version to 4.1.16 2006-01-25 15:50:56 +00:00
moodler 3ae1f350f7 Fix Bug #4626 - weblib.php: $course object conversion error in &quot;print_footer &quot; function 2006-01-24 01:38:02 +00:00
michaelpenne 7fe2010ceb [Fixed] A problem with storing the answerid for numerical questions. Discussion here: http://moodle.org/mod/forum/discuss.php?d=37537 2006-01-24 00:45:25 +00:00
mjollnir_ 96c4004598 Fixing bug #4621 typos in mysql 3.23 workaround in message backup. Does not need merge to HEAD, old mysql support out 2006-01-23 22:50:46 +00:00
moodler aacc5fb9f2 Extra text for 'guestnosubmit' 2006-01-23 02:39:34 +00:00
moodler b066183e3a Extra fix for bug #4604. Guests see different message, instead of "You have not submitted anything" 2006-01-23 02:34:51 +00:00
stronk7 06493b4e9c Backporting some lang files from HEAD to 1.5 so new environment
stuff and installation strings were showed properly.
2006-01-22 19:05:51 +00:00
stronk7 916d67e854 Backport the current_charset() function to 1.5 to be able to
run MoodleWindowInstaller without modifications.
2006-01-22 18:16:44 +00:00
stronk7 45fbcf1088 Changed harcoded 'admin' to $CFG->admin 2006-01-21 00:17:19 +00:00
stronk7 ce0a539a54 Now results of check_moodle_environment() are
cached, saving us of some work when the script
is called more than once per request (install)
2006-01-20 18:49:39 +00:00
stronk7 4dfed138d2 First field must be unique in every select. Bug 4619.
(http://moodle.org/bugs/bug.php?op=show&bugid=4619)
2006-01-20 15:07:04 +00:00
stronk7 449b6e984d Moving environment stuff to 1.5 2006-01-19 16:16:19 +00:00
skodak 7b62df3807 remove upload form for guests - backported from HEAD 2006-01-19 15:25:20 +00:00
stronk7 c4a006cc6b file environmentlib.php was added on branch MOODLE_15_STABLE on 2006-01-19 16:15:04 +0000 2006-01-19 11:10:26 +00:00
moodler 1a273b4765 Removed submit online assignment button for guest. (bug: 4604) 2006-01-19 02:38:54 +00:00
stronk7 6840f49faf Now course shortname is searched too, to avoid duplicates over it.
Bug 4607
(http://moodle.org/bugs/bug.php?op=show&bugid=4607)
2006-01-19 00:20:55 +00:00
stronk7 794b137865 file environment.php was added on branch MOODLE_15_STABLE on 2006-01-19 16:16:19 +0000 2006-01-18 23:05:07 +00:00
moodler 40e9f144fc Guests can no longer submit an online assignment (Bug 4604) 2006-01-18 04:44:25 +00:00
moodler ebbc9a1a15 Guests can no longer submit online assignment (bug 4604) 2006-01-18 04:33:05 +00:00
stronk7 6c094570f5 file environment.xml was added on branch MOODLE_15_STABLE on 2006-01-19 16:16:19 +0000 2006-01-16 22:06:15 +00:00
ikawhero 67e1763897 Quiz summary text shouldn't be cleaned as only entered by teacher. 2006-01-16 06:19:38 +00:00
moodler 2c7f710d08 added missing semicolon in &nbsp (bug#4592) 2006-01-16 04:45:26 +00:00
martinlanghoff 17729fc82e readfile_chunked() - do not timeout on slow (dial up) clients, and flush buffers explicitly to avoid hogging memory when ob is on 2006-01-16 04:01:14 +00:00
moodler 5703ba58e6 added missing semicolon in &nbsp (bug#4592) 2006-01-16 03:05:47 +00:00
stronk7 fe36756ae0 Now ewiki supports initial load of contents from course file area.
Original preg_match() was a bit strange so I've replaced it with
clean_filename() + !is_dir() check. Bug 3830.
(http://moodle.org/bugs/bug.php?op=show&bugid=3830)
2006-01-15 11:55:59 +00:00
michaelpenne 9250c7f917 [Changed/BugFix] Now when a teacher edits a page with the "Edit page contents" button and then saves or cancels, s/he gets redirected back to the lesson navigation. This will help to streamline the editing.
[Fixed] The cancel button on the edit page now works.

[Fixed] "Edit page contents" button works on the first page now.
2006-01-13 19:51:45 +00:00
michaelpenne 451e99a000 [BugFix] Bug #4586 in the moodle bug tracker 2006-01-13 19:26:36 +00:00
defacer 4eec54f20e Merging from HEAD:
Fix for bug discussed here:
http://moodle.org/mod/forum/discuss.php?d=37545

Very slight version bump, in line with what we do for mods with db updates.
2006-01-13 16:34:25 +00:00
stronk7 1237e64d63 Solved one problem with frames and activitynames filter.
(http://moodle.org/mod/forum/discuss.php?d=28382)
2006-01-11 15:21:02 +00:00
mjollnir_ 1e751f6b77 Metacourse unenrolling: fixes bug #4541 2006-01-10 01:19:28 +00:00
patrickslee 2f816b5565 Wrong default data for $CFG->changepassword 2006-01-09 03:44:31 +00:00
moodler 517604e213 Fixed Bug #4536 : error in optional_param 2006-01-09 01:54:16 +00:00
stronk7 8cfab83435 We were beint too much extrict and concepts can contain quotes and
other characters. Bug 4543.
(http://moodle.org/bugs/bug.php?op=show&bugid=4543)
2006-01-07 12:29:29 +00:00
moodler 58625e508f Nicer presentation of quiz questions 2006-01-06 07:24:51 +00:00
moodler 3a78cf04dd Fixed Bug #4533 - Max upload size at course level ignored.
Modified around line 835

$upload_max_filesize = get_max_upload_file_size($CFG->maxbytes, $course->maxbytes);

Added second parameter to function get_max_upload_file_size, so that it takes max size for a course into consideration.
2006-01-06 05:14:27 +00:00
ethem 2e37b629ae Address Verification System (AVS). 2006-01-05 16:04:28 +00:00
toyomoyo c697c81289 puts a limit to number of students displayed (20). 2006-01-04 05:21:15 +00:00
toyomoyo 04fc63e104 fix for bug #4431 (site level forums) 2006-01-04 03:04:01 +00:00
martinlanghoff 6c533543a8 AdoDB tests cleanup after Secunia Advisory SA18267 2006-01-03 20:44:42 +00:00
martinlanghoff ae3c8f147e Fix for Secunia Advisory SA18267, plus some logging of suspicious activity. 2006-01-03 20:40:58 +00:00
gbateson 3a8bce5468 allow import of HP5 quizzes (including JBC and old JQuiz) 2006-01-02 14:38:01 +00:00
gbateson 14b348d178 for JCloze import, defaultgrade (per gap)= 1, and defaultgrade (per exercise) = number of gaps 2005-12-31 14:53:33 +00:00
gbateson aa35bd0991 removed weighting from questiontext in JCloze import 2005-12-31 14:01:13 +00:00
gbateson 95f4edce44 fixed import of JCloze into quiz module as a MULTIANSWER question 2005-12-31 10:37:26 +00:00
mjollnir_ e2a03f553b Fixing bug 4524: typo 2005-12-30 19:45:14 +00:00
patrickslee 81ed299094 fixed $cfg->forceloginforprofiles logic SC#207. Backported from HEAD 2005-12-29 00:56:00 +00:00
moodler c0e4f222fb FIxed stupid little typo that has been annoying me 2005-12-26 08:43:06 +00:00
toyomoyo 80bcfaad68 added a string "changes saved" after quickgrade - bug #4504 2005-12-23 06:36:54 +00:00
moodler acd04dd6cc Further fixes to the fix for bug 4431, to allow guests to see posts 2005-12-22 10:04:42 +00:00
ikawhero 0731d9caf0 Missing sesskey parameter 2005-12-22 00:13:43 +00:00
toyomoyo 8d3cb4a274 fixes a bug, wrong param type for $page 2005-12-21 03:24:26 +00:00
toyomoyo 963eb95d49 bug fix for #4431, added function forum_user_can_view_post in lib.php 2005-12-20 05:11:24 +00:00
toyomoyo 0916a1993e fix bug #4490, no defaut values for db fields 2005-12-19 02:09:56 +00:00
toyomoyo f4141a0267 fixes a bug that students in group can not remove page 2005-12-16 07:12:40 +00:00
mjollnir_ 0441f512f5 Fixing warning (http://moodle.org/mod/forum/discuss.php?d=36226#167658 - not applicable to HEAD 2005-12-14 22:09:20 +00:00
patrickslee d3322e6d98 Moved the new functions added for Bug #4074 to datalib.php 2005-12-13 19:32:53 +00:00
stronk7 f6dccf0d2a Updated to newest version. Solved one important bug.
(http://bugs.typo3.org/view.php?id=2020)
2005-12-13 17:13:40 +00:00
patrickslee ed0a01982a Fixed courses and subcategories in an invisible category being visible (Bug #4074) 2005-12-13 03:33:46 +00:00
martinlanghoff eed0f0b94d auth/ldap: Fix support for AD -- thanks to Inaki, in more than one sense ;-) 2005-12-12 04:57:23 +00:00
martinlanghoff d6c2c60294 auth/cas: fixed a syntax error casting -- credits to Nigel McNie 2005-12-12 03:21:11 +00:00
mjollnir_ 01ac9a36d9 Accounts that are created with no authentication shouldn't allow non alphanumeric usernames, fixing in login/index.php as the auth library can't pass error messages. Fixes bug #4192 2005-12-12 03:16:42 +00:00
mjollnir_ cf1d28e2d0 Fixing a fatal error in updating a wiki (lib.php included twice ) 2005-12-11 21:29:42 +00:00
toyomoyo 13fbf0b43e fix for bug #4455 2005-12-09 05:27:18 +00:00
moodler 33b3fc9fc8 Rolled back, wrong solution for bug Bug #4431 2005-12-08 06:46:23 +00:00
moodler a8adeff529 Adding if statement to verify whether user can see postings or not (Bug #4431) 2005-12-08 05:00:41 +00:00
defacer d45dbbda40 XHTML fix, pointed out by James Ballard here:
http://moodle.org/mod/forum/discuss.php?d=35830
2005-12-07 14:59:31 +00:00
moodler b3188b3069 Replaced optional_var with optional_param 2005-12-07 06:20:20 +00:00
moodler cf08dfbbda eplaced optional_var with optional_param 2005-12-07 05:57:19 +00:00
moodler c06eaa6c53 Replaced optional_var with optional_param 2005-12-07 03:29:55 +00:00
moodler 140222739f Removed optional_var 2005-12-07 03:18:00 +00:00
gustav_delius f9212cb330 Removed some code that had not function and produced a warning. 2005-12-06 23:57:31 +00:00
patrickslee 05348f162f Fixed an SQL query compatibility issue in quiz module 2005-12-06 21:12:46 +00:00
patrickslee 67a10d9b40 Fixed a typo in quiz_category_object->output_edit_single_table() 2005-12-06 21:01:32 +00:00
patrickslee 3317eeaed0 Fixed some kind of typo prevented sumgrades grounding to work 2005-12-06 20:49:42 +00:00
moodler 474de04841 Removed optional_variable 2005-12-06 05:19:36 +00:00
moodler 736d441da3 Removed optional_param 2005-12-06 05:14:21 +00:00
moodler c534ba0019 Changing from optional_variable to optional_param 2005-12-06 04:54:55 +00:00
gbateson f843154f8b use "optional_param" instead of outdated "optional_variable" 2005-12-06 03:41:22 +00:00
patrickslee 098901627b Fixed a bug caused hotpot module not restoring attempts properly 2005-12-06 02:33:47 +00:00
stronk7 88535c6753 Now delete_instance() in resource classes receives the
full $resource record instead of the $id alone. Needed
to be able to specialize such method in some resource types.
2005-12-05 23:59:24 +00:00
ethem 2d49ed8505 Fix invalid \r\n\r\n in https request introduced in 2005071601. 2005-12-05 09:40:02 +00:00
moodler 5ad193da55 Added autocomplete=off in form tag to fix (Bug #4423 - Short Answer Quiz Q's Saving Form Entries) 2005-12-05 06:14:21 +00:00
moodler cebb99bb29 Added autocomplete=off in form tag to avoid browser autocomplete (bug:4423) 2005-12-05 06:05:02 +00:00
moodler 62d851c6ae Changes to new-style parameter checking 2005-12-05 04:51:55 +00:00
moodler 77631f8515 New-style parameter checking 2005-12-05 04:35:25 +00:00
moodler 322bcbe3d4 Optional parameter fixes 2005-12-05 04:19:31 +00:00
mjollnir_ 3abf63d47b Better fix to change_password.php - primary admin can change their OWN password, the form displays the error for other admins trying to change the primary password (before it failed silently) and external auth admin change password works too! 2005-12-04 23:00:37 +00:00
mjollnir_ 179736fec9 Backing out last patch - needs fixing differently 2005-12-04 22:42:03 +00:00
mjollnir_ 0bbef3919c Fixing problem where admins couldn't change their password (with external auth) 2005-12-04 22:30:17 +00:00
moodler b444e02dc2 Modified the rather scary new messages printed here. 2005-12-04 13:03:38 +00:00
ethem 5a989ca47e \r\n fix. 2005-12-04 10:45:11 +00:00
ethem b571581488 login_https is required in version 2005071601 for security reasons. 2005-12-02 14:12:26 +00:00
ethem 95ebc7c4b3 httpsrequired string. 2005-12-02 12:17:47 +00:00
ethem 00f3ef99b4 Some changes:
- allow_internal is not need anymore. Shows two option if enrolment key of course is set.
- login_https is required for payment pages. My credit card is important. If you haven't a certificate forgot this module. (security)
- Expiry date of credit card is more friendly :).
2005-12-02 12:14:39 +00:00
ethem 3b864d850e Postgres support and some indexes for speed. 2005-12-02 11:45:36 +00:00
toyomoyo 6365776cc8 made a mistake earier on =( 2005-12-02 02:34:08 +00:00
toyomoyo 2b0ba67d31 fixes bug 4400 2005-12-02 02:23:07 +00:00
toyomoyo f560b24c61 added function is_restricted_user - bug 4400 2005-12-02 02:22:15 +00:00
paca70 ad25a2d8fe Prevent error messages if groupdn does not exists 2005-11-29 12:14:08 +00:00
ikawhero f5c751f525 Removed old THEME variable. 2005-11-28 22:31:09 +00:00
stronk7 114e550c35 Merged from HEAD. To be showed in the Windows Installer. 2005-11-28 20:22:07 +00:00
moodler 1523c9d2f4 Added some more CSS hooks for the correctness feedback 2005-11-28 04:21:00 +00:00
toyomoyo 768d51a61e fix bug #4366 2005-11-28 02:26:01 +00:00
toyomoyo 79dbfb855d makes autologinguest possible at site level 2005-11-28 02:19:12 +00:00
gbateson 8bd05834ac micro-increment version number to 2.0.10 2005-11-27 01:46:14 +00:00
gbateson 5edd281eaf corrected adjustment of relative URLs in <EMBED> tag 2005-11-27 01:41:15 +00:00
defacer 482bad4e8b Merging from HEAD:
Fix for bug 4371 (also SC#199):

Now manually created users with admin privileges and force change password
cannot change their username with impunity.
2005-11-26 01:01:56 +00:00
toyomoyo 68e8fb7df0 fix for bug 4067 2005-11-25 08:42:12 +00:00
toyomoyo 01004e9d1e fix for bug 4067 - allow user to update assignment when not yet marked 2005-11-25 08:34:25 +00:00
moodler fd5e633e83 fix for bug #4314 2005-11-25 07:09:04 +00:00
moodler e05a3e14c1 fix for bug #4206 2005-11-24 02:50:42 +00:00
mjollnir_ 7398207f4b Delayed merge from HEAD - If tablelib is going to do fullname voodoo, allow default sort field to be firstname/lastname 2005-11-23 21:10:51 +00:00
stronk7 20cfdcef31 Log actions must be strored to DB without &amp;
print_log() takes care of it! Bug 3853.
(http://moodle.org/bugs/bug.php?op=show&bugid=3853)
2005-11-23 09:39:31 +00:00
moodler 8cd04c6d9f fixes bug #4354 2005-11-22 03:44:55 +00:00
stronk7 a1235e9d49 shorten_text() AFTER format properly. See bug 4355.
(http://moodle.org/bugs/bug.php?op=show&bugid=4355)
2005-11-21 15:40:53 +00:00
ethem 647d7ca7c0 file postgres7.php was added on branch MOODLE_15_STABLE on 2005-12-02 11:45:36 +0000 2005-11-21 14:09:52 +00:00
stronk7 061e5eb815 Prevent a warning when params is empty. Bug 4328.
(http://moodle.org/bugs/bug.php?op=show&bugid=4328)

Merged from MOODLE_HEAD
2005-11-21 13:18:03 +00:00
stronk7 bae2c2a470 Now the section "jumpto" menu (showed in collapse mode), supports
the multilang filter. Bug 4341.
(http://moodle.org/bugs/bug.php?op=show&bugid=4341)
2005-11-19 19:58:30 +00:00
stronk7 32c8bf5b3d Print performance info if exists and $CFG->perfdebug is enabled. 2005-11-19 18:21:58 +00:00
moodler 7229d893bb Fix for bug 4351. New parasmeter for get_record_sql to disable
auto-added LIMIT (in case we are using our own)
2005-11-19 15:33:19 +00:00
moodler d51b23b113 Bumping version beyond 1.5.3 2005-11-19 13:27:35 +00:00
stronk7 1b258734f6 Solved bug found when trying to backup all users!
(http://moodle.org/mod/forum/discuss.php?d=27105)
2005-11-19 00:26:36 +00:00
mjollnir_ c36d93026e Fixing bug 4345: merging problem when fixing bug 4303 2005-11-18 21:02:33 +00:00
stronk7 b565aa835e Mimic changes from "Ought to mention the improved assignment grading!"
Merged from HEAD
2005-11-18 16:22:56 +00:00
moodler 621fedf85c Ought to mention the improved assignment grading! 2005-11-18 14:49:14 +00:00
skodak 07d9001c08 xxx_param() fix 2005-11-18 10:54:45 +00:00
skodak f72b6e915a some more fixes for assignment grading 2005-11-18 10:24:50 +00:00
moodler babfcd1c17 fixes bug#4086, spelling mistake 2005-11-18 08:20:38 +00:00
julmis 176ff2b517 Commenting out gz_handler since it seem to cause problems
more on http://moodle.org/mod/forum/discuss.php?d=34376
2005-11-17 19:30:50 +00:00
stronk7 5ebb4f2d42 A bit later, but here it's release info.
Merged from HEAD.
2005-11-17 18:02:40 +00:00
martignoni 527e0131d0 Merge docs folder 2005-11-17 13:41:35 +00:00
julmis ae6c928926 Adding required_param or optional_param to clean up id's 2005-11-17 10:27:16 +00:00
moodler d1edf55639 Updated with notices about recent issues 2005-11-17 07:55:34 +00:00
moodler c54b5d6ebc Bumping to 1.5.3 for IMMINENT RELEASE. REALLY!! 2005-11-17 07:25:25 +00:00
moodler 9851f4d091 Added Petr's code for some checking for the insecure situation of
- register_globals = on  and
  - magic_quotes_gpc = off

with slight rewording changes

SC 193
2005-11-17 07:10:51 +00:00
moodler b2a1bc9fc9 Checked in Petr Skoda's fix for SC189.
It worked for us!
2005-11-17 06:44:10 +00:00
moodler 630d7b7b4d JUst tidying up layout ... functionally the same 2005-11-17 06:38:17 +00:00
mjollnir_ 25c741d659 Fixing misnamed variable in forgot password link in login block 2005-11-17 02:30:17 +00:00
mjollnir_ 50d7a3a52e Pulling in a missing global CFG in datalib:execute_sql (affects CFG->dblogerror) 2005-11-17 02:26:49 +00:00
stronk7 38271961ae Now courses are viewable by idnumber. Credits to Paolo Oprandi.
(http://moodle.org/mod/forum/discuss.php?d=18442)
2005-11-16 23:20:08 +00:00
stronk7 4a2aeccb2b Some typos solved. :-| 2005-11-16 23:03:34 +00:00
skodak c5431f8858 Fixed bug #4038 encoding problems when grading 2005-11-16 22:54:30 +00:00
stronk7 4ac66d6105 Updated a bit to explain how the multilang filter works. 2005-11-16 19:50:36 +00:00
skodak 901ba3c01d added basic validation of jump parameter 2005-11-16 16:44:39 +00:00
skodak 7a12269386 quoting type 2005-11-16 16:33:45 +00:00
skodak 8dc163f571 cleaning of parameter name before use SC#188 2005-11-16 15:20:57 +00:00
mjollnir_ 5609431181 Another fix to the perf printing patch from earlier. I didn't realise that 'no' in the context of perf means 7 ;) 2005-11-16 02:11:52 +00:00
mjollnir_ 9661a67c66 Fixing merging problem in the quiz report fix ealier - disabling wrong checkbox for site course quizes 2005-11-16 01:37:08 +00:00
skodak 0582eb58c8 no page flip after fastgrade saving, allow hiding of grade or comment column when fastgrading, do not update db when no changes in fastgrade 2005-11-15 23:43:52 +00:00
skodak 2055e78fe2 removed ugly/dangerous hack assert_var_set() 2005-11-15 23:37:17 +00:00
skodak c635c9c087 PARAM_BOOL now detects on and off values 2005-11-15 23:20:59 +00:00
mjollnir_ d50bb68692 Fixing bug 4303 - quiz reports dying on large enrolments - getting all users into an array and imploding it into an IN() replaced with joins. This changes the functionality SLIGHTLY in two ways - 1. show students with no attempts now JUST shows students with no attempts, rather than both. Show students with no attempts is now disabled for the site course as is not really relevant and could be ridiculously large 2005-11-15 22:07:39 +00:00
patrickslee 498ef90f7b More restrictions on enrol/unenrol of meta courses. Thanks to Bug #4057 2005-11-15 21:53:39 +00:00
skodak ace9977578 cleaning of parameter name before use SC#188 2005-11-15 21:47:18 +00:00
skodak c8a38c86ce Bug #4049 - Gradebook: Category names with a dot in them don't work correctly 2005-11-15 21:40:18 +00:00
mjollnir_ 9c9d5ae18f Better logic for printing perf info in the footer - should be distinct from the validation stuff 2005-11-15 21:32:30 +00:00
mjollnir_ 8df570f284 Fixing up the missing perfdebug string in admin, turning perf on in the default footer using $CFG->perfdebug 2005-11-15 21:21:53 +00:00
mjollnir_ 23eb2bbc57 Fixing typo in 1.5.3 release notes s/plugi/plugin/ 2005-11-15 21:19:11 +00:00
skodak 83fa1948c2 XSS prevention in older PHP versions SC#190 2005-11-15 18:20:15 +00:00
stronk7 feb3dff674 Clarify a bit one item. 2005-11-15 08:47:57 +00:00
martinlanghoff 61da36a863 153 release notes done -- bonus commit with hidden roll-of-honour 2005-11-15 07:21:24 +00:00
martinlanghoff ebb8f1b45c work-in-progress 153 release notes -- added notes about the commits from the last 2~3 days 2005-11-15 07:19:05 +00:00
martinlanghoff 580427eb72 work-in-progress 153 release notes -- part 3 2005-11-15 07:03:38 +00:00
martinlanghoff 952b4986c4 work-in-progress 153 release notes -- part 2 2005-11-15 06:22:04 +00:00
martinlanghoff 220dfe69ad work-in-progress 153 release notes 2005-11-15 05:47:46 +00:00
patrickslee 5f7baedd19 Added an IE specific rule in layout CSS to prevent command icons hidden behind HTMLArea generated tables
When inserting table in HTMLArea, if the table is set to align to left or right, IE will make the table float so the command button will be hidden behind it.

So a IE specific rule is added in layout CSS to set command buttons clear on both side. This will apply to all themes based on the standard layout. And other browsers are not affected/needed.
2005-11-15 02:58:30 +00:00
skodak bab2c5b8ce added register_globals off as recommended setting 2005-11-14 22:57:03 +00:00
skodak 51028ee868 add GLOBALS overwrite protection and improved magic_quotes_gpc hack SC#191, SC#184, SC#92 2005-11-14 22:43:48 +00:00
defacer 83cd002a8e Eloy's unchecked_vars admin page. 2005-11-14 16:21:41 +00:00
defacer 8de0b6879e Patching the patch, should be good now! 2005-11-14 16:15:40 +00:00
defacer def35d35d7 Eloy's detect_unchecked_vars patch, slightly modified. See SC#184. 2005-11-14 16:06:40 +00:00
mjollnir_ a7db9eb28e Merged from HEAD: fixing bug 4244: rss client block long titles and broken editing link. Partly backporting daryls fix, part my own fix 2005-11-14 02:35:56 +00:00
mjollnir_ ed2de86926 (delayed) merge from HEAD: fixing bug#4199 2005-11-14 02:30:49 +00:00
skodak 6c7bfbc7af temporary fix for XSS SC#189 2005-11-14 00:11:15 +00:00
mjollnir_ 122b18f02f Getting directory sizes with du - use escapeshellarg on the file/directory as unzipping files on the server can result in filenames that need escaping 2005-11-13 21:19:05 +00:00
urs_hunkler 953727c4c8 changed to unix file format. 2005-11-13 17:23:06 +00:00
urs_hunkler f54b9b94de changed $CFG-theme to current_theme() to make the theme working as course or session theme, see Bug #4315 2005-11-13 17:05:58 +00:00
defacer 2ac8f379c3 Merging all my latest changes and fixes from HEAD related to SC#187. 2005-11-13 04:53:47 +00:00
defacer a945eab2c2 Merging from HEAD:
Now get_sql_sort can be called static-function-imitation style as well.
Necessary to solve SC#187 gracefully.
2005-11-13 04:45:23 +00:00
defacer 14c3063dcc Merging my latest commits from HEAD, which include:
Fixing XHTML stuff
Skodak's patch from SC#187 without the HACK ALERT part

The "Next" buttons in grading windows don't get you where you 'd
expect right now, but please see SC#187 before doing anything about it.
2005-11-13 03:50:28 +00:00
martinlanghoff aa910f60b0 Display warning when magic_quotes_gpc=off _and_ register_globals=on -- tidyup wordwrap and center it proper. 2005-11-12 05:30:23 +00:00
martinlanghoff 2193242b48 Display warning when magic_quotes_gpc=off _and_ register_globals=on 2005-11-12 05:25:39 +00:00
defacer c10ac049cc Better retrieval of table sortorder when not done directly through
the table class, see SC#187.
2005-11-12 03:01:05 +00:00
gbateson 9ee129e4dd adjust relative URLs in <SCRIPT> tags; use ClueCaption as text on clue buttons (hitherto it was always set to "?") 2005-11-11 06:46:47 +00:00
skodak 0e3a277b02 fixed simple header bug #3406, patch submitted by samulik 2005-11-11 01:24:38 +00:00
skodak 6c10695f24 fixed loglive paging related bug #4116, patch submitted by samulik 2005-11-10 22:21:40 +00:00
skodak 26a6d6db3e fixed paging related bug #2715, based on patch submitted by samulik 2005-11-10 22:03:51 +00:00
skodak 8ab4f3001f fixed login block at http://site/index.php when secure forms on - bug #4305 2005-11-10 21:40:10 +00:00
patrickslee b5ec2ec12f Fixed a misspelling in help index 2005-11-10 20:46:05 +00:00
patrickslee afb39ad0c4 Added contextual help for meta course 2005-11-10 20:40:56 +00:00
skodak 53ec9ce362 typo bug #4308 2005-11-10 10:17:33 +00:00
moodler 932e5b4a69 Bump for imminent 1.5.3 2005-11-10 08:18:16 +00:00
moodler 722d5c0378 Upgraded to ADOdb 4.66. All the tests on my local server went fine,
so I hope nothing unexpected surfaces before 1.5.3.  Please test!
2005-11-10 08:04:35 +00:00
patrickslee 4caea37161 Converted forum help index file to linux line breaks 2005-11-10 03:26:56 +00:00
skodak 749de1c140 cleaning as assignment types SC#182 continued 2005-11-10 00:20:57 +00:00
skodak 259502e542 cleaning as assignment types SC#182 2005-11-10 00:14:01 +00:00
skodak ab68c36639 fixed incorrect assignment grades in gradebook when custom scales bug #4279 2005-11-09 22:38:26 +00:00
skodak 3e403b7950 fixed grades display in assignment/index.php when using different scales 2005-11-09 22:24:11 +00:00
skodak 977f038738 fixed grading when secure forms on bug #4300 2005-11-09 21:35:46 +00:00
thepurpleblob 18320d9331 Uneccessary call to build category list that was grinding systems to a
halt with large numbers of categories.
2005-11-09 16:11:54 +00:00
stronk7 41e5c5abc5 Split line into two separated commands to allow people with
chmod disabled to run backup/restore code. Credits go to
Grigory Rubtsov. Bug 4299.
(http://moodle.org/bugs/bug.php?op=show&bugid=4299)
2005-11-08 19:31:19 +00:00
moodler 9a75e63326 Undoing accidental change 2005-11-08 05:13:07 +00:00
moodler 8993348790 Resource summary is no longer preceded with newline. Suggested by Grigory Rubtsov
(grb at sentence dot ru) - Bug 4275
2005-11-08 03:07:28 +00:00
moodler 2917dfb9dc Added check to avoid notices when trying to get grades from an assignment
that didn't have any grades yet.    bug 4287

Also, using datalib function to create LIMIT statement when displaying
submissions
2005-11-08 01:44:49 +00:00
moodler a68d660a45 fix for bug 4278 2005-11-07 09:18:34 +00:00
moodler ae93996398 fix for bug 4284 2005-11-07 05:45:30 +00:00
martinlanghoff 186288dea5 user/edit: Better error handling when loading auth libs.
Check with empty() to avoid casting the string to int, and provide
useful info in the debug log.
2005-11-07 00:44:21 +00:00
martinlanghoff e7cfc5325f auth/ldap: Better warnings and handling of updaging multi-source LDAP fields
+ Raise a warning if the auth_ldap_get_entries for one user record
   returns more than one record (!?)
 + Resolved some subtle bugs when updating a remote LDAP repo from user
   updates. The logic is now simpler too.
 + Simplified the code that compares old/new values
2005-11-07 00:38:23 +00:00
stronk7 f5d2ef9543 Now both empty search strings and 1 letter search strings works fine in
the glossary. Terms are hilighted properly (but 1 letter terms, because
it's a hilight limitation). Bug 4274.
(http://moodle.org/bugs/bug.php?op=show&bugid=4274)
2005-11-06 20:00:22 +00:00
skodak 8bb94c53eb fixed bug 3532 - canceling of activity movement thanks to jcodina 2005-11-05 22:05:23 +00:00
skodak c2d8cd210f messaging - fixed page encoding in headers 2005-11-05 10:45:58 +00:00
skodak b60d39b96e fixed bug #4030 - filemtime for time modified 2005-11-04 11:29:14 +00:00
skodak d9ac8ca2e0 fixed choose disappearing after file delete 2005-11-04 10:53:41 +00:00
thepurpleblob b87c2adc76 Brought in line with HEAD version to get rid of data_submitted() function.
A bit of HTML cleaning up too. Fixes incompatibility with secureforms.
2005-11-04 10:04:04 +00:00
skodak 4483596d79 fixed encoding of page title of framed resources 2005-11-04 09:55:46 +00:00
moodler 7d255d1602 More notices fixed 2005-11-04 06:49:20 +00:00
moodler 2eb607bedb Fixed a number of bugs:
- zero grade vs no grade now works, no grade is stored as -1 in database
  - student modification time was being updated by teacher in quickgrade
  - sundry notices
2005-11-04 06:40:12 +00:00
moodler 15422ee0c2 fixes bug #4268 2005-11-04 06:22:47 +00:00
skodak b17e29b38e fixed input validation in admin and formating+cleaning in diff and editing SC#160 2005-11-03 23:38:51 +00:00
moodler 5ee8a752c4 Widened the window a bit more, bug #4146 2005-11-03 09:38:36 +00:00
moodler 38cdb67293 Fixing up the assignment grading interface to make it more usable.
- grade buttons are now links
  - popup window has teacher comments at the top
  - popup window can now cycle through all users without leaving the window
  - new quickgrading feature to grade inline in one go
  - can choose page size
2005-11-03 06:19:29 +00:00
moodler 912127a158 Standard menus can now be part of tabindex sequences for keyboard accessibility 2005-11-03 05:01:31 +00:00
michaelpenne 42521dbff4 Added some content to the help file. 2005-11-02 20:38:54 +00:00
patrickslee f7d818d5c5 Fixed a wrong call to add_teacher in LDAP plugin 2005-11-02 20:34:00 +00:00
skodak 11889a8466 Fixed course searching with quotes - SC#180 - minor related fix 2005-11-02 15:40:59 +00:00
skodak e0dbbecedb Fixed course searching with quotes - SC#180 2005-11-02 15:25:38 +00:00
moodler bc7e72c9b3 Adding group mode and visibility buttons to assignment!!! 2005-11-02 03:59:20 +00:00
mjollnir_ f253e2575f Fixing warning in course import (part of bug 4199) 2005-11-02 02:25:45 +00:00
stronk7 71deda82fe Changed one call to gethostbyaddr() to use numeric
ip instead. Such information is only stored in DB
(page->author) and not critical at all. Suggested
by Derry in http://moodle.org/mod/forum/discuss.php?d=32171
because it was causing important delays when clients
weren't DNS-registered.
2005-11-01 17:45:26 +00:00
skodak f6ce611ce4 fixed access rights of creators during restore SC#177 2005-11-01 17:23:21 +00:00
skodak 682a3999d7 fixed course ID and quoting of the search string SC#179; typo :-( 2005-11-01 15:56:32 +00:00
skodak 393abfad48 fixed course ID and quoting of the search string SC#179 2005-11-01 15:53:17 +00:00
moodler 78a2e3d249 Show the right path with REQUEST_URI 2005-11-01 06:52:51 +00:00
skodak 398f365cb8 fixed warnings and param cleaning, prevention of mailing of empty reports SC#147 2005-10-31 22:48:04 +00:00
martinlanghoff 985cd79efa Updated the definition of 'member' for AD - thanks to I?aki for the tip! 2005-10-31 22:43:44 +00:00
skodak 6d306766c9 fixed slashing of javascript strings SC#174 2005-10-31 22:12:06 +00:00
skodak 164099fd14 merged cleaning of array params from HEAD 2005-10-31 22:10:09 +00:00
patrickslee df7f761f53 Block normal users to gain access to meta courses 2005-10-31 20:31:57 +00:00
skodak 25340ceab1 fixed warnings/errors in latest PHP versions 2005-10-30 22:14:03 +00:00
patrickslee 46dc437f66 Reverting commits just made. They are not intended to be in MOODLE_15_STABLE 2005-10-30 22:05:30 +00:00
patrickslee 80fc4f88be DB upgrade script to clean up enrol field for user_students and user_teachers 2005-10-30 21:36:19 +00:00
skodak f0a73113d5 fixed sql quoting SC#145 2005-10-29 21:52:01 +00:00
skodak 3fca3da072 fixed cleaning before editing SC#163 2005-10-29 21:38:39 +00:00
skodak 239f82915a fixed caching + cleanup in format_text() SC#172 2005-10-29 21:30:29 +00:00
skodak c637903591 fixed script parameters + some warnings SC#150 2005-10-29 16:40:54 +00:00
skodak e85a6623a1 fix for preferred_width_xx initialization SC#169 2005-10-29 16:33:19 +00:00
skodak f25f387188 cleaning of parameter, initialized variable SC#168 2005-10-29 16:15:22 +00:00
ikawhero c56218c8ce Question numbers in the header were in the incorrect order when downloading
results as an Excel spreadsheet.
2005-10-28 03:30:11 +00:00
ikawhero 4d64df82cb Missing language file copied over from HEAD 2005-10-28 03:10:43 +00:00
patrickslee 5ec4333086 Fixed dis-ordered displaying for quiz overview report when no soring is specified 2005-10-28 02:12:45 +00:00
patrickslee e89b542b1b Fixed a mis-usage (typo?) of get_admin() in paypal module 2005-10-27 02:20:11 +00:00
patrickslee 88fb90e9b4 Added default argument value for grade_category_select() to prevent error when calling without arguments 2005-10-26 22:28:26 +00:00
mjollnir_ 5ed1a6d692 Now the login block uses the same logic for forgot password as the login page does 2005-10-26 21:18:41 +00:00
defacer 8b68aaf1f6 Merging from HEAD:
Fixing all incoming parameters when editing course groups as per SC#171.
2005-10-26 13:49:06 +00:00
defacer b7535a6e23 Merging from HEAD:
A slight improvement for my last edit, which could trigger a small bug.

I should go out and drink more often, it helps debugging! ;-)
2005-10-25 01:56:37 +00:00
defacer bf617f07a6 Merging from HEAD:
Fix for bug 3794:

Times in chat messages are now displayed correctly to all users, with each
user's timezone and DST status taken into account.
2005-10-24 17:31:40 +00:00
defacer 34225def25 Merging from HEAD:
Fix for bug 4203:

When adding recurring events, if the event title contained an apostrophe
then only the first event of the series would get created. Tricky bad
interaction with add_to_log, the reporter for this should get a prize. ;-)
2005-10-24 17:15:30 +00:00
julmis faf8922009 Fixing Bug #4201, cursor movement on IE. 2005-10-24 14:11:30 +00:00
moodler 0232fdd58c Use notify instead of error() 2005-10-23 16:02:23 +00:00
stronk7 5e41163054 Methods aren't static due to the Typo3 structure. 2005-10-22 16:15:21 +00:00
urs_hunkler 070515ce42 I reworked the timer JavaScript and the CSS properties. The floating of
the timer now works in MSIE, Firefox and Opera the same way. The first correction was not sufficient.
2005-10-22 15:29:05 +00:00
defacer f77efbe3be Fix for bug 4127:
In the course participants page, selecting an initials filter in one course
and then moving to another (the filter would propagate) could result in few
or no results being displayed. The teacher would then have no way of
resetting the filter and viewing all (or possibly any) participants.

Fixed by making each course participant page independent. They no longer
share sort orders, collapsed column state, or initials filters.
2005-10-21 01:13:56 +00:00
defacer 74d60e20ba Fix for bug 4143:
If a user was a teacher, they didn't see any events from courses
where they were students.

I 'm back at looooooong last! :)
2005-10-21 00:26:06 +00:00
thepurpleblob 7770beee55 & should have been &amp; (of course) 2005-10-20 07:58:09 +00:00
mjollnir_ 96bf2d385f Fixing bug 4199: import course data should only allow you to import from a course that you're already a teacher in, unless you're at least a creator 2005-10-20 00:19:24 +00:00
thepurpleblob 9a94d087a8 Strange missing parameter - bug #4121 2005-10-19 05:41:44 +00:00
martinlanghoff 1ff64b7f60 If wwwroot is unset, log something before dying 2005-10-18 03:28:20 +00:00
stronk7 e72c81ab82 Initial commit of Typo3 charset libraries and Moodle's textlib.class code. 2005-10-17 15:37:42 +00:00
stronk7 abcd6d503e Fixed one important bug in restore of gradebook that was
preventing it to finish in a lot of situations.
(http://moodle.org/mod/forum/discuss.php?d=31461)
2005-10-16 11:30:33 +00:00
stronk7 f784666c93 Solve some wrong CVS Id tags 2005-10-15 10:37:01 +00:00
stronk7 44de4fd8a8 Updated to 2.4 Final. From notes: This resolve a lots of bad formated archive errors. 2005-10-15 09:57:18 +00:00
michaelpenne cd60a00cf9 Removed a notice warning when lessons are created in a course with no category (eg: home page) 2005-10-14 19:26:21 +00:00
patrickslee 2382dae103 On a rare case courses will have duplicate sections those have the same id. Added some code to re-order sections if this is found when moving sections 2005-10-14 03:10:21 +00:00
skodak e5df73c53e quick fix for the problems with p() and s() - SC#167 2005-10-13 20:09:54 +00:00
paca70 3cd3c343ea Updates 2005-10-13 10:27:05 +00:00
paca70 8dfbb77f3c Update 2005-10-13 08:36:33 +00:00
stronk7 282f2e5b22 SC#162 2005-10-12 19:24:30 +00:00
mjollnir_ 04c9c465f9 Execute some updates silently (dropping non existent columns in workshop) bug 2964 2005-10-12 02:15:23 +00:00
patrickslee 763f3766a8 Fixed various bugs in add_teacher() those caused the function not populating record correctly 2005-10-10 21:39:43 +00:00
skodak 4bcb6f1043 fixed parameter use SC#157 2005-10-09 19:49:47 +00:00
skodak 82329ca01e fixed indent - SC#158 2005-10-09 19:38:57 +00:00
skodak ae4f432615 missing semicolon 2005-10-09 18:28:30 +00:00
skodak 8e5cde5461 better input validation - SC#165 2005-10-09 07:09:26 +00:00
michaelpenne cb5c5a1bfe Reverted grading back to 1.4.X for when custom scoring is turned OFF 2005-10-07 20:34:27 +00:00
stronk7 70156ee3d4 Typo. Bug 3917. Credits for liling! B-)
(http://moodle.org/bugs/bug.php?op=show&bugid=3917)
2005-10-06 17:37:58 +00:00
stronk7 0715864e36 Now hidden courses are showed dimmed in the restore process. Bug 4152.
(http://moodle.org/bugs/bug.php?op=show&bugid=4152)
2005-10-06 17:20:58 +00:00
martinlanghoff 2cf2079188 Fix for bug 3141 - Can't update external data with LDAP authentication 2005-10-06 02:23:40 +00:00
martinlanghoff 67149b4d2c Fix for bug 3992 - LDAP password including a quote does not work - credits go to Kita 2005-10-06 02:18:16 +00:00
stronk7 01ce0aa3a8 Now entries containing apostrophes can be exported to main glossay
and deleted without problems. Bug 4136.
(http://moodle.org/bugs/bug.php?op=show&bugid=4136)
2005-10-05 18:23:25 +00:00
mudrd8mz 50c9c95ea6 Merged from HEAD 2005-10-05 11:23:51 +00:00
mudrd8mz 60f08f5ccc file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-10-05 11:23:51 +0000 2005-10-05 10:58:08 +00:00
mudrd8mz a55a4c8c31 Merged from HEAD 2005-10-05 07:50:10 +00:00
mjollnir_ dde5cbbdfd Fixing the mass migrate postgres upgrade to be silent in quiz. Added a fix to a previous rename table that breaks pg_dump & pg_restore (incorrectly named sequence) 2005-10-05 01:35:14 +00:00
mjollnir_ 38f78e158c Fixing sortorder typo 2005-10-04 21:26:01 +00:00
dhawes 24f9eb47b1 backported to 1.5 stable from HEAD - bugfix for bug 3980 2005-10-03 14:15:57 +00:00
patrickslee dd7a3aaedf Improved number rounding for grades fix 2005-10-02 21:57:53 +00:00
gustav_delius b483d8c81e fixed a help button 2005-10-01 13:36:06 +00:00
mindforge 1eff1e081c Changed the review 'scores' option to also take effect on the standard feedback displayed at the bottom of a question. 2005-10-01 11:07:15 +00:00
julmis 1d9b22c497 Adding charset to header 2005-10-01 00:46:28 +00:00
julmis 38453bb238 Adding gz_handler for a bit faster loading time. 2005-10-01 00:05:12 +00:00
mjollnir_ 70f6f8b708 Much better namespace collision fix to apacheloguser thing 2005-09-29 23:39:52 +00:00
mjollnir_ 98f052303f Fixing up the log apache user patch from the otherday - problem with variable scope 2005-09-29 21:53:48 +00:00
stronk7 66fd3fb7ff Modified clone() method to work better under PHP 4. Credit goes to Julian. 2005-09-29 16:36:02 +00:00
mindforge 7b838d2a97 Fixed addslashes and stripslashes of responses. Now slashes are stripped in quiz_extract_responses, leading to an improvement in grading (before " a man's world" would have been graded as "a man\'s world").
In order for the responses to be written to the database correctly the function quiz_save_question_sessions adds slashes again before writing the data to the database (and before passing it to the questiontype method save_session_and_responses) and strips them again after all the work is done, thus leaving the responses fields unmodified for the subsequent code.

An additional benefit of this change is that answer fields that are automatically filled after a submit don't get more and more slashes added (e.g. ' used to become \' after the first and \\\' after the second commit).
2005-09-29 11:06:47 +00:00
patrickslee 1f508431dd Removed a block of redundant code in participants list 2005-09-29 01:40:12 +00:00
mjollnir_ 85508791a6 Adding default for new config option pathtodu. Related to bug 4107 2005-09-29 00:34:25 +00:00
mindforge 494b416d7b Fixed two minor bugs in the random questiontype. 2005-09-28 22:39:26 +00:00
mindforge e56820d225 Added code to delete records from quiz_newest_states when a quiz instance is deleted. 2005-09-28 22:35:54 +00:00
michaelpenne 1d44f3a5d7 Fixed errors in logic and lack of isteacher() check as pointed out by Petr Skoda 2005-09-27 17:27:05 +00:00
adamtpaw 0b32d159da update Moodle 1.5 2005-09-27 13:27:58 +00:00
adamtpaw 0674d7ba48 Update for Moodle 1.5 2005-09-27 13:16:54 +00:00
adamtpaw 9ee425fa14 update for Moodle 1.5 2005-09-27 13:10:51 +00:00
mjollnir_ 73ec9fb26e Logging apache user now takes into account loginas 2005-09-27 05:24:43 +00:00
mindforge db504824f8 A better fix for bug #4110 and the previous one undone. 2005-09-26 12:31:23 +00:00
mindforge 8bcbac0126 Possible fix for bug #4110. 2005-09-26 11:22:08 +00:00
mindforge b4d2ebf952 Improved dispaly of correct answers in the calculated questiontype. 2005-09-26 09:24:45 +00:00
mindforge f9bec1f2e7 Another improvement on regrading. The code thought that grading for a question changed if the grade was like 1/3. The precision in the database is different than the newly calculated grade, so now we round both values to 5 decimal places, which should fix this problem. 2005-09-26 09:18:22 +00:00
mindforge 72d09c0a5a Improved regrading (raw_grades were compared in order to determine whether the grading of a question changed, now grade is used, which also catches if penalties are turned on/off in the quiz settings) 2005-09-26 09:14:33 +00:00
mindforge 254fdebbc9 Silenced notices produced by flush() and ob_flush() in regrading code. 2005-09-26 09:10:52 +00:00
mindforge b5ee139f78 Little fix in the grading logic (this should only have affected numerical questions with mre than one answer as can be used in cloze). 2005-09-25 21:03:12 +00:00
skodak 184e03b294 new session timeout handling 2005-09-23 18:28:15 +00:00
moodler 76c4cabbfe Removed error() from a place that was actually being called from workshop_cron
and thus stopping cron sometimes.

Also some code layout cleanup
2005-09-23 09:23:00 +00:00
mjollnir_ 681d95c495 Backported Martin's sortorder fix from HEAD. Apparently this is a better fix than the one from a few days ago 2005-09-23 04:33:47 +00:00
martinlanghoff a6349a6d1f courses/sortorder: syntax fix to cope with bad sortorder values 2005-09-22 03:12:14 +00:00
stronk7 4a9f162f17 <span> tags are now allowed inside post->subject. Bug 4099.
(http://moodle.org/bugs/bug.php?op=show&bugid=4099)
2005-09-21 21:27:11 +00:00
urs_hunkler 03f6e19c61 Added CSS properties for Firefox for fixed placement of the timer. It is a preliminarily fix. Please follow Bug #4053. 2005-09-21 14:15:15 +00:00
gbateson 577bd6a9f2 renumbered steps 1,2,3,3,4 => 1,2,3,4,5
signalled steps 3 and 4 as not required for Moodle 1.5 and later
2005-09-21 00:31:52 +00:00
stronk7 cbb0dd34d9 Now the ALL link in the paging bar is under the
glossary->showall setting control. Bug 4072.
(http://moodle.org/bugs/bug.php?op=show&bugid=4072)
2005-09-20 16:59:29 +00:00
gbateson 7fc7e9645f removed XSS hole caused by "urldecode" 2005-09-20 11:57:53 +00:00
julmis d27162c0cd XSS fix
- added optional_param for id
2005-09-20 08:55:58 +00:00
bobopinna b455078417 Fixed a problem 2005-09-20 06:43:26 +00:00
skodak d994263946 fixed IE and https problems 2005-09-19 17:09:06 +00:00
patrickslee 290c1e61cc Added some number rounding for grades to prevent PostgreSQL errors 2005-09-19 00:09:25 +00:00
patrickslee f89c3674bb Corrected some table/field names 2005-09-19 00:07:57 +00:00
dlnsk e8ca86ffb7 *** empty log message *** 2005-09-17 17:41:10 +00:00
gustav_delius 8b0d0c1756 Fix for bug 3995 2005-09-17 13:03:24 +00:00
gustav_delius 9111a763bd Fix for bug 4019 and some other XHTML issues 2005-09-17 12:28:38 +00:00
gustav_delius d00c2e2310 Fixed bug 4052 2005-09-17 12:00:20 +00:00
martinlanghoff 085366cfa0 auth/ldap fix typo - thanks to Skodak for spotting it! 2005-09-16 23:29:26 +00:00
mindforge e2823d208a As discussed in the thread http://moodle.org/mod/forum/discuss.php?d=30628 (and others) the limitation to 10 answers in a question is problematic for some users.
From this commit onwards match, multichoice and shortanswer questiontypes will
(a) display all defined answers (e.g. from an import with more than 10 answers) and
(b) to always display at least one empty answer field.
2005-09-16 10:06:58 +00:00
thepurpleblob 1a87ac6a6c Fixed problem with courseid not being passed. 2005-09-16 10:02:42 +00:00
thepurpleblob d40177d7a2 Taken check for too many answers out. Julian has fixed the edit screens. 2005-09-16 09:46:02 +00:00
thepurpleblob a9a26d5a45 Added string for 'importmaxerror' 2005-09-16 09:34:58 +00:00
thepurpleblob 89aa5d49ee Maximum number of answers now governed by constant in locallib.php not
by hardcoded value.
2005-09-16 09:30:54 +00:00
mindforge a4df55c815 Small fix to the previous commit (< becomes <=). 2005-09-16 09:24:50 +00:00
mindforge a67c2e0a33 As discussed in the thread http://moodle.org/mod/forum/discuss.php?d=30628 (and others) the limitation to 10 answers in a question is problematic for some users. I modified the match questiontype to (a) display all defined answers (e.g. from an import with more than 10 answers) and (b) to always display one additional empty answer field. 2005-09-16 09:12:25 +00:00
gustav_delius 435241d385 Fixed bug 4077 2005-09-16 07:26:48 +00:00
moodler 7de8f45ae9 Merged from head 2005-09-16 02:25:59 +00:00
gbateson 9086a17e15 fixed "hotpot_print_recent_activity to use "hp=" instead of "id=" in links to attempted quizzes 2005-09-16 00:43:44 +00:00
gbateson 60bdcfa990 new version number: 2.0.9 2005-09-16 00:30:56 +00:00
gbateson efd7fc31b9 fixed "hotpot_print_recent_mod_activity" to use "hp=" instead of "id=" in link to recent attempted quiz 2005-09-16 00:22:37 +00:00
mindforge 14be3fe259 Added dropdown to allow sorting the question list on the quiz editing page in different ways. This also allows defining a custom sortorder in the URL. 2005-09-14 11:09:32 +00:00
ikawhero cdf5d7b047 Incorrect value being passed to header function. 2005-09-14 07:20:47 +00:00
mjollnir_ 5d8323d57c Login block should be more discerning about offering signup link. Fixed to be more in line with the login page 2005-09-13 22:21:20 +00:00
thepurpleblob 1122563591 Check if html editor is enabled before checking htmleditor setting from screen.
Removes notice if editor not in use (therefore field  was not displayed)
2005-09-13 13:49:27 +00:00
julmis d0491a1fef Faster version check for Gecko and work-a-round for "No IDN" problem. 2005-09-13 11:49:40 +00:00
martignoni e687c5421c Merge from HEAD 2005-09-13 09:41:57 +00:00
martignoni 6ae7fca715 Merge form HEAD 2005-09-13 09:40:30 +00:00
skodak 919a058edb formal RFC151 compliance 2005-09-12 18:43:49 +00:00
stronk7 65b2ea05b1 Added support for new styles in chat window. 2005-09-11 10:01:22 +00:00
urs_hunkler 4a75fb028c Eloy added hooks to the chat mes frame. I adde the basic CSS properties and values for colors and positioning to the "Modules: Chat" sections of the two CSS files. Update 1.5 too. 2005-09-11 06:15:18 +00:00
stronk7 bcfdf5f0e6 Extended theme support to the chat window. Bug 3376.
(http://moodle.org/bugs/bug.php?op=show&bugid=3376)
2005-09-10 22:51:38 +00:00
adamtpaw 84fdfffb13 Polish version for Moodle 1.5 STABLE 2005-09-10 20:47:43 +00:00
moodler 7b9f8f652b JUst a bump because it's been a while. 2005-09-10 14:38:52 +00:00
stronk7 43ea696c77 Now both p() and s() respect html entities. 2005-09-10 10:59:19 +00:00
martignoni 1ba6745de0 file removepages.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 2d1880e449 file wikitype.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 1817713a44 file strippages.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 3679ac38b7 file initialcontent.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 29a71fa1d0 file wikilinkoptions.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni ec22a2b3bb file mods.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni c6188b29ef file setpageflags.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 0be47a3364 file revertpages.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 7d0b581589 file revertauthorfieldpattern.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 6a5ef2899e file wikiname.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 710f3399df file wikiusage.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 0cf2d8903d file studentadminoptions.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
moodler 93bcfb18a8 iAdded some CSS for blocks config editing bug 4045 2005-09-09 16:51:29 +00:00
mindforge c99e2d2c66 Changed use of htmlspecialchars() to s(). 2005-09-09 16:47:33 +00:00
moodler 6549d34a38 Addition CSS id, merged from head 2005-09-09 16:24:41 +00:00
moodler 4498b48aee Don't diaplay zero dates at all in user reports 2005-09-09 16:15:20 +00:00
moodler 769ffdfdca Don't calculate date when it's zero 2005-09-09 16:01:04 +00:00
skodak d16b5bb763 new handling of session timeouts - part 1 2005-09-09 15:12:42 +00:00
paca70 fddbea82ac To get rid of some cosmetic (hopefully) error messages. 2005-09-09 11:29:11 +00:00
skodak 17e941b48a reverting previous patch - see http://moodle.org/mod/forum/discuss.php?d=26970 2005-09-09 11:08:41 +00:00
paca70 7aaabae78e Corrected some typos and mistakes 2005-09-09 10:42:08 +00:00
gbateson e0a53b4d0a removed line which was crippling quizzes with HTML in questions or answers
added check to detect when no grades were returned in the database
2005-09-09 01:03:10 +00:00
martinlanghoff 59b5352b51 auth/ldap: fixed typo in auth_user_activate() - bug #3594 - thanks to ze @ nbox.org 2005-09-09 00:25:50 +00:00
mjollnir_ 1068ba8d27 Much more sophisticated IP address cleansing 2005-09-08 23:04:10 +00:00
mjollnir_ d9ab06ca32 Merged from HEAD: Fix to bug 4026 and 3913. Credit: jjg7 at humboldt dot edu 2005-09-08 21:31:41 +00:00
mindforge 7ece83dec6 Fixed an unreported bug. 2005-09-08 18:00:53 +00:00
martinlanghoff 68dfdae36e Fix for bug 4031 -- fix typo 2005-09-07 23:23:08 +00:00
martinlanghoff fce45181d7 Fix for bug 4031 -- stupid mistake of using get_record_select() when I mean get_record() - see the bug entry for more details 2005-09-07 22:48:48 +00:00
mjollnir_ 4e9cc4842f Performance fix: in postgres, sometimes indexes are not used because of type casting. block_instance.pageid is a big int field so the index wasn't being used. Wrapping in '' prevents the typecast. See http://www.postgresql.org/docs/7.4/interactive/datatype.html#DATATYPE-INT for more information 2005-09-07 22:00:16 +00:00
adamtpaw a072684a96 Moodle 1.5.2 -nowe pliki pomocy 2005-09-07 19:20:24 +00:00
adamtpaw 7505cd1cd2 Moodle 1.5.2 2005-09-07 19:14:29 +00:00
stronk7 b12e186c04 Some RSS readers seems to have problems with that wrong p tag. 2005-09-07 17:06:25 +00:00
mindforge 9fe710159f Fix for the issue described in http://moodle.org/mod/forum/discuss.php?d=30192 2005-09-07 13:59:28 +00:00
martignoni 74971fdad9 file htmlmode.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-07 09:51:35 +00:00
martignoni 62ade7827c file ewikiacceptbinary.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-07 09:51:35 +00:00
martignoni 9d7dde3c97 file checklinks.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-07 09:51:35 +00:00
martignoni 73292a8393 file howtowiki.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-07 09:51:35 +00:00
martignoni 637c9cd330 file index.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-07 09:51:35 +00:00
adamtpaw 2b4090c4fe POlska wersja dla Moodle 1.5.2 - niekompletna, ale prace trwaja. 2005-09-07 06:56:27 +00:00
martinlanghoff dc2a68b4d7 enrol/db - bug 3912 - Re-add the enrolment to $user->student[] - should fix things for good. 2005-09-07 06:36:32 +00:00
martinlanghoff 0aff0bf622 Fix for bug 4011 -- a MySQL specific workaround did not work with database names with hyphens, and broke the whole plugin for other databases. This patch fixes both issues. 2005-09-07 06:03:53 +00:00
mjollnir_ 72ed1089dd Further tidyup to the cleanremoteaddr function I added - some thing were getting through 2005-09-07 04:45:52 +00:00
mjollnir_ e1fede4e63 Better fix to the messaging problem. Will make mysql <4 users happy too. Credit for php workaround:Eloy 2005-09-07 04:43:05 +00:00
patrickslee fe18e430f7 Finally the *correct* fix for the looping problem. Thanks to Penny 2005-09-07 04:22:03 +00:00
martinlanghoff 6cd6568f84 make_categories_list(): initialize variables correctly to cover up for broken call convention. Passing unset variables by ref to be populated is a BAD idea. Do The Right Thing and Return your function output or there'll be no dessert for you. 2005-09-06 22:24:31 +00:00
patrickslee 6fcc3fab2c The report_session_error() fix does not work all the times. Proper fix here. 2005-09-06 22:15:42 +00:00
mjollnir_ fa1ce50ec8 Backing out a previous patch of mine - bad merge with our local copy 2005-09-06 21:23:09 +00:00
patrickslee 67ba380ec9 Fixed a rare problem that report_session_error() causes a redirection loop 2005-09-05 23:46:08 +00:00
stronk7 e42b787931 Avoid empty or unlinkable activity names. 2005-09-05 22:33:07 +00:00
moodler f21b4c1c2b Silent header (no errors) 2005-09-05 16:33:30 +00:00
moodler 235089d15f Removed blank line 2005-09-05 16:29:38 +00:00
moodler fa27bb7c22 Including lib.php to make default for forumtracking work 2005-09-05 05:31:49 +00:00
mjollnir_ 926a759c71 Performance fix for get_directory_size: new config option for path to du - if we have it, use that instead. MUCH faster on directories with a lot of files 2005-09-05 05:30:53 +00:00
mjollnir_ c11d468cc1 Fixing up a bug in the log selector to do with optionally showing all users in the dropdown when over COURSE_MAX_USERS_PER_DROPDOWN 2005-09-04 21:07:23 +00:00
moodler 9e525f53b3 Some new files 2005-09-03 07:51:57 +00:00
moodler 2099bab6a0 Merged latest copies from HEAD 2005-09-03 07:51:06 +00:00
julmis 57a1c1af6a Fixing array_change_key_case errors.
- Function present in version PHP 4 >= 4.2.0, PHP 5
2005-09-02 07:50:28 +00:00
martinlanghoff a705afc7da auth/ldap - sync_users script bugfix x2: it was deleting fields that were not supposed to be synched to ldap and it was failing to set auth_forcepasswordchange 2005-09-02 06:55:28 +00:00
martinlanghoff f159f93bc7 enrol/ldap - fix course auto-creation to work with the new blocks infrastructure. doh! (thanks penny!) 2005-09-02 06:50:11 +00:00
martinlanghoff 8ade954b60 auth - bugfixes: update_userinfo() did not truncate values, and did not have proper errorhandling; user creatiwas passing an id to set_user_preference when we wanted an object 2005-09-02 06:42:33 +00:00
martinlanghoff e1a3a68059 forums/trackreads: Small optimizations to forum_tp_can_track_forums() 2005-09-02 06:36:39 +00:00
martinlanghoff 63b8c597f6 forums/trackreads: Postgres-optimized query - from many minutes to a few milliseconds 2005-09-02 06:30:24 +00:00
mjollnir_ c6a37a3185 Add an index where we really need it - block_instance.pagetype 2005-09-02 04:58:57 +00:00
stronk7 73d68a033d Strip control chars from being sent to the XML file.
Only tab, newline and return are allowed in XML 1.0.
This feature is controlled by $CFG->backup_strip_controlchars.

Please, test it!
2005-09-02 00:01:22 +00:00
mjollnir_ 18c26f97ef Fixing bug 3977: sort of. Check for mysql >= 4 or postgres, do a smarter query with a UNION. Otherwise, do the same old query. This is not very good for mysql 3.23 users with large datasets, but not much else I can do. 2005-08-31 23:57:37 +00:00
mjollnir_ e2629fc12d Preventing another warning. In some cases in the calendar blocks, resource filtering gets called with no courseid 2005-08-31 06:13:13 +00:00
martinlanghoff d5e5544448 auth/db: Better support for utf-8 user data. 2005-08-31 05:59:31 +00:00
mjollnir_ c3a70f83b1 Avoid a warning when displaying multichoice quiz questions 2005-08-31 05:24:17 +00:00
mjollnir_ f2179d4688 prevent stuff being sent to the browser before config.php being included 2005-08-31 02:29:52 +00:00
bobopinna 0ba7a5cab6 First working release 2005-08-30 11:47:21 +00:00
bobopinna 8d351c3e92 Fixed a bud with next and prev sco search 2005-08-30 11:46:38 +00:00
moodler b109aa6efa Fix for bug 3958 and google overactivity 2005-08-30 09:34:42 +00:00
mindforge f40cc4a843 Fix for bug #3986 2005-08-30 08:50:09 +00:00
defacer 0be62652d1 Merging from HEAD:
Fix for bug 3981 (also quite lively discussed at
http://moodle.org/mod/forum/discuss.php?d=29564):

When the user was not logged in and was not a guest, DST compensation was not
being done. I guess deciding to store the computationally expensive DST cache
in $USER was a major oops on my part. I 've moved everything to $SESSION and
now it works as it should.
2005-08-30 03:31:17 +00:00
michaelpenne 71c47913a0 FIXED: Removed Notice Warning. Sometimes an attempt's answerid field is not set because the answer that the student entered does not match any of the answers for the question. This error comes up for Numerical and Short answer question types. 2005-08-29 22:06:55 +00:00
michaelpenne 66fbb3b10f FIXED: Bug with reporting numerical question types. 2005-08-29 19:45:23 +00:00
paca70 5578e1bd26 New files and correction from Mikko NUrminen and others.
Thanks all
2005-08-29 15:43:47 +00:00
gustav_delius 9122a1e62d Fix for missing action icons, reported in http://moodle.org/mod/forum/discuss.php?d=28466#139179 2005-08-26 20:46:57 +00:00
thepurpleblob 26996407cb Suppress some 'missing course object' messages, and fix bug #3899 2005-08-26 11:58:34 +00:00
thepurpleblob 55fdf029ab Import now passes $course object to import/export format object. 2005-08-26 11:33:08 +00:00
gustav_delius e45b5f24d4 Fixed bug 3950 2005-08-26 08:53:13 +00:00
gustav_delius c5c3568d89 fix for bug 3953 provided by Jean-Michel 2005-08-26 07:56:54 +00:00
martinlanghoff 8e0b42fb88 enrolment fixes: We now have better handling of the enrol field when dealing with student enrolments. This fixes bugs 3912 and 3974. NOTE that enrol_student() now defaults to manual - this is to support the different pages that call enrol_student() to still work correctly when external enrolments are in use, by recording the enrolments as manual. Enrolment plugins are expected to know better and pass the correct parameter. 2005-08-26 06:07:42 +00:00
mjollnir_ 8ba12d576a Escape strings for database. SC # 145 2005-08-26 05:28:55 +00:00
mjollnir_ 9f65fc2b27 Fixing typo in call to get_record that was causing a lot of noise in the db error log 2005-08-26 04:53:24 +00:00
mjollnir_ 12c40a2f66 Backticks are not postgres friendly! :( 2005-08-26 04:41:33 +00:00
martinlanghoff 9595bf588a enrol/ldap - fixed default objectclass, and we can now bind non-anonymously 2005-08-26 04:09:41 +00:00
martinlanghoff 8a9e5ac327 Long-pending rollback_sql() 2005-08-26 03:57:30 +00:00
julmis 4d20567f61 Adding escapeshellarg to aspell path 2005-08-25 07:44:05 +00:00
julmis 399d7b3acb Adding escapeshellarg to aspell path. 2005-08-25 07:43:21 +00:00
martinlanghoff 2a069aa1f2 auth/ldap: Fixed handling of multi-source field mapping. Now fields with non-empty values have precedence over empty fields, regardless of order. Fields will be set to empty only if all ldap source fields are empty. 2005-08-25 04:56:13 +00:00
mjollnir_ 289cf90737 Fixing another postgres problem. With distinct, you can't order by a field not in the select field list 2005-08-25 00:02:49 +00:00
mjollnir_ cef4a0e828 Fixing typo in postgres-fixing patch from a couple days ago 2005-08-24 23:47:51 +00:00
patrickslee bd22fdfbdb Wrong parameter order in function definition 2005-08-24 23:05:23 +00:00
defacer dc9ec4e135 Merging from HEAD:
Changing some hardwired 1s to SITEID. Is the madness ever going to end?
Use 1 as a magic number in code, pay the price...

I think I also improved the security around there.
2005-08-23 20:47:34 +00:00
defacer 4dde75c7d7 Merging from HEAD:
Repeat events are now created correctly even if the DST change boundary
is crossed between repeats.
2005-08-23 20:08:21 +00:00
mjollnir_ 65ebc47636 Backticks are NOT ALLOWED in postgres! 2005-08-23 06:46:35 +00:00
mjollnir_ 5747bf91e5 Fixing metacourses to work in mysql 3.23 series. At same time, set enrolment type to 'metacourse' so as not to break some external enrolment (eg ldap) plugins 2005-08-23 05:33:12 +00:00
defacer 398b3a2b83 Two things:
Mergin bugfix from HEAD:
Site events were being created for $course->id = 1 even when SITEID != 1.

And also:
Allow <span> in event titles, someone may be using multilang there.
2005-08-23 02:48:11 +00:00
moodler 514c862489 Fixed some code formatting while passing through 2005-08-21 15:41:03 +00:00
moodler c8ef1ce0f6 Fix for nasty data corruption bug 3915 2005-08-21 15:40:11 +00:00
mjollnir_ 7e61008580 Clean up IP addresses from getremoteaddr. Otherwise we sometimes get weird results from proxies and inserts into mdl_log and mdl_user fail 2005-08-18 01:44:10 +00:00
martinlanghoff e2d7747f10 Blocks upgrade - reduce memory consumption by a few GB and (postgres only) halve database traffic. 2005-08-18 00:01:39 +00:00
mjollnir_ 05746e64f2 Fixing a postgres error. You can't sort by a field that isn't in the select list when you have distinct 2005-08-17 23:16:34 +00:00
martinlanghoff c53889ff42 LDAP servers being down or unavailable should not prevent login - we now fail with a notice() rather than with an error() 2005-08-17 22:35:45 +00:00
moodler 1a6649ec70 file quiz_responses.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-08-17 13:37:53 +00:00
moodler 69c0d07455 file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-08-17 13:37:53 +00:00
moodler d205e11ef2 file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-08-17 13:37:53 +00:00
moodler 301d3a4509 file grades.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-08-17 13:37:53 +00:00
moodler 7f45789999 file timezones.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-08-17 13:37:53 +00:00
moodler 84c0444376 file enrol_authorize.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-08-17 13:37:53 +00:00
moodler 9547937448 file currencies.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-08-17 13:37:53 +00:00
thepurpleblob bbeffa6ff8 Whoops - forgot to remove (commented out at least) debugging code. 2005-08-17 10:34:54 +00:00
thepurpleblob 64fdd835fb For changing password, default change password was selected rather than
for the auth method actually used by the user.
2005-08-17 10:31:46 +00:00
thepurpleblob 6a239dbe87 Call to clear force change password flag passed $user object rather
than user id, so it would never be cleared.
2005-08-17 10:27:50 +00:00
mindforge d67775e55a Fixed bug #3884. 2005-08-16 12:43:34 +00:00
martinlanghoff 42fd23bc3a Unset the changepassword flag for the _right_ user, even if we are masquerading an account 2005-08-16 03:19:38 +00:00
martinlanghoff 29ad8bfe68 Tell insert record we don't care about inserted id 2005-08-16 00:42:42 +00:00
martinlanghoff 8b7291eff5 Fixed DOS newlines. 2005-08-15 23:21:40 +00:00
patrickslee a3c092c96d Mass cleanup of bad postgres upgrade scripts 2005-08-15 22:30:47 +00:00
martinlanghoff 0b7c884132 Enable reset password functinoality for LDAP and other external auth mechanisms as promised in the auth config page 2005-08-15 22:27:47 +00:00
mindforge cf0371143c Enabling $options->correct_responses for multianswer questions. I.e. highlighting of correct answers can now be turned off. 2005-08-15 11:48:57 +00:00
mindforge d3a126d9c0 Fix for the bug described in the discussions http://moodle.org/mod/forum/discuss.php?d=26526 and http://moodle.org/mod/forum/discuss.php?d=27274 2005-08-15 11:36:43 +00:00
danmarsden 9bb1bdbc9c Fixes for Bug #3876, Bug #3816 2005-08-14 21:56:16 +00:00
moodler 744da696ef Renamed mkdir to makedir to help some high-security blockers 2005-08-14 02:26:13 +00:00
moodler 347b01bcd9 Merged 1.6 version into 1.5 because bugs were fixed 2005-08-13 16:43:45 +00:00
moodler 9c23c88ee6 Merging from HEAD 2005-08-13 16:34:14 +00:00
martinlanghoff 812fe4c5fc Temp table now matches idnumber length with username - thanks to Yves Roy for pointing this out. 2005-08-12 02:30:30 +00:00
martinlanghoff fe1acc35e7 Fix calls to enrol_student() and add_teacher() where nulls were being passed erroneously - credits to jeff graham 2005-08-12 01:47:56 +00:00
patrickslee 83847ae5b1 Fixed a serious bug in table_column() that modified column not having NOT NULL for postgres 2005-08-11 23:50:13 +00:00
martinlanghoff 4fd1373c7e Fix for small syntax error that was hiding debug info from an error msg. #3527 - Credits to cangussu@gmail.com 2005-08-11 23:01:12 +00:00
martinlanghoff 44944d8466 Fix for using dn as idnumber - thanks fo Jeff Graham - http://moodle.org/mod/forum/discuss.php?d=28840 2005-08-11 22:42:46 +00:00
mjollnir_ 04f1658794 When fetching child courses for a metacourse, order by shortname (unless just counting) 2005-08-11 04:24:15 +00:00
mjollnir_ e14b9cd27c Changing the js timer in quiz to call the form by name rather than index. People who have forms in the headers (ie logout buttons) run into problems otherwise 2005-08-11 03:38:08 +00:00
urs_hunkler 6412c0b872 added ".mod-quiz " to three properties because the quiz style was in conflict with other Moodle pages. 2005-08-10 20:39:15 +00:00
martinlanghoff d3af23581d Added the missing $userold, now detecting updates (and pushing them out to LDAP) should work. 2005-08-10 05:34:08 +00:00
patrickslee 80729b01d0 Fixed a bug in postgres block upgrade script messing up with block ids 2005-08-10 05:28:46 +00:00
moodler 8bc776ba4f Slightly mkore reobust in the case where https was already being used
for the whole site.      bug 3848
2005-08-09 15:14:49 +00:00
mjollnir_ 4eb27d4a74 Fixing another group by postgres error. You can't put fields into the select that aren't in the group by unless they're functions like max 2005-08-09 04:50:02 +00:00
bobopinna 494538afb3 Fixed include path for xml2array.class.php 2005-08-08 08:37:55 +00:00
michaelpenne eab678f193 Fixed Bug #3652 - Gradebook catagory detail group view not working. 2005-08-04 22:08:08 +00:00
dhawes 40c61f1f01 merging in fix for bug 3478 2005-08-04 02:24:17 +00:00
stronk7 14f03b6f8b Now forum-start tracking,
forum-mark read and
    forum-prune post
log actions are restored properly.
Part of bug 3582.
(http://moodle.org/bugs/bug.php?op=show&bugid=3852)
2005-08-03 19:49:19 +00:00
stronk7 d65d9f925d Now course-guest, user-login and user-logout
log actions are restored properly.
Plus some problem with double &amp; entities solved.
Part of bug 3582.
(http://moodle.org/bugs/bug.php?op=show&bugid=3852)
2005-08-03 19:02:00 +00:00
stronk7 623b5e548d Now chat-talk log actions are restored properly.
Part of bug 3582.
(http://moodle.org/bugs/bug.php?op=show&bugid=3852)
2005-08-03 18:27:46 +00:00
patrickslee 8585ef8726 Removed/added/moved redundant/missing/misplaced page headers/footers 2005-08-03 00:09:33 +00:00
mjollnir_ 14f872baec Postgres doesn't happily convert NULL to 0 for int fields, so we set it manually. Credit: Patrick Li 2005-08-02 22:47:57 +00:00
mjollnir_ 84325f54bd Adding a length limit to input field in line with db field size 2005-08-02 22:39:49 +00:00
mindforge c735b8fe65 Copied a bugfix from 1.6 that hadn't been synchronized. Fixes bug #3804 2005-08-02 13:32:19 +00:00
ethem f358efc1f4 file postgres7.sql was added on branch MOODLE_15_STABLE on 2005-12-02 11:45:36 +0000 2005-08-02 08:23:52 +00:00
patrickslee f899b4a6d3 Fixed postgres structure problem as in http://moodle.org/mod/forum/discuss.php?d=28077 2005-08-02 04:08:37 +00:00
moodler 5cdb11e46f Implemented accessibiility fix bug 3662 2005-08-01 16:49:32 +00:00
moodler f82b708d08 Merged from HEAD. Not used in STABLE, but doesn't hurt to have them 2005-08-01 08:51:38 +00:00
moodler f9e95ccfbc file lib.php was added on branch MOODLE_15_STABLE on 2005-08-01 08:51:38 +0000 2005-08-01 08:49:33 +00:00
moodler 088e28666f Added sso hook (not used by anything but helps some hacking) 2005-08-01 08:39:09 +00:00
moodler 29d550cc82 Added original word as title to the blacked-out version. This is because
the filter can obscure actual important words by mistake (eg Dickens)
and there needs to be some way to recover the meaning.
2005-07-30 08:54:43 +00:00
moodler 43ba708ecc Bug 3800, affected large backups 2005-07-29 16:57:24 +00:00
stronk7 553ba0a568 file moodlelogo-med-white.gif was added on branch MOODLE_15_STABLE on 2005-11-28 20:22:07 +0000 2005-07-29 15:47:46 +00:00
moodler 28dee4658e file enrol_authorize.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-07-29 14:26:04 +00:00
moodler 4681fd95fe file login.php was added on branch MOODLE_15_STABLE on 2005-08-01 08:51:38 +0000 2005-07-29 08:06:01 +00:00
moodler bf4a11dd4b file expired.php was added on branch MOODLE_15_STABLE on 2005-08-01 08:51:38 +0000 2005-07-29 08:06:01 +00:00
urs_hunkler 303117213e merged from 1.6 2005-07-29 07:15:06 +00:00
urs_hunkler e23430c180 Enlarged the font-size of the calender popup and added the styles to gray out hidden sections on the course page.
My font tag hack to avoid that old font tags overwrite the styles killed all font formating in the resources written with HTML Editor. The Editor formats font sizes with font tags. It also makes pages failing the XHTML tests. Is really no other Editor out?
2005-07-27 19:42:29 +00:00
gustav_delius 87e29596d5 fix for bug 3822 provided by razzor 2005-07-27 17:19:20 +00:00
urs_hunkler c82f9b36bf changed the autolink style from a transparent background to light orange background and an orange underline. 2005-07-26 15:45:41 +00:00
mudrd8mz 4967ac0df4 file enrolperiod.html was added on branch MOODLE_15_STABLE on 2005-10-05 07:50:10 +0000 2005-07-26 08:35:45 +00:00
mudrd8mz 78d5bf65c8 file coursehiddensections.html was added on branch MOODLE_15_STABLE on 2005-10-05 07:50:10 +0000 2005-07-26 08:35:45 +00:00
mudrd8mz 572ac6f799 file courseidnumber.html was added on branch MOODLE_15_STABLE on 2005-10-05 07:50:10 +0000 2005-07-26 08:35:45 +00:00
bobopinna fffc5d6351 Fixed a bug in reaching masteryscore (score are float) 2005-07-26 06:32:47 +00:00
bobopinna 12801f73f7 Fixed a problem in AICC course tracking 2005-07-26 06:18:23 +00:00
bobopinna 97a305e3b2 Fixed a bug in masteryscore evaluation 2005-07-26 06:15:33 +00:00
michaelpenne d9ef8ddef6 removed a condition in an if statement that does not belong. This is another part of the fix for this forum post: http://moodle.org/mod/forum/discuss.php?d=27908 2005-07-25 18:50:39 +00:00
gustav_delius a8181107eb Fix for question numbering provided by razzor, bug 3807 2005-07-25 14:16:36 +00:00
moodler 68bdb2856a Also support language files in install/lang (but just for installation) 2005-07-25 11:25:05 +00:00
stronk7 1fa4ec0345 Escaping some double quotes I added recently... :-(
Merged from HEAD
2005-07-25 09:58:27 +00:00
moodler f7da20c95c On site level, don't bother checking course->guest etc 2005-07-25 09:03:17 +00:00
stronk7 3bd148acbc Now message forum RSS Feeds are using the category. Useful under
some RSS agregators able to group messages.
Credits go to Dmitry Pupinin.
Bug 3654
(http://moodle.org/bugs/bug.php?op=show&bugid=3654)
2005-07-24 23:07:29 +00:00
stronk7 e55407bfd4 Added support to RSS 2.0 categories. Credits go to Dmitry Pupinin.
Bug 3654
(http://moodle.org/bugs/bug.php?op=show&bugid=3654)
2005-07-24 23:02:36 +00:00
stronk7 81013d9eff Added the $Id$ tag 2005-07-24 10:27:29 +00:00
stronk7 bba72664cc Added $Id tag. 2005-07-24 10:01:40 +00:00
ikawhero c34efb3b8c Don't run the cleanup code if we are upgrading from a version that does
not already have an assignment type field. Bug 3801.
2005-07-23 10:49:50 +00:00
gustav_delius 890a6a5be3 The fixes for the item analysis plug-in that were assembled by Jean-Michel, see http://moodle.org/mod/forum/discuss.php?d=27553 2005-07-23 07:46:59 +00:00
defacer 3b80afab63 Fix for bug 3793:
Prevent warning message when configuring a glossary_random block in a
course which has no glossaries.
2005-07-23 00:52:47 +00:00
michaelpenne aef6766f3f Removed development code that accidentally got committed. Sorry. It appears the code was only in mod/lesson/view.php and lang/en/lesson.php 2005-07-22 22:01:54 +00:00
michaelpenne 3793147e59 removed some lang entries that do not belong 2005-07-22 21:58:43 +00:00
michaelpenne 128660712b removed some lang entries that do not belong 2005-07-22 21:46:47 +00:00
gustav_delius ffd834a5c2 Resetting the timout counter to avoid the timeouts reported at http://moodle.org/mod/forum/discuss.php?d=24790#129431 2005-07-22 20:40:31 +00:00
moodler d7387d3c3f Reverting bad version number to avoid errors (bug 3798) 2005-07-22 16:55:58 +00:00
ikawhero c2960fa279 file quiz_responses.php was added on branch MOODLE_15_STABLE on 2005-10-28 03:10:43 +0000 2005-07-22 11:41:11 +00:00
gustav_delius 3c4b7700e5 Improvements contributed by Jean-Michel Vedrine, see http://moodle.org/mod/forum/post.php?reply=130818.
- you can change # of attempts per page displayed on screen
- you can download results to Excel/text file, including detailed grades if you check this option.
2005-07-22 09:25:11 +00:00
moodler a3071d58ac Deleteing mistakenly-added currencies table from enrol_authorize 2005-07-22 07:25:49 +00:00
moodler a6c9107b45 Checked in fix for bad version from yesterday 2005-07-22 07:12:31 +00:00
moodler a698ecd735 Fixed dates 2005-07-22 07:04:27 +00:00
moodler 015eeaaccb Whoooooops! Fixing mistaken date from yesterday!!! 2005-07-22 07:03:04 +00:00
moodler 744d60e6bb Ethem made some mistakes here
- made some new tables and other changes for this module in STABLE

   - used a database to store language strings

   - made changes that required CORE changes in STABLE to work


I'm resetting this module to how it was in Moodle 1.5 ... Ethem if you
could reapply any FIXES only to this module then we can look at how to
add currencies properly in 1.6.
2005-07-22 06:57:54 +00:00
stronk7 691a3375a2 Now paging of older versions is showed and working properly. It was
really buggy! One string added to wiki lang file too. Bug 3750.
(http://moodle.org/bugs/bug.php?op=show&bugid=3750)
2005-07-21 23:38:07 +00:00
stronk7 ade1548ded Try to maintain user preferences synchronised between DB and $USER. 2005-07-21 18:46:42 +00:00
moodler d928302750 Use clone when copying this variable, just to be safe. 2005-07-21 16:43:30 +00:00
moodler 9bb3bc4e98 Run the online assignment cleanup code automatically on an upgrade. (SE) 2005-07-21 11:00:34 +00:00
moodler 6be6289f54 Fixes database errors from faulty Journal to Online Assignment upgrade code
from 1.4 to 1.5.1
Script can be run at any time.
(SE)
2005-07-21 10:59:29 +00:00
moodler 0f7f8271ba file oacleanup.php was added on branch MOODLE_15_STABLE on 2005-07-21 10:59:29 +0000 2005-07-21 10:28:30 +00:00
thepurpleblob ac00624f97 Fixed bug where path to exported file could be incorrect in non en languages. 2005-07-21 09:25:29 +00:00
thepurpleblob 96157e7986 Tidy up of import/export function layout to match coding standard 2005-07-21 08:48:48 +00:00
defacer b586f7cda2 All this time, table_column() didn't handle CHAR fields correctly! :o 2005-07-20 17:42:55 +00:00
moodler 7c109f7b2c file grades.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-07-20 17:29:29 +00:00
defacer 18e4e2d5c7 Fix for bug 3637:
Certain obscure cases of using PHP accelerators (probably has to do with
OS and PHP version as well, but it's not certain) caused an error to be
displayed when importing data from "local pagelib" files with "debug" turned
on. The error was bogus, but error() stopped the page from being displayed.

Thanks to James P. Dugal the from University of Louisiana at Lafayette for
identifying and helping to solve the problem!
2005-07-20 17:22:13 +00:00
moodler c94bf7e55a Whoops, forgot to check this in 2005-07-20 16:36:50 +00:00
thepurpleblob 486ca471fb Remove long answer check - does not seem to be requires as db field is 'text'
Fixed notices caused by uninitialised $question variable
2005-07-20 08:01:17 +00:00
moodler 1c36cd23bd Fixed paging on forum search 2005-07-20 06:42:02 +00:00
moodler 4452e1ace9 Fix for finding multi-line links in HTML code
Thanks German!  http://moodle.org/mod/forum/discuss.php?d=27630
2005-07-20 01:55:00 +00:00
defacer 309ed997b3 Slight "correctness" correction. 2005-07-19 23:43:42 +00:00
thepurpleblob 5c15bd839f Empty feedback array added for multiple choice questions, needed by underlying
quiz library.
Still some notices in this that need looking at
2005-07-19 07:59:16 +00:00
patrickslee 9021f8168a Fixed when $cm is NULL, postgres still reports error. From HEAD 2005-07-18 22:41:48 +00:00
ethem 1cfdb3c2c9 httpsrequired for credit card pages. 2005-07-18 17:12:18 +00:00
michaelpenne 6b8fdfd03e Fixed bug with displaying the gradebook when it is only set to show percent to students
as described here http://moodle.org/mod/forum/discuss.php?d=27521
thanks to Nikki Macfarlane for detailed info
2005-07-18 15:51:44 +00:00
ethem 4b4f3038e1 Merged updates from stable 2005-07-18 09:32:33 +00:00
martignoni 6a9c9a090b Merge from head 2005-07-16 13:10:15 +00:00
mindforge d4a87bc0a1 Synchronized with 1.6 version. 2005-07-16 11:17:19 +00:00
mindforge 5617a70288 Removed redundant ->order field from randomsamatch. 2005-07-16 11:13:43 +00:00
mindforge 08bdd05d61 Made sure that the answers are compared in the order they are provided by the question editor (ORDER BY id ASC), so that an asterisk can be used to catch any incorrect responses in order to provide feedback. 2005-07-16 10:47:39 +00:00
defacer 73b60981af Robustness check from Marko Korhonen (bug 3751):
Don't print a warning if $rss->items is empty.
2005-07-16 00:16:26 +00:00
moodler 9f02856794 Bump! 2005-07-15 19:55:02 +00:00
moodler 64a129a4f6 Checking in changed files. Wierd merge but files all look OK :-/ 2005-07-15 19:46:48 +00:00
moodler 7e6bc94ad2 This merge went wierd ... files with no diffs coming up as changed 2005-07-15 19:31:05 +00:00
moodler b498108933 Updates 2005-07-15 19:19:36 +00:00
moodler 472a880aac Merged updates from head 2005-07-15 18:50:16 +00:00
moodler d0f6d395cf Merged some changes from HEAD 2005-07-15 18:41:01 +00:00
moodler 5beaf7799d Added MP3 player 2005-07-15 18:40:04 +00:00
moodler 23d27ffd09 Added Andy's latest MP3 player (fixes the ID3 non-display problem) 2005-07-15 18:37:15 +00:00
moodler 6a0ecb49b9 Added release notes for 1.5.2 2005-07-15 18:22:58 +00:00
moodler 1989dfae9c Assignment is now a good citizen and will install new submodules nicely 2005-07-15 17:26:21 +00:00
moodler 1ef5fb3886 Added capability for Moodle to upgrade activity submodules automatically 2005-07-15 17:22:51 +00:00
moodler 78275891b4 Avoid using $USER->lastIP, to avoid wierd case problem with different db
http://moodle.org/mod/forum/discuss.php?d=18662
2005-07-15 16:30:02 +00:00
moodler 036110e055 Reduced fields for config_plugins from 255 to 100
http://moodle.org/mod/forum/discuss.php?d=26794#129389
2005-07-15 13:03:20 +00:00
stronk7 b7ab75c6bf Added .required to show some boxes properly. 2005-07-15 11:36:35 +00:00
stronk7 8886ee0942 Updated preventpassindb to work properly.
(sometimes db password wasn't being updated
to 'not cached' properly).
2005-07-15 11:11:08 +00:00
stronk7 5d789427fe Bump. Now signup page is 100% HTTPS if required. 2005-07-15 00:25:27 +00:00
stronk7 c11e28959d Bump. Now change password page is 100% HTTPS if required. 2005-07-15 00:16:30 +00:00
stronk7 87d7fdc584 Bump. Now forgot password page is 100% HTTPS if required. 2005-07-15 00:09:52 +00:00
ikawhero 0e48704206 Use absolute path name for include. Bug 3660. 2005-07-15 00:04:08 +00:00
stronk7 a4e53fb1f4 Added HTTPSPAGEREQUIRED support to some mail functions. 2005-07-15 00:00:07 +00:00
stronk7 5e7012bc32 Bump. Now login page is 100% HTTPS if required. 2005-07-14 22:52:48 +00:00
stronk7 8fdba9a133 Core changes finished. Now javascripts URLs support
HTTPSPAGEREQUIRED properly. Ready to start protecting pages.
2005-07-14 22:33:45 +00:00
stronk7 7facd141a8 Some minor changes in print_header() and page_id_and_class()
to dinamically support HTTPSPAGEREQUIRED pages.
2005-07-14 22:27:59 +00:00
stronk7 9c87a260b6 HTTPSPAGEREQUIRED and CFG->httpswwwroot added to
support 100% SSL pages.
2005-07-14 20:09:10 +00:00
urs_hunkler 8ae05f2387 fixed Bug #3529 - Round corners break slightly in a block with an optional title bar in edit mode. samuli's proposal was perfect. 2005-07-14 19:48:03 +00:00
stronk7 4de514f468 Add the httpsrequired() function to be 100% SSL in some pages. 2005-07-14 19:39:23 +00:00
urs_hunkler 5d87b5d826 added ".mod-scorm" before all properties to focus their action on the scorm module. Otherwise the properties can produce strange effects at other moodle pages. 2005-07-14 19:04:34 +00:00
urs_hunkler c6dd61eb2d reduced the lineheight of the links in the sideblock to the same size the text. 2005-07-14 18:01:51 +00:00
urs_hunkler b70ba1648d removed unused files 2005-07-14 16:32:06 +00:00
mindforge 83ba3e7007 Fixed a redundant use of ->order. 2005-07-14 16:26:54 +00:00
urs_hunkler 172d47a14c updated the theme. optimized it for display on pda and smartphone with the browser configured to rearange the page elements among each other. Tested on a Sony TH55 PDA with the NetFront browser. 2005-07-14 16:26:25 +00:00
moodler c54473ea39 Merged fix for bug 3181 from head 2005-07-14 16:01:23 +00:00
stronk7 191e4336d1 One help string corrected. 2005-07-14 15:43:28 +00:00
stronk7 2a0bb0af92 Interface for SC#106 2005-07-14 15:20:40 +00:00
stronk7 208af78ccd SC#106 2005-07-14 15:16:03 +00:00
mindforge 11cbf773ea Minor improvements to match and multianswer. 2005-07-14 12:04:55 +00:00
moodler 1ae1e84ec5 Allow Altavista in as guest too 2005-07-14 04:16:04 +00:00
moodler 4714df2e67 file editingacomment.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:41 +0000 2005-07-14 02:38:11 +00:00
moodler 97d8cdf4f6 file editingacomment.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:38 +0000 2005-07-14 02:38:11 +00:00
julmis f7a669d89c Do not intercept ctrl + v in gecko and let browser's own editor to handle it.
It's a bubblegum fix but partly takes care of pasting problem in Mozilla/Firefox
2005-07-13 20:52:12 +00:00
bobopinna f8a6a83698 The new xml parsing class 2005-07-13 20:13:45 +00:00
bobopinna 28a774b13e Fixed some manifest parsing problems and a structure display bug 2005-07-13 20:11:56 +00:00
gustav_delius 901d0f94a8 old version tried to use $CFG before loading config.php 2005-07-13 16:55:15 +00:00
moodler e80ca6fb8d Allow Babelfish in to translate 2005-07-13 16:40:48 +00:00
moodler b8b0f6dbe9 file regrading.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:41 +0000 2005-07-13 16:25:42 +00:00
moodler 687a4c0557 file regrading.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:38 +0000 2005-07-13 16:25:41 +00:00
moodler c322b22437 Allow userid to be left out when calling this page 2005-07-13 14:20:29 +00:00
mindforge be66bb9645 Fix for the multiple addslashes issue described in http://moodle.org/mod/forum/discuss.php?d=27171#128398 2005-07-13 12:43:41 +00:00
dlnsk b6c8102625 Added 2005-07-13 08:12:12 +00:00
michaelpenne 9aca363c1a Bug 3531 fixed 2005-07-12 23:09:47 +00:00
skodak 6bb0231b7b fixed up link when selecting 2005-07-12 19:26:59 +00:00
skodak acef19a1e7 fixed submission logging, email notification for online 2005-07-12 19:14:23 +00:00
skodak 42dc0e903b removed file pop-ups 2005-07-12 18:58:01 +00:00
skodak 14637fc14f removed file pop-ups 2 2005-07-12 18:51:45 +00:00
moodler 0b4362228b Gah, now it's fixed properly 2005-07-12 17:09:48 +00:00
moodler 9abb5a2390 file nattachments.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:41 +0000 2005-07-12 16:59:40 +00:00
moodler 003991588b file nattachments.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:38 +0000 2005-07-12 16:59:40 +00:00
skodak 7f8337032d removed file pop-ups 2005-07-12 15:36:08 +00:00
moodler c41a30806a Fixed my fix from earlier 2005-07-12 15:09:48 +00:00
skodak 54902ff056 fixed html emails 2005-07-12 14:35:29 +00:00
skodak 854e6f0b2c unset unmodified text fields SC#140 + popup fix 2005-07-12 13:06:56 +00:00
moodler 641649b051 FIxed bug 3383 ... intro texts no longer center-justified in standard 2005-07-12 12:40:00 +00:00
moodler bc6c0782e9 Fix for problem with lang names containing 8 Thanks Eloy 2005-07-12 12:26:55 +00:00
moodler 0ef1487687 Fix for bug 3736 2005-07-12 11:36:50 +00:00
moodler e1ace7dd20 Trim comment to remove extra space before using in Javascript statements 2005-07-12 09:48:42 +00:00
moodler 7e78d96097 Better yet, don't update student text at all 2005-07-12 09:03:29 +00:00
moodler 27619c6598 FIxed the problem with online assignments containing quotes 2005-07-12 09:00:27 +00:00
skodak 6ba567ac63 new parameter forcedownload 2005-07-12 08:01:59 +00:00
moodler 5bccb31ec7 Escaped text output during relinking, as per SC 139 2005-07-12 07:53:02 +00:00
moodler efed457566 Added escaping of possible raw HTML displayed to admins SC139 2005-07-12 07:42:43 +00:00
moodler f20d4d22e9 Journal is disabled by default on new installations 2005-07-12 07:10:41 +00:00
moodler e92893695d Corrected the journal -> Assignment upgrade!!! :-( 2005-07-12 06:56:22 +00:00
moodler fa19bf31ea file agreeassessments.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:41 +0000 2005-07-11 16:37:50 +00:00
moodler 5e816a727e file agreeassessments.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:38 +0000 2005-07-11 16:37:50 +00:00
gustav_delius ae89234a65 Undid some of Julian's changes that refer to a non-existent database field. 2005-07-11 14:20:42 +00:00
moodler 65c8ff4d85 file assessmentend.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:41 +0000 2005-07-11 04:48:19 +00:00
moodler 8a699d416d file assessmentend.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:38 +0000 2005-07-11 04:48:19 +00:00
skodak c1bf1d81a9 fixed resubmit logic and students can review their online assignment through file.php 2005-07-10 18:40:55 +00:00
skodak 0c2a8be918 fixed bug 3606, thanks Ilshat Fattakhov 2005-07-10 17:30:32 +00:00
moodler 0e5947dc2f file showinggrades.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:41 +0000 2005-07-10 15:27:08 +00:00
moodler 231765c8ba file showinggrades.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:38 +0000 2005-07-10 15:27:08 +00:00
mindforge fe97411051 Improved error message, again. 2005-07-10 12:53:19 +00:00
mindforge cdb21087da Fixed an error message that contained a reference to an old object. 2005-07-10 12:42:42 +00:00
stronk7 a74f39abcb The hardcode limit of 1000 was breaking long pages display in Moodle.
I've changed it to a variable limit depending of the page lenght. Bug 3039.
(http://moodle.org/bugs/bug.php?op=show&bugid=3039)
2005-07-09 16:39:46 +00:00
skodak 82ff36e758 fixed $posthtml - see bug#3868 2005-07-09 13:36:38 +00:00
moodler 1d68b9b631 file handlingofretakes.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:40 +0000 2005-07-09 13:09:37 +00:00
moodler 0c51f82bba file handlingofretakes.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:37 +0000 2005-07-09 13:09:36 +00:00
skodak eaf0b2d89f fixed grading bug#1517 and some other typos 2005-07-09 12:31:01 +00:00
skodak 47bd45c3f7 fixed 'AS' for PostgreSQL 2005-07-09 09:40:46 +00:00
skodak 0ab0450f92 fixed ';;' 2005-07-09 09:03:15 +00:00
skodak de59c77a9b fixed PostgreSQL warning 2005-07-09 08:21:54 +00:00
skodak 9e6091197b fixed s() p() for values false, number 0, and string '0'; '' from s() caused troubles in PostgreSQL 2005-07-09 07:12:41 +00:00
skodak ca478f374d fixed resubmit logic 2005-07-09 06:59:44 +00:00
moodler fe859633e8 file navigation.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler 6e66067f5f file analysistable.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler 2c5ed3d234 file reportselector.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler 58314eeec4 file mods.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler 7c789e82c1 file mediaplayers.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler 75f8ac4310 file forceplugins.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler efda10c098 file index.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler 86756eef37 file responsestable.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler 9ccba19a12 file outputformat.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler b26eb35a28 file shownextquiz.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
mindforge 42c19f0e8d Fix for bug #3707. 2005-07-08 11:37:55 +00:00
mindforge c1b6ab8118 Fixed bug described in http://moodle.org/mod/forum/discuss.php?d=26880 (missing addslashes before DB insert). 2005-07-08 10:17:27 +00:00
stronk7 4027500f9d Updated to 1.5.1
Merged from HEAD
2005-07-08 08:17:13 +00:00
moodler 52bc379ce5 Added HR 2005-07-08 07:43:49 +00:00
moodler 11fe3a4d74 Change && to AND to help PostgreSQL 2005-07-08 07:40:57 +00:00
moodler 5f2099b846 Merged from HEAD 2005-07-08 07:32:09 +00:00
defacer df1cbe9f48 Three improvements:
1. $nomoodlecookie = true. I just found out about this undocumented(?) hack(?)
   in lib/setup.php which is the perfect way to suppress some warnings. We
   don't need a session cookie for the chatd.

2. If allow_call_time_pass_reference is Off, socket_getpeername can't work.

3. Suppress "call time pass by reference is deprecated" messages for
   socket_getpeername, we don't have any choice here.
2005-07-08 03:50:30 +00:00
gustav_delius a26a0e25dd A better fix for bug 3520 2005-07-08 00:14:13 +00:00
stronk7 1ab72c8499 Latest changed applied.
Merged from HEAD (for 1.5.1)
2005-07-07 22:43:37 +00:00
gustav_delius 4fad07671c Fixed bug 3520 2005-07-07 18:07:09 +00:00
moodler 2e6e9b8bdb Updated release to 1.5.1 2005-07-07 17:42:30 +00:00
moodler ec96bbc3e9 Added new files from HEAD 2005-07-07 17:38:15 +00:00
moodler 1e41ee920e Adding new files from HEAD 2005-07-07 16:14:38 +00:00
moodler 1ede1981b8 Added new files from HEAD 2005-07-07 16:00:50 +00:00
moodler 437a4bf65b New files from HEAD 2005-07-07 15:59:09 +00:00
moodler 2f495119f9 Updated from stable 2005-07-07 15:57:38 +00:00
moodler d00727cc52 Added from HEAD 2005-07-07 15:57:12 +00:00
moodler f0c3da1e7e Updates copied from HEAD 2005-07-07 15:49:51 +00:00
moodler 798488d5ff file maxattempts.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:40 +0000 2005-07-07 15:40:17 +00:00
moodler 16c346df93 file maxattempts.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:37 +0000 2005-07-07 15:40:16 +00:00
gustav_delius f29752571b Added another 'continue' (or 'close this window') button towards the top of the review page, as requested in bug 3695 2005-07-07 14:53:15 +00:00
gustav_delius 73f25e0fca removed php notice 2005-07-07 14:51:54 +00:00
gustav_delius d404868d2b Quiz title and attempt number are now shown on one line as requested in bug 3696 2005-07-07 14:39:30 +00:00
gustav_delius b974afac9c Can now delete answers in multiple choice questions, fixing bug 3707 2005-07-07 14:19:55 +00:00
moodler c9ab45220c file modattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-07-07 08:58:29 +00:00
moodler e9bd42a226 file modattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:02 +0000 2005-07-07 08:58:29 +00:00
moodler c3e7db99f9 file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:29:55 +0000 2005-07-07 08:37:13 +00:00
moodler 83fade0c0a file timezones.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:29:55 +0000 2005-07-07 08:37:13 +00:00
moodler 004b18ddb1 Merged changes from HEAD 2005-07-07 06:32:55 +00:00
gustav_delius c5a48a8908 There was a bug when a student reattempted a quiz based on a previous attempt that was already correct. Now fixed. 2005-07-06 22:34:45 +00:00
gustav_delius 8264da3c50 Fixed bug 3684 2005-07-06 19:26:19 +00:00
gustav_delius 5cbc7a8b67 Get rid of a PHP notice 2005-07-06 18:00:56 +00:00
moodler f022a9ba9c file overallocation.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:06 +0000 2005-07-06 16:01:33 +00:00
moodler ecf0c6af79 file overallocation.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:03 +0000 2005-07-06 16:01:32 +00:00
skodak c6dba19212 added word count display 2005-07-06 14:02:58 +00:00
moodler db83128e9d Switching off image border for now 2005-07-06 13:25:15 +00:00
moodler 8d3b909251 Fixed a link in forum post footer 2005-07-06 13:17:32 +00:00
moodler c01706d2d9 file assessmentstart.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:38 +0000 2005-07-06 11:10:49 +00:00
moodler c550d531b9 file submissionstart.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:38 +0000 2005-07-06 11:10:49 +00:00
moodler 1c63afd97e file submissionend.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:38 +0000 2005-07-06 11:10:49 +00:00
moodler e86ac958ef file releasegrades.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:38 +0000 2005-07-06 11:10:49 +00:00
moodler 89a44c34ba file assessmentend.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:38 +0000 2005-07-06 11:10:49 +00:00
moodler 50bdf52662 file size.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:54 +0000 2005-07-06 10:49:27 +00:00
moodler 694df151b4 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:54 +0000 2005-07-06 10:49:27 +00:00
skodak 445ec0d7e5 max upload size not shown to students 2005-07-06 10:14:22 +00:00
skodak 033cc8a223 Bug #3596 - Secureforms yes breaks online assignment 2005-07-06 09:51:37 +00:00
skodak f497c755aa compatibility hack for Moodle Cron, cookies not deleted, but set to "deleted" 2005-07-06 08:40:52 +00:00
gustav_delius 9182889ff9 In the past questions on the right hand side of the editing screen were previewed with the default settings whereas those on the left hand side were previewed with the quiz settings. That did create confusion among users so now questions will always be previewed with the quiz settings. 2005-07-06 07:32:59 +00:00
urs_hunkler 851ae37718 added class for userpic for better formatting via CSS in 2 additional lines 2005-07-06 06:54:58 +00:00
urs_hunkler 82aac29073 added class for userpic for better formatting via CSS 2005-07-06 06:31:20 +00:00
moodler 09d4003426 Updated tags file 2005-07-06 06:09:53 +00:00
moodler 75129c58b5 file lessondefault.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-07-06 05:56:21 +00:00
moodler f2f438ac79 file lessondefault.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:02 +0000 2005-07-06 05:56:21 +00:00
defacer 4830bb4c53 Fixed the annoying "...and the 1 Journals you had..." message when you have
no Journals at all, because I was tired of seeing it.

count(false) is 1 and not 0.
2005-07-06 00:46:14 +00:00
defacer dca2e99977 Fix for bug 3616:
layout-table wasn't closed correctly for teachers and guests.
2005-07-06 00:35:37 +00:00
moodler 98774fcb6b file size.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-07-05 18:04:27 +00:00
moodler 75108389bc file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-07-05 18:04:27 +00:00
moodler 677c077839 file advancedsettings.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:42 +0000 2005-07-05 18:02:45 +00:00
moodler 3719d2e2ec file cost.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:42 +0000 2005-07-05 18:02:45 +00:00
moodler e0b6f1b499 file cvs.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:41 +0000 2005-07-05 18:00:10 +00:00
moodler 6ac4900f6c file features.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:41 +0000 2005-07-05 17:59:24 +00:00
moodler ab4f0d249b file upgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:41 +0000 2005-07-05 17:58:32 +00:00
skodak e13b1d135f disabled cookie check when alternate login url used 2005-07-05 17:14:29 +00:00
skodak d994661015 code cleanup - see SC#129 2005-07-05 16:59:29 +00:00
stronk7 561216b9c5 With the latest feature I introduced to filterlib (the ability
to specify a replacement phrase instead of printing the linked
phrase I introduced a bug about text being showed with the
case of the concept instead of the case of the text under case
insensitive filtering. Detected and solved now. Bug 3688.
(http://moodle.org/bugs/bug.php?op=show&bugid=3688)
caseCVS: ----------------------------------------------------------------------
2005-07-05 16:39:50 +00:00
moodler 7b78a84785 file maxhighscores.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-07-05 13:12:42 +00:00
moodler 44af81f7a7 file maxhighscores.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:02 +0000 2005-07-05 13:12:41 +00:00
bobopinna 0ec5a6d1f8 Fixed an API Initialization error 2005-07-05 09:33:01 +00:00
bobopinna 4eaf7d4cb2 Changed scoid passing method from SESSION to POST 2005-07-05 09:13:57 +00:00
bobopinna d5567f7328 Fixed a typo 2005-07-05 09:13:07 +00:00
bobopinna d63eab1287 Updated RoadmaP 2005-07-05 09:12:01 +00:00
bobopinna ecf7b75f77 Fixed a problem with old tracking data removing 2005-07-05 09:11:12 +00:00
skodak a6e2a2300a fixed comments - SC #61 2005-07-05 08:27:55 +00:00
skodak 85b6606215 fixed searching - SC #61 2005-07-05 08:17:29 +00:00
skodak e012c1f164 initialize array $auth_options SC #127 2005-07-05 07:58:38 +00:00
skodak 7a6b6d5f19 added validation for themename - see SC #101 2005-07-05 07:49:30 +00:00
skodak 6049058f5e fixed problem when removing due date or adding due date to existing assignment 2005-07-05 06:28:53 +00:00
skodak 88cfea17a9 code cleanup - see SC #110 2005-07-05 05:44:23 +00:00
moodler 3cb97ea9fb file size.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:03:08 +0000 2005-07-05 02:50:03 +00:00
moodler 1cd5223e73 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:03:08 +0000 2005-07-05 02:50:03 +00:00
moodler f8f2157fa1 file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:03:08 +0000 2005-07-05 02:50:03 +00:00
stronk7 e07fcc6ef8 Bump. New and improved relinking system available.
No changes at DB layer so I'm free to update the version
and maintain it syncronished with HEAD, isn't it?
2005-07-04 22:31:04 +00:00
stronk7 bec56a397f Now workshop are working under the new system to relink. Bug 3678.
(http://moodle.org/bugs/bug.php?op=show&bugid=3678)
2005-07-04 22:23:00 +00:00
skodak e940f40580 Removed text cleanup from print_textarea(), text from students must be cleaned before display - not here, because it interferes with resources, books etc. 2005-07-04 20:22:57 +00:00
skodak 3fa1abaa40 new PARAM_SAFEDIR - fast cleaning for directories used in include() and require() such as themes, plug-ins, formats... 2005-07-04 19:48:26 +00:00
stronk7 69731e2cc5 Improved automatic relinking in backup and restore. Credits go to skodak.
Complete refactoring of the system that was really awful (my fault!).
Now everything is in its place and working like a charm, making things really
easier to be implemented and amplied. Bug 3678
(http://moodle.org/bugs/bug.php?op=show&bugid=3678)
(http://moodle.org/mod/forum/discuss.php?d=26530)
2005-07-04 17:34:24 +00:00
skodak 6cd4abdac1 fixed output when config-dist.php called directly SC #779 2005-07-04 17:00:46 +00:00
urs_hunkler 11b1927bd4 I deleted the table property "cellspacing=10", because it made the loginpage look different in MSIE (with spaces between the cells) and in Firefox (without spaces between the cells). Some themes therefore looked broken in MSIE. 2005-07-04 16:09:07 +00:00
moodler c8aec2b7bb file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-07-04 12:57:30 +00:00
moodler a73917523e file timed.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler aa31415e59 file width.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler 1c4bcba381 file slideshow.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler a7d9cb49e0 file practice.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler 5e99e6706d file usepassword.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler 11d03ce9ab file review.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler 4d7bf254fc file tree.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler 55d79da54f file password.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler a00e29d60a file lessondefault.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler 06114e7b15 file height.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler bd97afd006 file maxtime.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler 8fe324726c file maxhighscores.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler 4ece33a9a2 file deleteattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler 6e1af255df file highscores.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler c008505902 file bgcolor.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler babcb224b4 file modattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler 4fbdff9cde file displayleft.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler 1e563d8e1e file ongoing.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler afb96b0d7f file custom.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler 79bf17b640 file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:38:15 +0000 2005-07-04 08:28:45 +00:00
skodak cbac6369e3 typos in switch - semicolon after 'main' 2005-07-04 07:07:44 +00:00
moodler 0365831211 file size.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:05 +0000 2005-07-04 05:05:32 +00:00
moodler 85cedef306 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:05 +0000 2005-07-04 05:05:32 +00:00
moodler 6bf829136a file size.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:03 +0000 2005-07-04 05:05:31 +00:00
moodler 602174a3dc file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:03 +0000 2005-07-04 05:05:31 +00:00
bobopinna 9a62345785 Fixed a bug in report counting 2005-07-03 07:12:36 +00:00
bobopinna b36185320d Fixed a problem with altered chars in UTF-8 2005-07-03 07:11:44 +00:00
skodak 6c2ba19cdd not used anymore, please fix SC #99 before any use 2005-07-02 20:23:36 +00:00
moodler 356f30227a file exceptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:49 +0000 2005-07-01 23:22:39 +00:00
moodler 4689a3cd66 file student.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:49 +0000 2005-07-01 23:22:39 +00:00
moodler 4aa8faabdb file teacher.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:49 +0000 2005-07-01 23:22:39 +00:00
moodler e9ea8708b6 file preferences.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:49 +0000 2005-07-01 23:22:39 +00:00
michaelpenne b3faa81ad1 Fixed a bug with the grade_get_module_link where wouldn't return any results
Fixed styles for grade tables to be class="grades" for both category and overall view
Fixed styles with overall view to alternate row styles everyline rather than every three
2005-07-01 20:06:07 +00:00
moodler f2760822ab file size.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-07-01 11:39:45 +00:00
moodler 727ad2124d file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-07-01 11:39:45 +00:00
mindforge 56459ea6e1 Fixed problem with automatic feedback, when 3x 33.33% didn't yield "Correct" but "Partially correct". Now the displayed (rounded)values are used, so the text should be in sync with the awarded grade. See also http://moodle.org/mod/forum/discuss.php?d=26584 2005-07-01 09:19:05 +00:00
defacer a328acd2f2 Improving Eloy's radio- and checkbox- generating functions to automagically
use <label>s with unique ids for improved usability. See discussion at
http://moodle.org/mod/forum/discuss.php?d=26139
2005-07-01 03:52:59 +00:00
martinlanghoff 6f095c04a9 enrol/ldap: (merge from HEAD) bugfixes suggested by Jeff Graham here http://moodle.org/mod/forum/post.php?reply=124170 -- fixes course creation not pulling summaries, form errors in ldap_search_sub, calls to deprecated blocks_get_default_blocks() and DB errors when inserting new enrolments. With these fixes, it may even work. 2005-07-01 02:51:15 +00:00
mindforge 0591a08cf1 Fixed problem with label tag in single answer multichoice questions. 2005-06-30 07:51:44 +00:00
defacer dd05085802 Getting the hardwired <i> out of the "post edited by" HTML and putting it
in CSS. I have been meaning to do this for something like 3 eons now...
2005-06-29 23:59:41 +00:00
defacer 8d8c444f9d Tiny visual improvement 2005-06-29 23:58:15 +00:00
michaelpenne 9f0b60ed6f Forgot to add a require for lesson's locallib.php and change a require from quiz's lib.php to quiz's locallib.php 2005-06-29 23:11:03 +00:00
michaelpenne 603a35322a Numerical import was still looking at min/max arrays. I changed it so numerical will now subtract the tolerance from the answer to get the min and add the tolerance to the answer to get the max 2005-06-29 23:05:28 +00:00
michaelpenne 9160e17321 FIXED: was calling an old quiz class name for importing. Updated it to call the new class name 2005-06-29 23:05:13 +00:00
michaelpenne 6deece3386 Display bug with lesson branch tables with slideshow mode on 2005-06-29 18:49:01 +00:00
stronk7 7992d2032c Now the restore form page is a bit more easy to use. Bug 1430.
(http://moodle.org/bugs/bug.php?op=show&bugid=1430)
2005-06-29 18:23:48 +00:00
michaelpenne fb2371cea7 FIXED: at End of Lesson with review on produced two warnings. Now they are gone 2005-06-29 18:11:01 +00:00
moodler 08f89eca4d file category.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000 2005-06-29 17:50:53 +00:00
moodler cfb1b6cc26 file exceptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000 2005-06-29 17:50:53 +00:00
moodler f90015cf76 file letter.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000 2005-06-29 17:50:53 +00:00
moodler 4b37b038ca file weight.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000 2005-06-29 17:50:53 +00:00
moodler 096da37850 file student.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000 2005-06-29 17:50:53 +00:00
moodler 6f738c12bd file teacher.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000 2005-06-29 17:50:53 +00:00
moodler dc7ebee343 file preferences.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000 2005-06-29 17:50:53 +00:00
moodler 57d3f3d924 file autocontinue.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler f50c21e36a file browsemode.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler c3633061ff file height.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler c1f0c0b5fa file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler 20c2b54542 file width.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler 8e0508945c file summary.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler f2a26e4d66 file package.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler e895355a17 file grademethod.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler 1941ca6586 file rqp.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:40 +0000 2005-06-29 17:50:48 +00:00
moodler d64da4713d file penaltyscheme.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:40 +0000 2005-06-29 17:50:48 +00:00
moodler 2b5f8fd827 file questionsperpage.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:40 +0000 2005-06-29 17:50:48 +00:00
moodler ea76c04ee9 file penalty.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:38 +0000 2005-06-29 17:50:48 +00:00
moodler c63db8b61d file itemanalysis.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:38 +0000 2005-06-29 17:50:48 +00:00
moodler a92af1e3ad file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:38 +0000 2005-06-29 17:50:48 +00:00
moodler 2c5b0f8154 file adaptive.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:38 +0000 2005-06-29 17:50:48 +00:00
moodler 1d4392b33f file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:38 +0000 2005-06-29 17:50:48 +00:00
moodler 44501b674c file trackingtype.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:38 +0000 2005-06-29 17:50:45 +00:00
moodler ca02fba3e5 file authchange.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:37 +0000 2005-06-29 17:50:44 +00:00
moodler 25d21f0821 file category.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:37 +0000 2005-06-29 17:50:44 +00:00
moodler 91cbd9b2ab file cost.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:37 +0000 2005-06-29 17:50:44 +00:00
moodler 54c5330c1a file commentinline.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:37 +0000 2005-06-29 17:50:42 +00:00
moodler aa004b4cfe file types.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:37 +0000 2005-06-29 17:50:42 +00:00
moodler 7fd73b41ed file trackingtype.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:37 +0000 2005-06-29 17:50:42 +00:00
stronk7 4eb4ad04db Now the restore form page is a bit more easy to use. Bug 1430.
(http://moodle.org/bugs/bug.php?op=show&bugid=1430)
2005-06-29 16:56:23 +00:00
stronk7 3fc29386af SC#126 2005-06-29 16:14:40 +00:00
moodler b38c5f2aaf file assessmentofexamples.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 29a698998b file submissionofexamples.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 01c47c874b file selfassessment.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler e19f672835 file analysisofassessments.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler c7ac64d2db file gradingassessments.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 346dd8ca80 file leaguetable.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler ec60a0d59a file finalgrades.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 398d4a8db2 file ungradedassessments_teacher.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler b514da01a0 file nelements.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 5c0375b658 file elements.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 12d4023e43 file resubmit.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler dee7fd6048 file gradingsubmissions.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler e685ded405 file overallocation.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 20f32ed028 file breakdownoffinalgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 671d4819bc file includeteachersgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 65b95660c0 file nassessmentsofteachersexamples.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler c8d01fb2e3 file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 0168d3c716 file calculatingfinalgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler c991030e0a file assignmenttype.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 1dcef80b9f file editingacomment.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler a6c50876a3 file includeself.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler ed103c1a63 file ungradedassessments_student.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 8982c7d343 file addingacomment.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 63e9fa8bdb file specimen.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler e1f41e2260 file grading.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler d928959877 file managing.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 0507e988a6 file showinggrades.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler e12cda81ef file gradingstrategy.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 5c07ac6a7a file nassessmentsofstudentsubmissions.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 8b3943e0b5 file anonymous.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
stronk7 da64b6a98e Added one new string to be used by the m4w installer. 2005-06-29 09:18:07 +00:00
moodler e2c77dd01f file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:52 +0000 2005-06-29 08:56:51 +00:00
bobopinna 6c94871c56 Fixed a problem with some item title 2005-06-29 08:43:51 +00:00
bobopinna e61fd9ab16 Fixed bug 3443 and the file not found error on restored scorms 2005-06-29 07:10:17 +00:00
stronk7 3471fa7ba0 Added a function to print a standard html checkbox 2005-06-28 16:52:46 +00:00
mindforge 7f80097841 Partial fix for bug #3604. Fixed backup/restore for multianswer questions. States still don't get restored correctly! 2005-06-28 12:43:50 +00:00
moodler 20c4d467b8 file penalty.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler 6d26b502ae file popup.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler 989b4dd302 file itemanalysis.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler 9ee9f0bb08 file requiresubnet.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler 03f91c22c6 file penaltyscheme.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler b79eee4520 file questiondatasets.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler 566b2664e2 file questionsperpage.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler bcb91f2abd file requirepassword.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler c529fcdbe1 file rqp.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler 1de5a75c8c file review2.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler 251514b4bb file categories_edit.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:52 +00:00
moodler 8e815df623 file export.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:52 +00:00
moodler 0aeb823dc4 file calculated.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:52 +00:00
moodler c3ee28c440 file decimalpoints.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:52 +00:00
moodler 893345b32b file adaptive.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-06-28 07:04:52 +00:00
bobopinna b7119d1440 Fixed a upgrade bug with field timelimitaction 2005-06-28 06:57:57 +00:00
urs_hunkler f046c91c6e added the CSS for the black border around the userpicture and the grouppicture for the online user block 2005-06-27 17:37:08 +00:00
urs_hunkler a8c8fbf706 ?dded the CSS for the black border around the userpicture and the grouppicture 2005-06-27 17:31:59 +00:00
moodler 91c21f2b1b file enrol_ldap.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-27 13:02:26 +00:00
moodler 44bb2a6e0e file size.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:37 +0000 2005-06-27 07:58:16 +00:00
moodler 9c11d36fe9 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:37 +0000 2005-06-27 07:58:16 +00:00
bobopinna 6a7aa3f9c0 Fixed a problem with previous sco button 2005-06-27 07:33:59 +00:00
bobopinna 1cc24851a2 Fixed a problem with lesson_status setting 2005-06-27 07:32:36 +00:00
urs_hunkler ff19ce674d update of the readme text. 2005-06-27 06:02:14 +00:00
danmarsden e1b434b129 Bug #3623 - doesn't like when $value = 0 2005-06-27 01:03:50 +00:00
stronk7 76adec164b Solved a problem where the '1' string was being cached to ''
because we concatenate true and it's evaluated like 1.
Bug 3623.
(http://moodle.org/bugs/bug.php?op=show&bugid=3623)
2005-06-27 00:21:59 +00:00
stronk7 6eff731b3c Added the choose_from_radio() function to
display groups of radiobuttons in a central way.
Part of bug 1430.
(http://moodle.org/bugs/bug.php?op=show&bugid=1430)
2005-06-27 00:15:12 +00:00
stronk7 c196b29413 Avoid some backslashes causing problems with some browsers. Bug 3463.
(http://moodle.org/bugs/bug.php?op=show&bugid=3463)
2005-06-26 16:43:31 +00:00
stronk7 2e390fcb96 Added readme and screenshot to Wood Theme. 2005-06-26 15:45:37 +00:00
moodler b6cec9e900 file autocontinue.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
moodler ead1951a57 file browsemode.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
moodler a0680c868b file height.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
moodler 73e5412854 file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
moodler 2affe0355e file width.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
moodler 727a216d59 file summary.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
moodler 829f54d594 file package.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
moodler eb707720f1 file grademethod.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
stronk7 2cdcb56958 Now the entry being commented is showed when
adding comments for non-approved entries. Bug 3638.
(http://moodle.org/bugs/bug.php?op=show&bugid=3638)
2005-06-26 09:31:10 +00:00
julmis b1192638c2 Fixing Bug 3576
- bad grammar, so I've been told ;-)
2005-06-26 06:15:55 +00:00
stronk7 1e4ffe8752 Added some top margins for two glossary pages. 2005-06-25 19:13:18 +00:00
stronk7 43bee0ad7e Changed one table header. 2005-06-25 17:08:17 +00:00
stronk7 f4d8478a9d Now $CFG->allowobjectembed is working properly. Admins
will ignore this setting. Bug 3608.
(http://moodle.org/bugs/bug.php?op=show&bugid=3608)
2005-06-25 15:39:12 +00:00
fiedorow b70ea3c680 Fix for broken no authentication 2005-06-25 13:20:30 +00:00
fiedorow 3eb93697aa Compatibility fix for glossary 2005-06-24 18:04:52 +00:00
gustav_delius 3d6fb28178 Changed "Later, while the quiz is still open" to "While the quiz is still open", see http://moodle.org/mod/forum/discuss.php?d=26311 2005-06-24 16:41:44 +00:00
gustav_delius 0c6e298228 Removed the "Continue" button from the attempt page, see http://moodle.org/mod/forum/discuss.php?d=25972 2005-06-24 16:23:32 +00:00
fiedorow e2d7af8412 Fix for broken guest shortcut 2005-06-24 15:28:29 +00:00
thepurpleblob 6482f073ac Added empty feedback array to prevent error when questions are saved. 2005-06-24 13:17:03 +00:00
thepurpleblob 425e7df6ee tolerance being picked up from 'old' place in object. Fixed. 2005-06-24 13:01:42 +00:00
gustav_delius 79cc5ce839 XHTML compliance 2005-06-24 12:53:45 +00:00
thepurpleblob 43079e1883 Seems 'core' classes changed to 'internal' folder in latest version. I
simply changed the path in the class. How this never show up........
2005-06-24 12:47:55 +00:00
moodler 1edb6e3555 file philosophy.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:41 +0000 2005-06-24 10:26:09 +00:00
gustav_delius 3693b82020 changed & to &amp; 2005-06-24 08:02:06 +00:00
gustav_delius e80ad3b374 quoted two attributes for XHTML compliance 2005-06-24 07:52:26 +00:00
stronk7 a00cd5ad53 Take out one "white" use. Bug 3610. Credits are for Helen Foster.
(http://moodle.org/bugs/bug.php?op=show&bugid=3610)
2005-06-23 20:12:59 +00:00
fiedorow a23b767ebb Sorry, committed wrong version 2005-06-23 15:22:38 +00:00
fiedorow d79aa15c71 Bug fix for bug #3614 2005-06-23 15:18:11 +00:00
moodler 07a40e5714 file window.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:42 +0000 2005-06-23 13:17:00 +00:00
fiedorow b4ddf27cdd Bug fix for bug #3613 2005-06-23 12:23:21 +00:00
moodler 32855b4019 file future.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:41 +0000 2005-06-23 11:38:55 +00:00
fiedorow e26aaed2a4 Fix for bug #3607 2005-06-23 11:29:34 +00:00
thepurpleblob 5fe35ab0e3 improved name of function - clean_getstring_data() - and call it only
is data is actually defined.
2005-06-23 09:02:45 +00:00
stronk7 6add2dbfc7 Changed to use the new replacementphrase attribute so
bad words are replaced with a strlen(phrase) number
of **** characters. Bug 3605.
(http://moodle.org/bugs/bug.php?op=show&bugid=3605)
2005-06-22 23:33:08 +00:00
stronk7 aadb24e091 Add a new attribute to the filterobject class.
Now it supports a replacementphrase to be passed
so, the original phrase will be replaced. Nothing happens
if empty. Part of bug 3605.
(http://moodle.org/bugs/bug.php?op=show&bugid=3605)
2005-06-22 23:21:26 +00:00
mindforge 88170baf19 Implemented the suggestion from http://moodle.org/mod/forum/discuss.php?d=26139. The label element is now used in the multichoice and truefalse questiontypes in order to allow clicking on the answer text to select the according checkbox/radiobutton. 2005-06-22 11:21:46 +00:00
michaelpenne 0d6254cd8d Made the shortanswer qtype grading much more reliable. Change to preg_match to speed things up. Also do a preg_quote on the teacher supplied answer to prevent confusion in the preg_match statements (before + signs and the like were causing the preg_match statements to fail). 2005-06-21 22:36:35 +00:00
michaelpenne 0719af8aac Bug Fix: The code for dealing with the * character for shortanswer question type was lost. I downloaded 1.4.5+ and merged the shortanswer grading code into 1.6 dev. 2005-06-21 21:56:50 +00:00
thepurpleblob 1a08f75e50 Improved 'cleaning' of optional data parameter in get_string() to include objects 2005-06-21 12:29:03 +00:00
moodler 9ef1ef1869 file webquest.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:09 +0000 2005-06-21 10:28:40 +00:00
moodler 447a482619 file tex.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-06-21 10:28:40 +00:00
moodler 1058cca34c file block_rss_client.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-06-21 10:28:40 +00:00
moodler 1a750b6307 file enrol_ldap.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-06-21 10:28:40 +00:00
moodler 1d05050c6c file emailprotect.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-06-21 10:28:40 +00:00
moodler 2ffa17100e file simplemail.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-06-21 10:28:40 +00:00
moodler 881075b287 file message.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-06-21 10:28:40 +00:00
moodler 2a386c0d74 file block_simplemail_information.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-06-21 10:28:40 +00:00
gustav_delius e546494f92 fixed error in sql syntax 2005-06-21 07:05:51 +00:00
urs_hunkler c273a2f31f _ some space above the userpiicture added in #user-edit and user-view.
_ rmoved the border above the link in the rss sideblock
2005-06-21 06:08:03 +00:00
moodler dffc320511 file README.txt was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:12 +0000 2005-06-20 18:13:12 +00:00
moodler 2852f047aa file default.ttf was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:12 +0000 2005-06-20 18:13:12 +00:00
moodler e0a9d6b93a file attendance.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:11 +0000 2005-06-20 18:13:12 +00:00
moodler 32abe3255a file timezones.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:11 +0000 2005-06-20 18:13:12 +00:00
moodler c2533292f0 file moodle.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:11 +0000 2005-06-20 18:13:12 +00:00
moodler 7b82fe3699 file calendar.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:11 +0000 2005-06-20 18:13:12 +00:00
moodler ab4333e1c9 file admin.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:11 +0000 2005-06-20 18:13:12 +00:00
moodler b2326e175a file README was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:12 +0000 2005-06-20 18:13:11 +00:00
mindforge 12fcbb1fab Added possibility to escape #, ~ and } to the cloze questiontype. This is necessary so that in the answers HTML entities can be used (e.g. &#601; can now be included in an answer if it is written &\#601;). See also bug 3553. 2005-06-20 13:15:24 +00:00
moodler 7a8a43763d file message.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-20 12:35:19 +00:00
thepurpleblob df677142d9 Fixed typo. See bug #3573 2005-06-20 09:14:32 +00:00
thepurpleblob ecc0c8b802 Escape % signs in get_string() function optional parameter. Bug #3527 2005-06-20 09:08:48 +00:00
thepurpleblob fc823bf378 Added missing sesskey field to module config screen 2005-06-20 08:26:17 +00:00
moodler 524b4ec865 file docstyles.css was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:13 +0000 2005-06-20 08:16:38 +00:00
moodler 06a56158a6 file translation.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:41 +0000 2005-06-20 08:15:25 +00:00
mjollnir_ 89394c8d6f fixing bug 3569: current workaround= one query for postgres, one for mysql. probably a better way to do it when someone has more time 2005-06-20 04:32:04 +00:00
defacer 0757dc7cec Adding default sort order to participant lists to reinstate 1.4-style behavior. 2005-06-20 03:45:49 +00:00
defacer d10b0ae93e Augment tablelib so that it can accept a default sort order. 2005-06-20 03:43:25 +00:00
mjollnir_ f0ee6c7b0b Fixing postgres upgrade to match postgres7.sql (bug 3547) 2005-06-19 21:38:04 +00:00
mjollnir_ 9d7b35c73c Renaming index to match table (rqp_type) more on 3547 2005-06-19 21:30:09 +00:00
mjollnir_ 32321469bc Fixing typo on index for rqp type (bug 3547) 2005-06-19 21:27:57 +00:00
stronk7 33c895943e Checking some fields because they were breaking restore of old courses.
Bug 3444
(http://moodle.org/bugs/bug.php?op=show&bugid=3444)
2005-06-19 18:26:08 +00:00
moodler fd466ef02d file timezones.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-19 17:51:06 +00:00
stronk7 b92e44c50d Now the cancel button goes to the course (or site) page. Bug 2817.
(http://moodle.org/bugs/bug.php?op=show&bugid=2817)
2005-06-19 17:50:53 +00:00
moodler 80fec54702 file enrol_authorize.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-19 17:45:04 +00:00
moodler d4d9b7adbe file block_rss_client.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-19 17:43:44 +00:00
moodler 233993afd3 file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-19 17:43:44 +00:00
moodler f27efbf4b2 file block_quiz_results.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-19 17:43:44 +00:00
moodler c952ea8d4b file block_html.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-19 17:42:50 +00:00
stronk7 221f65b6c3 Now glossary ratings display user links in a new page. 2005-06-19 17:32:22 +00:00
stronk7 d437835d78 Order by rating now works. See bug 3566.
(http://moodle.org/bugs/bug.php?op=show&bugid=3566)
2005-06-19 17:12:31 +00:00
stronk7 cf2b886d4d Using the time class properly. 2005-06-19 16:45:11 +00:00
stronk7 4031b89e9b Some styles changed to show consistently the author and
time information.
2005-06-19 16:27:27 +00:00
stronk7 39952eee06 Now the name of the authors is a link to the user page.
To be a bit more like forum posts Bug 2809.
(http://moodle.org/bugs/bug.php?op=show&bugid=2809)
2005-06-19 15:23:54 +00:00
stronk7 c5d569c6af Now + and - search terms are properly highlighted
under glossary searches. This was broken recently
solving some non-iso problems.
2005-06-19 14:44:58 +00:00
moodler 327df50025 file custom.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:09 +0000 2005-06-19 12:47:04 +00:00
moodler de311acd1d file authchange.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:35:36 +00:00
moodler 3408a01243 file coursefullname.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:35:36 +00:00
moodler 3b5271f34f file advancedsettings.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:35:36 +00:00
moodler bf87cc5594 file courseavailability.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:35:36 +00:00
moodler 3da5aee8ab file courseidnumber.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:35:36 +00:00
moodler 13ff917186 file courseshortname.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:35:36 +00:00
moodler 79aa2098a5 file coursecategory.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:35:36 +00:00
moodler 83d86ba626 file surveys.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:33:14 +00:00
moodler a5c0415580 file scorm.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:43 +0000 2005-06-18 14:35:55 +00:00
stronk7 770d88ced5 Some changes added (see bug 3188).
- Added correct encoding.
   - Make page XHTML 1.0 Frameset compliant
Credits go to sunner_sun.
(http://moodle.org/bugs/bug.php?op=show&bugid=3188)
2005-06-18 09:59:39 +00:00
urs_hunkler 96393dd450 removed the .block_rss_client .title correcture bcause I have changed the styles.php of the block. 2005-06-18 08:00:14 +00:00
urs_hunkler a0c2d453c7 I removed letter-spacing because some browsers are not able to display the text correct when using a small amount for spacing. 2005-06-18 07:58:19 +00:00
moodler 965d344017 file teacher.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-06-17 17:37:23 +00:00
moodler 02948ab08b file teacher.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:01 +0000 2005-06-17 17:37:22 +00:00
stronk7 abcb2346b7 One style is not necessary. Delete it. 2005-06-17 17:05:32 +00:00
mindforge 4809b5ea1d Fixed problem with tolerance in cloze numerical questions. 2005-06-17 16:36:13 +00:00
moodler fd2beb3383 file respondenttype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:37:10 +00:00
moodler 86ea9f3820 file questionnaireid.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:35:15 +00:00
moodler 92d7d849e9 file qtype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:34:02 +00:00
moodler 01a661a5b2 file qmanage.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:32:57 +00:00
moodler 23b6f32087 file timerestrict.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:28:54 +00:00
moodler bb8a86d2a7 file options.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:26:46 +00:00
moodler fa498fc83b file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:25:17 +00:00
moodler 0b16c0de19 file limit.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:24:10 +00:00
moodler 29d263f26d file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:22:37 +00:00
moodler d630d32338 file chatting.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:17:10 +00:00
moodler 07799f187b file width.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:54 +0000 2005-06-17 15:06:39 +00:00
moodler d072f34f5a file summary.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-17 15:05:26 +00:00
moodler bf2dc956fa file package.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-17 15:04:23 +00:00
moodler 9fb48afe1a file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-17 15:03:11 +00:00
moodler cf4f33c352 file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-17 15:01:33 +00:00
moodler a554e7c33c file height.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-17 14:59:58 +00:00
moodler 40ea07e4d0 file browsemode.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-17 14:58:16 +00:00
urs_hunkler 6f96b83473 removed padding-top from title, which made the title of the sideblock higher than the other ones. 2005-06-17 06:26:45 +00:00
moodler 88639aa1c8 file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:12:01 +00:00
moodler 829dc9522c file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:10:38 +00:00
moodler 1ee838b5ee file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:09:41 +00:00
moodler 226b5a8e12 file hours.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:08:35 +00:00
moodler 4c023bf561 file grade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:07:36 +00:00
moodler 319f61e0d2 file dynsection.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:06:43 +00:00
moodler 54b02a56a7 file choosedays.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:05:30 +00:00
moodler 6b20b6587a file autoattend.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:04:03 +00:00
moodler cbcee839e2 file types.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:01:05 +00:00
moodler 17f2f65a05 file resubmit.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 05:59:59 +00:00
moodler 579a6b8ff8 file emailteachers.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 05:44:39 +00:00
moodler c6fab7af24 file commentinline.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 05:43:35 +00:00
moodler 29b46bfc99 file assignmenttype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 05:42:10 +00:00
moodler 76c8cbd44e file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:51 +0000 2005-06-16 22:42:51 +00:00
moodler b5e241a788 file letter.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:49 +0000 2005-06-16 22:42:49 +00:00
moodler 1fc6bb6ee3 file deleteattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-06-16 20:28:28 +00:00
moodler 45bcdfa9db file deleteattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:02 +0000 2005-06-16 20:28:28 +00:00
fiedorow ee74d5e92a Security fix: stop guest uploading 2005-06-16 17:16:53 +00:00
moodler df256b30e0 file category.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:03:09 +0000 2005-06-16 12:34:47 +00:00
mjollnir_ c0f988a1e5 Another postgres fix -- this time forums were not being displayed 2005-06-16 03:11:51 +00:00
mjollnir_ 61cf7b168b html_entity_decode segfaults in php 4.3.1 on an empty variable... documented in bug 3508. credit: Eloy & Jose Luis Daz 2005-06-16 02:57:58 +00:00
mjollnir_ 61fd69b8ae Fix for bug 3508 -- only do the clam log on backup/restore for restoring course/user/group files, not for temp backup data 2005-06-16 02:32:42 +00:00
moodler 49d7755163 file features.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-16 00:05:13 +00:00
moodler 49b2930b8d file upgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-16 00:03:42 +00:00
moodler cf5b77cd85 file minquestions.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-06-15 23:57:52 +00:00
moodler 34853e7bc5 file minquestions.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:02 +0000 2005-06-15 23:57:52 +00:00
michaelpenne 5a1ca11989 Fixed a problem with quotes in short answers 2005-06-15 22:51:31 +00:00
mjollnir_ 8f3e3695e3 Fixing bug 3502 - 2 postgres problems - one in db creation (my fault) and one in '' instead of 0 for int in sql query 2005-06-15 22:36:20 +00:00
michaelpenne 7070d53107 Fixed a bug with clusters. If you enter a cluster after a page it would throw a
navigation error.  It now enters the cluster properly.
2005-06-15 22:34:31 +00:00
urs_hunkler d673f73a37 corrected the CSS. It is not enough to set the outer class once at the begining of a comma separated list of CSS stylings. Every item must contain the full series of classes or ids, only the properties are following once. 2005-06-15 19:26:33 +00:00
stronk7 1687749a16 Minor tweaks applied 2005-06-15 15:55:41 +00:00
stronk7 dfc6579e1e One collapse:separate used to debug is now out. 2005-06-15 00:32:54 +00:00
stronk7 d27c760508 Modified the grades visualisation to make use
of styles a bit better. Works fine under standard
and wood personalise it aparently without problems.

Sure it can be improved...!
2005-06-15 00:24:24 +00:00
stronk7 9629cc6d78 More changes. Gradebook is working with some basic styles.
And things have been simplified a bit.
2005-06-15 00:06:34 +00:00
moodler 0eed750d84 file student.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-06-14 21:25:40 +00:00
moodler 5f87491394 file student.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:01 +0000 2005-06-14 21:25:40 +00:00
defacer 9b8a859781 Fix for bug 3510:
Due to stupidly copy/pasting some code, deleting a block instance could,
under some circumstances, throw a fatal error.
2005-06-14 20:32:40 +00:00
michaelpenne d031cf09b0 put in two !== instead of != to compare NULL values 2005-06-14 17:40:46 +00:00
defacer 70057cf44f Fix for bug 3467: Adding "single discussion forum" was broken. Now works. 2005-06-14 15:50:13 +00:00
djachenko d36fc3561d submitassignment 2005-06-14 10:16:24 +00:00
moodler 276ce5fb85 file weight.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-06-14 02:26:52 +00:00
moodler 1a26550217 file weight.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:01 +0000 2005-06-14 02:26:52 +00:00
stronk7 964556fdb6 Survey and grades implemented
(some changes to grades will arrive tomorro with some
defaut styles to show thigs a bit better)
2005-06-14 00:31:36 +00:00
gustav_delius 4fb6abdd28 changed more relative filenames to absolute, see bug 3483 2005-06-13 22:06:25 +00:00
stronk7 cbe80a54c1 forums, glossaries and assignment are now displayed properly. 2005-06-13 19:54:28 +00:00
stronk7 d48f9fcfda Adding some header classes for 1 table. 2005-06-13 19:35:19 +00:00
gustav_delius ba2e6a32ea replaced relative links to absolute links because some web servers get confused, see bug 3483 2005-06-13 18:22:32 +00:00
stronk7 cc7d926e11 Wood styles are now in more pages... 2005-06-13 17:56:36 +00:00
mindforge aec645efcd Fixed bug #3481 2005-06-13 09:39:49 +00:00
moodler f5897334fb file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:47 +0000 2005-06-13 06:34:20 +00:00
moodler 33fefcb567 file grades.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:47 +0000 2005-06-13 06:34:20 +00:00
defacer 85ad80a03f Implementing Dan Marsden's great idea for additional hooks when block
instances are deleted (bug 3446). Going a step further and adding hooks
for when block instances are created.

This probably counts as adding features to a STABLE, but I wanted to
give any future blocks that use this as much back-compat as possible.
2005-06-13 03:29:47 +00:00
defacer 9b1e8d728a Adding a little more checking to the session switching trap code.
I 've come across a problem where:

1. You have an "old" (say 1.3.5?) Moodle installation.
2. You are logged in as admin.
3. You suddenly switch to using a 1.5+ codebase with
   the SAME database, WITHOUT LOGGING OUT FIRST.

In this situation, I was presented with a deadlock. I could not do
anything because "my session had expired", and I could not even
log OUT to clear my session. In fact it was just reloading the
"session expired page" all the time.

If it weren't for debug = On which causes a notice in these
circumstances, it would be fracking difficult to understand what
was going on.

With this small addition, you can at least visit your login page
and log in anew, so problem fixed.

I believe this was talked about in the forums lately? Not sure.
2005-06-13 02:50:46 +00:00
defacer 230783ba85 While researching bug 3478:
Consolidated handling of the incoming courseid parameter, as it was easy
to make an error the way this was written before.

In general, this script looks like it needs to be streamlined.
2005-06-13 02:35:38 +00:00
defacer fa62ca18e8 Fix for bug 2925:
When editing is turned on, the Main Menu should always display and give
the option of adding resources/activities in section 0 of the site.

Bad optimization code caused the drop downs to not be shown if there
was no section 0 (i.e., the site never had a news forum or an activity
in the Main Menu block).

FINALLY! :)

PS: Version bump, so that we know if people have the latest version of
the block. I 'm going to bump versions from now on when bugs are fixed.
2005-06-13 01:56:25 +00:00
moodler 51f4d70284 file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:05 +0000 2005-06-13 01:31:15 +00:00
moodler 575ba2443d file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:05 +0000 2005-06-13 01:31:15 +00:00
moodler 9a7af7f0c9 file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:03 +0000 2005-06-13 01:31:15 +00:00
moodler 3104265b51 file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:03 +0000 2005-06-13 01:31:14 +00:00
defacer abb7e59d46 Fixing a notice when $CFG->forum_trackreadposts doesn't exist (when editing
the admin account during installation, for example).
2005-06-13 00:44:43 +00:00
mjollnir_ d7083e8737 Email bounce handling: fixing md5 validation bug 2005-06-13 00:16:55 +00:00
moodler e03ec5ca2a file grades.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:50 +0000 2005-06-12 22:02:58 +00:00
moodler 84d3c29dad file enrol_ldap.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:50 +0000 2005-06-12 22:02:58 +00:00
moodler 37de8a3494 file message.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:50 +0000 2005-06-12 22:02:58 +00:00
moodler b89ad2fc1e file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:07 +0000 2005-06-12 20:04:45 +00:00
moodler 89a660aaba file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-12 17:37:07 +00:00
moodler 60b482f67f file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-12 17:37:07 +00:00
gustav_delius 3a60417d9d Help files from Enrique, slightly modified. Closing bug 3432 2005-06-12 13:49:37 +00:00
moodler d96c4f3aa9 Some small change in making defaults for fronmt page 2005-06-11 18:58:37 +00:00
moodler 8dbd402a97 Change default front page format to be courses 2005-06-11 18:57:09 +00:00
moodler c8b383e37a Added slight spacer on login page 2005-06-11 18:34:36 +00:00
moodler 903d01ccb4 Added extra CSS styles so Eloy can do cool stuff in Wood theme
Main sections now have added "main", and separator sections
have "separator".
2005-06-11 18:23:43 +00:00
mindforge 3ed1ef582f The calculated question wizard has been restructured/rewritten. A new question is now only saved when the first dataset item is added. And hopefully the code is somewhat clearer and easier to understand. Additionally it all works through the (slightly adapted) standard question.php mechanisms and doesn't hack around it. 2005-06-11 13:16:57 +00:00
moodler eceda4634f file timezones.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:36 +0000 2005-06-11 12:26:26 +00:00
moodler becc6bfc56 file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:36 +0000 2005-06-11 12:14:55 +00:00
moodler 25618ea469 file README.txt was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:50 +0000 2005-06-11 12:10:42 +00:00
moodler fe1c4e6d89 file default.ttf was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:50 +0000 2005-06-11 12:10:42 +00:00
julmis e0675c474f Fixing cut 'n' paste mozilla confirm line again... 2005-06-11 11:01:03 +00:00
moodler 0f49980a0e file philosophy.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:52 +0000 2005-06-11 00:54:15 +00:00
moodler e74466b0a0 file intro.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:52 +0000 2005-06-11 00:54:15 +00:00
moodler cb0b4be6b7 file other.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:52 +0000 2005-06-11 00:54:15 +00:00
moodler a2b2a68587 file coding.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:52 +0000 2005-06-11 00:54:15 +00:00
moodler 65a4df9d55 file future.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:52 +0000 2005-06-11 00:54:15 +00:00
moodler 84ea026b4c file background.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:52 +0000 2005-06-11 00:54:15 +00:00
moodler f608db22a8 file features.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:52 +0000 2005-06-11 00:54:15 +00:00
moodler c9abc270f2 file text.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:11:47 +0000 2005-06-11 00:21:35 +00:00
moodler 8a2e373a63 file initialcontent.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-11 00:21:35 +00:00
moodler c803207669 file ewikiacceptbinary.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-11 00:21:35 +00:00
moodler 2b9c339fe6 file wikiname.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-11 00:21:35 +00:00
moodler bceea57e1d file howtowiki.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-11 00:21:35 +00:00
moodler b05de5d96a file wikiusage.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-11 00:21:35 +00:00
moodler 849e4bf620 file window.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-11 00:21:34 +00:00
moodler c596036229 file penalty.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:34 +00:00
moodler 07f7a76fb7 file random.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:34 +00:00
moodler ea8acc1cdc file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:34 +00:00
moodler 907d3d2ef7 file requiresubnet.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:34 +00:00
moodler e1ee24102f file export.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:34 +00:00
moodler 5957cbb539 file correctanswers.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:34 +00:00
moodler ef907c4840 file feedback.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:34 +00:00
moodler 7d748cfae1 file import.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:33 +00:00
moodler 5f8d3a3664 file minquestions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:33 +00:00
moodler fbed5b62ee file overview.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:33 +00:00
moodler dc8c752c5d file maxanswers.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:33 +00:00
moodler 0b286cf21e file custom.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:57 +0000 2005-06-11 00:21:33 +00:00
moodler 76f24be0a5 file usedynalink.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:33 +00:00
moodler 1b1b729eb9 file entbypage.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:33 +00:00
moodler f532678fe2 file rsstype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:33 +00:00
moodler e301c30ae8 file attachment.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:33 +00:00
moodler 4f310cd444 file usedynalinkentry.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:33 +00:00
moodler 86e44d10ee file forumtype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:32 +00:00
moodler 92262dcb59 file subscription2.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:32 +00:00
moodler 7ee5671e18 file aliases2.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:32 +00:00
moodler c179fe2aa7 file grading.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:31 +00:00
moodler 53363a8365 file closedialogue.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-11 00:21:31 +00:00
moodler 42bc1ad5fe file chatting.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:54 +0000 2005-06-11 00:21:30 +00:00
moodler ce62d03091 file dynsection.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-11 00:21:30 +00:00
moodler e187b9391d file files.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:11:46 +0000 2005-06-11 00:21:29 +00:00
moodler c5c9ef2004 file choosedays.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-11 00:21:29 +00:00
moodler c3d609a3f2 file cookies.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-11 00:21:29 +00:00
moodler 7024225764 file questions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-11 00:21:29 +00:00
moodler ca52c559a3 file writing.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-11 00:21:29 +00:00
moodler 22da13bd0a file html.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-11 00:21:29 +00:00
moodler 29fe9e516e file text.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-11 00:21:29 +00:00
moodler f2e652004f file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:28 +00:00
moodler 1d660f65e4 file questionnaire.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:28 +00:00
moodler 357532c491 file wiki.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:28 +00:00
moodler 24cf7e4dc5 file timezones.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:28 +00:00
moodler ef3064ee84 file block_rss_client.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 0bcf2a3561 file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 806e50b3c7 file block_course_list.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler de488ea4dd file block_glossary_random.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 0971a70695 file block_online_users.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 1fdb043504 file grades.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 649333df15 file enrol_paypal.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler fac088a544 file enrol_ldap.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 4f667d4209 file hotpot.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 1404dd0e18 file install.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 50033d9128 file emailprotect.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 469b28034b file message.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 38238a83da file appointment.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 40b145b1aa file block_html.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler f70e4ac4b0 file block_course_summary.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 2c95341c64 file calendar.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler a4fa13ef70 file block_social_activities.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 0fdef6bcdf file enrol_database.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 5ef7459355 file enrol_flatfile.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler ea41487667 file enrol_authorize.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 76a0d881b9 file activitynames.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 5d0fa584ca file block_quiz_results.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 8c43043fdc file enrol_internal.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 6b47cfd866 file block_section_links.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 468e60dda3 file questionoption.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-06-10 23:55:12 +00:00
moodler 7d7b5a6a66 file questionoption.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:02 +0000 2005-06-10 23:55:11 +00:00
ecastrolt 101ff90760 *** empty log message *** 2005-06-10 18:42:29 +00:00
moodler 9df3490a99 file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:43 +0000 2005-06-10 17:28:17 +00:00
moodler 938cd0f631 file future.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-10 17:25:00 +00:00
julmis 4e712f7bd6 Fixing cut 'n' paste headache... Auts...
Multilined error message wasn't working well.
2005-06-10 17:14:05 +00:00
ecastrolt 6228beb135 *** empty log message *** 2005-06-10 17:04:56 +00:00
stronk7 8e1314c7a2 Reordering styles a bit....to find them easily. 2005-06-10 15:35:31 +00:00
moodler 52fd07555f file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:16:00 +00:00
moodler 01e87a4673 file timerestrict.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:16:00 +00:00
moodler fd9329e7f7 file options.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:16:00 +00:00
moodler c1db910dda file limit.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:16:00 +00:00
moodler 14249f8441 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:16:00 +00:00
moodler 06469948a7 file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 478ca9a9e2 file removepages.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler b9f436c930 file wikitype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 5a644bd7d3 file strippages.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 0de476e235 file htmlmode.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler b2b719935f file wikilinkoptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 5f6c0b1e98 file setpageflags.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 937d7b52c5 file revertpages.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler a1b3c3e4cf file checklinks.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 168873c341 file revertauthorfieldpattern.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 782aa08eaa file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler d517d25943 file studentadminoptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 7251542cd8 file label.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:11:47 +0000 2005-06-10 15:03:56 +00:00
moodler 7b41d89fe4 file html.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:11:46 +0000 2005-06-10 15:03:56 +00:00
moodler d361e66afc file file.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:11:46 +0000 2005-06-10 15:03:56 +00:00
moodler 48753e1a1f file directory.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:11:46 +0000 2005-06-10 15:03:56 +00:00
moodler 88637d4c73 file timeopen.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:03:55 +00:00
moodler f4acdcc176 file truefalse.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:03:55 +00:00
moodler deea1d84d9 file timelimit.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:03:55 +00:00
moodler b7f278fe1d file types.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:03:55 +00:00
moodler dcfd0dff70 file summary.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:03:55 +00:00
moodler 3be1259eb9 file parameters.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:03:55 +00:00
moodler 88d295948d file shufflequestions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:55 +00:00
moodler 981ceefdf7 file categories_edit.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler adad4fd9f0 file popup.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler c2f03bc722 file randomsamatch.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler bd6b9530ef file match.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 964d6dc73d file attempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 96b39e79bb file numerical.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 969bf35c2f file categories.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler f39917d8d9 file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 6d1e31c34b file multichoice.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 2bb01a4e58 file requirepassword.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 824816e06f file adaptive.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 5a2658ca41 file questiontypes.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler eac6bc964d file calculated.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 4f68b47504 file decimalpoints.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 7341e97c93 file review2.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 98227d36e1 file shuffleanswers.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 4d48860e68 file shortanswer.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler be9e88091a file description.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 8b0aa6ffb3 file repeatattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 40f0a960f7 file grademethod.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 16975e3616 file questionoption.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 4e6f474a58 file maxpages.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 6532f6b856 file retake.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler a1357fc970 file lessondefault.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 1feaffe800 file useeditor.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 5b645d1016 file height.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 91d602fb1a file timed.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler dcefa09e57 file maxtime.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 2b429140e8 file width.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 5e3d6406e9 file maxattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 9ce6c24791 file handlingofretakes.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 25aeb72573 file maxhighscores.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 80a147e820 file slideshow.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 09dac5eebb file practice.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 3f6ae60106 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 8b8b5f43ee file nextpageaction.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 32741d16c0 file usepassword.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler b10dc2d6ba file review.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 2aa6346fa9 file jumpto.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 301ff2fe75 file highscores.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 9c45d35790 file tree.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 18bb2e0325 file password.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler c8c6addcac file modattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler dd4bba5a50 file ongoing.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 4aecfad306 file grade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:57 +0000 2005-06-10 15:03:53 +00:00
moodler f3fb3a2b2d file bgcolor.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:57 +0000 2005-06-10 15:03:53 +00:00
moodler 088a5e5e12 file deleteattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:57 +0000 2005-06-10 15:03:53 +00:00
moodler 1dd72d43c3 file displayleft.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:57 +0000 2005-06-10 15:03:53 +00:00
moodler 35ca4ed7ee file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:57 +0000 2005-06-10 15:03:52 +00:00
moodler 323f1e49e2 file casesensitive.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler de20d6f610 file editalways.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler c3258231df file importcategories.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 917cc0fca4 file globalglossary.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 5c64d1cdd3 file rssarticles.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 1aed3e931b file studentcanpost.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 1636626882 file allowprintview.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler dbfb58b629 file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler b09e69a0b0 file shows.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 3c09aeec29 file mainglossary.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 7bc7f28148 file linkcategory.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 5f32625c01 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 2c329933cc file allowduplicatedentries.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 6f4f6fe13c file destination.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler d15b1bd91e file defaultapproval.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 57efcbc6dd file filetoimport.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 7f407d1f3f file description.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 4996d3d28c file allowcomments.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 6128c50b39 file displayformat.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler e167032c03 file fullmatch.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 89a8b837ed file leaguetable.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler eb7b88ea9d file submissionofdescriptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler b357805a0d file usemax.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler 8d48260f84 file leaguetablenames.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler b0846bc19a file grade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler e36af790df file usepassword.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler 740d5f70d7 file specimen.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler e9d0bcbcfd file gradingstrategy.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler 73a1ee602a file password.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler aa1b2fcd73 file gradinggrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler 2c0717e001 file maxattachmentsize.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler fb283cda43 file allowdiscussions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler 901e6b6e6b file attachment.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler 9aaaed344c file rsstype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler 34648c65c3 file info.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:03:50 +00:00
moodler 8d87913195 file dialoguetype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:03:50 +00:00
moodler 6216697b79 file addsubject.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:03:50 +00:00
moodler e510af822e file multiple.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:03:50 +00:00
moodler 9ee255715d file deleteafter.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:03:50 +00:00
moodler 1161f96fb1 file maildefault.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:03:50 +00:00
moodler 16124ac3f5 file hours.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:54 +0000 2005-06-10 15:03:49 +00:00
moodler 490e05c698 file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:54 +0000 2005-06-10 15:03:49 +00:00
moodler 5e69cf407f file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:54 +0000 2005-06-10 15:03:49 +00:00
moodler 579769bded file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:54 +0000 2005-06-10 15:03:49 +00:00
moodler d0f1967418 file grade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler d3332366f1 file autoattend.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler dac4e79866 file resubmit.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler f353928ad3 file commentinline.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler 07f2bb581e file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler 0cc653c3a7 file assignmenttype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler 0607dc743c file types.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler 075433aef3 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler 96ba4407f6 file emailteachers.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler 407c22a76f file teachers.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:48 +00:00
moodler b18baa0c89 file richtext.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:48 +00:00
moodler 8f5bc35905 file textformat.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:48 +00:00
moodler bb1b4b4784 file uploadusers.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:48 +00:00
moodler 52a40768b2 file reading.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:48 +00:00
moodler a597bebb84 file groupmode.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:47 +00:00
moodler 6066fdd301 file directorypaths.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:47 +00:00
moodler 1324f3c6af file groupmodeforce.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:47 +00:00
stronk7 d7f7862841 Not used finally by the theme... Removed. 2005-06-10 14:50:58 +00:00
stronk7 725200b03a Problems with 1.5Beta backups solved by Bobo. B-) 2005-06-10 14:16:12 +00:00
stronk7 c40bd6ac20 Generate properly RSS column. It was breaking styled (colored) rows. 2005-06-10 09:03:02 +00:00
bobopinna b2d5b92b96 Fixed a problem with some 1.5 beta backup files 2005-06-10 06:35:01 +00:00
stronk7 f2bb550ac0 Some classes added and minor chage to links to be able to
difference them form plain text.
2005-06-10 00:47:01 +00:00
stronk7 58ed94fd9c Some classes and styles added to show everything properly. 2005-06-09 23:50:33 +00:00
stronk7 ea858dd7a0 Added one deleted br... 2005-06-09 23:39:27 +00:00
stronk7 5821db186e Now icons, comments and ratings are showed properly in entrylist format.
Bug 3455
(http://moodle.org/bugs/bug.php?op=show&bugid=3455)
2005-06-09 23:30:08 +00:00
stronk7 14e02c54ef Separate icons a bit... 2005-06-09 23:27:19 +00:00
michaelpenne 4226f24829 Bug: fixed a problem with the date completed value and a problem with processing shortanswer/numerical question types 2005-06-09 21:54:55 +00:00
michaelpenne ebe63af223 Discovered a bug with lesson grades. While calculating the grade, intval was used to truncate the decimals from the grade. intavl is now replaced with round. round will now round the grade to 5 decimal places. The database only holds int(3). So, this has been changed to float to hold decimal numbers. We have found this to be much more accurate when converting the stored percentage in the database back to a point value (before this fix, users were getting numbers like 46.5 points instead of their original 47 points due to an inaccurate percent value). Files changed for this fix include:
locallib.php
report.php
version.php
view.php
db/mysql.php
db/mysql.sql
db/postgres7.php
db/postgres7.sql
2005-06-09 21:26:21 +00:00
moodler 24fc7d266f Disabled tab hover for IE since it slowed down the whole site 2005-06-09 21:07:02 +00:00
thepurpleblob f04eda06be Added a chunk on defensive/secure coding. With due deference to
Petr Skoda from which a lot of it was stolen.
2005-06-09 18:51:49 +00:00
stronk7 957f001f04 Fixed two typos (in one line!) :-o
Testing changes before commit is always interesting... :-P
2005-06-09 16:27:46 +00:00
moodler 716111f60e file exceptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-06-09 16:12:20 +00:00
moodler 58c28f0269 file exceptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:01 +0000 2005-06-09 16:12:20 +00:00
thepurpleblob 382c50809b Removed use of assert function for session objects. 2005-06-09 13:58:41 +00:00
moodler 3608b0f6f5 Hide tabs when setting up initial admin user 2005-06-09 13:00:36 +00:00
moodler 014d8a9ab8 If no courses exist, then present a helpful button to make one. 2005-06-09 12:53:56 +00:00
moodler 377c6fa437 Default theme during setup is standardwhite, not standard 2005-06-09 12:53:14 +00:00
moodler 2535c5777d file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-06-09 11:58:07 +00:00
thepurpleblob 2fbfbcdd7b Use of 'register_global' type functionality removed and replaced with
required_param() and optional_param().
2005-06-09 09:39:26 +00:00
moodler d3753d4c37 Added some extra images I fotgot 2005-06-09 09:24:52 +00:00
moodler ab8734e816 Removed moz styles 2005-06-09 09:23:47 +00:00
moodler 9c855ec4f0 Added Eloy's excellent Wood theme!!!
Eloy, can you add a README.txt ?
2005-06-09 08:28:28 +00:00
moodler b7e133298d Fixed display bug in themes list 2005-06-09 08:23:26 +00:00
moodler 2e0a1774b9 Removed some old themes not being maintained yet 2005-06-09 08:09:13 +00:00
moodler cf885520e7 Updated Metal for 1.5 2005-06-09 08:06:40 +00:00
moodler 36c83a5057 file itemanalysis.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:05 +0000 2005-06-09 06:23:49 +00:00
moodler ba98e4b6b1 file itemanalysis.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:03 +0000 2005-06-09 06:23:48 +00:00
moodler 478625d186 file rqp.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:05 +0000 2005-06-09 04:07:19 +00:00
moodler d19a3b1fe2 file rqp.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:03 +0000 2005-06-09 04:07:16 +00:00
paca70 c313f211c0 Updates 2005-06-08 17:22:00 +00:00
moodler a0c477deef Merged changes from HEAD 2005-06-08 14:30:00 +00:00
watcanz 5b0f288d95 Fixed image path problem
Restored tags for moodle heading.
2005-06-08 12:20:54 +00:00
moodler 441c87bcb9 file createcontent.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-08 10:47:50 +00:00
moodler ce111128d3 file respondenteligible.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-08 10:10:25 +00:00
moodler b22f9bac31 file realm.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-08 10:10:25 +00:00
moodler 13c9933c8f file closedate.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-08 10:10:25 +00:00
moodler b9b203357e file mods.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-08 10:10:25 +00:00
moodler 499ac00af3 file resume.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-08 10:10:25 +00:00
moodler d4268066cb file opendate.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-08 10:10:25 +00:00
moodler a9da346030 file background.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 08:55:35 +00:00
moodler 7fdd558af0 file teachers.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 06:17:52 +00:00
moodler c90930bf10 file textformat.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 06:17:52 +00:00
moodler c53755d7c4 file uploadusers.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 06:17:52 +00:00
moodler 4249a9a8d0 file text.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 06:17:52 +00:00
paca70 bc55fae7b9 Updates 2005-06-08 06:02:52 +00:00
moodler 5f0ea84bbb file default.ttf was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:53 +0000 2005-06-08 05:20:15 +00:00
moodler 9f8d9231fe file message.php was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:52 +0000 2005-06-08 05:20:15 +00:00
moodler edf1c2d30d file block_rss_client.php was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:51 +0000 2005-06-08 05:20:15 +00:00
moodler 81bfee2947 file enrol_ldap.php was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:51 +0000 2005-06-08 05:20:15 +00:00
moodler 8df6f37dc0 file block_html.php was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:51 +0000 2005-06-08 05:20:15 +00:00
moodler 58cfbd4a84 file block_category_tree.php was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:51 +0000 2005-06-08 05:20:15 +00:00
moodler 7530078651 file block_quiz_results.php was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:51 +0000 2005-06-08 05:20:15 +00:00
moodler 6406c48cd8 file richtext.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 04:06:46 +00:00
moodler 58f33bd7cd file questions.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 02:26:48 +00:00
moodler 317311d645 file writing.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 02:26:48 +00:00
moodler b4e2cde355 file reading.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 02:26:48 +00:00
moodler cb5e71a635 file letter.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:50 +0000 2005-06-07 23:46:10 +00:00
moodler c8b589bb29 file letter.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:49 +0000 2005-06-07 23:46:10 +00:00
martinlanghoff 9fd70b1ac3 Merged in readfile_chunked() patch -- much lower memory footprint, same CPU usage, works around PHP5 bug in readfile() 2005-06-07 23:43:04 +00:00
martinlanghoff 6eabcba137 Auth fields were not being re-fetched on every login as expected. Fixed. 2005-06-07 23:19:45 +00:00
gustav_delius 530b8335f1 Fixed a typo 2005-06-07 21:43:32 +00:00
michaelpenne 699c28ff92 Bug 1650 fixed: help button calling the wrong help file 2005-06-07 20:58:47 +00:00
michaelpenne 257f67470b Bug 3022 Fixed: got rid of uppercase tags 2005-06-07 20:48:41 +00:00
gustav_delius 2876a137d8 Temporarily switching off "Save as new question" button until bug 3445 is fixed 2005-06-07 20:44:59 +00:00
paca70 52c1134dd4 Added missing as junk words 2005-06-07 17:30:38 +00:00
moodler ffb7b55ea4 file groupmode.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 17:03:42 +00:00
moodler 09206b48f2 file mods.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 17:03:42 +00:00
moodler 2fea1d8480 file groupmodeforce.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 17:03:42 +00:00
moodler 30cb9ab4b5 file cookies.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 15:44:54 +00:00
moodler da84ec2f77 file html.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 15:44:54 +00:00
moodler 615824e242 file index.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 15:44:54 +00:00
moodler f08cbc787f file directorypaths.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 15:44:54 +00:00
moodler 69ae7d08af file philosophy.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 15:44:53 +00:00
moodler 25a9851943 file intro.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 15:44:53 +00:00
moodler 73afb49262 file other.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 15:44:53 +00:00
zibas 22d2a0fdc4 Applied the patch submitted with bug #3344. This fixes PHP5 issues while retaining PHP4 functionality.
Also altered the bb5.5 importer:
Respecting certain "visible" flags. Made the default course properties match the importer capabilities better.
Fixed the resource summaries.
Converting Bb "Staff Information."
2005-06-07 14:21:19 +00:00
thepurpleblob f24e18ee85 Added assert_var_set() - part of trying to deprecate required_variable (which
is used in two different ways)
2005-06-07 12:35:39 +00:00
thepurpleblob b20337b888 Converted required_variable() to required_param() 2005-06-07 09:43:45 +00:00
moodler e35720ef02 file teacher.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-07 07:28:04 +00:00
martinlanghoff 472b380522 Added missing auth strings for field locks 2005-06-07 05:04:35 +00:00
martinlanghoff 094f41207b Fixes db upgrade for config_plugins failure on unquoted data - discussed at http://moodle.org/mod/forum/discuss.php?d=25122 2005-06-07 03:40:20 +00:00
moodler d1c56c3939 file category.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:59 +0000 2005-06-07 00:34:53 +00:00
moodler c156eef71e file exceptions.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:59 +0000 2005-06-07 00:34:53 +00:00
moodler 7e022f9345 file letter.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:59 +0000 2005-06-07 00:34:53 +00:00
moodler edab76787e file weight.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:59 +0000 2005-06-07 00:34:53 +00:00
moodler 815a82746b file student.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:59 +0000 2005-06-07 00:34:53 +00:00
moodler 354673e358 file teacher.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:59 +0000 2005-06-07 00:34:53 +00:00
moodler e135be2639 file preferences.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:59 +0000 2005-06-07 00:34:53 +00:00
moodler 67353f95ef file weight.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-06 23:53:01 +00:00
moodler 460f06f2a5 file category.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:46 +0000 2005-06-06 23:53:01 +00:00
moodler 65b4efb096 file exceptions.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:46 +0000 2005-06-06 23:53:01 +00:00
moodler 1f93813304 file letter.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:46 +0000 2005-06-06 23:53:01 +00:00
moodler 95f0d3d486 file student.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:46 +0000 2005-06-06 23:53:01 +00:00
moodler 7ba1e94556 file preferences.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:46 +0000 2005-06-06 23:53:01 +00:00
moodler a7a97c933c file category.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:50 +0000 2005-06-06 22:45:10 +00:00
moodler e29ed82aee file category.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:49 +0000 2005-06-06 22:45:10 +00:00
michaelpenne eba970bffc BUG FIX for Bug #3059: if there is not a response to an answer, the response gets set to an empty string 2005-06-06 18:26:49 +00:00
ecastrolt 05786bc6fd *** empty log message *** 2005-06-06 18:15:37 +00:00
ecastrolt 357d789540 *** empty log message *** 2005-06-06 18:04:54 +00:00
michaelpenne 855aa8f8d6 bug fix: updated the link to the grade book 2005-06-06 17:35:02 +00:00
bobopinna 42d3772a3f Fixed a typo 2005-06-06 11:58:59 +00:00
ikawhero 3d1f6ce525 Fixed a few minor typos. 2005-06-06 10:08:27 +00:00
ikawhero 1244ed75d2 Check to see if a scale grade exists for the given grade and if not set it
to an empty string. This should never occur through normal use but just
in case ...
2005-06-06 09:45:17 +00:00
moodler ac757a9fad file category.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:50 +0000 2005-06-06 06:16:27 +00:00
moodler 194726468d file weight.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:50 +0000 2005-06-06 06:16:27 +00:00
moodler ecbf88d217 Bumping release name 2005-06-06 06:09:07 +00:00
moodler bc9cec3cd6 Updated version for release 1.5 2005-06-06 05:21:11 +00:00
moodler f9cff66906 Merged all the changes in HEAD until now 2005-06-06 05:04:31 +00:00
ikawhero 5450baa28a Added a 'Save Changes' button to the top of the page for those of us too
lazy to scroll!
2005-06-06 03:35:28 +00:00
ikawhero 422eaecc13 Check array is initialised. Bug 3424. 2005-06-06 00:39:35 +00:00
moodler e10ed4e667 file preferences.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:48 +0000 2005-06-06 00:13:12 +00:00
moodler ecfbaad4b4 file preferences.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:28 +0000 2005-06-06 00:13:12 +00:00
ikawhero e4cedd797a Errors will now return to course page instead of site. Related to Bug 3418. 2005-06-05 23:57:19 +00:00
gustav_delius 9dadc1a89e Regrading now used the proper session mechanism. Also it now works with old-style attempts which have only a single state. 2005-06-05 20:37:52 +00:00
moodler 5b0ae9d41c file student.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:13 +0000 2005-06-05 20:33:47 +00:00
gustav_delius 2ac3cee674 Restoring of user attempts and states disabled for now, see bug 3159 2005-06-05 20:25:04 +00:00
gustav_delius f3bb54f36f Fixed typo 2005-06-05 20:19:17 +00:00
moodler e8edd40064 file exceptions.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:13 +0000 2005-06-05 19:56:09 +00:00
moodler b1120b07c9 file letter.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:13 +0000 2005-06-05 19:56:09 +00:00
moodler 00fcb704d3 file weight.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:13 +0000 2005-06-05 19:56:09 +00:00
moodler 2b1ebff73c file preferences.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:13 +0000 2005-06-05 19:56:09 +00:00
moodler 26549e7692 file category.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:13 +0000 2005-06-05 19:56:08 +00:00
moodler efd780a339 file teacher.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:13 +0000 2005-06-05 19:24:45 +00:00
urs_hunkler 0c4a965346 mainly corretion for a disply problem of the course page in MSIE plus some minor changes. 2005-06-05 16:38:01 +00:00
gustav_delius 7371dc44d0 removed some unnecessary fields 2005-06-05 15:52:18 +00:00
gustav_delius 16a8215aa1 just fixing some comments 2005-06-05 15:37:22 +00:00
gustav_delius 6d0ea08227 taken out a notice to temporarily fix bug 3130 2005-06-05 15:08:34 +00:00
gustav_delius 85a6b27786 Fixed the calculated question editing wizard temporarily for Moodle 1.5 until Julian gets his new version ready. 2005-06-05 14:14:54 +00:00
gustav_delius db7f11c3d7 fixed some typos 2005-06-05 13:59:37 +00:00
gustav_delius 98133a3eec Random questions now store both the wrapped question id and the response in the same state record, essentially going back to Julian's model. 2005-06-05 13:22:03 +00:00
moodler 52de50d2d5 Just a small fix for people tracking betas 2005-06-05 13:11:05 +00:00
gustav_delius 122299654f Improved the display of readonly form fields in questions so that they are no longer grey on grey 2005-06-05 12:03:50 +00:00
gustav_delius 52fa982eba Change to when newly created states get saved
Changes to what is printed during regrade
2005-06-05 11:49:32 +00:00
stronk7 5eab4b5c43 Removed reference to Journal (Diario in es) 2005-06-05 10:09:32 +00:00
stronk7 e68e7af8ed Merged from HEAD... 2005-06-05 09:46:33 +00:00
moodler 2e52e3c14b file gradinggrade.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:30 +0000 2005-06-05 08:55:11 +00:00
moodler 2be7e8b347 file grading.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:30 +0000 2005-06-05 08:49:33 +00:00
moodler b8187e5ae0 file grade.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:30 +0000 2005-06-05 08:44:38 +00:00
thepurpleblob 74be4f9a8d Removed reference to Journals. 2005-06-05 07:37:16 +00:00
moodler cb21e292fa file penalty.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:31 +0000 2005-06-05 07:31:24 +00:00
moodler 3a8e6b5f4b file adaptive.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:31 +0000 2005-06-05 07:31:24 +00:00
thepurpleblob cdd11103b7 Removed reference to Journal 2005-06-05 07:24:46 +00:00
thepurpleblob dab41ccfdc Removed reference to Journal. 2005-06-05 07:11:44 +00:00
thepurpleblob 49e8438753 Removed references to Journal. 2005-06-05 06:51:09 +00:00
thepurpleblob 12c3f08cb0 Removed reference to journals. 2005-06-05 06:47:02 +00:00
thepurpleblob 2f6b3b1966 Removed references to journals. 2005-06-05 06:44:09 +00:00
moodler 9d39272ded Added support for $CFG->allowobjectembed in the GUI 2005-06-05 05:39:25 +00:00
moodler 14bc8df569 Added $CFG->allowobjectembed in weblib.php so that these can be selected by admin 2005-06-05 05:25:02 +00:00
moodler 6dca5725ea file nextpageaction.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:49 +0000 2005-06-05 03:48:41 +00:00
moodler bf3932fc42 file nextpageaction.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:29 +0000 2005-06-05 03:48:40 +00:00
moodler 2c8a7e32db Turn off script access for autoembedded flash SC126 2005-06-05 03:31:44 +00:00
gustav_delius 3c76674f76 More graceful behaviour when there are not enough questions for the random questions. 2005-06-04 22:43:28 +00:00
ecastrolt fba559da7a *** empty log message *** 2005-06-04 21:07:57 +00:00
moodler 468f3c1cc4 file webquest.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:16 +0000 2005-06-04 20:05:32 +00:00
moodler fe0df5f546 file tex.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:16 +0000 2005-06-04 20:05:32 +00:00
moodler 370454c947 file workshop.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:16 +0000 2005-06-04 20:05:32 +00:00
moodler 3010db0e48 file wiki.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:16 +0000 2005-06-04 20:05:32 +00:00
moodler ae6a28706b file survey.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:16 +0000 2005-06-04 20:05:32 +00:00
moodler 63fd025955 file scorm.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:16 +0000 2005-06-04 20:05:32 +00:00
moodler f5e2a57092 file resource.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:16 +0000 2005-06-04 20:05:32 +00:00
moodler 1edf4fcaa6 file mediaplugin.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:32 +00:00
moodler 191ac5e692 file questionnaire.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:32 +00:00
moodler ad50e44876 file label.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:32 +00:00
moodler 1a833b187a file multilang.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:32 +00:00
moodler 5983511872 file message.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:32 +00:00
moodler df644c8811 file pix.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:32 +00:00
moodler 52183b89b1 file lesson.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:32 +00:00
moodler cfe70c4f90 file exercise.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:31 +00:00
moodler 98a68126ed file journal.php.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:31 +00:00
moodler 39538ed31a file grades.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:31 +00:00
moodler 42bdd31e68 file hotpot.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:31 +00:00
moodler d0fa39395c file install.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:31 +00:00
moodler 737d922645 file glossary.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:31 +00:00
moodler 5e3b40221a file block_rss_client.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler fd91ea6371 file block_course_list.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler cee15d365b file countries.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler c29cc45005 file block_online_users.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 2db4405ca0 file attendance.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 2e3d0ff372 file editor.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler fe2c9820e8 file algebra.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 72df247c50 file censor.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler d35f4bcabd file enrol_paypal.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler a46eb2ee08 file enrol_ldap.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 18ac802f51 file dialogue.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler d520a0a173 file emailprotect.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler e264c29fa1 file appointment.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 406d542d00 file block_html.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler a02176516b file block_course_summary.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 27b0d869e6 file admin.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 21971c4ed0 file calendar.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler e1c24a9dba file block_social_activities.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler dcb1b0cbdf file enrol_database.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 9c94bb15aa file enrol_flatfile.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler bec8a5ca4b file error.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler cee8d7fb63 file block_quiz_results.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 5a67edcc09 file enrol_internal.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler c5f0945604 file block_section_links.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
defacer ff642e93ba Fixing all Tidy warnings in this page. This has to be A Good Thing. 2005-06-04 17:43:52 +00:00
gustav_delius 5ebe26c7d0 fixed typo 2005-06-04 17:22:00 +00:00
gustav_delius a616b09790 The versioning code will not be in Moodle 1.5 2005-06-04 17:13:26 +00:00
stronk7 e64dfa80dd Changed name of the container category a bit and avoided one notice. 2005-06-04 15:37:40 +00:00
gustav_delius 4a4d46cade slight improvement of layout 2005-06-04 11:40:57 +00:00
moodler 905746771f file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:05 +0000 2005-06-04 11:25:51 +00:00
moodler 82a838920f file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:03 +0000 2005-06-04 11:25:51 +00:00
moodler d913dc4244 file enrol_authorize.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:03 +0000 2005-06-04 11:25:51 +00:00
gustav_delius 4aa3ac1609 Print notice on preview when secure window will be used for students
Also improved some language strings
2005-06-04 11:19:48 +00:00
gustav_delius 775d4dd817 Print notice on preview when secure window will be used for students 2005-06-04 11:16:37 +00:00
gustav_delius e0b0ef395f Show link to attempts list only if student attemtps exist. 2005-06-04 11:10:36 +00:00
mindforge a21fc2b7c9 Cleaned up and documented regrading code. 2005-06-04 11:04:00 +00:00
mindforge aee2784751 Manual regrading page implemented. 2005-06-04 10:58:31 +00:00
ikawhero 3e41bf36a3 Link to add new courses only shown to course creators when there are no
courses available. Bug 3420.
2005-06-04 10:39:57 +00:00
urs_hunkler cf26a12c62 corrected width of the middle column in course view. 2005-06-04 09:16:20 +00:00
gustav_delius 90abc87934 attempts.php has moved to report/overview/report.php 2005-06-04 09:10:13 +00:00
gustav_delius 8c040068ca Removed the quiz upgrade warning. 2005-06-04 09:07:40 +00:00
gustav_delius 67a8ef4235 removing the old statistics reports 2005-06-04 08:58:16 +00:00
gustav_delius c17f91905a put back the overview report folder 2005-06-04 08:55:37 +00:00
gustav_delius 1b2457c312 added regrading page 2005-06-04 08:54:56 +00:00
gustav_delius 2fbd81b02d Fixed bug 3410. Admins are no longer shown ALL categories in drop-down menu. 2005-06-04 08:47:33 +00:00
gustav_delius e729020eda Improve alignment in table in mod.html for IE
Missing questions lead to notice rather than fatal error
Attempts report now moved to reports/overview
put in empty regrading page for Julian to complete
Moved some of the styles out of styles.php into standard style
Fixed error on reviewquestion.php
put infobox on reviewquestion.php
fixed <form> tag on item analysis report
2005-06-04 08:30:49 +00:00
defacer 6e296332ca Fix for bug 3316: Now students which have attempted the quiz but have
since been unenrolled from the course are shown with a dimmed style.
2005-06-04 00:18:57 +00:00
defacer 94640580f3 Forgot to prepend country codes to the teacher list as well when sorting. 2005-06-03 23:40:19 +00:00
defacer 113130bd32 Adding one new string: "Show $a per page" 2005-06-03 23:31:06 +00:00
defacer 1443433431 CSS styles for the revamped user/index.php 2005-06-03 23:26:31 +00:00
defacer 4fd2dff9fe A big big big patch:
Converted the students table to use the new table class

Fixed bug 3114: when sorting by country, prepend country code to the country name

Fixed behavior of autohiding teacher list; now there is a hide/show icon to be
consistent with the rest of Moodle

Fixed "show all" option so that the user can control it instead of relying on auto behavior

Fixed HTML, removed all inline styles

Improved accessibility (alt tags for images)

Updated obsolete optional_variable calls to optional_param

Several cosmetic and other improvements I 've already forgotten :P
2005-06-03 23:19:12 +00:00
defacer 680da3b4af Added function that exports current selection for first/last initial
Added extra CSS class to initial bars (can now differentiate first/last)
2005-06-03 22:46:54 +00:00
moodler dc0d77760a file maxpages.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:49 +0000 2005-06-03 21:53:41 +00:00
moodler c700b6c43b file review.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:49 +0000 2005-06-03 21:53:41 +00:00
moodler adb2f6e2fc file highscores.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:49 +0000 2005-06-03 21:53:41 +00:00
moodler def727dc7d file maxpages.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:29 +0000 2005-06-03 21:53:41 +00:00
moodler c5d16299de file review.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:29 +0000 2005-06-03 21:53:41 +00:00
moodler 93b2625047 file highscores.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:28 +0000 2005-06-03 21:53:41 +00:00
gustav_delius b769175004 The popup window didn't always close. 2005-06-03 20:43:50 +00:00
stronk7 816f68c8aa Upgraded backup/restore TODO list. Only two points remains open:
- SCORM: restore. See bug 3404.
- QUIZ: 1.5 <=> 1.5 backup and restore. Gustav's team is polishing it.

Bump to 1.5 (Final)
2005-06-03 17:43:46 +00:00
stronk7 c3f0763f7b Added support for forum->trackingtype 2005-06-03 17:35:27 +00:00
moodler e0dcb5734f Merged many language files from HEAD 2005-06-03 17:17:15 +00:00
stronk7 321aae1d8b Small typo, preventing group events to be restored properly.
Records in backup_ids table must use the name of the table
without the prefix as name. Bug 3360. Thanks Jon.
(http://moodle.org/bugs/bug.php?op=show&bugid=3360)
2005-06-03 16:43:26 +00:00
ikawhero 9bb32eb744 Meaningful string shown in breadcrumb and heading when editing site topic.
Bug 3408.
2005-06-03 14:41:35 +00:00
mindforge 2c20f70dca Fix for bug #3357. Random questions now check properly if a question is already in use. 2005-06-03 12:56:53 +00:00
stronk7 a3247baa3a Bump!
Deletion (or move to site course) of orphan categories
executed in the upgrade process. Now we shouldn't have
such orphans anymore! B-)

Part of bug 2459
(http://moodle.org/bugs/bug.php?op=show&bugid=2459)

Important NOTE: In the upgrade code for postgreSQL I've included
                some steps that weren't up to date. They seem to
                standard SQL code but they should be tested
                properly.... hope all works!
2005-06-03 12:49:16 +00:00
stronk7 c0624b017b Deletion (or move to site course) of orphan categories
executed in the upgrade process. Now we shouldn't have
such orphans anymore! B-)

Part of bug 2459
(http://moodle.org/bugs/bug.php?op=show&bugid=2459)

Important NOTE: In the upgrade code for postgreSQL I've included
                some steps that weren't up to date. They seem to
                standard SQL code but they should be tested
                properly.... hope all works!
2005-06-03 12:47:44 +00:00
moodler 81b1951adf Labels can now have apostrophes again! :-) bug 3411 2005-06-03 12:21:16 +00:00
moodler 73c1140d6a Fix for Bug 3036. (SE) 2005-06-03 08:15:38 +00:00
moodler 20fe7276ff Merged French from HEAD 2005-06-03 05:25:09 +00:00
moodler dd8fb6e848 file autocontinue.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler 1ece975598 file browsemode.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler 4308feffbd file height.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler 66674833f6 file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler 578462059e file width.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler bd8b6c6f0e file summary.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler e5e43b42ec file package.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler f309507a9f file grademethod.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler 5c3cf81dfb file navigation.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
moodler 5bf11225c4 file analysistable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
moodler c10f0b5df7 file reportselector.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
moodler abac5c2107 file mediaplayers.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
moodler d6c5e20610 file forceplugins.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
moodler b9b4610906 file responsestable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
moodler 03231ca0b3 file outputformat.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
moodler 6d53e3b77d file shownextquiz.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
martinlanghoff a0b22b3218 auth/ldap : minor html fix 2005-06-03 03:41:16 +00:00
moodler 0db7057a78 file browsemode.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-06-02 22:31:41 +00:00
moodler 7bc02fa10a file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-06-02 22:31:41 +00:00
moodler 01737697a4 file grademethod.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-06-02 22:31:41 +00:00
moodler 2eb6412ef8 file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-06-02 22:31:40 +00:00
moodler 4fad751ed9 file grademethod.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-06-02 22:31:40 +00:00
moodler e32e7ca09c file browsemode.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-06-02 22:31:34 +00:00
moodler da7d308c32 Disable Attendance in core tables because the module has been deleted 2005-06-02 15:01:12 +00:00
moodler 4a625f17af Remove attendance from 1.5 too 2005-06-02 14:59:38 +00:00
exe-cutor 9fa1dad004 Adapted Shibboleth authentication to new field lock/update mechanism by Martin 2005-06-02 14:34:22 +00:00
moodler 651dfa878e file itemanalysis.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-06-02 13:57:26 +00:00
urs_hunkler 50da41e264 some theme optimizations: manly font-sizes and the list pages. 2005-06-02 12:31:35 +00:00
martinlanghoff 6406bef13e Fixed typo in configuration of ldap_memberattribute for RFC2307-style LDAP servers. Should fix handling of iscreator group. Thanks to Teemu Haapoja for the diagnosis and fix. 2005-06-02 09:55:06 +00:00
martinlanghoff 5a2cfa7efb Version bump triggers config_plugin migration for locks and field mapping. 2005-06-02 04:25:36 +00:00
moodler 0bb30298d0 file nelements.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:18 +00:00
moodler 37553f8493 file managing2.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:18 +00:00
moodler 1761c44531 file regrading.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:18 +00:00
moodler d1869b995e file managing.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:18 +00:00
moodler 5e01a18606 file gradingstrategy.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:18 +00:00
moodler 1ef00c891f file password.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:18 +00:00
moodler 2d910a2d08 file gradinggrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:18 +00:00
moodler 3b61c3c5d6 file elements.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:17 +00:00
moodler 17dec907b9 file grade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:17 +00:00
moodler c90daf0b4b file comparisonofassessments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:17 +00:00
moodler a69f876e76 file removepages.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler a960f39fbb file wikitype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 474ce18912 file strippages.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 6c8f0ed5a8 file initialcontent.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 5ace54167e file htmlmode.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler d981f1b6e3 file wikilinkoptions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 0810574be1 file ewikiacceptbinary.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler ee5b1788f7 file setpageflags.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 9a6222dd38 file revertpages.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 46cc45f293 file checklinks.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 8e8380fb97 file revertauthorfieldpattern.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 5aef10640e file wikiname.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler b34d0917a6 file howtowiki.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 1067cb28f1 file wikiusage.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler f94e02f057 file studentadminoptions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler fec8049d34 file leaguetable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler a111b749fc file finalgrades.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler f42449f77e file nelements.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler cc13541244 file takeownership.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler d67ad45602 file submissionofdescriptions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 0ef063825f file moreinfo.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 09be6630de file usemax.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 26b9be1d7a file regrading.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 10692d97e6 file leaguetablenames.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler f327821e4e file grade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler b9fc85815e file usepassword.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 312f8b5410 file specimen.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 6d163e8a59 file grading.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 888faa0559 file managing.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 62dec3d6b5 file gradingstrategy.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 06979a542b file password.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 2f4ae7848b file gradinggrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 9199bfc986 file elements.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler 3fde815636 file administration.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler ea6787cb2f file comparisonofassessments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler 4f0f9f52c6 file info.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler e628acf30d file dialoguetype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler 97d94ab7f2 file addsubject.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler 675522cb1b file multiple.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler 69f2570655 file deleteafter.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler 9206c92895 file closedialogue.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler d3f8a394bc file maildefault.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler de735d30a8 file reportselector.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-06-02 00:52:14 +00:00
moodler 8afa0586cc file reportselector.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:23 +0000 2005-06-02 00:52:14 +00:00
gustav_delius 72a054b9f9 Fixed bug 3393 2005-06-01 20:07:50 +00:00
zibas 643f215f0a file xsl_emulate_xslt.inc was added on branch MOODLE_15_STABLE on 2005-06-07 14:21:19 +0000 2005-06-01 19:32:52 +00:00
moodler 6acfcce9a8 file itemanalysis.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:55 +0000 2005-06-01 19:24:17 +00:00
gustav_delius 6be3c99802 replaced some error() by redirect() 2005-06-01 18:34:24 +00:00
gustav_delius 20101a6092 Improved error messages a bit 2005-06-01 18:16:52 +00:00
moodler 4d044e6e84 SQL should not assume mdl_ prefix on tables (bug 3390) 2005-06-01 08:08:37 +00:00
martinlanghoff d08c400d31 auth fieldlocks: smarter handling of UI strings for user fields 2005-06-01 08:05:28 +00:00
martinlanghoff 770764f392 config_plugins settings migration -- this is a DB upgrade block 2005-06-01 07:47:49 +00:00
martinlanghoff 4f6af1254b get_config() now preserves CFG if DB fails or is empty 2005-06-01 06:57:09 +00:00
martinlanghoff e3cd7f35b9 config_plugin with auth/shibboleth
* config.html now uses print_auth_lock_options()
 * config.html better handling of default vars, and removed some warnings
 * lib.php uses new config_plugin vars
2005-06-01 06:23:44 +00:00
martinlanghoff 2ba609cc8c config_plugin work
* lang updates and lang-related fixes
 * auth/db uses the new convention
2005-06-01 06:01:29 +00:00
gustav_delius 3d7a1cbf2b A missing ! led to bug 3377 2005-06-01 05:56:46 +00:00
martinlanghoff b50eee807b Almost there with config_plugins work!
* More solid checking for auth GET/POST var.
 * print_auth_lock_options() now handles user field mapping options for LDAP and similar modules
 * user mapping options have moved to config_plugins table
 * LDAP module has migrated to using new field mapping vars -- simplified config.html a lot
 * strings are mostly resolved
 * a bit of work pending on CAS and DB modules
 * need an upgrade path for field-mapping config entries -- limited to LDAP only
2005-06-01 04:44:17 +00:00
martinlanghoff 6b64601101 Bumping the revision for the config_plugins table. 2005-06-01 02:28:33 +00:00
moodler 28d21ce79e file gradingstrategy.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:27 +0000 2005-06-01 01:15:06 +00:00
moodler 07387b3124 file gradingstrategy.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-06-01 01:15:06 +00:00
moodler df699778c4 file autocontinue.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler 2d7915885a file browsemode.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler 9d24e151bc file height.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler 9fbed4dc26 file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler 9896fa3de5 file mods.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler ea5cb3bbde file width.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler 732216d72a file summary.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler b08068e829 file package.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler 1622a2d06f file grademethod.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler 0d4a213943 Better handling of dates when timedue isn't set 2005-05-31 23:28:08 +00:00
moodler 98823d2ac0 Hide due date when there isn;t one 2005-05-31 23:18:54 +00:00
moodler facf76eede Added event handling from trunk 2005-05-31 23:02:44 +00:00
moodler 41591a4a17 file categories_edit.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 22:48:21 +00:00
moodler cd22423ceb file penalty.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 22:48:21 +00:00
moodler 479c8e5958 file penaltyscheme.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 22:48:21 +00:00
moodler 271228d527 file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 22:48:21 +00:00
moodler d592dc462d file questionsperpage.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 22:48:21 +00:00
moodler bfaf3c876b file adaptive.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 22:48:21 +00:00
moodler 3954fbf809 file rqp.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 22:48:21 +00:00
stronk7 c63bcbf27c Complete refactor of quiz_delete_course()
Now this function works following this:
- Iterate over every quiz category in the course (following parent-child relationships).
- If the category is being used*, move it to site level (under a container category) and
      mark it as published.
- If the category isn't being used, remove** it completely (questions, instances...) and
      re-parent its child categories.
- Feedback is shown in a table detailing all the changes performed.

* One category is being used if it has one question that is being used in any quiz,
  independently of its publish status.
** Removal of categories (and associated questions) has benn improved but, it won't
  be perfect until bug 3366 was solved.

Tested against some large courses with reused questions and multiple levels of
categories. Seems to work but

PLEASE TEST IT AND SEND ANY FEEDBACK TO BUG 2459
(http://moodle.org/bugs/bug.php?op=show&bugid=2459)

Exactly this function is going to be used in the upgrade script to solve
the orphan categories issue and it must work perfectly!
2005-05-31 22:31:22 +00:00
stronk7 0242dc70f3 Four new strings added to show the work done
against quiz_categories when a course is deleted.
Part of bug 2459
(http://moodle.org/bugs/bug.php?op=show&bugid=2459)
2005-05-31 21:26:09 +00:00
moodler 25957101a8 file responsestable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-31 20:23:27 +00:00
moodler 6d079b698f file responsestable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:23 +0000 2005-05-31 20:23:27 +00:00
stronk7 0456f1c62a Simplify the quizzes_category_used() function.
I was using the $excluded parameter to avoid
loops between categories. A->B->A. Think we can
assume such loops won't exist, so I've deleted
the $excluded use.
2005-05-31 16:30:36 +00:00
thepurpleblob 5c6c7224eb Took out dos line endings 2005-05-31 15:17:20 +00:00
thepurpleblob a40014f758 Removed spurious aligns in <input> tags for optional units - now formats
properly in Apple Safari
2005-05-31 14:45:05 +00:00
thepurpleblob 53b9b145ab Fixed incorrect !important tags in CSS 2005-05-31 14:21:28 +00:00
thepurpleblob ded3459821 'Fixed' quizzes_category_used declaration to make it work. Based on it only
being called in one place. Might need a 'proper' fix though, but this gets us
moving!
2005-05-31 13:34:15 +00:00
thepurpleblob 331b64ac3f Removed uneccessary call-time pass by reference. 2005-05-31 10:11:00 +00:00
thepurpleblob b89246267b Checks import/export class file actually exists before trying to include it. 2005-05-31 10:02:48 +00:00
martinlanghoff cdbba24134 First cut of field locks support. functional but missing strings and support for LDAP/DB modules.
- Extended set_config()
- Implemented get_config() which takes over $CFG loading in setup.php
- admin/auth.php has special handling if post vars starting in pluginconfig_
- admin/auth.php print_auth_lock_options() prints a form fragment -- being called from most plugins now
- user/edit.php follows the new convention when locking down fields, both javascript UI and on POST.
2005-05-31 05:36:41 +00:00
moodler fa84313875 file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:06 +0000 2005-05-31 05:13:33 +00:00
moodler e2d02f322e file timezones.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:06 +0000 2005-05-31 05:13:33 +00:00
moodler 2b545bff3b file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:05 +0000 2005-05-31 05:13:33 +00:00
moodler ec0e8976e9 file block_glossary_random.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:05 +0000 2005-05-31 05:13:33 +00:00
moodler 24ad970192 file grades.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:05 +0000 2005-05-31 05:13:33 +00:00
moodler 83bf0c7ac3 file block_html.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:05 +0000 2005-05-31 05:13:33 +00:00
moodler 2a55ad8736 file block_quiz_results.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:05 +0000 2005-05-31 05:13:33 +00:00
moodler 25b68ad11e Fix for SC122 2005-05-31 04:36:04 +00:00
moodler d347fbefd6 file qtype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-05-31 01:48:07 +00:00
moodler 6124af76ab file questionnaireid.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-05-31 01:48:07 +00:00
moodler 893e4ecc77 file qmanage.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-05-31 01:48:07 +00:00
moodler f5925fe29a file respondenttype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-05-31 01:48:07 +00:00
moodler d07e7183e6 file casesensitive.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler c82589c6b5 file editalways.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 2c0436b1a6 file importcategories.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler a1e04405ff file aliases2.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 0516af71ef file globalglossary.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 8f459f900b file usedynalink.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 866885022f file aliases.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 350ad0ef85 file entbypage.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 6b73dbaa20 file rssarticles.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 291f7bd8ba file studentcanpost.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 40fb06a8d0 file allowprintview.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler c4563fe0fb file shows.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 17c9ed588d file mainglossary.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 9480b8f1f4 file linkcategory.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 6c45d66129 file allowduplicatedentries.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler ae29b65979 file destination.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler e43dd3defa file defaultapproval.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 02c71b5a1e file filetoimport.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler b6f1f29147 file rsstype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 6b9ab9e4fc file attachment.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler cffd20cede file usedynalinkentry.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 3372fd30ff file description.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 8353441838 file allowcomments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 5d213075c3 file displayformat.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 5da1448d69 file fullmatch.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler cc082cb176 file dynsection.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-31 01:48:07 +00:00
moodler 53e1d700bf file hours.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-31 01:48:07 +00:00
moodler b9441c6e63 file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-31 01:48:07 +00:00
moodler 98aa5c1e21 file choosedays.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-31 01:48:07 +00:00
moodler fa43dc51f8 file grade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-31 01:48:07 +00:00
moodler ef405b2a1b file autoattend.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-31 01:48:07 +00:00
moodler 58c4dc24c7 file penaltyscheme.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-31 00:12:27 +00:00
moodler 741ee69fad file questionsperpage.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-31 00:12:27 +00:00
moodler 754e6ee60b file penaltyscheme.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-05-31 00:12:27 +00:00
moodler 780d107619 file questionsperpage.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-05-31 00:12:27 +00:00
stronk7 61842c3a01 Added the sort_categories_by_tree() function that
returns an ordered array of categories following
the parent-child relationships. It doesn't forget
any category and returns all the categories passed
although their parent were incorrect. Try to build
as much tree structure as possible.
2005-05-30 23:56:38 +00:00
mjollnir_ 8c28ed7838 Fixing up problem in generate_email_processing_address -- using sitesecret rather than siteidentifier 2005-05-30 23:25:56 +00:00
martinlanghoff 8bfac5b93d Fixed field lenght in config_plugins 2005-05-30 22:30:50 +00:00
stronk7 6d64a7091d Deleting one debug message... 2005-05-30 22:27:20 +00:00
stronk7 22ad0a2e45 Now the quizzes_category_used() function supports searching
for uses recursively plus an array of excluded categories.

Needed to solve bug 2459...in progress.
2005-05-30 22:25:52 +00:00
moodler e8eaff0171 file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:55 +0000 2005-05-30 22:07:12 +00:00
moodler f3bfb270af Fixed _new with _blank 2005-05-30 18:42:41 +00:00
moodler 260d699c17 Added limit of 900 characters to subject line, to prevent overflows 2005-05-30 18:09:03 +00:00
defacer bb25fc1bca Fix for bug 3364:
The Great Global $course Hack strikes again. I had to put in another instance
of the hack for course themes to work in the "calendar" part of the course.

Hopefully some day we 'll do all that "correctly"! (search for "hack" in
weblib and despair).
2005-05-30 13:31:44 +00:00
defacer 7bc4158521 More correct handling of group events, we cannot simply omit them because
the course has "no groups" UNLESS groupmodeforce == 1 as well.

Sadly, this severely weakens the performace optimizations :(

See bug 3303 for an example of what the problem was before.
2005-05-30 12:40:44 +00:00
mudrd8mz a0028106e3 Included fix by Jaime Villate posted Sunday, 8 May 2005, 10:45 PM 2005-05-30 09:31:28 +00:00
martinlanghoff fc0ee03121 Capture the outcome of the config_plugins table creation. 2005-05-30 05:24:19 +00:00
martinlanghoff 987d846223 Created config_plugins table to manage configuration entries on a per-module/plugin. This breaks the rules a little bit, but it has been discussed with MD. 2005-05-30 05:10:22 +00:00
martinlanghoff e7c83f42ef enrol/ldap offers enrol_allowinternal config option as it should. 2005-05-30 03:51:07 +00:00
moodler c8198e1311 file summary.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-30 01:49:53 +00:00
moodler 17620a4193 file package.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-30 01:49:53 +00:00
moodler 61b7abf279 file summary.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-05-30 01:49:52 +00:00
moodler 4be10f9c9d file package.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-05-30 01:49:52 +00:00
watcanz 606f29ff1d styles_layout.css updated for new sideblocks code. header.html removed logo. 2005-05-30 00:02:22 +00:00
ecastrolt 6a43c2aae4 *** empty log message *** 2005-05-29 20:50:14 +00:00
ecastrolt 29a4e4e556 *** empty log message *** 2005-05-29 19:45:14 +00:00
ecastrolt c65086aab0 *** empty log message *** 2005-05-29 19:36:41 +00:00
stronk7 6d85897f87 Added the quizzes_category_used() to detect the list of
quizzes that are using questions from one category.
It relies in the quizzes_question_used() function. Will
be use in the 'orphan_categories' bug (#2459)

(http://moodle.org/bugs/bug.php?op=show&bugid=2459)
2005-05-29 18:58:14 +00:00
stronk7 83c5e8f6b1 format_string() applied once deleting courses...
Merged from HEAD
2005-05-29 17:32:18 +00:00
moodler 3d8a508910 Fix for bug 3350 where older SESSION->wantsurl was hanging around 2005-05-29 07:58:37 +00:00
moodler cb9b40a576 file book.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:14 +0000 2005-05-29 07:07:18 +00:00
moodler e21964e8b0 file timerestrict.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-05-29 06:48:37 +00:00
moodler d15938ce5f file limit.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-05-29 06:48:37 +00:00
moodler 22f52e2bf3 file options.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-05-29 06:48:37 +00:00
moodler b6f8c22bc3 file chatting.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-05-29 06:48:36 +00:00
moodler c89d8d7636 file resubmit.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-29 06:48:36 +00:00
moodler a17794496c file commentinline.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-29 06:48:36 +00:00
moodler e545ae1876 file types.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-29 06:48:36 +00:00
moodler 236ec5b9b6 file assignmenttype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-29 06:48:36 +00:00
moodler bae75cb826 file emailteachers.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-29 06:48:36 +00:00
moodler 89552fc789 file search.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-29 06:48:36 +00:00
moodler 3684c9f4e2 file authchange.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:03 +0000 2005-05-29 06:48:36 +00:00
moodler db3a8b8a59 file advancedsettings.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:03 +0000 2005-05-29 06:48:36 +00:00
moodler 2b82654492 file cost.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:03 +0000 2005-05-29 06:48:36 +00:00
moodler bb4e105b49 FIxed a problem when stripping terms from search string for highlighting 2005-05-29 04:04:31 +00:00
defacer 1819221450 Now tablelib allows the GET variables that control sorting etc. to be
configured. Essential in order to allow two independent tables in the same
screen, which is required for /user/index.php.
2005-05-28 21:22:45 +00:00
defacer 4ac7b06a76 Revisited blocks administration page!
* Incompatible blocks which have been disabled during the upgrade
     from Moodle 1.4 can now be deleted.

   * Incompatible blocks (if any) are presented in a separate table
     and are clearly marked as such.

   * Using the new table class.

   * Improved visuals.

   * Fixed HTML and updated obsolete coding conventions all around.
2005-05-28 18:36:01 +00:00
defacer 379298d6ae NEW STRING ADDED for admin/blocks.php
One string we no longer use removed.
2005-05-28 18:28:26 +00:00
defacer 49307babf5 New styles for the revisited admin/blocks page, coming up next. 2005-05-28 18:22:28 +00:00
moodler ac6e8f1133 $CFG->ignoresesskey can override all sesskey checking 2005-05-28 14:02:53 +00:00
moodler ce34811cdd Addes mms protocol 2005-05-28 13:29:37 +00:00
moodler 51f2f92ca5 file trackingtype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:14 +0000 2005-05-28 08:58:56 +00:00
moodler 3bcee5d4c7 Fixed a missing global 2005-05-28 06:38:10 +00:00
moodler 07a5d7cb3e file penalty.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-28 01:27:05 +00:00
moodler 7adc79d42c file penalty.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-05-28 01:27:05 +00:00
moodler 069577e929 file ungradedassessments_teacher.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler cffe2e51bd file usepassword.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:13 +0000 2005-05-28 01:04:34 +00:00
moodler 317dbb6f67 file submissionofexamples.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 0c06ed4263 file selfassessment.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler abb8d37084 file leaguetable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler f0cffb1e49 file resubmit.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 16b96bf3c9 file gradingsubmissions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler e47e30a11f file overallocation.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 4431f7188f file nattachments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 7f6d1637d0 file includeteachersgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 7e01657166 file nassessmentsofteachersexamples.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 51cb63459b file includeself.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 5992f232aa file ungradedassessments_student.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 688d2f7d5b file teacherweight.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler b5cb37d9ea file specimen.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler e892f04d05 file showinggrades.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 01c784002a file nassessmentsofstudentsubmissions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 267a7811fc file ungradedassessments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 0ac29d7f60 file gradingassessments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:33 +00:00
moodler c975e6afad file finalgrades.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:33 +00:00
moodler 80118a25eb file breakdownoffinalgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:33 +00:00
moodler 13bc6270d6 file calculatingfinalgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:33 +00:00
moodler 85b2ee359b file editingacomment.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:33 +00:00
moodler 9cd2e8b3d4 file grading.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:33 +00:00
moodler 2dcc168e63 file assessmentofexamples.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-05-28 01:04:33 +00:00
moodler 05f64e893d file addcommenttobank.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-05-28 01:04:33 +00:00
moodler f40c81f9b7 file analysisofassessments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-05-28 01:04:33 +00:00
moodler fac82b6f2a file agreeassessments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-05-28 01:04:33 +00:00
moodler d55bcca3a5 file assignmenttype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-05-28 01:04:33 +00:00
moodler bbc338767a file addingacomment.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-05-28 01:04:33 +00:00
moodler e88d8a3aa4 file anonymous.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-05-28 01:04:33 +00:00
urs_hunkler bb0ceba26d I removed the inlinestyle for the userentry in the sideblock "online user" and added the class "listentry" to the div. The properties of th inline style are now defined in styles_layout.css and stylews_fonts.css. 2005-05-27 17:24:27 +00:00
moodler 2b63e793a2 file analysistable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-27 17:18:47 +00:00
moodler e0514c228d file analysistable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:23 +0000 2005-05-27 17:18:47 +00:00
moodler 8f92195276 Added an extra style based on the glossary id which might allow
some nice effects.  This idea should probably be extended later,
perhaps with the ability to define the style in the glossary itself.
2005-05-27 14:56:43 +00:00
moodler 4a21ecc113 file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:19 +0000 2005-05-27 12:25:38 +00:00
moodler 3217988a86 file emailprotect.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:19 +0000 2005-05-27 12:25:38 +00:00
bobopinna 65497822b9 Added AICC API to bug fix a problem with AICC package launch 2005-05-27 09:07:56 +00:00
bobopinna 5bd1036974 file aicc.js.php was added on branch MOODLE_15_STABLE on 2005-05-27 09:07:56 +0000 2005-05-27 09:05:04 +00:00
moodler 01d08c35d6 file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:00 +0000 2005-05-27 07:39:59 +00:00
moodler 8415a420df file authchange.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:14 +0000 2005-05-26 23:05:29 +00:00
moodler fa614c0451 file cost.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:14 +0000 2005-05-26 22:40:02 +00:00
moodler 532231e9e8 file retake.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-26 20:46:47 +00:00
moodler 98dba5cea6 file retake.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:23 +0000 2005-05-26 20:46:47 +00:00
moodler d29f2368de file slideshow.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-26 18:50:09 +00:00
moodler 234c4e5276 file slideshow.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:23 +0000 2005-05-26 18:50:09 +00:00
moodler f5e5206c00 file useeditor.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-26 17:30:03 +00:00
moodler d19c7d4459 file useeditor.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:23 +0000 2005-05-26 17:30:03 +00:00
moodler 50e20544b7 Merged stability fix from HEAD 2005-05-26 15:25:47 +00:00
moodler a4f3ee5b1e New string for registration 2005-05-26 14:45:15 +00:00
moodler 192d6a6ea9 A little note for admins looking in the source who might be really annoyed. :-) 2005-05-26 14:44:51 +00:00
moodler 705e3a7f76 Registration is now a bit more in-your-face.
Every six months you get prompted by a slightly annoying button on
the admin page to re-register.  Once you've done so it disappears.
2005-05-26 14:43:31 +00:00
moodler d716e12ac4 More little fixes for the calendar days thing 2005-05-26 12:53:11 +00:00
moodler e8b9d71f03 Fixed Strange calls to get_string for weekdays in calendar
http://moodle.org/mod/forum/discuss.php?d=24476
2005-05-26 12:33:10 +00:00
ethem aabfe78ed5 $CFG 2005-05-26 11:22:30 +00:00
bobopinna e41e727022 Fixed some bugs. Now AICC seems to work. 2005-05-26 10:01:56 +00:00
ethem fcee2e9780 Fixing enrol_allowinternal. 2005-05-26 07:35:45 +00:00
gustav_delius 94acf297c6 Better name for the new function 2005-05-26 07:18:25 +00:00
gustav_delius b94257273c Disabled versioning and re-grading until it is fixed. 2005-05-26 07:11:20 +00:00
moodler fc071f0cfc file adaptive.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:55 +0000 2005-05-25 22:17:18 +00:00
gustav_delius 6680874953 reverted to version before Julian's attempt at fixing bug 3311 2005-05-25 21:41:39 +00:00
defacer dbf8f55057 Er, fix for bug 3334 once more.
If at first you don't succeed...
2005-05-25 17:54:58 +00:00
moodler 477647c885 Updated from HEAD 2005-05-25 16:29:16 +00:00
moodler 8fe1a6a72f file grades.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:59 +0000 2005-05-25 16:28:09 +00:00
moodler 6f1a4d5f55 file lesson.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:59 +0000 2005-05-25 16:28:09 +00:00
moodler f96e334571 SOme cleaning up of the code 2005-05-25 16:25:43 +00:00
defacer 14b7da1527 Fixing the other half of bug 3334. 2005-05-25 14:26:28 +00:00
defacer 101415b202 Fixing one half of bug 3334 with the patch provided by the reporter.
Also fixing another unfriendly behavior in that screen.
2005-05-25 14:22:05 +00:00
gustav_delius 11e9ca5af1 updated database creation by exporting from my database that was created by updating from 1.4 2005-05-25 06:02:03 +00:00
moodler a4369a6ac4 file penaltyscheme.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:09 +0000 2005-05-25 02:24:44 +00:00
moodler f0eda67f46 file questionsperpage.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-05-25 02:24:44 +00:00
moodler 3ea6ab6652 file rqp.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-05-25 02:24:44 +00:00
moodler 4597517cf5 file penalty.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:09 +0000 2005-05-25 02:24:44 +00:00
moodler d7a8d13cb4 file itemanalysis.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:09 +0000 2005-05-25 02:24:44 +00:00
moodler 289d8f834b file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:09 +0000 2005-05-25 02:24:44 +00:00
moodler cb219861eb file adaptive.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:09 +0000 2005-05-25 02:24:44 +00:00
moodler 206f13e19a file ratings.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler 141f2eb969 file rssarticles.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler 54c362fdaf file maxattachmentsize.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler b7f3681c1d file forumtype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler c71b977964 file subscription2.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler f86849b8e5 file subscription.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler 0d07ff6170 file allowdiscussions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler cf1db6bad7 file rsstype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler 7e85d1188a file attachment.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler 76de166ee1 file trackingtype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
defacer 76e2cb0a9b Backporting changes from HEAD 2005-05-24 18:58:02 +00:00
moodler 1b0649d558 Moved some things from People block to Administration. Each of them
will probably be tweaked a little more still.
2005-05-24 16:55:48 +00:00
thepurpleblob 05ac097e4c Now includes missing text re. missingword format suppporting short answer questions. 2005-05-24 16:53:34 +00:00
gustav_delius 4c21136a5b fixed bug 3329 2005-05-24 16:07:10 +00:00
bobopinna d38835ab1b Fixed some typo and bugs
Added support to Moodle 1.4 backup
2005-05-24 15:29:51 +00:00
thepurpleblob b0fe38fc78 Put addslashes around question name - truncate at unlucky point could break sql. 2005-05-24 15:17:07 +00:00
julmis ce2e784b47 Adding buttons:
- nolink
- search and replace
2005-05-24 14:21:00 +00:00
gustav_delius 9114cce39b file report.php was added on branch MOODLE_15_STABLE on 2005-06-04 08:54:56 +0000 2005-05-06 06:24:04 +00:00
gustav_delius 0d00dc375f file report.php was added on branch MOODLE_15_STABLE on 2005-06-04 08:55:37 +0000 2005-05-06 06:24:04 +00:00
moodler 27437410f4 file survey.php was added on branch MOODLE_15_STABLE on 2006-03-10 07:27:54 +0000 2005-04-05 20:54:43 +00:00
4477 changed files with 48764 additions and 201472 deletions
+3 -3
View File
@@ -5,9 +5,9 @@
define("MAX_USERS_PER_PAGE", 50);
$add = optional_param('add', "", PARAM_ALPHA);
$remove = optional_param('remove', '', PARAM_ALPHA);
$search = optional_param('search', '', PARAM_ALPHA);
optional_variable($add, "");
optional_variable($remove, "");
optional_variable($search, "");
if (! $site = get_site()) {
redirect("$CFG->wwwroot/$CFG->admin/index.php");
+8 -51
View File
@@ -2,9 +2,6 @@
// config.php - allows admin to edit all configuration variables
include("../config.php");
$auth = optional_param( 'auth','',PARAM_CLEAN );
require_login();
if (!$site = get_site()) {
@@ -21,7 +18,6 @@
/// If data submitted, then process and store.
if ($config = data_submitted()) {
$config = (array)$config;
@@ -70,19 +66,11 @@
$options[$module] = get_string("auth_$module"."title", "auth");
}
asort($options);
if (!empty($auth) && in_array($auth, $modules)) {
if (isset($_GET['auth']) && in_array($_GET['auth'], $modules)) {
$auth = $_GET['auth'];
} else {
$auth = $config->auth;
}
// changepassword link replaced by individual auth setting
if (!empty($config->changepassword)) {
if (empty($config->{'auth_'.$auth.'_changepasswordurl'})) {
$config->{'auth_'.$auth.'_changepasswordurl'} = $config->changepassword;
}
set_config('changepassword','');
}
$auth = clean_filename($auth);
require_once("$CFG->dirroot/auth/$auth/lib.php"); //just to make sure that current authentication functions are loaded
if (! isset($config->guestloginbutton)) {
@@ -97,12 +85,6 @@
if (! isset($config->changepassword)) {
$config->changepassword = "";
}
if (! isset($config->{'auth_'.$auth.'_changepasswordurl'})) {
$config->{'auth_'.$auth.'_changepasswordurl'} = '';
}
if (! isset($config->{'auth_'.$auth.'_changepasswordhelp'})) {
$config->{'auth_'.$auth.'_changepasswordhelp'} = '';
}
$user_fields = array("firstname", "lastname", "email", "phone1", "phone2", "department", "address", "city", "country", "description", "idnumber", "lang");
if (empty($focus)) {
@@ -152,32 +134,15 @@
echo '<td/></tr>';
if ($auth != "email" and $auth != "none" and $auth != "manual") {
// display box for URL to change password. NB now on a per-method basis (multiple auth)
echo "<tr valign=\"top\">";
echo "<td align=\"right\" nowrap=\"nowrap\">";
print_string("changepassword", "auth");
echo ":</td>";
echo "<td>";
$passurl = $config->{'auth_'.$auth.'_changepasswordurl'};
echo "<input type=\"text\" name=\"auth_{$auth}_changepasswordurl\" size=\"40\" value=\"$passurl\" />";
echo "<input type=\"text\" name=\"changepassword\" size=\"40\" value=\"$config->changepassword\" />";
echo "</td>";
echo "<td>";
print_string("auth_changepasswordurl_expl","auth",$auth);
echo "</td></tr>";
// display textbox for lost password help. NB now on a per-method basis (multiple auth)
echo "<tr valign=\"top\">";
echo "<td align=\"right\" nowrap=\"nowrap\">";
print_string("auth_changepasswordhelp", "auth");
echo ":</td>";
echo "<td>";
$passhelp = $config->{'auth_'.$auth.'_changepasswordhelp'};
echo "<textarea name=\"auth_{$auth}_changepasswordhelp\" cols=\"30\" rows=\"10\" wrap=\"virtual\">";
echo $passhelp;
echo "</textarea>\n";
echo "</td>";
echo "<td>";
print_string("auth_changepasswordhelp_expl","auth",$auth);
print_string("changepasswordhelp","auth");
echo "</td></tr>";
}
@@ -274,18 +239,10 @@ function print_auth_lock_options ($auth, $user_fields, $helptext, $retrieveopts,
foreach ($user_fields as $field) {
// Define some vars we'll work with
if(empty($pluginconfig->{"field_map_$field"})) {
$pluginconfig->{"field_map_$field"} = '';
}
if(empty($pluginconfig->{"field_updatelocal_$field"})) {
$pluginconfig->{"field_updatelocal_$field"} = '';
}
if (empty($pluginconfig->{"field_updateremote_$field"})) {
$pluginconfig->{"field_updateremote_$field"} = '';
}
if (empty($pluginconfig->{"field_lock_$field"})) {
$pluginconfig->{"field_lock_$field"} = '';
}
optional_variable($pluginconfig->{"field_map_$field"}, '');
optional_variable($pluginconfig->{"field_updatelocal_$field"}, '');
optional_variable($pluginconfig->{"field_updateremote_$field"}, '');
optional_variable($pluginconfig->{"field_lock_$field"}, '');
// define the fieldname we display to the user
$fieldname = $field;
+1 -1
View File
@@ -1,6 +1,6 @@
<form method="post" action="calendar.php">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
<table class="formtable">
<tr>
<th>adminseesall:</th>
-10
View File
@@ -34,16 +34,6 @@
if ($name == "sessioncookie") {
$value = eregi_replace("[^a-zA-Z]", "", $value);
}
if ($name == "defaultallowedmodules") {
$value = implode(',',$value);
}
if ($name == 'hiddenuserfields') {
if (in_array('none', $value)) {
$value = '';
} else {
$value = implode(',',$value);
}
}
unset($conf);
$conf->name = $name;
$conf->value = $value;
+1 -142
View File
@@ -88,8 +88,7 @@ class configvarrss extends configvar {
choose_from_menu ($noyesoptions, 'enablerssfeeds', $config->enablerssfeeds, '', '', '', true),
'<font color="red"> You need to add XML support to your PHP installation.</font>' );
$misc['mymoodleredirect'] = new configvar (get_string('configmymoodleredirect','admin'),
choose_from_menu($noyesoptions,'mymoodleredirect',$config->mymoodleredirect,'','','',true));
////////////////////////////////////////////////////////////////////
@@ -213,71 +212,6 @@ class configvarrss extends configvar {
choose_from_menu ($noyesoptions, 'allowobjectembed', $config->allowobjectembed, '', '', '', true) );
unset($options);
$options['none'] = 'No courses';
$options['all'] = 'All courses';
$options['requested'] = 'Requested courses';
$permissions['restrictmodulesfor'] = new configvar (get_string('configrestrictmodulesfor','admin'),
' <script language="JavaScript">
function togglemodules(index) {
if (index == 0) {
document.getElementById(\'allowedmodules\').disabled=true;
}
else {
document.getElementById(\'allowedmodules\').disabled=false;
}
}
</script>'.
choose_from_menu($options,'restrictmodulesfor',$config->restrictmodulesfor,'','togglemodules(this.selectedIndex);','',true) );
$permissions['restrictbydefault'] = new configvar (get_string('configrestrictbydefault','admin'),
choose_from_menu($noyesoptions, 'restrictbydefault',$config->restrictbydefault,'','','',true) );
$allowstr = '<select name="defaultallowedmodules[]" id="allowedmodules" multiple="multiple" size="10"'.((empty($config->restrictmodulesfor)) ? "disabled=\"disabled\"" : "").'>';
$allowedmodules = array();
if (!empty($config->defaultallowedmodules)) {
$allowedmodules = explode(',',$config->defaultallowedmodules);
}
// On a fresh install of Moodle, this could be empty; prevent a warning on the following loop.
if (!$mods = get_records("modules")) {
$mods = array();
}
$s = "selected=\"selected\"";
$allowstr .= '<option value="0" '.((empty($allowedmodules)) ? $s : '').'>'.get_string('allownone').'</option>'."\n";
foreach ($mods as $mod) {
$selected = "";
if (in_array($mod->id,$allowedmodules))
$selected = $s;
$allowstr .= '<option '.$selected.' value="'.$mod->id.'">'.$mod->name.'</option>'."\n";
}
$allowstr .= '</select>';
$permissions['defaultallowedmoules'] = new configvar (get_string('configdefaultallowedmodules','admin'),$allowstr);
/// course requests
$reqcourse['enablecourserequests'] = new configvar (get_string('configenablecourserequests', 'admin'),
choose_from_menu ($noyesoptions,'enablecourserequests',$config->enablecourserequests,'','','',true) );
/// default category for course requests
require_once($CFG->dirroot.'/course/lib.php');
$reqcourse['defaultrequestedcategory'] = new configvar (get_string('configdefaultrequestedcategory', 'admin'),
choose_from_menu (make_categories_options(), 'defaultrequestedcategory',$config->defaultrequestedcategory,'','','',true) );
$reqcourse['requestedteachername'] = new configvar (get_string('configrequestedteachername','admin'),
'<input type="text" name="requestedteachername" size="20" maxlength="100" value="'.s($config->requestedteachername).'" />');
$reqcourse['requestedteachersname'] = new configvar (get_string('configrequestedteachersname','admin'),
'<input type="text" name="requestedteachersname" size="20" maxlength="100" value="'.s($config->requestedteachersname).'" />');
$reqcourse['requestedstudentname'] = new configvar (get_string('configrequestedstudentname','admin'),
'<input type="text" name="requestedstudentname" size="20" maxlength="100" value="'.s($config->requestedstudentname).'" />');
$reqcourse['requestedstudentsname'] = new configvar (get_string('configrequestedstudentsname','admin'),
'<input type="text" name="requestedstudentsname" size="20" maxlength="100" value="'.s($config->requestedstudentsname).'" />');
////////////////////////////////////////////////////////////////////
/// INTERFACE config variables
@@ -375,23 +309,6 @@ class configvarrss extends configvar {
$user['autologinguests'] = new configvar (get_string('configautologinguests', 'admin'),
choose_from_menu ($noyesoptions, 'autologinguests', $config->autologinguests, '', '', '', true) );
/// hiddenuserfields
$fields = array('none', 'description', 'city', 'country', 'webpage', 'icqnumber', 'skypeid', 'yahooid', 'aimid', 'msnid', 'lastaccess');
if (empty($config->hiddenuserfields)) {
$config->hiddenuserfields = 'none';
}
$configfields = array_flip(explode(',', $config->hiddenuserfields));
$fieldoptions = '';
foreach ($fields as $value) {
$fieldoptions .= '<option value="'.$value.'"';
if (isset($configfields[$value])) {
$fieldoptions .= ' selected="selected"';
}
$fieldoptions .= '>'.get_string($value).'</option>';
}
$user['hiddenuserfields'] = new configvar (get_string('confighiddenuserfields', 'admin'),
'<select id="menuhiddenuserfields" name="hiddenuserfields[]" size="10" multiple="multiple">'.$fieldoptions.'</select>' );
@@ -554,66 +471,10 @@ class configvarrss extends configvar {
$mail['denyemailaddresses'] = new configvar (get_string('configdenyemailaddresses', 'admin'),
'<input name="denyemailaddresses" type="text" size="60" value="'.s($config->denyemailaddresses).'" alt="denyemailaddresses" />' );
/// sitemailcharset
unset($options);
unset($charsets);
$charsets = get_list_of_charsets();
$options['0'] = get_string('none');
$options = array_merge($options, $charsets);
$mail['sitemailcharset'] = new configvar (get_string('configsitemailcharset', 'admin'),
choose_from_menu($options, 'sitemailcharset', $config->sitemailcharset, '', '', '', true));
/// allowusermailcharset
$mail['allowusermailcharset'] = new configvar (get_string('configallowusermailcharset', 'admin'),
choose_from_menu($noyesoptions, 'allowusermailcharset', $config->allowusermailcharset, '', '', '', true));
/// enable stats
$stats['enablestats'] = new configvar (get_string('configenablestats','admin'),
choose_from_menu($noyesoptions, 'enablestats', $config->enablestats, '', '', '', true) );
unset($options);
$options['none'] = get_string('none');
$options[60*60*24*7] = get_string('numweeks','moodle',1);
$options[60*60*24*14] = get_string('numweeks','moodle',2);
$options[60*60*24*21] = get_string('numweeks','moodle',3);
$options[60*60*24*28] = get_string('nummonths','moodle',1);
$options[60*60*24*56] = get_string('nummonths','moodle',2);
$options[60*60*24*84] = get_string('nummonths','moodle',3);
$options[60*60*24*112] = get_string('nummonths','moodle',4);
$options[60*60*24*140] = get_string('nummonths','moodle',5);
$options[60*60*24*168] = get_string('nummonths','moodle',6);
$options['all'] = get_string('all');
$stats['statsfirstrun'] = new configvar (get_string('configstatsfirstrun','admin'),
choose_from_menu($options,'statsfirstrun',$config->statsfirstrun,'','','',true) );
unset($options);
$options[0] = get_string('untilcomplete');
$options[60*60] = '1 '.get_string('hour');
$options[60*60*2] = '2 '.get_string('hours');
$options[60*60*3] = '3 '.get_string('hours');
$options[60*60*4] = '4 '.get_string('hours');
$options[60*60*5] = '5 '.get_string('hours');
$options[60*60*6] = '6 '.get_string('hours');
$options[60*60*7] = '7 '.get_string('hours');
$options[60*60*8] = '8 '.get_string('hours');
if (empty($config->statsruntimestarthour)) {
$config->statsruntimestarthour = 0;
}
if (empty($config->statsruntimestartminute)) {
$config->statsruntimestartminute = 0;
}
$stats['statsmaxruntime'] = new configvar (get_string('configstatsmaxruntime','admin'),
choose_from_menu($options,'statsmaxruntime',$config->statsmaxruntime,'','','',true) );
$stats['statsruntimestart'] = new configvar (get_string('configstatsruntimestart','admin'),
print_time_selector("statsruntimestarthour","statsruntimestartminute",make_timestamp(2000,1,1,$config->statsruntimestarthour,$config->statsruntimestartminute),5,true) );
$stats['statsuserthreshold'] = new configvar (get_string('configstatsuserthreshold','admin'),
'<input type="text" name="statsuserthreshold" size="4" value="'.$config->statsuserthreshold.'" />');
////////////////////////////////////////////////////////////////////
@@ -624,8 +485,6 @@ class configvarrss extends configvar {
$configvars['mail'] = $mail;
$configvars['user'] = $user;
$configvars['permissions'] = $permissions;
$configvars['requestedcourse'] = $reqcourse;
$configvars['misc'] = $misc;
$configvars['stats'] = $stats;
?>
+3 -3
View File
@@ -5,9 +5,9 @@
define("MAX_USERS_PER_PAGE", 50);
$search = optional_param('search', '', PARAM_CLEAN);
$add = optional_param('add', '', PARAM_CLEAN);
$remove = optional_param('remove', '', PARAM_CLEAN );
optional_variable($search, "");
optional_variable($add, "");
optional_variable($remove, "");
if (! $site = get_site()) {
redirect("$CFG->wwwroot/$CFG->admin/index.php");
+1 -96
View File
@@ -27,7 +27,6 @@
}
require_once("../config.php");
require_once($CFG->dirroot.'/lib/adminlib.php');
if (!$alreadyadmin = isadmin()) {
unset($_SESSION['USER']);
@@ -35,8 +34,6 @@
unset($_SESSION['SESSION']);
unset($SESSION);
$USER = get_admin(); /// Temporarily, to provide environment for this script
// we need to override the admin timezone to the moodle timezone!
$USER->timezone = $CFG->timezone;
}
//unset test cookie, user must login again anyway
@@ -107,28 +104,12 @@
$oneweek = $timenow - ($CFG->deleteunconfirmed * 3600);
if ($users = get_users_unconfirmed($oneweek)) {
foreach ($users as $user) {
if (delete_records('user', 'id', $user->id)) {
if (delete_records("user", "id", $user->id)) {
mtrace("Deleted unconfirmed user for ".fullname($user, true)." ($user->id)");
}
}
}
flush();
/// Delete users who haven't completed profile within required period
$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)");
}
}
}
flush();
/// Delete old logs to save space (this might need a timer to slow it down...)
@@ -153,31 +134,6 @@
sync_metacourses();
//
// generate new password emails for users
//
mtrace('checking for create_password');
if (count_records('user_preferences', 'name', 'create_password', 'value', '1')) {
mtrace('creating passwords for new users');
$newusers = get_records_sql("SELECT u.id as id, u.email, u.firstname,
u.lastname, u.username,
p.id as prefid
FROM {$CFG->prefix}user u
JOIN {$CFG->prefix}user_preferences p ON u.id=p.userid
WHERE p.name='create_password' AND p.value=1 AND u.email !='' ");
foreach ($newusers as $newuserid => $newuser) {
$newuser->emailstop = 0; // send email regardless
// email user
if (setnew_password_and_mail($newuser)) {
// remove user pref
delete_records('user_preferences', 'id', $newuser->prefid);
} else {
trigger_error("Could not create and mail new user password!");
}
}
}
} // End of occasional clean-up tasks
@@ -186,12 +142,6 @@
//Perhaps a long time and memory could help in large sites
@set_time_limit(0);
@raise_memory_limit("128M");
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
// memory management is truly awful but we can help it.
@apache_child_terminate();
}
if (file_exists("$CFG->dirroot/backup/backup_scheduled.php") and
file_exists("$CFG->dirroot/backup/backuplib.php") and
file_exists("$CFG->dirroot/backup/lib.php") and
@@ -229,51 +179,6 @@
mtrace($enrol->log);
}
if (!empty($CFG->enablestats)) {
// check we're not before our runtime
$timetocheck = strtotime("$CFG->statsruntimestarthour:$CFG->statsruntimestartminute today");
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 LIMIT 1')) {
// 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.
}
}
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();
}
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);
}
}
}
}
//Unset session variables and destroy it
@session_unset();
@session_destroy();
+2 -6
View File
@@ -3,10 +3,6 @@
require_once("../config.php");
$topframe = optional_param( 'topframe', '', PARAM_ALPHA);
$bottomframe = optional_param( 'bottomframe', '', PARAM_ALPHA);
$do = optional_param( 'do','',PARAM_ALPHA);
require_login();
if (!isadmin()) {
@@ -17,13 +13,13 @@
$stradministration = get_string("administration");
$site = get_site();
if (!empty($topframe)) {
if (isset($topframe)) {
print_header("$site->shortname: $strdatabaseperformance", "$site->fullname",
"<a target=\"$CFG->framename\" href=\"index.php\">$stradministration</a> -> Database performance");
exit;
}
if (!empty($bottomframe) or !empty($do)) {
if (isset($bottomframe) or isset($_GET['do'])) {
$perf =&NewPerfMonitor($db);
$perf->UI($pollsecs=5);
exit;
+1 -17
View File
@@ -96,7 +96,7 @@
}
/// Print form and popup menu
echo '<center><form method="post" action="'.$CFG->wwwroot.'/admin/environment.php">';
echo '<center><form method="post" action="environment.php">';
echo $strmoodleversion.' ';
choose_from_menu ($versions, 'version', $version, null, 'this.form.submit();' );
echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
@@ -107,22 +107,6 @@
/// Gather and show results
$status = check_moodle_environment($version, $environment_results);
/// Process action
if ($form = data_submitted()) {
if (confirm_sesskey()) {
if ($form->action == "disable") {
} else {
}
}
}
/// Default action, show explanation and popup menu
/// Print footer
print_footer();
?>
+16 -3
View File
@@ -12,13 +12,26 @@
</MOODLE>
<MOODLE version="1.6">
<DATABASE level="required">
<VENDOR name="mysql" version="4.1.12" />
<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="7.4" />
</DATABASE>
<PHP version="4.3.0" level="required" />
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="optional" />
<PHP_EXTENSION name="mbstring" level="optional" />
<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_EXTENSIONS>
</MOODLE>
</COMPATIBILITY_MATRIX>
-79
View File
@@ -1,79 +0,0 @@
<?php // $Id$
// filter.php
// Edit text filter settings
require_once "../config.php";
require_once "$CFG->libdir/tablelib.php";
// check for allowed access
require_login();
if (!isadmin()) {
error( 'Only administrators can use the filters administration page' );
}
if (!$site = get_site()) {
error( 'Site is not defined in filters administration page' );
}
// get parameters
$params = new Object;
$param->filter = required_param( 'filter' );
// 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' );
//======================
// Process Actions
//======================
if ($config = data_submitted()) {
// check session key
if (!confirm_sesskey()) {
error( get_string('confirmsesskeybad', 'error' ) );
}
// run through submitted data
// reject if does not start with filter_
foreach ($config as $name => $value) {
set_config( $name,$value );
}
redirect( "$CFG->wwwroot/$CFG->admin/filters.php", get_string('changessaved'), 1);
exit;
}
//==============================
// Display logic
//==============================
$filtername = ucfirst( substr( $param->filter, strpos( $param->filter, '/' )+1 ) );
print_header( "$site->shortname: $txt->managefilters", "$site->fullname",
"<a href=\"index.php\">$txt->administration</a> -> <a href=\"configure.php\">$txt->configuration</a> " .
"-> <a href=\"filters.php\">$txt->managefilters</a> -> $filtername" );
print_heading( $txt->managefilters );
print_simple_box("<center>".get_string("configwarning", "admin")."</center>", "center", "50%");
echo "<br />";
print_simple_box_start("center",'');
?>
<form action="filter.php?filter=<?php echo urlencode($param->filter); ?>" method="post">
<input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
<?php include "$CFG->dirroot/$param->filter/filterconfig.html"; ?>
<center><input type="submit" value="<?php print_string('savechanges'); ?>" /></center>
</form>
<?php
print_simple_box_end();
print_simple_box_end();
print_footer();
?>
+159
View File
@@ -0,0 +1,159 @@
<?php print_simple_box_start("center"); ?>
<form name="filters" id="filters" method="post" action="filters.php">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
<table align="center" border="0" cellpadding="5" cellspacing="0">
<tr>
<td valign="top"><div align="right">
<br />
<input name="up" type="submit" id="up" value="&uarr;" />
<br />
<input name="down" type="submit" id="down" value="&darr;" />
<br />
</div></td>
<td valign="top">
<?php p($stractive) ?>
<br />
<select name="iselect" size="20" id="iselect"
onclick="document.filters.add.disabled=true;
document.filters.remove.disabled=false;
document.filters.uselect.selectedIndex=-1;">
<?php
$runscript = "";
foreach ($installedfilters as $filter) {
if ($selectedfilter == $filter) {
$selected = " selected ";
$runscript = "eval(\"document.filters.add.disabled=true\");
eval(\"document.filters.remove.disabled=false\");
eval(\"document.filters.uselect.selectedIndex=-1\");";
} else {
$selected = "";
}
echo "<option value=\"$filter\" $selected>".$allfilters[$filter]."</option>";
}
?>
</select></td>
<td valign="top">
<br />
<input name="add" type="submit" id="add" value="&larr;" />
<br />
<input name="remove" type="submit" id="remove" value="&rarr;" />
<br />
</td>
<td valign="top">
<?php p($strinactive) ?>
<br />
<select name="uselect" size="20" id="select"
onclick="document.filters.add.disabled=false;
document.filters.remove.disabled=true;
document.filters.iselect.selectedIndex=-1;">
<?php
foreach ($uninstalledfilters as $filter) {
if ($selectedfilter == $filter) {
$selected = " selected ";
$runscript = "eval(\"document.filters.add.disabled=false\");
eval(\"document.filters.remove.disabled=true\");
eval(\"document.filters.iselect.selectedIndex=-1\");";
} else {
$selected = "";
}
echo "<option value=\"$filter\" $selected>".$allfilters[$filter]."</option>";
}
?>
</select></td>
</tr>
</table>
</form>
<script language="Javascript">
<!--
<?php echo $runscript ?>
-->
</script>
<?php print_simple_box_end(); ?>
<br />
<br />
<?php print_simple_box_start("center"); ?>
<form name="options" id="options" method="post" action="filters.php">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
<input type="hidden" name="options" value="1">
<table cellpadding="20">
<tr valign="top">
<td nowrap="nowrap" align="right"><?php p($strcachetext) ?>:</td>
<td>
<?php
unset($options);
$options[604800] = get_string('numdays', '', 7);
$options[86400] = get_string('numdays', '', 1);
$options[43200] = get_string('numhours', '', 12);
$options[10800] = get_string('numhours', '', 3);
$options[7200] = get_string('numhours', '', 2);
$options[3600] = get_string('numhours', '', 1);
$options[2700] = get_string('numminutes', '', 45);
$options[1800] = get_string('numminutes', '', 30);
$options[900] = get_string('numminutes', '', 15);
$options[600] = get_string('numminutes', '', 10);
$options[540] = get_string('numminutes', '', 9);
$options[480] = get_string('numminutes', '', 8);
$options[420] = get_string('numminutes', '', 7);
$options[360] = get_string('numminutes', '', 6);
$options[300] = get_string('numminutes', '', 5);
$options[240] = get_string('numminutes', '', 4);
$options[180] = get_string('numminutes', '', 3);
$options[120] = get_string('numminutes', '', 2);
$options[60] = get_string('numminutes', '', 1);
$options[30] = get_string('numseconds', '', 30);
$options[0] = get_string('no');
choose_from_menu ($options, "cachetext", $CFG->cachetext, "", "", "");
?>
</td>
<td>
<?php p($strconfigcachetext) ?>
</td>
</tr>
<tr valign="top">
<td nowrap="nowrap" align="right"><?php p($strfilteruploadedfiles) ?>:</td>
<td>
<?php
unset($options);
$options[0] = get_string('no');
$options[1] = get_string('yes');
choose_from_menu ($options, "filteruploadedfiles", $CFG->filteruploadedfiles, "", "", "");
?>
</td>
<td>
<?php p($strconfigfilteruploadedfiles) ?>
</td>
</tr>
<tr valign="top">
<td nowrap="nowrap" align="right"><?php p($strfilterall) ?>:</td>
<td>
<?php
unset($options);
$options[0] = get_string('no');
$options[1] = get_string('yes');
choose_from_menu ($options, "filterall", $CFG->filterall, "", "", "");
?>
</td>
<td>
<?php p($strconfigfilterall) ?>
</td>
</tr>
<tr valign="top">
<td>&nbsp;</td>
<td><input type="submit" value="<?php print_string("savechanges") ?>"></td>
<td>&nbsp;</td>
</tr>
</table>
</form>
<?php print_simple_box_end(); ?>
+138 -295
View File
@@ -1,330 +1,173 @@
<?php // $Id$
// filters.php
// Edit list of available text filters
<?PHP // $Id$
// Allows the admin to create, delete and rename course categories
require_once "../config.php";
require_once "$CFG->libdir/tablelib.php";
require_once("../config.php");
// defines
define( 'FILTER_TABLE','filter_administration_table' );
optional_variable($iselect);
optional_variable($uselect);
optional_variable($add);
optional_variable($remove);
optional_variable($up);
optional_variable($down);
// check for allowed access
require_login();
if (!isadmin()) {
error( 'Only administrators can use the filters administration page' );
error("Only administrators can use this page!");
}
if (!$site = get_site()) {
error( 'Site is not defined in filters administration page' );
error("Site isn't defined!");
}
// get values from page
$params = new Object;
$params->action = optional_param( 'action','',PARAM_ALPHA );
$params->filterpath = optional_param( 'filterpath', '',PARAM_PATH );
$params->cachetext = optional_param( 'cachetext','0',PARAM_INT );
$params->filteruploadedfiles = optional_param( 'filteruploadedfiles','',PARAM_ALPHA );
$params->filterall = optional_param( 'filterall','',PARAM_ALPHA );
$params->filtermatchoneperpage = optional_param( 'filtermatchoneperpage','',PARAM_ALPHA );
$params->filtermatchonepertext = optional_param( 'filtermatchonepertext','',PARAM_ALPHA );
/// Print headings
// 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');
$stradministration = get_string("administration");
$strconfiguration = get_string("configuration");
$strmanagefilters = get_string("managefilters");
$strversion = get_string("version");
$strsettings = get_string("settings");
$strup = get_string("up");
$strdown = get_string("down");
$stractive = get_string("active");
$strinactive = get_string("inactive");
$strcachetext = get_string("cachetext", "admin");
$strconfigcachetext = get_string("configcachetext", 'admin');
$strfilteruploadedfiles = get_string("filteruploadedfiles", "admin");
$strfilterall = get_string("filterall", "admin");
$strconfigfilteruploadedfiles = get_string("configfilteruploadedfiles", 'admin');
$strconfigfilterall = get_string("configfilterall", "admin");
// 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
print_header("$site->shortname: $strmanagefilters", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> $strmanagefilters");
print_heading($strmanagefilters);
/// Make a list of all available filters and the best names for them we can find
$allfilters = array();
$filtersettings = array();
$filterlocations = array('mod','filter');
$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]]')) {
$plugins = get_list_of_plugins($filterlocation);
foreach ($plugins as $key => $plugin) {
if (is_readable("$CFG->dirroot/$filterlocation/$plugin/filter.php")) {
$name = trim(get_string("filtername", $plugin));
if (empty($name) or $name == "[[filtername]]") {
$name = $plugin;
}
$allfilters[ "$filterlocation/$plugin" ] = ucfirst( $name );
}
if (is_readable($settingspath)) {
$filtersettings[] = "$filterlocation/$plugin";
$allfilters["$filterlocation/$plugin"] = $name;
}
}
}
// get all the currently selected filters
if (!empty($CFG->textfilters)) {
$installedfilters = explode( ',', $CFG->textfilters );
}
else {
$installedfilters = array();
}
/// Make an array of all the currently installed filters
// take this opportunity to clean up filters
$oldinstalledfilters = $installedfilters;
$installedfilters = array();
foreach ($oldinstalledfilters as $key => $installedfilter ) {
if (!empty( $installedfilter ) and array_key_exists( $installedfilter, $allfilters ) ) {
$installedfilters[ $key ] = $installedfilter;
}
}
$installedfilters = array_unique($installedfilters);
set_config( 'textfilters', implode( ',', $installedfilters ) );
if (!empty($CFG->textfilters)) {
$installedfilters = explode(',',$CFG->textfilters);
//======================
// Process Actions
//======================
if (($params->action=="hide") and confirm_sesskey()) {
$key=array_search( $params->filterpath, $installedfilters );
// check filterpath is valid
if ($key===false) {
error( "Filter $params->filterpath is not a currently installed filter" );
}
// just delete it
unset( $installedfilters[ $key ] );
set_config( 'textfilters', implode( ',', $installedfilters ) );
}
if (($params->action=="show") and confirm_sesskey()) {
// check filterpath is valid
if (!array_key_exists( $params->filterpath, $allfilters ) ) {
error( "Filter $params->filterpath is not a currently installed filter" );
}
if (array_search( $params->filterpath,$installedfilters ) ) {
error( "Filter $params->filterpath is already active" );
}
// add it to installed filters
$installedfilters[] = $params->filterpath;
$installedfilters = array_unique($installedfilters);
set_config( 'textfilters', implode( ',', $installedfilters ) );
}
if (($params->action=="down") and confirm_sesskey()) {
$key=array_search( $params->filterpath, $installedfilters );
// check filterpath is valid
if ($key===false ) {
error( "Filter $params->filterpath is not a currently installed filter" );
}
if ($key>=(count($installedfilters)-1)) {
error( "Filter $params->filterpath cannot be moved any further down" );
}
// swap with $key+1
$fsave = $installedfilters[$key];
$installedfilters[$key] = $installedfilters[$key+1];
$installedfilters[$key+1] = $fsave;
set_config( 'textfilters', implode( ',', $installedfilters ) );
}
if (($params->action=="up") and confirm_sesskey()) {
$key=array_search( $params->filterpath, $installedfilters );
// check filterpath is valid
if ($key===false ) {
error( "Filter $params->filterpath is not a currently installed filter" );
}
if ($key<1) {
error( "Filter $params->filterpath cannot be moved any further up" );
}
// swap with $key-1
$fsave = $installedfilters[$key];
$installedfilters[$key] = $installedfilters[$key-1];
$installedfilters[$key-1] = $fsave;
set_config( 'textfilters', implode( ',', $installedfilters ) );
}
if (($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 );
}
//======================
// Build Display Objects
//======================
// construct the display array with installed filters
// at the top in the right order
$displayfilters = array();
foreach ($installedfilters as $installedfilter) {
$name = $allfilters[ $installedfilter ];
$displayfilters[ $installedfilter ] = $name;
}
foreach ($allfilters 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->define_headers( array( $txt->name, $txt->hideshow, $txt->updown, $txt->settings ) );
$table->define_baseurl( "$CFG->wwwroot/admin/filters.php" );
$table->set_attribute( 'id', 'blocks' );
$table->set_attribute( 'class', 'flexible generaltable generalbox' );
$table->setup();
// some basic information
$url = strip_querystring( qualified_me() );
$myurl = "$url?sesskey=" . sesskey();
$img = "$CFG->pixpath/t";
// iterate through filters adding to display table
$updowncount = 1;
$installedfilterscount = count( $installedfilters );
foreach( $displayfilters as $path => $name ) {
$upath = urlencode( $path );
// get hide/show link
if (in_array( $path, $installedfilters )) {
$hideshow = "<a href=\"$myurl&amp;action=hide&amp;filterpath=$upath\">";
$hideshow .= "<img src=\"$img/hide.gif\" alt=\"hide\" /></a>";
$hidden = false;
$displayname = "<span>$name</span>";
}
else {
$hideshow = "<a href=\"$myurl&amp;action=show&amp;filterpath=$upath\">";
$hideshow .= "<img src=\"$img/show.gif\" alt=\"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=\"up\" /></a>&nbsp;";
// Do a little cleanup for robustness
foreach ($installedfilters as $key => $installedfilter) {
if (empty($installedfilter)) {
unset($installedfilters[$key]);
set_config("textfilters", implode(',', $installedfilters));
}
else {
$updown .= "<img src=\"$CFG->pixpath/spacer.gif\" height=\"16\" width=\"16\" alt=\"\" />&nbsp;";
}
if ($updowncount<$installedfilterscount) {
$updown .= "<a href=\"$myurl&amp;action=down&amp;filterpath=$upath\">";
$updown .= "<img src=\"$img/down.gif\" alt=\"down\" /></a>";
}
else {
$updown .= "<img src=\"$CFG->pixpath/spacer.gif\" height=\"16\" width=\"16\" 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
//==============================
$selectedfilter = "none";
print_header( "$site->shortname: $txt->managefilters", "$site->fullname",
"<a href=\"index.php\">$txt->administration</a> -> <a href=\"configure.php\">$txt->configuration</a> " .
"-> $txt->managefilters" );
/// If data submitted, then process and store.
print_heading_with_help( $txt->managefilters, 'filters' );
if (!empty($options)) {
if (($config = data_submitted()) && confirm_sesskey()) {
unset($config->options);
unset($config->sesskey);
foreach ($config as $name => $value) {
set_config($name, $value);
}
}
}
// print the table of all the filters
$table->print_html();
if (!empty($add) and !empty($uselect) and confirm_sesskey()) {
$selectedfilter = $uselect;
if (!in_array($selectedfilter, $installedfilters)) {
$installedfilters[] = $selectedfilter;
set_config("textfilters", implode(',', $installedfilters));
}
// print the table for the cache controls
print_heading( $txt->cachecontrols );
print_simple_box_start('center');
?>
} else if (!empty($remove) and !empty($iselect) and confirm_sesskey()) {
$selectedfilter = $iselect;
foreach ($installedfilters as $key => $installedfilter) {
if ($installedfilter == $selectedfilter) {
unset($installedfilters[$key]);
}
}
set_config("textfilters", implode(',', $installedfilters));
<form name="options" id="options" method="post" action="<?php echo $url; ?>" >
<input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
<input type="hidden" name="action" value="config" />
<table cellpadding="20">
<tr valign="top">
<td nowrap="nowrap" align="right"><?php echo $txt->cachetext; ?></td>
<td><?php choose_from_menu( $options, "cachetext", $CFG->cachetext, "", "", "" ); ?></td>
<td><?php echo $txt->configcachetext; ?></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" align="right"><?php echo $txt->filteruploadedfiles; ?></td>
<td><?php choose_from_menu( array($txt->no,$txt->yes), "filteruploadedfiles", $CFG->filteruploadedfiles,"","",""); ?></td>
<td><?php echo $txt->configfilteruploadedfiles; ?></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" align="right"><?php echo $txt->filtermatchoneperpage; ?></td>
<td><?php choose_from_menu( array($txt->no,$txt->yes), "filtermatchoneperpage", $CFG->filtermatchoneperpage,"","",""); ?></td>
<td><?php echo $txt->configfiltermatchoneperpage; ?></td>
<tr valign="top">
<td nowrap="nowrap" align="right"><?php echo $txt->filtermatchonepertext; ?></td>
<td><?php choose_from_menu( array($txt->no,$txt->yes), "filtermatchonepertext", $CFG->filtermatchonepertext,"","",""); ?></td>
<td><?php echo $txt->configfiltermatchonepertext; ?></td>
</tr>
</tr>
<tr valign="top">
<td nowrap="nowrap" align="right"><?php echo $txt->filterall; ?></td>
<td><?php choose_from_menu( array($txt->no,$txt->yes), "filterall", $CFG->filterall,"","",""); ?></td>
<td><?php echo $txt->configfilterall; ?></td>
</tr>
<tr valign="top">
<td>&nbsp;</td>
<td><input type="submit" value="<?php print_string('savechanges'); ?>" /></td>
<td>&nbsp;</td>
</tr>
</table>
</form>
} else if ((!empty($up) or !empty($down)) and !empty($iselect) and confirm_sesskey()) {
if (!empty($up)) {
if ($allfilters[$iselect]) {
foreach ($installedfilters as $key => $installedfilter) {
if ($installedfilter == $iselect) {
$movefilter = $key;
break;
}
$swapfilter = $key;
}
}
}
if (!empty($down)) {
if ($allfilters[$iselect]) {
$choosenext = false;
foreach ($installedfilters as $key => $installedfilter) {
if ($choosenext) {
$swapfilter = $key;
break;
}
if ($installedfilter == $iselect) {
$movefilter = $key;
$choosenext = true;
}
}
}
}
if (isset($swapfilter) and isset($movefilter)) {
$tempfilter = $installedfilters[$swapfilter];
$installedfilters[$swapfilter] = $installedfilters[$movefilter];
$installedfilters[$movefilter] = $tempfilter;
set_config("textfilters", implode(',', $installedfilters));
}
$selectedfilter = $iselect;
}
/// Make an array of all the currently uninstalled filters
$uninstalledfilters = array();
foreach ($allfilters as $filter => $name) {
$installed = false;
foreach ($installedfilters as $installedfilter) {
if ($installedfilter == $filter) {
$installed = true;
}
}
if (!$installed) {
$uninstalledfilters[] = $filter;
}
}
/// Print the current form
include("filters.html");
<?php
print_simple_box_end();
print_footer();
?>
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php // $Id$
/** This expects the output from a command like
* clamscan -r --infected --no-summary <files> 2>&1 | php -d error_log=/path/to/log thisfile.php
* also it's important that the output of clamscan prints the FULL PATH to each infected file, so use absolute paths for area to scan
+2 -4
View File
@@ -7,8 +7,6 @@
define('SEVERITY_SIGNIFICANT', 'significant');
define('SEVERITY_CRITICAL', 'critical');
$resetsesserrorcounter = optional_param( 'resetsesserrorcounter' );
require_login();
if (!isadmin()) {
error('Only the admin can use this page');
@@ -500,7 +498,7 @@ class problem_000011 extends problem_base {
}
function solution() {
global $CFG;
if (!empty($resetsesserrorcounter)) {
if (isset($_GET['resetsesserrorcounter'])) {
if (get_field('config', 'name', 'name', 'session_error_counter')) {
delete_records('config', 'name', 'session_error_counter');
}
@@ -539,4 +537,4 @@ TODO:
*/
?>
?>
+75 -86
View File
@@ -5,14 +5,10 @@
header('Location: ../install.php');
die;
}
require_once("../config.php");
include_once("$CFG->dirroot/lib/adminlib.php"); // Contains various admin-only functions
$id = optional_param('id', '', PARAM_ALPHANUM);
$confirmupgrade = optional_param('confirmupgrade','');
/// Check that PHP is of a sufficient version
@@ -22,6 +18,13 @@
die;
}
/// This is a Moodle 1.5 hack ONLY to fix accidental bad versions from version.php
/// Do not copy this code into HEAD
if ($CFG->version == '2005072100') {
set_config('version', 2005060221);
}
/// Check some PHP server settings
@@ -75,7 +78,7 @@
@set_time_limit(0);
@ob_implicit_flush(true);
@ob_end_flush();
/// Check if the main tables have been installed yet or not.
@@ -145,7 +148,7 @@
$a->newversion = "$release ($version)";
$strdatabasechecking = get_string("databasechecking", "", $a);
if (empty($confirmupgrade)) {
if (empty($_GET['confirmupgrade'])) {
print_header($strdatabasechecking, $stradministration, $strdatabasechecking,
"", "", false, "&nbsp;", "&nbsp;");
notice_yesno(get_string('upgradesure', 'admin', $a->newversion), 'index.php?confirmupgrade=yes', 'index.php');
@@ -206,18 +209,9 @@
if (!set_config("release", $release)) {
notify("ERROR: Could not update release version in database!!");
}
if (!empty($CFG->unicodedb)) {
$defaultlang = 'en_utf8';
} else {
$defaultlang = 'en';
}
print_continue("index.php");
print_simple_box_start("CENTER");
if (file_exists("$CFG->dataroot/lang/$defaultlang/docs/release.html")) {
include("$CFG->dataroot/lang/$defaultlang/docs/release.html");
} else if (file_exists("$CFG->dirroot/lang/$defaultlang/docs/release.html")) {
include("$CFG->dirroot/lang/$defaultlang/docs/release.html");
}
include("$CFG->dirroot/lang/en/docs/release.html");
print_simple_box_end();
print_continue("index.php");
exit;
@@ -262,9 +256,6 @@
/// Check all enrolment plugins and upgrade if necessary
upgrade_enrol_plugins("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards
/// Check for local database customisations
require_once("$CFG->dirroot/lib/locallib.php");
upgrade_local_db("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards
/// Set up the overall site name etc.
@@ -309,8 +300,8 @@
/// Check if we are returning from moodle.org registration and if so, we mark that fact to remove reminders
if (!empty($id)) {
if ($id == $CFG->siteidentifier) {
if (!empty($_GET['id'])) {
if ($_GET['id'] == $CFG->siteidentifier) {
set_config('registered', time());
}
}
@@ -365,87 +356,85 @@
$table->cellspacing = 0;
$table->width = "40%";
$configdata = '<div class="adminlink"><a href="config.php">'.get_string('configvariables', 'admin').
'</a> - <span class="explanation">'.get_string('adminhelpconfigvariables').'</span></div>';
$configdata .= '<div class="adminlink"><a href="site.php">'.get_string('sitesettings').
'</a> - <span class="explanation">'.get_string('adminhelpsitesettings').'</span></div>';
$configdata .= '<div class="adminlink"><a href="../theme/index.php">'.get_string('themes').
'</a> - <span class="explanation">'.get_string('adminhelpthemes').'</span></div>';
$configdata .= '<div class="adminlink"><a href="lang.php">'.get_string('language').
'</a> - <span class="explanation">'.get_string('adminhelplanguage').'</span></div>';
$configdata .= '<div class="adminlink"><a href="modules.php">'.get_string('managemodules').
'</a> - <span class="explanation">'.get_string('adminhelpmanagemodules').'</span></div>';
$configdata .= '<div class="adminlink"><a href="blocks.php">'.get_string('manageblocks').
'</a> - <span class="explanation">'.get_string('adminhelpmanageblocks').'</span></div>';
$configdata .= '<div class="adminlink"><a href="filters.php">'.get_string('managefilters').
'</a> - <span class="explanation">'.get_string('adminhelpmanagefilters').'</span></div>';
$configdata = "<font size=\"+1\">&nbsp;</font><a href=\"config.php\">".get_string("configvariables", 'admin')."</a> - <font size=\"1\">".
get_string("adminhelpconfigvariables")."</font><br />";
$configdata .= "<font size=\"+1\">&nbsp;</font><a href=\"site.php\">".get_string("sitesettings")."</a> - <font size=\"1\">".
get_string("adminhelpsitesettings")."</font><br />";
$configdata .= "<font size=\"+1\">&nbsp;</font><a href=\"../theme/index.php\">".get_string("themes")."</a> - <font size=\"1\">".
get_string("adminhelpthemes")."</font><br />";
$configdata .= "<font size=\"+1\">&nbsp;</font><a href=\"lang.php\">".get_string("language")."</a> - <font size=\"1\">".
get_string("adminhelplanguage")."</font><br />";
$configdata .= "<font size=\"+1\">&nbsp;</font><a href=\"modules.php\">".get_string("managemodules")."</a> - <font size=\"1\">".
get_string("adminhelpmanagemodules")."</font><br />";
$configdata .= "<font size=\"+1\">&nbsp;</font><a href=\"blocks.php\">".get_string("manageblocks")."</a> - <font size=\"1\">".
get_string("adminhelpmanageblocks")."</font><br />";
$configdata .= "<font size=\"+1\">&nbsp;</font><a href=\"filters.php\">".get_string("managefilters")."</a> - <font size=\"1\">".
get_string("adminhelpmanagefilters")."</font><br />";
if (!isset($CFG->disablescheduledbackups)) {
$configdata .= '<div class="adminlink"><a href="backup.php">'.get_string('backup').
'</a> - <span class="explanation">'.get_string('adminhelpbackup').'</span></div>';
$configdata .= "<font size=\"+1\">&nbsp;</font><a href=\"backup.php\">".get_string("backup")."</a> - <font size=\"1\">".
get_string("adminhelpbackup")."</font><br />";
}
$configdata .= '<div class="adminlink"><a href="editor.php">'.get_string('editorsettings').
'</a> - <span class="explanation">'.get_string('adminhelpeditorsettings').'</span></div>';
$configdata .= '<div class="adminlink"><a href="calendar.php">'.get_string('calendarsettings', 'admin').
'</a> - <span class="explanation">'.get_string('helpcalendarsettings', 'admin').'</span></div>';
$configdata .= '<div class="adminlink"><a href="maintenance.php">'.get_string('sitemaintenancemode', 'admin').
'</a> - <span class="explanation">'.get_string('helpsitemaintenance', 'admin').'</span></div>';
$configdata .= "<font size=\"+1\">&nbsp;</font><a href=\"editor.php\">". get_string("editorsettings") ."</a> - <font size=\"1\">".
get_string("adminhelpeditorsettings")."</font><br />";
$configdata .= "<font size=\"+1\">&nbsp;</font><a href=\"calendar.php\">". get_string('calendarsettings', 'admin') ."</a> - <font size=\"1\">".
get_string('helpcalendarsettings', 'admin')."</font><br />";
$configdata .= "<font size=\"+1\">&nbsp;</font><a href=\"maintenance.php\">". get_string('sitemaintenancemode', 'admin') ."</a> - <font size=\"1\">".
get_string('helpsitemaintenance', 'admin')."</font><br />";
$table->data[] = array('<strong><a href="configure.php">'.get_string('configuration').'</a></strong>', $configdata);
$table->data[] = array("<font size=\"+1\"><b><a href=\"configure.php\">".get_string("configuration")."</a></b></font>",
$configdata);
$userdata = '<div class="adminlink"><a href="auth.php?sesskey='.$USER->sesskey.'">'.get_string("authentication").
'</a> - <span class="explanation">'.get_string('adminhelpauthentication').'</span></div>';
$userdata .= '<div class="adminlink"><a href="user.php">'.get_string('edituser').
'</a> - <span class="explanation">'.get_string('adminhelpedituser').'</span></div>';
$userdata .= '<div class="adminlink"><a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/user.php?newuser=true&amp;sesskey='.$USER->sesskey.'">'.
get_string('addnewuser').'</a> - <span class="explanation">'.get_string('adminhelpaddnewuser').'</span></div>';
$userdata .= '<div class="adminlink"><a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/uploaduser.php?sesskey='.$USER->sesskey.'">'.
get_string('uploadusers').'</a> - <span class="explanation">'.get_string('adminhelpuploadusers').'</span></div>';
$userdata = "<font size=\"+1\">&nbsp;</font><a href=\"auth.php?sesskey=$USER->sesskey\">".get_string("authentication")."</a> - <font size=\"1\">".
get_string("adminhelpauthentication")."</font><br />";
$userdata .= "<font size=\"+1\">&nbsp;</font><a href=\"user.php\">".get_string("edituser")."</a> - <font size=\"1\">".
get_string("adminhelpedituser")."</font><br />";
$userdata .= "<font size=\"+1\">&nbsp;</font><a href=\"$CFG->wwwroot/$CFG->admin/user.php?newuser=true&amp;sesskey=$USER->sesskey\">".
get_string("addnewuser")."</a> - <font size=\"1\">".
get_string("adminhelpaddnewuser")."</font><br />";
$userdata .= "<font size=\"+1\">&nbsp;</font><a href=\"$CFG->wwwroot/$CFG->admin/uploaduser.php?sesskey=$USER->sesskey\">".
get_string("uploadusers")."</a> - <font size=\"1\">".
get_string("adminhelpuploadusers")."</font><br />";
$userdata .= '<hr /><div class="adminlink"><a href="enrol.php?sesskey='.$USER->sesskey.'">'.get_string('enrolments').
'</a> - <span class="explanation">'.get_string('adminhelpenrolments').'</span></div>';
$userdata .= '<div class="adminlink"><a href="../course/index.php?edit=off&amp;sesskey='.$USER->sesskey.'">'.
get_string('assignstudents').'</a> - <span class="explanation">'.get_string('adminhelpassignstudents').'</span></div>';
$userdata .= "<hr /><font size=\"+1\">&nbsp;</font><a href=\"enrol.php?sesskey=$USER->sesskey\">".get_string("enrolments")."</a> - <font size=\"1\">".
get_string("adminhelpenrolments")."</font><br />";
$userdata .= "<font size=\"+1\">&nbsp;</font><a href=\"../course/index.php?edit=off&amp;sesskey=$USER->sesskey\">".get_string("assignstudents")."</a> - <font size=\"1\">".
get_string("adminhelpassignstudents")."</font><br />";
$userdata .= '<div class="adminlink"><a href="../course/index.php?edit=on&amp;sesskey='.$USER->sesskey.'">'.
get_string('assignteachers').'</a> - <span class="explanation">'.get_string('adminhelpassignteachers').
' <img src="../pix/t/user.gif" height="11" width="11" alt="" /></span></div>';
$userdata .= '<div class="adminlink"><a href="creators.php?sesskey='.$USER->sesskey.'">'.get_string('assigncreators').
'</a> - <span class="explanation">'.get_string('adminhelpassigncreators').'</span></div>';
$userdata .= '<div class="adminlink"><a href="admin.php?sesskey='.$USER->sesskey.'">'.get_string('assignadmins').
'</a> - <span class="explanation">'.get_string('adminhelpassignadmins').'</span></div>';
$userdata .= "<font size=\"+1\">&nbsp;</font><a href=\"../course/index.php?edit=on&amp;sesskey=$USER->sesskey\">".get_string("assignteachers")."</a> - <font size=\"1\">".
get_string("adminhelpassignteachers").
" <img src=\"../pix/t/user.gif\" height=\"11\" width=\"11\" alt=\"\" /></font><br />";
$userdata .= "<font size=\"+1\">&nbsp;</font><a href=\"creators.php?sesskey=$USER->sesskey\">".get_string("assigncreators")."</a> - <font size=\"1\">".
get_string("adminhelpassigncreators")."</font><br />";
$userdata .= "<font size=\"+1\">&nbsp;</font><a href=\"admin.php?sesskey=$USER->sesskey\">".get_string("assignadmins")."</a> - <font size=\"1\">".
get_string("adminhelpassignadmins")."</font><br />";
$table->data[] = array('<strong><a href="users.php">'.get_string('users').'</a></strong>', $userdata);
$table->data[] = array("<font size=\"+1\"><b><a href=\"users.php\">".get_string("users")."</a></b></font>", $userdata);
$table->data[] = array('<strong><a href="../course/index.php?edit=on&amp;sesskey='.$USER->sesskey.'">'.get_string('courses').'</a></strong>',
'<div class="explanation">'.get_string('adminhelpcourses').'</div>');
$table->data[] = array('<strong><a href="../course/log.php?id='.$site->id.'">'.get_string('logs').'</a></strong>',
'<div class="explanation">'.get_string('adminhelplogs').'</div>');
$table->data[] = array('<strong><a href="../files/index.php?id='.$site->id.'">'.get_string('sitefiles').'</a></strong>',
'<div class="explanation">'.get_string('adminhelpsitefiles').'</div>');
$table->data[] = array('<strong><a href="stickyblocks.php">'.get_string('stickyblocks','admin').'</a></strong>',
'<div class="explanation">'.get_string('adminhelpstickyblocks').'</div>');
$table->data[] = array("<font size=\"+1\"><b><a href=\"../course/index.php?edit=on&amp;sesskey=$USER->sesskey\">".get_string("courses")."</a></b></font>",
"<font size=\"+1\">&nbsp;</font>".get_string("adminhelpcourses"));
$table->data[] = array("<font size=\"+1\"><b><a href=\"../course/log.php?id=$site->id\">".get_string("logs")."</a></b></font>",
"<font size=\"+1\">&nbsp;</font>".get_string("adminhelplogs"));
$table->data[] = array("<font size=\"+1\"><b><a href=\"../files/index.php?id=$site->id\">".get_string("sitefiles")."</a></b></font>",
"<font size=\"+1\">&nbsp;</font>".get_string("adminhelpsitefiles"));
$table->data[] = array('<font size="+1"><b><a href="environment.php">'.get_string('environment','admin').'</a></b></font>',
"<font size=\"+1\">&nbsp;</font>".get_string('adminhelpenvironment'));
if (file_exists("$CFG->dirroot/$CFG->admin/$CFG->dbtype")) {
$table->data[] = array("<strong><a href=\"$CFG->dbtype/frame.php\">".get_string('managedatabase').'</a></strong>',
get_string('adminhelpmanagedatabase'));
$table->data[] = array("<font size=\"+1\"><b><a href=\"$CFG->dbtype/frame.php\">".get_string("managedatabase")."</a></b></font>",
"<font size=\"+1\">&nbsp;</font>".get_string("adminhelpmanagedatabase"));
}
if (!empty($CFG->enablestats)) {
$table->data[] = array('<strong><a href="reports.php">'.get_string('reports').'</a></strong>',
'<div class="explanation">'.get_string('adminhelpreports').'</div>');
}
$table->data[] = array('<strong><a href="environment.php">'.get_string('environment','admin').'</a></strong>',
'<div class="explanation">'.get_string('adminhelpenvironment').'</div>');
print_table($table);
//////////////////////////////////////////////////////////////////////////////////////////////////
//// IT IS ILLEGAL AND A VIOLATION OF THE GPL TO REMOVE OR MODIFY THE COPYRIGHT NOTICE BELOW ////
$copyrighttext = '<a href="http://moodle.org/">Moodle</a> '.
'<a href="../doc/?frame=release.html">'.$CFG->release.'</a> ('.$CFG->version.')<br />'.
'Copyright &copy; 1999-2006 Martin Dougiamas<br />'.
'<a href="../doc/?frame=licence.html">GNU Public License</a>';
echo '<p class="copyright">'.$copyrighttext.'</p>';
$copyrighttext = "<a href=\"http://moodle.org/\">Moodle</a> ".
"<a href=\"../doc/?frame=release.html\">$CFG->release</a> ($CFG->version)<br />".
"Copyright &copy; 1999 onwards by Martin Dougiamas<br />".
"<a href=\"../doc/?frame=licence.html\">GNU Public License</a>";
echo "<center><p><font size=\"1\">$copyrighttext</font></p></center>";
//////////////////////////////////////////////////////////////////////////////////////////////////
+1 -12
View File
@@ -54,15 +54,6 @@
'', '', true, $button);
if (!$mode) {
print_simple_box_start('center','80%');
echo '<table align="center" width="100%"><tr><td width="50%" align="center">';
print_string('managelang','admin');
echo '</td><td align="center" width="50%">';
print_string('editlang','admin');
echo '</td></tr><tr><td>';
print_string('lang16notify','admin');
echo '<p /><a href="langimport.php">'.get_string('langimport','admin').'</a>';
echo '</td><td>';
$currlang = current_language();
$langs = get_list_of_languages();
echo "<table align=\"center\"><tr><td align=\"right\">";
@@ -71,13 +62,11 @@
echo popup_form ("$CFG->wwwroot/$CFG->admin/lang.php?lang=", $langs, "chooselang", $currlang, "", "", "", true);
echo '</td></tr><tr><td colspan="2">';
$options["lang"] = $currentlang;
//print_single_button("http://moodle.org/download/lang/", $options, get_string("latestlanguagepack"));
print_single_button("http://moodle.org/download/lang/", $options, get_string("latestlanguagepack"));
echo "</td></tr></table>";
print_heading("<a href=\"lang.php?mode=missing\">$strmissingstrings</a>");
print_heading("<a href=\"lang.php?mode=compare\">$streditstrings</a>");
print_heading("<a href=\"langdoc.php\">$stredithelpdocs</a>");
echo '</td></tr></table>';
print_simple_box_end();
print_footer();
exit;
}
-411
View File
@@ -1,411 +0,0 @@
<?php
///This file only manages the installation of 1.6 lang packs.
///in downloads.moodle.org, they are store in separate directory /lang16
///in local server, they are stored in $CFG->dataroot/lang
///This helps to avoid confusion.
define('INSTALLATION_OF_SELECTED_LANG', 2);
define('CHANGE_SITE_LANG', 3);
define('DELETION_OF_SELECTED_LANG', 4);
define('UPDATE_ALL_LANG', 5);
include('../config.php');
$mode = optional_param('mode',0,PARAM_INT); //phase
$pack = optional_param('pack','',PARAM_NOTAGS); //pack to install
$displaylang = $pack;
$uninstalllang = optional_param('uninstalllang','',PARAM_NOTAGS);
require_login();
if (!isadmin()) {
error('You must be an admin');
}
if (!$site = get_site()) {
error("Site not defined!");
}
$strlang = get_string('langimport','admin');
$stradministration = get_string("administration");
$strconfiguration = get_string("configuration");
$strlanguage = get_string("language");
$strthislanguage = get_string("thislanguage");
$title = $strlang;
print_header("$site->shortname: $title", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> ".
"<a href=\"lang.php\">$strlanguage</a> -> $strlang",
'', '', true, '');
print_heading('');
switch ($mode){
case INSTALLATION_OF_SELECTED_LANG: ///installation of selected language pack
if (confirm_sesskey()) {
if (optional_param('confirm')) {
@mkdir ($CFG->dataroot.'/temp/'); //make it in case it's a fresh install, it might not be there
@mkdir ($CFG->dataroot.'/lang/');
$source = 'http://download.moodle.org/lang16/'.$pack.'.zip';
$langpack = $CFG->dataroot.'/temp/'.$pack.'.zip';
$destination = $CFG->dataroot.'/lang/';
if ($contents = file_get_contents($source)) { // Grab whole page
if ($file = fopen($langpack, 'w')) { // Make local copy
if (!fwrite($file, $contents)) { //copy zip to temp folder..
error ('could not copy file');
}
fclose($file);
///recursively remove the whole directory since unzip does not overwrites anything
if (file_exists($destination.$pack)) {
@remove_dir($destination.$pack.'/');
}
//unpack the zip
if (unzip_file($langpack, $destination, false)) {
print_heading(get_string('langimportsuccess','admin'));
} else {
error('language installation failed');
}
//now, we update the md5key of the lang pack, this is used to check version
$md5file = $CFG->dataroot.'/lang/'.$pack.'/'.$pack.'.md5';
if ($file = fopen($md5file, 'w')) {
fwrite($file, md5($contents)); //manually generate md5 from zip
}
fclose($file);
@unlink ($langpack); //bye bye zip file, come back when you get a little better
echo '<div align="center"><form action="langimport.php" method="POST">';
echo '<input type="submit" value="'.get_string('ok').'" />';
echo '</form></div>';
}
}
} else { //print confirm box, no confirmation yet
if (confirm_sesskey()) {
print_simple_box_start('center','100%');
echo '<div align="center">';
echo '<form name="langform" action="langimport.php?mode=2" method="POST">';
echo '<input name="pack" type="hidden" value="'.$pack.'" />';
echo '<input name="displaylang" type="hidden" value="'.$displaylang.'" />';
echo '<input name="confirm" type="hidden" value="1" />';
echo '<input name="sesskey" type="hidden" value="'.sesskey().'" />';
print_heading(get_string('confirminstall','admin',$displaylang),2);
echo '<input type="submit" value="'.get_string('ok').'"/>';
echo '&nbsp;<input type="button" value="'.get_string('cancel').'" onclick="javascript:history.go(-1)" />';
echo '</form>';
echo '</div>';
print_simple_box_end();
}
}
}
break;
case CHANGE_SITE_LANG: //change site language
if (confirm_sesskey) {
$langconfig = get_record('config','name','lang');
$sitelang = required_param('sitelangconfig',PARAM_NOTAGS);
$langconfig->value = $sitelang;
if (update_record('config',$langconfig)){
echo '<div align="center">';
notify (get_string('sitelangchanged','admin'));
echo '<form action="langimport.php" method="POST">';
echo '<input type="submit" value="'.get_string('ok').'" />';
echo '</form></div>';
} else {
error ('can not update site language');
}
}
break;
case DELETION_OF_SELECTED_LANG: //delete a directory(ies) containing a lang pack completely
if (!optional_param('confirm') && confirm_sesskey()) {
print_simple_box_start('center','100%');
echo '<div align="center">';
echo '<form name="langform" action="langimport.php?mode=4" method="POST">';
echo '<input name="uninstalllang" type="hidden" value="'.$uninstalllang.'" />';
echo '<input name="confirm" type="hidden" value="1" />';
print_heading(get_string('uninstallconfirm','admin',$uninstalllang),2);
echo '<input name="sesskey" type="hidden" value="'.sesskey().'" />';
echo '<input type="submit" value="'.get_string('uninstall','admin').'"/>';
echo '&nbsp;<input type="button" value="'.get_string('cancel').'" onclick="javascript:history.go(-1)" />';
echo '</form>';
echo '</div>';
print_simple_box_end();
}
else if (confirm_sesskey()) {
$dest1 = $CFG->dataroot.'/lang/'.$uninstalllang;
$dest2 = $CFG->dirroot.'/lang/'.$uninstalllang;
$rm1 = false;
$rm2 = false;
if (file_exists($dest1)){
$rm1 = remove_dir($dest1);
}
if (file_exists($dest2)){
$rm2 = remove_dir($dest2);
}
//delete the direcotries
if ($rm1 or $rm2) {
echo '<div align="center">';
print_string('langpackremoved','admin');
echo '<form action="langimport.php" method="POST">';
echo '<input type="submit" value="'.get_string('ok').'" />';
echo '</form></div>';
} else { //nothing deleted, possibly due to permission error
error ('An error has occurred, language pack is not completely uninstalled, please check file permission');
}
}
break;
case UPDATE_ALL_LANG: //1 click update for all updatable language packs
//0th pull a list from download.moodle.org,
//key = langname, value = md5
$source = 'http://download.moodle.org/lang16/languages.md5';
$md5array = array();
$update = 0; //any packs updated?
$alllangs = array_keys(get_list_of_languages());
$lang16 = array(); //all the Moodle 1.6 unicode lang packs (updated and not updated)
$packs = array(); //all the packs that needs updating
if ($fp = fopen($source, 'r')) { /// attempt to get the list from Moodle.org.
while(!feof ($fp)) {
$availablelangs[] = split(',', fgets($fp,1024));
}
} else {
error('can not fopen!');
}
//and build an associative array
foreach ($availablelangs as $alang) {
$md5array[$alang[0]] = $alang[1];
}
//first build a list of all the language packs,
//filtering out non-16 packs
foreach ($alllangs as $clang) {
$dest1 = $CFG->dataroot.'/lang/'.$clang;
$dest2 = $CFG->dirroot.'/lang/'.$clang;
if (file_exists($dest1.'/langconfig.php') || file_exists($dest2.'/langconfig.php')){
$lang16[] = $clang;
}
}
//then filter out packs that have the same md5 key
foreach ($lang16 as $clang) {
if (!is_installed_lang($clang, $md5array[$clang])){
$packs[] = $clang;
}
}
@mkdir ($CFG->dataroot.'/temp/');
@mkdir ($CFG->dataroot.'/lang/');
foreach ($packs as $pack){ //for each of the remaining in the list, we
//1. delete old director(ies)
$dest1 = $CFG->dataroot.'/lang/'.$pack;
$dest2 = $CFG->dirroot.'/lang/'.$pack;
$rm1 = false;
$rm2 = false;
if (file_exists($dest1)) {
$rm1 = remove_dir($dest1);
}
if (file_exists($dest2)) {
$rm2 = remove_dir($dest2);
}
if (!($rm1 || $rm2)) {
error ('could not delete old directory, update failed');
}
//2. copy & unzip into new
$source = 'http://download.moodle.org/lang16/'.$pack.'.zip';
$langpack = $CFG->dataroot.'/temp/'.$pack.'.zip';
$destination = $CFG->dataroot.'/lang/';
if ($contents = file_get_contents($source)) { // Grab whole page
if ($file = fopen($langpack, 'w')) { // Make local copy
if (!fwrite($file, $contents)) { //copy zip to temp folder..
error ('could not copy file');
}
fclose($file);
//unpack the zip
if (!unzip_file($langpack, $destination, false)) {
error('language installation failed - can not unzip language pack');
}
//now, we update the md5key of the lang pack, this is used to check version
$md5file = $CFG->dataroot.'/lang/'.$pack.'/'.$pack.'.md5';
if ($file = fopen($md5file, 'w')) {
fwrite($file, md5($contents));
}
fclose($file);
@unlink ($langpack); //remove the zip file
echo '<div align="center">';
notify(print_string('langpackupdated','admin',$pack));
$updated = 1;
echo '</div>';
}
}
}
echo '<div align="center"><form action="langimport.php" method="POST">';
if ($updated) {
notify(print_string('langupdatecomplete','admin'));
} else {
notify(print_string('nolangupdateneeded','admin'));
}
echo '<input type="submit" value="'.get_string('ok').'" />';
echo '</form></div>';
break;
default: //display choice mode
$source = 'http://download.moodle.org/lang16/languages.md5';
$remote = 0; //flag for reading from remote or local
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_simple_box_start('center','60%');
echo '<div align="center">';
print_string('remotelangnotavailable','admin',$CFG->dataroot.'/lang/');
echo '</div>';
print_simple_box_end();
}
print_simple_box_start('center','60%');
echo '<table width="100%"><tr><td align="center">';
echo get_string('installedlangs','admin');
echo '</td><td align="center">';
echo get_string('availablelangs','admin');
echo '</td></tr>';
echo '<tr><td align="center" valign="top">';
echo '<form name="uninstallform" action="langimport.php?mode=4" method="POST">';
echo '<input name="sesskey" type="hidden" value="'.sesskey().'" />';
$installedlangs = get_list_of_languages();
/// display installed langs here
echo '<select name="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 '</form>';
echo '<form name="updateform" action="langimport.php?mode=5" method="POST">';
echo '<br /><input type="submit" value="'.get_string('updatelangs','admin').'" />';
echo '</form>';
echo '<p />';
/// Display option to change site language
print_string('changesitelang','admin');
$sitelanguage = get_record('config','name','lang');
echo '<form name="changelangform" action="langimport.php?mode=3" method="POST">';
echo '<select name="sitelangconfig">';
foreach ($installedlangs as $clang =>$ilang) {
if ($clang == $sitelanguage->value){
echo '<option value="'.$clang.'" selected="selected">'.$ilang.'</option>';
} else {
echo '<option value="'.$clang.'">'.$ilang.'</option>';
}
}
echo '</select>';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '<input type="submit" value="'.get_string('change','admin').'" />';
echo '</form>';
/// display to be installed langs here
echo '</td><td align="center" valign="top">';
echo '<table><tr><td valign="top" align="center">'; //availabe langs table
$empty = 1; //something to pring
/// if this language pack is not already installed, then we allow installation
echo '<form name="installform" method="POST" action="langimport.php?mode=2">';
echo '<input name="sesskey" type="hidden" value="'.sesskey().'" />';
if ($remote) {
echo '<select name="pack" size="15">';
}
foreach ($availablelangs as $alang) {
if ($remote){
if (!is_installed_lang($alang[0], $alang[1])){ //if not already installed
echo '<option value="'.$alang[0].'">'.$alang[2].' ('.$alang[0].')</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>';
}
$empty = 0;
}
if ($remote) {
echo '</select>';
echo '<br/ ><input type="submit" value="'.get_string('install','admin').'">';
}
echo '</form>';
if ($empty) {
echo '<tr><td align="center">';
print_string('nolanguagetodownload');
echo '</td></tr>';
}
echo '</td><tr></table>'; //close available langs table
echo '<form>';
echo '</td></tr></table>';
print_simple_box_end();
break;
} //close of main switch
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
* @return array
*/
function get_local_list_of_languages() {
global $CFG;
$source = $CFG->wwwroot.'/lib/languages.md5';
$availablelangs = array();
if ($fp = fopen($source, 'r')){
while(!feof ($fp)) {
$availablelangs[] = split(',', fgets($fp,1024));
}
}
return $availablelangs;
}
/* 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
* @return bool
*/
function is_installed_lang($lang, $md5check) {
global $CFG;
$md5file = $CFG->dataroot.'/lang/'.$lang.'/'.$lang.'.md5';
if (file_exists($md5file)){
return (file_get_contents($md5file) == $md5check);
}
return false;
}
?>
+1 -1
View File
@@ -46,7 +46,7 @@
/// Otherwise print the form.
$module = optional_param('module', '', PARAM_CLEANFILE);
$module = required_param('module', '', PARAM_CLEANFILE);
require_once("$CFG->dirroot/mod/$module/lib.php");
$stradmin = get_string("administration");
+4 -4
View File
@@ -4,10 +4,10 @@
require_once("../config.php");
require_once("../course/lib.php");
$disable = optional_param('disable');
$enable = optional_param('enable');
$delete = optional_param('delete');
$confirm = optional_param('confirm');
optional_variable($disable);
optional_variable($enable);
optional_variable($delete);
optional_variable($confirm);
require_login();
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/php -f
<?
<?php // $Id$
define('FULLME','cron'); // prevent warnings
//error_reporting(0);
//ini_set('display_errors',0);
-117
View File
@@ -1,117 +0,0 @@
<?php
require_once(dirname(dirname(__FILE__)).'/config.php');
require_once($CFG->dirroot.'/lib/statslib.php');
$report = optional_param('report',STATS_REPORT_ACTIVE_COURSES,PARAM_INT);
$time = optional_param('time',0,PARAM_INT);
$numcourses = optional_param('numcourses',20,PARAM_INT);
if (empty($CFG->enablestats)) {
error("Stats is not enabled.");
}
require_login();
if (!isadmin()) {
error("This page is for admins only");
}
$course = get_site();
stats_check_uptodate($course->id);
$strheader = get_string('reports');
$strnav = '<a href="'.$CFG->wwwroot.'/admin/index.php">'.get_string('administration').'</a> -> '.$strheader;
$reportoptions = stats_get_report_options($course->id,STATS_MODE_RANKED);
$tableprefix = $CFG->prefix.'stats_';
$earliestday = get_field_sql('SELECT timeend FROM '.$tableprefix.'daily ORDER BY timeend LIMIT 1');
$earliestweek = get_field_sql('SELECT timeend FROM '.$tableprefix.'weekly ORDER BY timeend LIMIT 1');
$earliestmonth = get_field_sql('SELECT timeend FROM '.$tableprefix.'monthly ORDER BY timeend LIMIT 1');
if (empty($earliestday)) $earliestday = time();
if (empty($earliestweek)) $earliestweek = time();
if (empty($earliestmonth)) $earliestmonth = time();
$now = stats_get_base_daily();
$lastweekend = stats_get_base_weekly();
$lastmonthend = stats_get_base_monthly();
$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);
}
print_header($strheader,$strheader,$strnav,'','',true,'&nbsp');
echo '<form action="reports.php" method="post">'."\n";
$table->width = '*';
$table->align = array('left','left','left','left','left','left');
$table->data[] = array(get_string('statsreporttype'),choose_from_menu($reportoptions,'report',$report,'','','',true),
get_string('statstimeperiod'),choose_from_menu($timeoptions,'time',$time,'','','',true),
'<input type="text" name="numcourses" size="3" maxlength="2" value="'.$numcourses.'" />',
'<input type="submit" value="'.get_string('view').'" />') ;
print_table($table);
echo '</form>';
if (!empty($report) && !empty($time)) {
$param = stats_get_parameters($time,$report,SITEID,STATS_MODE_RANKED);
$sql = "SELECT courseid,".$param->fields." FROM ".$CFG->prefix.'stats_'.$param->table
." WHERE timeend >= ".$param->timeafter
." GROUP BY courseid "
.$param->extras
." ORDER BY ".$param->orderby
." LIMIT ".$numcourses;
$courses = get_records_sql($sql);
if (empty($courses)) {
error(get_string('statsnodata'),$CFG->wwwroot.'/admin/reports.php');
}
echo '<center><img src="'.$CFG->wwwroot.'/admin/reportsgraph.php?time='.$time.'&report='.$report.'&numcourses='.$numcourses.'" /></center>';
$table = new object();
$table->align = array('left','center','center','center');
$table->head = array(get_string('course'),$param->line1);
if (!empty($param->line2)) {
$table->head[] = $param->line2;
}
if (!empty($param->line3)) {
$table->head[] = $param->line3;
}
foreach ($courses as $c) {
$a = array();
$a[] = '<a href="'.$CFG->wwwroot.'/course/view.php?id='.$c->courseid.'">'.get_field('course','shortname','id',$c->courseid).'</a>';
$a[] = print_numeric_value($c->line1);
if (isset($c->line2)) {
$a[] = print_numeric_value($c->line2);
}
if (isset($c->line3)) {
$a[] = print_numeric_value($c->line3);
}
$table->data[] = $a;
}
print_table($table);
}
print_footer();
function print_numeric_value($value) {
list($whole, $decimals) = split ('[.,]', $value, 2);
if (intval($decimals) > 0)
return number_format($value,2,".",",");
else
return $value;
}
?>
-56
View File
@@ -1,56 +0,0 @@
<?php
{
require_once(dirname(dirname(__FILE__)).'/config.php');
require_once($CFG->dirroot.'/lib/statslib.php');
require_once($CFG->dirroot.'/lib/graphlib.php');
$report = required_param('report',0,PARAM_INT);
$time = required_param('time',0,PARAM_INT);
$numcourses = required_param('numcourses',20,PARAM_INT);
require_login();
if (!isadmin()) {
error("You must be an admin to use this page");
}
stats_check_uptodate($course->id);
$param = stats_get_parameters($time,$report,SITEID,STATS_MODE_RANKED);
$sql = "SELECT courseid,".$param->fields." FROM ".$CFG->prefix.'stats_'.$param->table
." WHERE timeend >= ".$param->timeafter
." GROUP BY courseid "
.$param->extras
." ORDER BY ".$param->orderby
." LIMIT ".$numcourses;
$courses = get_records_sql($sql);
if (empty($courses)) {
error(get_string('statsnodata'),$CFG->wwwroot.'/admin/reports.php');
}
$graph = new graph(750,400);
$graph->parameter['legend'] = 'outside-right';
$graph->parameter['legend_size'] = 10;
$graph->parameter['x_axis_angle'] = 90;
$graph->parameter['title'] = false; // moodle will do a nicer job.
if ($report != STATS_REPORT_ACTIVE_COURSES) {
$graph->parameter['y_decimal_left'] = 2;
}
foreach ($courses as $c) {
$graph->x_data[] = get_field('course','shortname','id',$c->courseid);
$graph->y_data['bar1'][] = $c->{$param->graphline};
}
$graph->y_order = array('bar1');
$graph->y_format['bar1'] = array('colour' => 'blue','bar' => 'fill','legend' => $param->{$param->graphline});
$graph->draw_stack();
}
?>
+5 -20
View File
@@ -29,34 +29,19 @@
</tr>
<tr valign="top">
<td align="right"><?php print_string("frontpageformat") ?>:</td>
<td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<td>
<?php
<td><?php
$options = array(FRONTPAGENEWS => get_string("frontpagenews"),
FRONTPAGECOURSELIST => get_string("frontpagecourselist"),
FRONTPAGECATEGORYNAMES => get_string("frontpagecategorynames"),
);
$values = array(get_string('hide'), 1, 2);
$seq = array_flip(explode(',',$form->frontpage));
foreach ($seq as $k => $s) {
$seq[$k]++;
}
FRONTPAGETOPICONLY => get_string("frontpagetopiconly"));
if (count_records("course") > 200) {
unset($options[FRONTPAGECOURSELIST]);
if (isset($seq[FRONTPAGECOURSELIST])) {
unset($options[1]);
if ($form->frontpage == 1) {
$form->frontpage = 2;
}
} else {
$values[] = 3;
}
foreach ($options as $key => $option) {
echo "<td>$option<br />";
choose_from_menu ($values, "frontpage[$key]", isset($seq[$key])?$seq[$key]:0, "");
}
choose_from_menu ($options, "frontpage", "$form->frontpage", "");
?>
</tr>
</table>
</td>
</tr>
<tr valign="top">
+1 -6
View File
@@ -25,13 +25,8 @@
if (count($err) == 0) {
$form->frontpage = array_flip($form->frontpage);
unset($form->frontpage[0]);
$form->frontpage = array_flip($form->frontpage);
asort($form->frontpage);
$form->frontpage = implode(',',array_flip($form->frontpage));
set_config("frontpage", $form->frontpage);
if (!$form->frontpage) {
if ($form->frontpage == FRONTPAGETOPICONLY) {
$form->numsections = 1; // Force the topic display for this format
}
-90
View File
@@ -1,90 +0,0 @@
<?
{
require_once(dirname(dirname(__FILE__)).'/config.php');
require_once($CFG->dirroot.'/my/pagelib.php');
require_once($CFG->dirroot.'/lib/pagelib.php');
require_once($CFG->dirroot.'/lib/blocklib.php');
$pt = optional_param('pt',null,PARAM_CLEAN);
$pagetypes = array(PAGE_MY_MOODLE => array('id' => PAGE_MY_MOODLE,
'lib' => '/my/pagelib.php',
'name' => get_string('stickyblocksmymoodle','admin')),
PAGE_COURSE_VIEW => array('id' => PAGE_COURSE_VIEW,
'lib' => '/lib/pagelib.php',
'name' => get_string('stickyblockscourseview','admin'))
// ... more?
);
// for choose_from_menu
$options = array();
foreach ($pagetypes as $p) {
$options[$p['id']] = $p['name'];
}
require_login();
if (!isadmin()) {
error("Only the admin can use this page");
}
// first thing to do is print the dropdown menu
$strtitle = get_string('stickyblocks','admin');
$strheading = get_string('adminhelpstickyblocks');
print_header($strtitle,$strtitle,'<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/index.php">'.
get_string('admin').'</a> -> '.$strtitle);
echo '<table border="0" cellpadding="3" cellspacing="0" width="100%" id="layout-table">';
echo '<tr valign="top">';
if (!empty($pt)) {
require_once($CFG->dirroot.$pagetypes[$pt]['lib']);
define('ADMIN_STICKYBLOCKS',$pt);
$PAGE = page_create_object($pt);
$blocks = blocks_setup($PAGE,BLOCKS_PINNED_TRUE);
$blocks_preferred_width = bounded_number(180, blocks_preferred_width($blocks[BLOCK_POS_LEFT]), 210);
echo '<td style="vertical-align: top; width: '.$blocks_preferred_width.'px;" id="left-column">';
blocks_print_group($PAGE, $blocks, BLOCK_POS_LEFT);
} else {
echo '<td style="vertical-align: top;" id="left-column">';
}
echo '</td>';
echo '<td valign="top" width="*" id="middle-column">';
print_simple_box_start('center');
print_heading($strheading);
echo '<form method="post" action="'.$CFG->wwwroot.'/admin/stickyblocks.php">'
.'<p align="center">'.get_string('stickyblockspagetype','admin').': ';
choose_from_menu($options,'pt',$pt,'choose','this.form.submit();');
echo '</p></form>';
echo get_string('stickyblocksduplicatenotice','admin');
print_simple_box_end();
echo '</td>';
if (!empty($pt)) {
echo '<td style="vertical-align: top; width: '.$blocks_preferred_width.'px;" id="left-column">';
blocks_print_group($PAGE, $blocks, BLOCK_POS_RIGHT);
}
echo '<td style="vertical-align: top;" id="left-column">';
echo '</td>';
echo '</tr></table>';
print_footer();
}
?>
+35
View File
@@ -0,0 +1,35 @@
<?php
include("../config.php");
$action = optional_param('action','LIST',PARAM_ALPHA);
$url = optional_param('url');
$info = optional_param('info');
if (!isadmin()) {
error("Only the admin can use this page");
}
print_header('Admin : Unchecked Vars' );
if ($action == 'DELETE') {
delete_records('log', 'url', $url, 'info', $info);
}
if ($errors = get_records_sql("SELECT DISTINCT url, info
FROM {$CFG->prefix}log
WHERE module = 'dev' AND
action = 'unchecked vars'")) {
echo '<table border="1" cellpadding="5">';
foreach ($errors as $error) {
echo '<tr>';
echo '<td>'.$error->url.'</td>';
echo '<td>'.$error->info.'</td>';
echo '<td><a href="unchecked_vars.php?action=DELETE&amp;url='.$error->url.'&amp;info='.$error->info.'">Delete this</a></td>';
echo '</tr>';
}
echo '</table>';
} else {
echo "No unchecked vars were detected";
}
?>
+2 -2
View File
@@ -3,7 +3,7 @@
require("../config.php");
require("$CFG->dirroot/mod/forum/lib.php");
$confirm = optional_param('confirm');
optional_variable($confirm);
require_login();
@@ -28,7 +28,7 @@
print_header("$site->shortname: $stradministration: $strupgradingdata", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> $strupgradingdata");
if (empty($confirm)) {
if (empty($_GET['confirm'])) {
notice_yesno(get_string("upgradeforumreadinfo", "admin"),
"upgradeforumread.php?confirm=true&sesskey=$USER->sesskey",
"index.php");
+2 -2
View File
@@ -2,7 +2,7 @@
require("../config.php");
$confirm = optional_param('confirm');
optional_variable($confirm);
require_login();
@@ -31,7 +31,7 @@
print_header("$site->shortname: $stradministration: $strupgradinglogs", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> $strupgradinglogs");
if (empty($confirm)) {
if (empty($_GET['confirm'])) {
notice_yesno(get_string("upgradelogsinfo", "admin"),
"upgradelogs.php?confirm=true&sesskey=$USER->sesskey",
"index.php");
+17 -129
View File
@@ -31,7 +31,6 @@
$struser = get_string("user");
$strusers = get_string("users");
$strusersnew = get_string("usersnew");
$strusersupdated = get_string("usersupdated");
$struploadusers = get_string("uploadusers");
$straddnewuser = get_string("importuser");
@@ -63,15 +62,6 @@
if ($um->preprocess_files()) {
$filename = $um->files['userfile']['tmp_name'];
// Large files are likely to take their time and memory. Let PHP know
// that we'll take longer, and that the process should be recycled soon
// to free up memory.
@set_time_limit(0);
@raise_memory_limit("128M");
if (function_exists('apache_child_terminate')) {
@apache_child_terminate();
}
//Fix mac/dos newlines
$text = my_file_get_contents($filename);
$text = preg_replace('!\r\n?!',"\n",$text);
@@ -118,20 +108,6 @@
"group4" => 1,
"group5" =>1);
// form data cleanup
$frmpassword = optional_param('frmpassword', '', PARAM_ALPHA);
$updateaccounts = optional_param('updateaccounts', false, PARAM_BOOL);
$allowrenames = optional_param('allowrenames', false, PARAM_BOOL);
if ($frmpassword === 'create') {
unset($required['password']);
$optional['password'] = 1;
}
if ($allowrenames) {
$optional['oldusername'] = 1;
}
// --- get header (field names) ---
$header = split($csv_delimiter, fgets($fp,1024));
// check for valid field names
@@ -152,16 +128,6 @@
}
$linenum = 2; // since header is line 1
$usersnew = 0;
$usersupdated = 0;
$userserrors = 0;
$renames = 0;
$renameerrors = 0;
// Will use this course array a lot
// so fetch it early and keep it in memory
$courses = get_courses("all",'c.sortorder','c.id,c.shortname,c.fullname,c.sortorder');
while (!feof ($fp)) {
foreach ($optionalDefaults as $key => $value) {
$user->$key = addslashes($adminuser->$key);
@@ -187,7 +153,7 @@
'uploaduser.php?sesskey='.$USER->sesskey);
}
// password needs to be encrypted
else if ($name == "password" && !empty($value)) {
else if ($name == "password") {
$user->password = md5($value);
}
else if ($name == "username") {
@@ -212,7 +178,7 @@
$addgroup[2] = $user->group3;
$addgroup[3] = $user->group4;
$addgroup[4] = $user->group5;
$courses = get_courses("all",'c.sortorder','c.id,c.shortname,c.fullname,c.sortorder');
for ($i=0; $i<5; $i++) {
$courseid[$i]=0;
}
@@ -223,73 +189,20 @@
}
}
}
if ($user->username === 'changeme') {
notify(get_string('invaliduserchangeme', 'admin'));
$userserrors++;
continue;
}
// before insert/update, check whether we should be updating
// an old record instead
if ($allowrenames && !empty($user->oldusername) ) {
$user->oldusername = moodle_strtolower($user->oldusername);
if ($olduser = get_record('user','username',$user->oldusername)) {
if (set_field('user', 'username', $user->username, 'username', $user->oldusername)) {
notify(get_string('userrenamed', 'admin') . " : $user->oldusername $user->username");
$renames++;
} else {
notify(get_string('usernotrenamedexists', 'error') . " : $user->oldusername $user->username");
$renameerrors++;
continue;
}
} else {
notify(get_string('usernotrenamedmissing', 'error') . " : $user->oldusername $user->username");
$renameerrors++;
continue;
}
}
if ($olduser = get_record("user","username",$username)) {
if ($updateaccounts) {
// Record is being updated
$user->id = $olduser->id;
if (update_record('user', $user)) {
notify("$user->id , $user->username ".get_string('useraccountupdated', 'admin'));
$usersupdated++;
} else {
notify(get_string('usernotupdatederror', 'error', $username));
$userserrors++;
continue;
}
} else {
//Record not added - user is already registered
if (get_record("user","username",$username) || !($user->id = insert_record("user", $user))) {
if (!$user = get_record("user", "username", "changeme")) { // half finished user from another time
//Record not added - probably because user is already registered
//In this case, output userid from previous registration
//This can be used to obtain a list of userids for existing users
notify("$user->id ".get_string('usernotaddedregistered', 'error', $username));
$userserrors++;
continue;
}
} else { // new user
if ($user->id = insert_record("user", $user)) {
notify("$struser: $user->id = $user->username");
$usersnew++;
if (empty($user->password) && $frmpassword === 'create') {
// passwords will be created and sent out on cron
insert_record('user_preferences', array( userid => $user->id,
name => 'create_password',
value => 1));
insert_record('user_preferences', array( userid => $user->id,
name => 'auth_forcepasswordchange',
value => 1));
}
} else {
// Record not added -- possibly some other error
notify(get_string('usernotaddederror', 'error', $username));
$userserrors++;
continue;
if ($user = get_record("user","username",$username)) {
notify("$user->id ".get_string('usernotaddedregistered', 'error', $username));
} else {
notify(get_string('usernotaddederror', 'error', $username));
}
}
} else if ($user->username != "changeme") {
notify("$struser: $user->id = $user->username");
$numusers++;
}
for ($i=0; $i<5; $i++) {
if ($addcourse[$i] && !$courseid[$i]) {
@@ -345,47 +258,22 @@
}
}
fclose($fp);
notify("$strusersnew: $usersnew");
notify(get_string('usersupdated', 'admin') . ": $usersupdated");
notify(get_string('errors', 'admin') . ": $userserrors");
if ($allowrenames) {
notify(get_string('usersrenamed', 'admin') . ": $renames");
notify(get_string('renameerrors', 'admin') . ": $renameerrors");
}
notify("$strusersnew: $numusers");
echo '<hr />';
}
/// Print the form
print_heading_with_help($struploadusers, 'uploadusers');
$noyesoptions = array( get_string('no'), get_string('yes') );
$maxuploadsize = get_max_upload_file_size();
echo '<center>';
echo '<form method="post" enctype="multipart/form-data" action="uploaduser.php">'.
$strchoose.':<input type="hidden" name="MAX_FILE_SIZE" value="'.$maxuploadsize.'">'.
'<input type="hidden" name="sesskey" value="'.$USER->sesskey.'">'.
'<input type="file" name="userfile" size="30">'.
'<input type="submit" value="'.$struploadusers.'">';
print_heading(get_string('settings'));
echo '<table>';
echo '<tr><td>' . get_string('passwordhandling', 'auth') . "</td><td>";
$passwordopts = array( infile => get_string('infilefield', 'auth'),
create => get_string('createpassword', 'auth'),
);
choose_from_menu($passwordopts, 'frmpassword', 'infile');
echo "</td></tr>";
echo '<tr><td>' . get_string('updateaccounts', 'admin') . "</td><td>";
choose_from_menu($noyesoptions, 'updateaccounts', 0);
echo "</td></tr>";
echo '<tr><td>' . get_string('allowrenames', 'admin') . "</td><td>";
choose_from_menu($noyesoptions, 'allowrenames', 0);
echo "</td></tr>";
echo '</table>';
echo '</form></br>';
'<input type="submit" value="'.$struploadusers.'">'.
'</form></br>';
echo '</center>';
print_footer($course);
+11 -11
View File
@@ -2,20 +2,20 @@
require_once("../config.php");
$newuser = optional_param('newuser', "");
$delete = optional_param('delete', "");
$confirm = optional_param('confirm', "");
$confirmuser = optional_param('confirmuser', "");
$sort = optional_param('sort', "name", PARAM_ALPHA);
$dir = optional_param('dir', "ASC");
$page = optional_param('page', 0);
$search = optional_param('search', "");
optional_variable($newuser, "");
optional_variable($delete, "");
optional_variable($confirm, "");
optional_variable($confirmuser, "");
optional_variable($sort, "name");
optional_variable($dir, "ASC");
optional_variable($page, 0);
optional_variable($search, "");
if (!empty($search)) {
$search=trim($search);
}
$lastinitial = optional_param('lastinitial', ""); // only show students with this last initial
$firstinitial = optional_param('firstinitial', ""); // only show students with this first initial
$perpage = optional_param('perpage', 30, PARAM_INT); // how many per page
optional_variable($lastinitial, ""); // only show students with this last initial
optional_variable($firstinitial, ""); // only show students with this first initial
optional_variable($perpage, "30"); // how many per page
unset($user);
unset($admin);
-435
View File
@@ -1,435 +0,0 @@
<?
function db_migrate2utf8(){ //Eloy: Perhaps some type of limit parameter here
//pointing to the num of records to process would be
//useful. And it won't break anything, because the
//crash system will continue the next time it was
//executed. Also, the function could return:
//0 = Some sort of error
//1 = Finished completelly!
//2 = Finished limit records
//(using constants, of course ;-))
//Then, all those errors, should be converted to
//mtrace() and return 0. (showing the current
//table/field/recordid)
global $db, $CFG;
$ignoretables = array(); //list of tables to ignore
$ignoretables[] = $CFG->prefix.'log';
$ignoretables[] = $CFG->prefix.'cache_text';
$ignoretables[] = $CFG->prefix.'cache_filters';
$textlib = textlib_get_instance(); //Eloy: I haven't measured this but perhaps
//Eloy: This lines should be uncomented in final release, isn't it? To
//avoid double processing completely.
//if unicodedb is set, migration is complete. die here;
/* if ($CFG->unicodedb) {
error ('unicode db migration has already been performed!');
}
*/
if (!$crash = get_record('config','name','dbmigration')) {
$migrationconfig = new object;
$migrationconfig->name = 'dbmigration';
$migrationconfig->value = '-1';
insert_record('config',$migrationconfig); //process initiated
} else {
$crashdata = explode('##',$crash->value);
$crash->table = $crashdata[0];
$crash->field = $crashdata[1];
$crash->record = $crashdata[2];
print_heading('Resume information :');
echo '<br>Resuming from @ table : '.$crash->table;
echo '<br>Resuming from @ field : '.$crash->field;
echo '<br>Resuming from @ record : '.$crash->record;
}
require_once($CFG->dirroot.'/lib/xmlize.php');
//one gigantic array to hold all db table information read from all the migrate2utf8.xml file.
$xmls = array();
/*****************************************************************************
* traverse order is mod->backup->block->block_plugin->enroll_plugin->global *
*****************************************************************************/
///mod
if (!$mods = get_list_of_plugins('mod')) {
error('No modules installed!');
}
foreach ($mods as $mod){
if (file_exists($CFG->dirroot.'/mod/'.$mod.'/db/migrate2utf8.xml')) {
$xmls[] = xmlize(file_get_contents($CFG->dirroot.'/mod/'.$mod.'/db/migrate2utf8.xml'));
}
}
///Backups
//$xmls[] = xmlize(file_get_contents($CFG->dirroot.'/backup/db/migrate2utf8.xml'));
///Blocks
//$xmls[] = xmlize(file_get_contents($CFG->dirroot.'/blocks/db/migrate2utf8.xml'));
///Block Plugins
if (!$blocks = get_list_of_plugins('blocks')) {
//error('No blocks installed!'); //Eloy: Is this a cause to stop?
}
foreach ($blocks as $block){
if (file_exists($CFG->dirroot.'/blocks/'.$block.'/db/migrate2utf8.xml')) {
//$xmls[] = xmlize(file_get_contents($CFG->dirroot.'/blocks/'.$block.'/db/migrate2utf8.xml'));
}
}
///Enrol
if (!$enrols = get_list_of_plugins('enrol')) {
//error('No blocks installed!'); //Eloy: enrol, not blocks :-) Is this a cause to stop?
}
foreach ($enrols as $enrol){
if (file_exists($CFG->dirroot.'/enrol/'.$enrol.'/db/migrate2utf8.xml')) {
//$xmls[] = xmlize(file_get_contents($CFG->dirroot.'/enrol/'.$enrol.'/db/migrate2utf8.xml'));
}
}
///Lastly, globals
//$xmls[] = xmlize(file_get_contents($CFG->dirroot.'/lib/db/migrate2utf8.xml'));
/************************************************************************
* Now we got all our tables in order *
************************************************************************/
foreach ($xmls as $xml) { ///foreach xml file, we must get a list of tables
$dir = $xml['DBMIGRATION']['@']['type'];
$dbtables = $xml['DBMIGRATION']['#']['TABLES'][0]['#']['TABLE']; //real db tables
foreach ($dbtables as $dbtable) {
$dbtablename = $dbtable['@']['name'];
if ($crash && ($dbtablename != $crash->table)) { //resuming from crash
continue;
}
print_heading("<br><b>Processsing db table ".$dbtablename.'...</b>');
if (!empty($dbtable['#']) && ($fields = $dbtable['#']['FIELDS'][0]['#']['FIELD']) and (!in_array($dbtablename, $ignoretables))) {
$colnames = array();
$coltypes = array(); //array to hold all column types for the table
$collengths = array(); //array to hold all column lengths for the table
$defaults = array(); //array to hold defaults, if any
//reset holders
$addindexarray = array();
$adduniqueindexarray = array();
$addprimaryarray = array();
foreach ($fields as $field){
//if in crash state, and field name is not the same as crash field name
$fieldname = $field['@']['name'];
$method = $field['@']['method'];
$type = $field['@']['type'];
$length = $field['@']['length'];
if ($crash && ($crash->field != $fieldname)) {
continue;
}
$dropindex = $field['@']['dropindex'];
$addindex = $field['@']['addindex'];
$adduniqueindex = $field['@']['adduniqueindex'];
$dropprimary = $field['@']['dropprimary'];
$addprimary = $field['@']['addprimary'];
$defaults[] = isset($field['@']['default'])?"'".$field['@']['default']."'":"''";
$colnames[] = $fieldname;
$coltypes[] = $type;
$collengths[]= $length;
echo "<br>--><b>processsing db field ".$fieldname.'</b>';
echo "<br>---><b>method ".$method.'</b>';
$patterns[]='/RECORDID/i'; //for preg_replace
$patterns[]='/\{\$CFG\-\>prefix\}/i'; //same here
if ($method == 'PLAIN_SQL_UPDATE') {
$sqldetectuser = $field['#']['SQL_DETECT_USER'][0]['#'];
$sqldetectcourse = $field['#']['SQL_DETECT_COURSE'][0]['#'];
}
else if ($method == 'PHP_FUNCTION') {
$phpfunction = 'migrate2utf8_'.$dbtablename.'_'.$fieldname;
}
///get the total number of records for this field
$totalrecords = count_records($dbtablename);
$counter = 0;
$recordsetsize = 4;
if ($crash) { //if resuming from crash
//find the number of records with id smaller than the crash id
$indexSQL = 'SELECT COUNT(*) FROM '.$CFG->prefix.$dbtablename.' WHERE id < '.$crash->record;
$counter = count_records_sql($indexSQL);
}
echo "<br>Total number of recrods is ..".$totalrecords;
while($counter < $totalrecords) { //while there is still something restore_create_logs()
$SQL = 'SELECT * FROM '.$CFG->prefix.$dbtablename.' '.sql_paging_limit($counter, $recordsetsize);
echo "<br> SQL: ".$SQL;
if ($records = get_records_sql($SQL)) {
foreach ($records as $record) {
//if we are up this far, either no crash, or crash with same table, field name.
if ($crash){
if ($crash->record != $record->id) {
continue;
} else {
$crash = 0;
print_heading('recovering from '.$dbtablename.'--'.$fieldname.'--'.$record->id);
}
}
$migrationconfig = get_record('config','name','dbmigration');
$migrationconfig->name = 'dbmigration';
$migrationconfig->value = $dbtablename.'##'.$fieldname.'##'.$record->id;
update_record('config',$migrationconfig);
$replacements = array(); //manual refresh
$replacements[] = $record->id;
$replacements[] = $CFG->prefix;
switch ($method){
case 'PLAIN_SQL_UPDATE': //use the 2 statements to update
if (!empty($record->{$fieldname})) { //only update if not empty
//$db->debug=999;
//replace $CFG->prefix, and USERID in the queries
$userid = get_record_sql(preg_replace($patterns, $replacements, $sqldetectuser));
$courseid = get_record_sql(preg_replace($patterns, $replacements, $sqldetectcourse));
//$db->debug=0;
///get course, user, site lang
$sitelang = $CFG->lang;
$courselang = get_course_lang($courseid->course);
$userlang = get_user_lang($userid->userid);
$fromenc = get_original_encoding($sitelang, $courselang, $userlang);
/// We are going to use textlib facilities
/// Convert the text
//$db->debug=999;
$result = $textlib->convert($record->{$fieldname}, $fromenc);
//$db->debug=0;
$newrecord = new object;
$newrecord->id = $record->id;
$newrecord->{$fieldname} = $result;
if ($dbtablename == "data_content"){
echo "<br>here we go ".$record->{$fieldname};
echo "<br>after conversion".$result;
print_object($newrecord);
}
update_record($dbtablename,$newrecord);
}
break;
case 'PHP_FUNCTION'; //use the default php function to execute
//$db->debug=999;
require_once($CFG->dirroot.'/'.$dir.'/db/migrate2utf8.php');
$phpfunction($record->id);
//$db->debug=0;
break;
default: //no_conv, don't do anything ;-)
break;
}
$counter++;
}
}
} //close the while loop
//change field endocing here??
if ($CFG->dbtype == 'mysql') {
if ($dropindex){ //drop index if index is varchar, text etc type
$SQL = 'ALTER TABLE '.$CFG->prefix.$dbtablename.' DROP INDEX '.$dropindex.';';
execute_sql($SQL);
} else if ($dropprimary) { //drop primary key
$SQL = 'ALTER TABLE '.$CFG->prefix.$dbtablename.' DROP PRIMARY KEY;';
execute_sql($SQL);
}
//BLOB TIME!
$SQL = 'ALTER TABLE '.$CFG->prefix.$dbtablename.' CHANGE '.$fieldname.' '.$fieldname.' BLOB;';
} else {
//posgresql code here
}
//$db->debug=999;
execute_sql($SQL);
//$db->debug=0;
//add index back
if ($addindex){
$addindexarray[] = $addindex;
} else if ($adduniqueindex) {
$adduniqueindexarray[] = $adduniqueindex;
} else if ($addprimary) {
$addprimaryarray[] = $addprimary;
}
}
//change table encoding here (change column encoding together here?)
if ($CFG->dbtype == 'mysql') {
$SQL = 'ALTER TABLE '.$CFG->prefix.$dbtablename;
for ($i=0;$i<sizeof($colnames);$i++) {
$thiscolname = $colnames[$i];
$thistype = $coltypes[$i];
$thislength = $collengths[$i];
$SQL.= ' CHANGE '.$thiscolname.' '.$thiscolname.' '.$thistype;
if ($thislength > 0) {
$SQL.='('.$thislength.')';
}
$SQL.=' CHARACTER SET utf8 NOT NULL DEFAULT '.array_shift($defaults).', ';
}
$SQL = rtrim($SQL, ', ');
$SQL.=';';
} else { //posgresql query here
}
//$db->debug=999; // Eloy: Silly thing, what if you save the current value and then,
echo $SQL; // after execute_sql(), restore it
execute_sql($SQL); //change charset for columns
//$db->debug=0;
/**********************************
* Add the index back *
*********************************/
$alter = 0;
if ($CFG->dbtype=='mysql'){
$SQL = 'ALTER TABLE '.$CFG->prefix.$dbtablename;
if (!empty($addindexarray)) {
foreach ($addindexarray as $aidx){
$SQL .= ' ADD INDEX '.$aidx.',';
$alter++;
}
}
if (!empty($adduniqueindexarray)) {
foreach ($adduniqueindexarray as $auidx){
$SQL .= ' ADD UNIQUE INDEX '.$auidx.',';
$alter++;
}
}
if (!empty($addprimaryarray)) {
foreach ($addprimaryarray as $apm){
$SQL .= ' ADD PRIMARY KEY '.$apm.',';
$alter++;
}
}
$SQL = rtrim($SQL, ', ');
$SQL.=';';
} else {
///posgresql code here
}
if ($alter) {
execute_sql($SQL);
}
///Done adding indexes back!
} //if there are fields
//now we modify the table encoding
$SQL = 'ALTER TABLE '.$dbtablename.' CHARACTER SET utf8';
//$db->debug=999;
execute_sql($SQL);
//$db->debug=0;
}
}
//set config unicode db to 1
$SQL = 'ALTER DATABASE '.$CFG->dbname.' CHARACTER SET utf8';
execute_sql($SQL);
delete_records('config','name','dbmigration'); //bye bye
}
/* returns the course lang
* @param int courseid
* @return string
*/
function get_course_lang($courseid) {
if ($course = get_record('course','id',$courseid)){
return $course->lang;
}
}
/* returns the teacher's lang
* @param int courseid
* @return string
*/
function get_main_teacher_lang($courseid) {
//editting teacher > non editting teacher
global $CFG;
$SQL = 'SELECT u.lang from '.$CFG->prefix.'user_teachers ut,
'.$CFG->prefix.'course c,
'.$CFG->prefix.'user u WHERE
c.id = ut.course AND ut.course = '.$courseid.' AND u.id = ut.userid ORDER BY ut.authority ASC';
if ($teacher = get_record_sql($SQL)) {
return $teacher->lang;
}
}
function get_original_encoding($sitelang, $courselang, $userlang){
global $CFG;
$lang = '';
if ($courselang) {
$lang = $courselang;
}
else if ($userlang) {
$lang = $userlang;
}
else if ($sitelang) {
$lang = $sitelang;
}
else {
error ('no language found!');
}
$langfile = $CFG->dirroot.'/lang/'.$lang.'/moodle.php';
$result = get_string_from_file('thischarset', $langfile, "\$resultstring");
eval($result);
return $resultstring;
}
/* returns the user's lang
* @param int userid
* @return string
*/
function get_user_lang($userid) {
if ($user = get_record('user','id',$userid)){
return $user->lang;
}
}
// a placeholder for now
function log_the_problem_somewhere() { //Eloy: Nice function, perhaps we could use it, perhpas no. :-)
}
+9 -8
View File
@@ -99,9 +99,12 @@ function cas_authenticate_user_login ($username, $password) {
global $CFG;
$cas_validate=true;
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(int)$CFG->cas_port,$CFG->cas_baseuri);
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(Integer)$CFG->cas_port,$CFG->cas_baseuri);
phpCAS::setLang($CFG->cas_language);
phpCAS::forceAuthentication();
if (!phpCAS::isAuthenticated()){
phpCAS::authenticateIfNeeded();
}
if ($CFG->cas_create_user=="0"){
if (record_exists('user', 'username', phpCAS::getUser())) {
$user = authenticate_user_login(phpCAS::getUser(), 'cas');
@@ -135,11 +138,10 @@ function cas_automatic_authenticate ($user="") {
$cas_validate=true;
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(int)$CFG->cas_port,$CFG->cas_baseuri);
phpCAS::setLang($CFG->cas_language);
$cas_user_exist=phpCAS::checkAuthentication();
if (!$cas_user_exist && !$CFG->guestloginbutton){
$cas_user_exist=phpCAS::forceAuthentication();
if (!phpCAS::isAuthenticated() && !$CFG->guestloginbutton){
phpCAS::authenticateIfNeeded();
}
if ($cas_user_exist){
if (phpCAS::isAuthenticated()){
if ($CFG->cas_create_user=="0"){
if (record_exists('user', 'username', phpCAS::getUser())) {
$user = authenticate_user_login(phpCAS::getUser(), 'cas');
@@ -165,5 +167,4 @@ function cas_automatic_authenticate ($user="") {
}
}
?>
?>
+5 -9
View File
@@ -1,15 +1,11 @@
<?php
<?php
// $Id$
// logout the user from CAS server (destroy the ticket)
defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
global $CFG;
if ($CFG->cas_logout){
require_once($CFG->dirroot.'/config.php');
include_once($CFG->dirroot.'/lib/cas/CAS.php');
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(int)$CFG->cas_port,$CFG->cas_baseuri);
$backurl = $CFG->wwwroot;
phpCAS::logout($backurl);
}
include_once($CFG->dirroot.'/lib/cas/CAS.php');
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(Integer)$CFG->cas_port,$CFG->cas_baseuri);
$backurl = $CFG->wwwroot;
phpCAS::logout($backurl);
?>
-39
View File
@@ -1,39 +0,0 @@
<?php
/** auth_db_sync_users.php
*
* This script is meant to be called from a cronjob to sync moodle with the LDAP
* backend in those setups where the LDAP backend acts as 'master'.
*
* Recommended cron entry:
* # 5 minutes past 4am
* 5 4 * * * /usr/bin/php -c /etc/php4/cli/php.ini /var/www/moodle/auth/db/auth_db_sync_users.php
*
* Notes:
* - If you have a large number of users, you may want to raise the memory limits
* by passing -d memory_limit=256M
* - For debugging & better logging, you are encouraged to use in the command line:
* -d log_errors=1 -d error_reporting=E_ALL -d display_errors=0 -d html_errors=0
*
* Performance notes:
* + The code is simpler, but not as optimized as its LDAP counterpart.
*
*
*/
if(!empty($_SERVER['GATEWAY_INTERFACE'])){
error_log("should not be called from apache!");
exit;
}
require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); // global moodle config file.
require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->dirroot.'/lib/blocklib.php');
require_once($CFG->dirroot.'/mod/resource/lib.php');
require_once($CFG->dirroot.'/auth/db/lib.php');
require_once($CFG->dirroot.'/mod/forum/lib.php');
$CFG->debug=10;
auth_sync_users(true );
?>
-5
View File
@@ -26,10 +26,7 @@
if (!isset($config->auth_dbpasstype)) {
$config->auth_dbpasstype = "plaintext";
}
$pluginconfig = get_config('auth/db');
?>
<tr valign="top" class="required">
<td align="right">auth_dbhost:</td>
<td>
@@ -129,8 +126,6 @@
<?php
$passtype["plaintext"] = get_string("plaintext", "auth");
$passtype["md5"] = get_string("md5", "auth");
$passtype["internal"] = get_string("internal", "auth");
choose_from_menu($passtype, "auth_dbpasstype", $config->auth_dbpasstype, "");
?>
+20 -338
View File
@@ -21,59 +21,31 @@ function auth_user_login ($username, $password) {
}
// Connect to the external database
$authdb = &ADONewConnection($CFG->auth_dbtype);
$authdb = &ADONewConnection($CFG->auth_dbtype);
$authdb->PConnect($CFG->auth_dbhost,$CFG->auth_dbuser,$CFG->auth_dbpass,$CFG->auth_dbname);
if ($CFG->auth_dbpasstype === 'internal') {
// lookup username externally, but resolve
// password locally -- to support backend that
// don't track passwords
$rs = $authdb->Execute("SELECT * FROM $CFG->auth_dbtable
WHERE $CFG->auth_dbfielduser = '$username' ");
$authdb->Close();
if (!$rs) {
notify("Could not connect to the specified authentication database...");
return false;
}
if ( $rs->RecordCount() ) {
// user exists exterally
// check username/password internally
if ($user = get_record('user', 'username', $username)) {
return ($user->password == md5($password));
}
} else {
// user does not exist externally
return false;
}
} else {
// normal case: use external db for passwords
if ($CFG->auth_dbpasstype === 'md5') { // Re-format password accordingly
switch ($CFG->auth_dbpasstype) { // Re-format password accordingly
case "md5":
$password = md5($password);
}
break;
}
$rs = $authdb->Execute("SELECT * FROM $CFG->auth_dbtable
$rs = $authdb->Execute("SELECT * FROM $CFG->auth_dbtable
WHERE $CFG->auth_dbfielduser = '$username'
AND $CFG->auth_dbfieldpass = '$password' ");
$authdb->Close();
$CFG->prefix = $prefix;
if (!$rs) {
notify("Could not connect to the specified authentication database...");
return false;
}
if ( $rs->RecordCount() ) {
return true;
} else {
return false;
}
$authdb->Close();
$CFG->prefix = $prefix;
if (!$rs) {
notify("Could not connect to the specified authentication database...");
return false;
}
if ( $rs->RecordCount() ) {
return true;
} else {
return false;
}
}
@@ -113,294 +85,4 @@ function auth_get_userinfo($username){
return $result;
}
/**
* syncronizes user fron external db to moodle user table
*
* Sync shouid be done by using idnumber attribute, not username.
* You need to pass firstsync parameter to function to fill in
* idnumbers if they dont exists in moodle user table.
*
* Syncing users removes (disables) users that dont exists anymore in external db.
* Creates new users and updates coursecreator status of users.
*
* @param bool $do_updates Optional: set to true to force an update of existing accounts
*
* This implementation is simpler but less scalable than the one found in the LDAP module.
*
*/
function auth_sync_users ($do_updates=0) {
global $CFG;
$pcfg = get_config('auth/db');
///
/// list external users
///
$userlist = auth_get_userlist();
$quoteduserlist = implode("', '", $userlist);
$quoteduserlist = "'$quoteduserlist'";
///
/// delete obsolete internal users
///
// find obsolete users
if (count($userlist)) {
$sql = 'SELECT u.id, u.username
FROM ' . $CFG->prefix .'user u
WHERE u.auth=\'db\' AND u.deleted=\'0\' AND u.username NOT IN (' . $quoteduserlist . ')';
} else {
$sql = 'SELECT u.id, u.username
FROM ' . $CFG->prefix .'user u
WHERE u.auth=\'db\' AND u.deleted=\'0\' ';
}
$remove_users = get_records_sql($sql);
if (!empty($remove_users)){
print "User entries to remove: ". count($remove_users) . "\n";
begin_sql();
foreach ($remove_users as $user) {
//following is copy pasted from admin/user.php
//maybe this should moved to function in lib/datalib.php
unset($updateuser);
$updateuser->id = $user->id;
$updateuser->deleted = "1";
$updateuser->timemodified = time();
if (update_record("user", $updateuser)) {
unenrol_student($user->id); // From all courses
remove_teacher($user->id); // From all courses
remove_admin($user->id);
notify(get_string("deletedactivity", "", fullname($user, true)) );
} else {
notify(get_string("deletednot", "", fullname($user, true)));
}
//copy pasted part ends
}
commit_sql();
}
unset($remove_users); // free mem!
if (!count($userlist)) {
// exit right here
// nothing else to do
return true;
}
///
/// update existing accounts
///
if ($do_updates) {
// narrow down what fields we need to update
$all_keys = array_keys(get_object_vars($pcfg));
$updatekeys = array();
foreach ($all_keys as $key) {
if (preg_match('/^field_updatelocal_(.+)$/',$key, $match)) {
if ($pcfg->{$match[0]}) { // if it has a true value
array_push($updatekeys, $match[1]); // the actual key name
}
}
}
// print_r($all_keys); print_r($updatekeys);
unset($all_keys); unset($key);
// only go ahead if we actually
// have fields to update locally
if (!empty($updatekeys)) {
$sql = 'SELECT u.id, u.username
FROM ' . $CFG->prefix .'user u
WHERE u.auth=\'db\' AND u.deleted=\'0\' AND u.username IN (' . $quoteduserlist . ')';
$update_users = get_records_sql($sql);
foreach ($update_users as $user) {
auth_db_update_user_record($user->username, $updatekeys);
}
unset($update_users); // free memory
}
}
///
/// create missing accounts
///
// NOTE: this is very memory intensive
// and generally inefficient
$sql = 'SELECT u.id, u.username
FROM ' . $CFG->prefix .'user u
WHERE u.auth=\'db\' AND u.deleted=\'0\'';
$users = get_records_sql($sql);
// simplify down to usernames
$usernames = array();
foreach ($users as $user) {
array_push($usernames, $user->username);
}
unset($users);
$add_users = array_diff($userlist, $usernames);
unset($usernames);
if(!empty($add_users)){
print "User entries to add: ". count($add_users). "\n";
begin_sql();
foreach($add_users as $user){
$username = $user;
$user = auth_get_userinfo_asobj($user);
// prep a few params
$user->username = $username;
$user->modified = time();
$user->confirmed = 1;
$user->auth = 'db';
// insert it
$old_debug=$CFG->debug;
$CFG->debug=10;
// maybe the user has been deleted before
if ($old_user = get_record('user', 'username', $user->username, 'deleted', 1)) {
$user->id = $old_user->id;
set_field('user', 'deleted', 0, 'username', $user->username);
echo "Revived user $user->username id $user->id\n";
} elseif ($id=insert_record ('user',$user)) { // it is truly a new user
echo "inserted user $user->username id $id\n";
$user->id = $id;
// if relevant, tag for password generation
if ($CFG->auth_dbpasstype === 'internal') {
set_user_preference('auth_forcepasswordchange', 1, $id);
set_user_preference('create_password', 1, $id);
}
} else {
echo "error inserting user $user->username \n";
}
$CFG->debug=$old_debug;
}
commit_sql();
unset($add_users); // free mem
}
return true;
}
function auth_user_exists ($username) {
global $CFG;
$authdb = &ADONewConnection($CFG->auth_dbtype);
$authdb->PConnect($CFG->auth_dbhost,$CFG->auth_dbuser,$CFG->auth_dbpass,$CFG->auth_dbname);
$rs = $authdb->Execute("SELECT * FROM $CFG->auth_dbtable
WHERE $CFG->auth_dbfielduser = '$username' ");
$authdb->Close();
if (!$rs) {
notify("Could not connect to the specified authentication database...");
return false;
}
if ( $rs->RecordCount() ) {
// user exists exterally
// check username/password internally
if ($user = get_record('user', 'username', $username)) {
return ($user->password == md5($password));
}
} else {
// user does not exist externally
return false;
}
}
function auth_get_userlist() {
global $CFG;
// Connect to the external database
$authdb = &ADONewConnection($CFG->auth_dbtype);
$authdb->PConnect($CFG->auth_dbhost,$CFG->auth_dbuser,$CFG->auth_dbpass,$CFG->auth_dbname);
// fetch userlist
$rs = $authdb->Execute("SELECT $CFG->auth_dbfielduser AS username
FROM $CFG->auth_dbtable ");
$authdb->Close();
if (!$rs) {
notify("Could not connect to the specified authentication database...");
return false;
}
if ( $rs->RecordCount() ) {
$userlist = array();
while ($rec = $rs->FetchRow()) {
array_push($userlist, $rec['username']);
}
return $userlist;
} else {
return array();
}
}
/**
* reads userinformation from DB and return it in an object
*
* @param string $username username
* @return array
*/
function auth_get_userinfo_asobj($username){
$user_array = truncate_userinfo(auth_get_userinfo($username));
$user = new object;
foreach($user_array as $key=>$value){
$user->{$key} = $value;
}
return $user;
}
function auth_db_update_user_record($username, $updatekeys=false) {
/// will update a local user record from an external source.
/// is a lighter version of the one in moodlelib -- won't do
/// expensive ops such as enrolment
///
/// If you don't pass $updatekeys, there is a performance hit and
/// values removed from DB won't be removed from moodle.
global $CFG;
$pcfg = get_config('auth/db');
//just in case check text case
$username = trim(moodle_strtolower($username));
// get the current user record
$user = get_record('user', 'username', $username);
if (empty($user)) { // trouble
error_log("Cannot update non-existent user: $username");
die;
}
if (function_exists('auth_get_userinfo')) {
if ($newinfo = auth_get_userinfo($username)) {
$newinfo = truncate_userinfo($newinfo);
if (empty($updatekeys)) { // all keys? this does not support removing values
$updatekeys = array_keys($newinfo);
}
foreach ($updatekeys as $key){
unset($value);
if (isset($newinfo[$key])) {
$value = $newinfo[$key];
$value = addslashes(stripslashes($value)); // Just in case
} else {
$value = '';
}
if (!empty($pcfg->{'field_updatelocal_' . $key})) {
if ($user->{$key} != $value) { // only update if it's changed
set_field('user', $key, $value, 'username', $username);
}
}
}
}
}
return get_record_select("user", "username = '$username' AND deleted <> '1'");
}
?>
?>
+81 -61
View File
@@ -1,51 +1,71 @@
<?php
// Initialize vars
if (!isset($config->ldap_host_url))
{ $config->ldap_host_url = ''; }
if (!isset($config->ldap_contexts))
{ $config->ldap_contexts = ''; }
if (!isset($config->ldap_user_type))
{ $config->ldap_user_type = ''; }
if (!isset($config->ldap_user_attribute))
{ $config->ldap_user_attribute = ''; }
if (!isset($config->ldap_search_sub))
{ $config->ldap_search_sub = ''; }
if (!isset($config->ldap_opt_deref))
{ $config->ldap_opt_deref = ''; }
if (!isset($config->ldap_preventpassindb))
{ $config->ldap_preventpassindb = 0; }
if (!isset($config->ldap_bind_dn))
{$config->ldap_bind_dn = ''; }
if (!isset($config->ldap_bind_pw))
{$config->ldap_bind_pw = ''; }
if (!isset($config->ldap_version))
{$config->ldap_version = '2'; }
if (!isset($config->ldap_objectclass))
{$config->ldap_objectclass = ''; }
if (!isset($config->ldap_memberattribute))
{$config->ldap_memberattribute = ''; }
if (!isset($config->ldap_creators))
{$config->ldap_creators = ''; }
if (!isset($config->ldap_create_context))
{$config->ldap_create_context = ''; }
if (!isset($config->ldap_expiration))
{$config->ldap_expiration = ''; }
if (!isset($config->ldap_expiration_warning))
{$config->ldap_expiration_warning = '10'; }
if (!isset($config->ldap_expireattr))
{$config->ldap_expireattr = ''; }
if (!isset($config->ldap_gracelogins))
{$config->ldap_gracelogins = ''; }
if (!isset($config->ldap_graceattr))
{$config->ldap_graceattr = ''; }
if (!isset($config->auth_user_create))
{$config->auth_user_create = ''; }
if (!isset($config->auth_ldap_forcechangepassword))
{$config->auth_ldap_forcechangepassword = false; }
if (!isset($config->auth_ldap_stdchangepassword))
{$config->auth_ldap_stdchangepassword = false; }
$yesno = array( get_string('no'), get_string('yes') );
if (!isset ($config->ldap_host_url)) {
$config->ldap_host_url = "";
}
if (!isset ($config->ldap_contexts)) {
$config->ldap_contexts = "";
}
if (!isset ($config->ldap_user_attribute)) {
$config->ldap_user_attribute = "";
}
if (!isset ($config->ldap_user_type)) {
$config->ldap_user_type = "";
}
if (!isset ($config->ldap_search_sub)) {
$config->ldap_search_sub = "";
}
if (!isset ($config->ldap_opt_deref)) {
$config->ldap_opt_deref = "";
}
if (!isset ($config->ldap_preventpassindb)) {
$config->ldap_preventpassindb = 0;
}
if (!isset ($config->ldap_bind_dn)) {
$config->ldap_bind_dn = "";
}
if (!isset ($config->ldap_bind_pw)) {
$config->ldap_bind_pw = "";
}
if (!isset ($config->ldap_version)) {
$config->ldap_version = "2";
}
if (!isset ($config->ldap_objectclass)) {
$config->ldap_objectclass = "";
}
if (!isset ($config->ldap_memberattribute)) {
$config->ldap_memberattribute = "";
}
if (!isset ($config->ldap_creators)) {
$config->ldap_creators = "";
}
if (!isset ($config->ldap_create_context)) {
$config->ldap_create_context = "";
}
if (!isset ($config->ldap_expiration)) {
$config->ldap_expiration = "";
}
if (!isset ($config->ldap_expiration_warning)) {
$config->ldap_expiration_warning = "10";
}
if (!isset ($config->ldap_expireattr)) {
$config->ldap_expireattr = "";
}
if (!isset ($config->ldap_gracelogins)) {
$config->ldap_gracelogins = "";
}
if (!isset ($config->ldap_graceattr)) {
$config->ldap_graceattr = "";
}
if (!isset ($config->auth_user_create)) {
$config->auth_user_create = "";
}
if (!isset ($config->auth_ldap_forcechangepassword)) {
$config->auth_ldap_forcechangepassword = "";
}
if (!isset ($config->auth_ldap_stdchangepassword)) {
$config->auth_ldap_stdchangepassword = false;
}
if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
print '<tr><td><p align="center"><font color="red"><strong>Warning:
@@ -60,10 +80,10 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
</td>
</tr>
<tr valign="top" class="required">
<tr valign="top" class="required">
<td align="right">ldap_host_url:</td>
<td>
<input name="ldap_host_url" type="text" size="30" value="<?php echo $config->ldap_host_url?>" />
<input name="ldap_host_url" type="text" size="30" value="<?php echo $config->ldap_host_url?>">
<?php if (isset($err["ldap_host_url"])) formerr($err["ldap_host_url"]); ?>
</td>
<td>
@@ -109,7 +129,7 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
<tr valign="top" class="required">
<td align="right">ldap_bind_dn:</td>
<td>
<input name="ldap_bind_dn" type="text" size="30" value="<?php echo $config->ldap_bind_dn?>" />
<input name="ldap_bind_dn" type="text" size="30" value="<?php echo $config->ldap_bind_dn?>">
<?php if (isset($err["ldap_bind_dn"])) formerr($err["ldap_bind_dn"]); ?>
</td><td>
<?php print_string("auth_ldap_bind_dn","auth") ?>
@@ -119,7 +139,7 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
<tr valign="top" class="required">
<td align="right">ldap_bind_pw:</td>
<td>
<input name="ldap_bind_pw" type="password" size="30" value="<?php echo $config->ldap_bind_pw?>" />
<input name="ldap_bind_pw" type="password" size="30" value="<?php echo $config->ldap_bind_pw?>">
<?php if (isset($err["ldap_bind_pw"])) formerr($err["ldap_bind_pw"]); ?>
</td><td>
<?php print_string("auth_ldap_bind_pw","auth") ?>
@@ -146,7 +166,7 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
<tr valign="top" class="required">
<td align="right">ldap_contexts:</td>
<td>
<input name="ldap_contexts" type="text" size="30" value="<?php echo $config->ldap_contexts?>" />
<input name="ldap_contexts" type="text" size="30" value="<?php echo $config->ldap_contexts?>">
<?php if (isset($err["ldap_contexts"])) formerr($err["ldap_contexts"]); ?>
</td>
<td>
@@ -189,7 +209,7 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
<tr valign="top" class="required">
<td align="right">ldap_user_attribute:</td>
<td>
<input name="ldap_user_attribute" type="text" size="30" value="<?php echo $config->ldap_user_attribute?>" />
<input name="ldap_user_attribute" type="text" size="30" value="<?php echo $config->ldap_user_attribute?>">
<?php if (isset($err["ldap_user_attribute"])) formerr($err["ldap_user_attribute"]); ?>
</td>
<td>
@@ -200,7 +220,7 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
<tr valign="top" class="required">
<td align="right">ldap_memberattribute:</td>
<td>
<input name="ldap_memberattribute" type="text" size="30" value="<?php echo $config->ldap_memberattribute?>" />
<input name="ldap_memberattribute" type="text" size="30" value="<?php echo $config->ldap_memberattribute?>">
<?php if (isset($err["ldap_memberattribute"])) formerr($err["ldap_memberattribute"]); ?>
</td><td>
<?php print_string("auth_ldap_memberattribute","auth") ?>
@@ -210,7 +230,7 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
<tr valign="top" class="required">
<td align="right">ldap_objectclass:</td>
<td>
<input name="ldap_objectclass" type="text" size="30" value="<?php echo $config->ldap_objectclass?>" />
<input name="ldap_objectclass" type="text" size="30" value="<?php echo $config->ldap_objectclass?>">
<?php if (isset($err["ldap_objectclass"])) formerr($err["ldap_objectclass"]); ?>
</td>
<td>
@@ -233,7 +253,7 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
<?php print_string("no") ?></option>
<option value="1" <?php echo ($config->auth_ldap_forcechangepassword ? 'selected="yes"' : '') ?> >
<?php print_string("yes") ?></option>
</select><br />
</select><br>
</td>
<td align="left" valign="top">
@@ -250,7 +270,7 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
<?php print_string("no") ?></option>
<option value="1" <?php echo ($config->auth_ldap_stdchangepassword ? 'selected="yes"' : '') ?> >
<?php print_string("yes") ?></option>
</select><br />
</select><br>
</td>
<td align="left" valign="top">
@@ -284,7 +304,7 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
<tr valign="top" class="required">
<td align="right">ldap_expiration_warning:</td>
<td>
<input name="ldap_expiration_warning" type="text" size="2" value="<?php echo $config->ldap_expiration_warning?>" />
<input name="ldap_expiration_warning" type="text" size="2" value="<?php echo $config->ldap_expiration_warning?>">
<?php if (isset($err["ldap_expiration_warning"])) formerr($err["ldap_expiration_warning"]);
?>
</td>
@@ -296,7 +316,7 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
<tr valign="top" class="required">
<td align="right">ldap_exprireattr:</td>
<td>
<input name="ldap_expireattr" type="text" size="30" value="<?php echo $config->ldap_expireattr?>" />
<input name="ldap_expireattr" type="text" size="30" value="<?php echo $config->ldap_expireattr?>">
<?php if (isset($err["ldap_expireattr"])) formerr($err["ldap_expireattr"]);
?>
</td>
@@ -323,7 +343,7 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
<tr valign="top" class="required">
<td align="right">ldap_graceattr:</td>
<td>
<input name="ldap_graceattr" type="text" size="30" value="<?php echo $config->ldap_graceattr?>" />
<input name="ldap_graceattr" type="text" size="30" value="<?php echo $config->ldap_graceattr?>">
<?php if (isset($err["ldap_graceattr"])) formerr($err["ldap_graceattr"]);
?>
</td>
@@ -344,7 +364,7 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
<tr valign="top" class="required">
<td align="right">ldap_create_context:</td>
<td>
<input name="ldap_create_context" type="text" size="30" value="<?php echo $config->ldap_create_context?>" />
<input name="ldap_create_context" type="text" size="30" value="<?php echo $config->ldap_create_context?>">
<?php if (isset($err["ldap_create_context"])) formerr($err["ldap_create_context"]); ?>
</td><td>
<?php print_string("auth_ldap_create_context","auth") ?>
@@ -361,7 +381,7 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
<tr valign="top" class="required">
<td align="right">ldap_creators:</td>
<td>
<input name="ldap_creators" type="text" size="30" value="<?php echo $config->ldap_creators?>" />
<input name="ldap_creators" type="text" size="30" value="<?php echo $config->ldap_creators?>">
<?php if (isset($err["ldap_creators"])) formerr($err["ldap_creators"]); ?>
</td><td>
<?php print_string("auth_ldap_creators","auth") ?>
+2 -2
View File
@@ -1068,8 +1068,8 @@ function auth_ldap_getdefaults(){
);
$default['ldap_memberattribute_isdn'] = array(
'edir' => '1',
'rfs2307' => '0',
'rfs2307bis' => '1',
'rfc2307' => '0',
'rfc2307bis' => '1',
'samba' => '0', //is this right?
'ad' => '1',
'default' => '0'
-61
View File
@@ -1,61 +0,0 @@
<?PHP // $Id: config.html
if ((!include_once('Auth/RADIUS.php')) or (!class_exists(Auth_RADIUS_PAP))) { // Is Auth/RADIUS really there?
print '<p align="center"><font color="red"><strong>Warning: The Auth_RADIUS module does not seem to be present. Please ensure it is installed and enabled.</strong></font></p>';
}
if (!isset($config->auth_radiushost)) {
$config->auth_radiushost = "127.0.0.1";
}
if (!isset($config->auth_radiusnasport)) {
$config->auth_radiusport = "0";
}
if (!isset($config->auth_radiussecret)) {
$config->auth_radiussecret = "";
}
?>
<tr valign="top" >
<td align="right"><P>auth_radiushost:</td>
<td>
<input name="auth_radiushost" type="text" size="30" value="<?php echo $config->auth_radiushost?>">
<?php if (isset($err["auth_radiushost"]))
formerr($err["auth_radiushost"]); ?>
</td>
<td>
<?php print_string("auth_radiushost","auth") ?>
</td>
</TR>
<TR valign="top" >
<td align="right"><P>auth_radiusnasport:</td>
<td>
<input name="auth_radiusport" type="text" size="6" value="<?php echo $config->auth_radiusport ?>">
<?php if (isset($err["auth_radiusnasport"])) formerr($err["auth_radiusnasport"]); ?>
</td>
<td>
<?php print_string("auth_radiusnasport","auth") ?>
</td>
</TR>
<TR valign="top" >
<td align="right"><P>auth_radiussecret:</td>
<td>
<input name="auth_radiussecret" type="text" size="6" value="<?php echo $config->auth_radiussecret ?>">
<?php if (isset($err["auth_radiussecret"])) formerr($err["auth_radiussecret"]); ?> </td>
<td>
<?php print_string("auth_radiussecret","auth") ?>
</td>
</TR>
<TR valign="top">
<td align="right"><P><?php print_string("instructions", "auth")
?>:</td>
<td>
<textarea name="auth_instructions" cols="30" rows="10" wrap="virtual"><?php
p($config->auth_instructions) ?></textarea>
</td>
<td>
<?php print_string("authinstructions","auth") ?>
<?php helpbutton("text", get_string("helptext")) ?>
</td>
</TR>
-50
View File
@@ -1,50 +0,0 @@
<?PHP // $Id$
// Authentication by looking up a RADIUS server
// Contributed by Clive Gould <clive@ce.bromley.ac.uk>
function auth_user_login ($username, $password) {
// Returns true if the username and password work
// and false if they are wrong or don't exist.
require_once 'Auth/RADIUS.php';
global $CFG;
// Added by Clive on 7th May for test purposes
// printf("Username: $username <br>");
// printf("Password: $password <br>");
// printf("auth_radiushost: $CFG->auth_radiushost <br>");
// printf("auth_radiusnasport: $CFG->auth_radiusnasport <br>");
// printf("auth_radiussecret: $CFG->auth_radiussecret <br>");
$rauth = new Auth_RADIUS_PAP($username, $password);
$rauth->addServer($CFG->auth_radiushost, $CFG->auth_radiusnasport, $CFG->auth_radiussecret);
if (!$rauth->start()) {
printf("Radius start: %s<br>\n", $rauth->getError());
exit;
}
$result = $rauth->send();
if (PEAR::isError($result)) {
printf("Radius send failed: %s<br>\n", $result->getMessage());
exit;
} else if ($result === true) {
// printf("Radius Auth succeeded<br>\n");
return true;
} else {
// printf("Radius Auth rejected<br>\n");
return false;
}
// get attributes, even if auth failed
if (!$rauth->getAttributes()) {
printf("Radius getAttributes: %s<br>\n", $rauth->getError());
} else {
$rauth->dumpAttributes();
}
$rauth->close();
}
?>
+3 -2
View File
@@ -12,7 +12,6 @@ Changes:
- 05. 2005: Various extensions and fixes by Lukas Haemmerle
- 06. 2005: Adaptions to new field locks and plugin config structures by Marting
Langhoff and Lukas Haemmerle
- 10. 2005: Added better error messages and moved text to language directories
Moodle Configuration with Dual login
-------------------------------------------------------------------------------
@@ -152,6 +151,7 @@ Example file:
// institution, street, zipcode, city and country
$address = $_SERVER[$pluginconfig->field_map_address];
list($institution, $street, $zip_city) = split('\$', $address);
ereg(' (.+)',$zip_city, $regs);
$city = $regs[1];
@@ -168,7 +168,8 @@ Example file:
Bugs
--------------------------------------------------------------------------------
Please send bug reports concerning the Shibboleth part to
The current implementation has not yet been extensively tested. So there may be
bugs. Please send bug reports concerning the Shibboleth part to
Lukas Haemmerle <haemmerle@switch.ch>
--------------------------------------------------------------------------------
+1 -1
View File
@@ -45,7 +45,7 @@
<td align="right"><?php print_string("auth_shib_convert_data", "auth") ?>:</td>
<td>
<input name="pluginconfig_convert_data" type="text" size="30" value="<?php echo $pluginconfig->convert_data?>">
<?
<?php
if ($pluginconfig->convert_data && $pluginconfig->convert_data != '' && !is_readable($pluginconfig->convert_data)){
echo '<br><font color="red">';
print_string("auth_shib_convert_data_warning", "auth");
+3 -12
View File
@@ -4,7 +4,7 @@
require('../../config.php');
require('lib.php');
if (isloggedin() && $USER->username != 'guest') { // Nothing to do
if (isloggedin()) { // Nothing to do
redirect($CFG->wwwroot.'/index.php');
}
@@ -12,8 +12,8 @@
// Check whether Shibboleth is configured properly
if (empty($pluginconfig->shib_user_attribute)) {
error(get_string( 'shib_not_set_up_error', 'auth'));
}
error('Shibboleth authentication (\'shib_user_attribute\') is not set up correctly. You probably haven\'t yet configured the Shibboleth authentication. Please consult the README in moodle/auth/shibboleth for further instructions on how to set up Shibboleth authentication.');
}
/// If we can find the Shibboleth attribute, save it in session and return to main login page
if (!empty($_SERVER[$pluginconfig->shib_user_attribute])) { // Shibboleth auto-login
@@ -50,16 +50,7 @@
redirect($urltogo);
}
}
// If we can find any (user independent) Shibboleth attributes but no user
// attributes we probably didn't receive any user attributes
if ( !empty($_SERVER['HTTP_SHIB_APPLICATION_ID'])
&& empty($_SERVER[$pluginconfig->shib_user_attribute]))
{
error(get_string( 'shib_no_attributes_error', 'auth' , '\''.$pluginconfig->shib_user_attribute.'\', \''.$pluginconfig->field_map_firstname.'\', \''.$pluginconfig->field_map_lastname.'\' and \''.$pluginconfig->field_map_email.'\''));
}
$SESSION->shibboleth_checked = true; // This will stop us bouncing back here
+5 -4
View File
@@ -35,7 +35,7 @@ function auth_get_userinfo($username) {
|| empty($_SERVER[$pluginconfig->field_map_lastname])
|| empty($_SERVER[$pluginconfig->field_map_email])
) {
error(get_string( 'shib_not_all_attributes_error', 'auth' , "'".$pluginconfig->shib_user_attribute."' ('".$_SERVER[$pluginconfig->shib_user_attribute]."'), '".$pluginconfig->field_map_firstname."' ('".$_SERVER[$pluginconfig->field_map_firstname]."'), '".$pluginconfig->field_map_lastname."' ('".$_SERVER[$pluginconfig->field_map_lastname]."') and '".$pluginconfig->field_map_email."' ('".$_SERVER[$pluginconfig->field_map_email]."')"));
error("Moodle needs certain Shibboleth attributes which are not present in your case. The attributes are: '".$pluginconfig->shib_user_attribute."' ('".$_SERVER[$pluginconfig->shib_user_attribute]."'), '".$pluginconfig->field_map_firstname."' ('".$_SERVER[$pluginconfig->field_map_firstname]."'), '".$pluginconfig->field_map_lastname."' ('".$_SERVER[$pluginconfig->field_map_lastname]."') and '".$pluginconfig->field_map_email."' ('".$_SERVER[$pluginconfig->field_map_email]."')<br>Please contact your Identity Service Provider.");
}
$attrmap = auth_shib_attributes();
@@ -47,7 +47,7 @@ function auth_get_userinfo($username) {
$result[$key]=utf8_decode($_SERVER[$value]);
}
// Provide an API to modify the information to fit the Moodle internal
// Provide an API to modify the information to fit the Moodle internal
// data representation
if (
$pluginconfig->convert_data
@@ -59,7 +59,7 @@ function auth_get_userinfo($username) {
// modify the variable $moodleattributes
include($pluginconfig->convert_data);
}
return $result;
}
@@ -67,6 +67,7 @@ function auth_shib_attributes(){
//returns array containg attribute mappings between Moodle and shibboleth
global $CFG;
$config = (array)$CFG;
$pluginconfig = get_config('auth/shibboleth');
$pluginconfig = (array) $pluginconfig;
@@ -80,7 +81,7 @@ function auth_shib_attributes(){
$moodleattributes[$field] = $pluginconfig["field_map_$field"];
}
}
$moodleattributes['username']=$pluginconfig["shib_user_attribute"];
$moodleattributes['username']=$config["shib_user_attribute"];
return $moodleattributes;
}
+2 -15
View File
@@ -1,19 +1,6 @@
<?php
/*
This file must be Shibboleth protected with something like:
--
<Location ~ "/auth/shibboleth/shib-protected.php">
AuthType shibboleth
ShibRequireSession On
require valid-user
</Location>
--
in your web server configuration.
Consult moodle/auth/shibboleth/README.txt for further instructions.
*/
// This file must be Shibboleth protected
// Consult the README for further instructions
require_once("../../config.php");
header("Location: ".$CFG->wwwroot."/auth/shibboleth/");
-2
View File
@@ -116,8 +116,6 @@
//Call the form, depending the step we are
if (!$launch) {
// if we're at the start, clear the cache of prefs
unset($SESSION->backupprefs[$course->id]);
include_once("backup_form.html");
} else if ($launch == "check") {
include_once("backup_check.html");
+107 -53
View File
@@ -20,16 +20,47 @@
}
}
$backupprefs = new StdClass;
$count = 0;
backup_fetch_prefs_from_request($backupprefs,$count,$course);
//Check site
if (!$site = get_site()) {
error("Site not found!");
}
//Checks for the required files/functions to backup every mod
//And check if there is data about it
$count = 0;
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = "$CFG->dirroot/mod/$modname/backuplib.php";
$modbackup = $modname."_backup_mods";
$modcheckbackup = $modname."_check_backup_mods";
if (file_exists($modfile)) {
include_once($modfile);
if (function_exists($modbackup) and function_exists($modcheckbackup)) {
$var = "exists_".$modname;
$$var = true;
$count++;
}
}
//Check data
//Check module info
$var = "backup_".$modname;
$$var = optional_param( $var,0);
//Check include user info
$var = "backup_user_info_".$modname;
$$var = optional_param( $var,0);
}
}
//Check other parameters
$backup_metacourse = optional_param('backup_metacourse',1);
$backup_users = optional_param('backup_users',1);
$backup_logs = optional_param('backup_logs',0);
$backup_user_files = optional_param('backup_user_files',1);
$backup_course_files = optional_param('backup_course_files',1);
$backup_messages = optional_param('backup_messages',1);
if ($count == 0) {
notice("No backupable modules are installed!");
}
@@ -39,6 +70,46 @@
<table cellpadding="5">
<?php
//Calculate the backup string
//Calculate the backup word
//Take off some characters in the filename !!
$takeoff = array(" ", ":", "/", "\\", "|");
$backup_word = str_replace($takeoff,"_",strtolower(get_string("backupfilename")));
//If non-translated, use "backup"
if (substr($backup_word,0,1) == "[") {
$backup_word= "backup";
}
//Calculate the date format string
$backup_date_format = str_replace(" ","_",get_string("backupnameformat"));
//If non-translated, use "%Y%m%d-%H%M"
if (substr($backup_date_format,0,1) == "[") {
$backup_date_format = "%%Y%%m%%d-%%H%%M";
}
//Calculate the shortname
$backup_shortname = clean_filename($course->shortname);
if (empty($backup_shortname) or $backup_shortname == '_' ) {
$backup_shortname = $course->id;
}
//Calculate the final backup filename
//The backup word
$backup_name = $backup_word."-";
//The shortname
$backup_name .= strtolower($backup_shortname)."-";
//The date format
$backup_name .= userdate(time(),$backup_date_format,99,false);
//The extension
$backup_name .= ".zip";
//And finally, clean everything
$backup_name = clean_filename($backup_name);
//Calculate the backup unique code to allow simultaneus backups (to define
//the temp-directory name and records in backup temp tables
$backup_unique_code = time();
if (empty($to)) {
//Now print the Backup Name tr
echo "<tr>";
@@ -46,7 +117,7 @@
echo get_string("name").":";
echo "</b></td><td>";
//Add as text field
echo "<input type=\"text\" name=\"backup_name\" size=\"40\" value=\"".$backupprefs->backup_name."\" />";
echo "<input type=\"text\" name=\"backup_name\" size=\"40\" value=\"".$backup_name."\" />";
echo "</td></tr>";
//Line
@@ -56,30 +127,32 @@
echo "<tr>";
echo "<td colspan=\"2\" align=\"center\"><b>";
} else {
echo '<input type="hidden" name="backup_name" value="'.$backup_name.'" /></b>';
}
//Here we check if backup_users = None. Then, we switch off every module
//user info, user_files, logs and exercises, workshop and messages backups. A Warning is showed to
//inform the user.
if ($backupprefs->backup_users == 2) {
if ($backup_users == 2) {
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$var = "backup_user_info_".$modname;
if (isset($backupprefs->$var)) {
$backupprefs->$var = 0;
if (isset($$var)) {
$$var = 0;
}
$var = "backup_".$modname;
if (isset($backupprefs->$var)) {
if (isset($$var)) {
if ($modname == "exercise" || $modname == "workshop") {
$backupprefs->$var = 0;
$$var = 0;
}
}
}
$backupprefs->backup_user_files = 0;
$backupprefs->backup_logs = 0;
$backupprefs->backup_messages = 0;
$backup_user_files = 0;
$backup_logs = 0;
$backup_messages = 0;
}
print_simple_box("<font color=\"red\">".get_string("backupnoneusersinfo")."</font>","center", "70%", '', "20", "noticebox");
echo "<hr />";
@@ -96,24 +169,21 @@
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = $CFG->dirroot.'/mod/'.$modname.'/backuplib.php';
if (!file_exists($modfile)) {
continue;
}
require_once($modfile);
$modbackup = $modname."_backup_mods";
//If exists the lib & function
$var = "exists_".$modname;
if (isset($backupprefs->$var) && $backupprefs->$var) {
if (isset($$var) && $$var) {
$var = "backup_".$modname;
//Only if selected
if ($backupprefs->$var == 1) {
if ($$var == 1) {
//Print the full tr
echo "<tr>";
echo "<td colspan=\"2\">";
//Add hidden fields
$var = "backup_".$modname;
echo "<input type=\"hidden\" name=\"".$var."\" value=\"".$$var."\" />";
$var = "backup_user_info_".$modname;
echo "<input type=\"hidden\" name=\"".$var."\" value=\"".$$var."\" />";
//Print the mod name
echo "<b>".get_string("include")." ".get_string("modulenameplural",$modname)." ";
//Now look for user-data status
@@ -121,29 +191,10 @@
$backup_user_options[1] = get_string("withuserdata");
$var = "backup_user_info_".$modname;
//Print the user info
echo $backup_user_options[$backupprefs->$var]."</b>";
echo $backup_user_options[$$var]."</b>";
//Call the check function to show more info
$modcheckbackup = $modname."_check_backup_mods";
$var = $modname.'_instances';
$instancestopass = array();
if (!empty($backupprefs->$var) && is_array($backupprefs->$var) && count($backupprefs->$var)) {
$table->data = array();
$countinstances = 0;
foreach ($backupprefs->$var as $instance) {
$var1 = 'backup_'.$modname.'_instance_'.$instance->id;
$var2 = 'backup_user_info_'.$modname.'_instance_'.$instance->id;
if (!empty($backupprefs->$var1)) {
$obj = new StdClass;
$obj->name = $instance->name;
$obj->userdata = $backupprefs->$var2;
$obj->id = $instance->id;
$instancestopass[$instance->id]= $obj;
$countinstances++;
}
}
}
$table->data = $modcheckbackup($id,$backupprefs->$var,$backupprefs->backup_unique_code,$instancestopass);
$table->data = $modcheckbackup($id,$$var,$backup_unique_code);
print_table($table);
echo "</td></tr>";
}
@@ -161,16 +212,16 @@
$user_options[0] = get_string("includeallusers");
$user_options[1] = get_string("includecourseusers");
$user_options[2] = get_string("includenoneusers");
echo $user_options[$backupprefs->backup_users].'</b>';
echo $user_options[$backup_users].'</b>';
//Print info
$table->data = user_check_backup($id,$backupprefs->backup_unique_code,$backupprefs->backup_users,$backupprefs->backup_messages);
$table->data = user_check_backup($id,$backup_unique_code,$backup_users,$backup_messages);
print_table($table);
echo "</td></tr>";
}
//Now print the Logs tr conditionally
if ($backupprefs->backup_logs && empty($to)) {
if ($backup_logs && empty($to)) {
echo "<tr>";
echo "<td colspan=\"2\"><b>";
echo get_string("includelogentries").'</b>';
@@ -181,35 +232,38 @@
}
//Now print the User Files tr conditionally
if ($backupprefs->backup_user_files) {
if ($backup_user_files) {
echo "<tr>";
echo "<td colspan=\"2\"><b>";
echo get_string("includeuserfiles").'</b>';
//Print info
$table->data = user_files_check_backup($id,$backupprefs->backup_unique_code);
$table->data = user_files_check_backup($id,$backup_unique_code);
print_table($table);
echo "</td></tr>";
}
//Now print the Course Files tr conditionally
if ($backupprefs->backup_course_files) {
if ($backup_course_files) {
echo "<tr>";
echo "<td colspan=\"2\"><b>";
echo get_string("includecoursefiles").'</b>';
//Print info
$table->data = course_files_check_backup($id,$backupprefs->backup_unique_code);
$table->data = course_files_check_backup($id,$backup_unique_code);
print_table($table);
echo "</td></tr>";
}
}
// now keep it for next time.
$SESSION->backupprefs[$course->id] = $backupprefs;
?>
</table>
<br />
<center>
<input type="hidden" name="backup_unique_code" value="<?php p($backup_unique_code) ?>" />
<input type="hidden" name="backup_metacourse" value="<?php p($backup_metacourse) ?>" />
<input type="hidden" name="backup_users" value="<?php p($backup_users) ?>" />
<input type="hidden" name="backup_logs" value="<?php p($backup_logs) ?>" />
<input type="hidden" name="backup_user_files" value="<?php p($backup_user_files) ?>" />
<input type="hidden" name="backup_course_files" value="<?php p($backup_course_files) ?>" />
<input type="hidden" name="backup_messages" value="<?php p($backup_messages) ?>" />
<input type="hidden" name="to" value="<?php p($to) ?>" />
<input type="hidden" name="id" value="<?php p($id) ?>" />
<input type="hidden" name="launch" value="execute" />
+69 -9
View File
@@ -26,8 +26,71 @@
error("Site not found!");
}
$preferences = new StdClass;
backup_fetch_prefs_from_request($preferences,$count,$course);
//Checks for the required files/functions to backup every mod
//And check if there is data about it
$count = 0;
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = "$CFG->dirroot/mod/$modname/backuplib.php";
$modbackup = $modname."_backup_mods";
$modcheckbackup = $modname."_check_backup_mods";
if (file_exists($modfile)) {
include_once($modfile);
if (function_exists($modbackup) and function_exists($modcheckbackup)) {
$var = "exists_".$modname;
$$var = true;
$count++;
}
}
//Check data
//Check module info
$var = "backup_".$modname;
$$var = optional_param( $var,0,PARAM_INT );
//Now stores all the mods preferences into an array into preferences
$preferences->mods[$modname]->backup = $$var;
//Check include user info
$var = "backup_user_info_".$modname;
$$var = optional_param( $var,0,PARAM_INT );
//Now stores all the mods preferences into an array into preferences
$preferences->mods[$modname]->userinfo = $$var;
//And the name of the mod
$preferences->mods[$modname]->name = $modname;
}
}
//Check other parameters
$backup_metacourse = optional_param( 'backup_metacourse',1,PARAM_INT );
$preferences->backup_metacourse = $backup_metacourse;
$backup_users = optional_param( 'backup_users',1,PARAM_INT );
$preferences->backup_users = $backup_users;
$backup_logs = optional_param( 'backup_logs',0,PARAM_INT );
$preferences->backup_logs = $backup_logs;
$backup_user_files = optional_param( 'backup_user_files',1,PARAM_INT );
$preferences->backup_user_files = $backup_user_files;
$backup_course_files = optional_param( 'backup_course_files',2,PARAM_INT );
$preferences->backup_course_files = $backup_course_files;
$backup_messages = optional_param( 'backup_messages',1,PARAM_INT );
$preferences->backup_messages = $backup_messages;
$id = required_param('id');
$preferences->backup_course = $id;
$backup_name = required_param('backup_name',PARAM_FILE );
$preferences->backup_name = $backup_name;
$backup_unique_code = required_param('backup_unique_code');
$preferences->backup_unique_code = $backup_unique_code;
//Another Info
$preferences->moodle_version = $CFG->version;
$preferences->moodle_release = $CFG->release;
@@ -61,10 +124,10 @@
//Check for temp and backup and backup_unique_code directory
//Create them as needed
echo "<li>".get_string("creatingtemporarystructures").'</li>';
$status = check_and_create_backup_dir($preferences->backup_unique_code);
$status = check_and_create_backup_dir($backup_unique_code);
//Empty dir
if ($status) {
$status = clear_backup_dir($preferences->backup_unique_code);
$status = clear_backup_dir($backup_unique_code);
}
//Delete old_entries from backup tables
@@ -81,7 +144,7 @@
echo "<ul>";
echo "<li>".get_string("writingheader").'</li>';
//Obtain the xml file (create and open) and print prolog information
$backup_file = backup_open_xml($preferences->backup_unique_code);
$backup_file = backup_open_xml($backup_unique_code);
echo "<li>".get_string("writinggeneralinfo").'</li>';
//Prints general info about backup to file
if ($backup_file) {
@@ -147,7 +210,6 @@
//questions structure (step 1). See notes on mod/quiz/backuplib.php
if ($status and $preferences->mods['quiz']->backup) {
echo "<li>".get_string("writingcategoriesandquestions").'</li>';
require_once($CFG->dirroot.'/mod/quiz/backuplib.php');
if (!$status = quiz_backup_question_categories($backup_file,$preferences)) {
notify("An error occurred while backing up quiz categories");
}
@@ -318,8 +380,6 @@
}
error_log($filename);
$SESSION->import_preferences = $preferences;
print_continue($CFG->wwwroot.'/course/import/activities/index.php?id='.$to.'&fromcourse='.$id.'&filename='.$filename);
print_continue($CFG->wwwroot.'/course/import.php?id='.$to.'&fromcourse='.$id.'&filename='.$filename);
}
$SESSION->backupprefs[$course->id] = null; // unset it so we're clear next time.
?>
+4 -76
View File
@@ -33,7 +33,6 @@
$modname = $mod->name;
$modfile = "$CFG->dirroot/mod/$modname/backuplib.php";
$modbackup = $modname."_backup_mods";
$modbackupone = $modname.'_backup_one_mod';
$modcheckbackup = $modname."_check_backup_mods";
if (file_exists($modfile)) {
include_once($modfile);
@@ -41,11 +40,6 @@
$var = "exists_".$modname;
$$var = true;
$count++;
// check that there are instances and we can back them up individually
if (count_records('course_modules','course',$course->id,'module',$mod->id) && function_exists($modbackupone)) {
$var = 'exists_one_'.$modname;
$$var = true;
}
}
}
//Check data
@@ -100,7 +94,7 @@ function selectItemInRadioByName(formId, radioName, selectIndex ) {
}
function selectItemInCheckboxByName(formId, checkName, checked ) {
myForm = document.getElementById(formId);
myForm = document.getElementById(formId)
for (i=0,n=myForm.elements.length;i<n;i++) {
myLen = checkName.length;
myName = myForm.elements[i].name;
@@ -150,42 +144,19 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
$var = "backup_".$modname;
//choose_from_menu($backup_options, $var, $$var, "");
//Print the checkbox
print_checkbox($var, $$var, $$var, get_string("modulenameplural",$modname),'','selectItemInCheckboxByName(\'form1\',\'backup_'.$modname.'\',this.checked)');
print_checkbox($var, $$var, $$var, get_string("modulenameplural",$modname));
$var = "backup_user_info_".$modname;
echo "</td><td align=\"right\">&nbsp;";
echo "</td><td>";
$var = "backup_user_info_".$modname;
if (empty($to)) {
$backup_user_options[0] = get_string("withoutuserdata");
$backup_user_options[1] = get_string("withuserdata");
//choose_from_menu($backup_user_options, $var, $$var, "");
print_checkbox($var, $$var, $$var, get_string("userdata"),'','selectItemInCheckboxByName(\'form1\',\'backup_user_info_'.$modname.'\',this.checked)');
print_checkbox($var, $$var, $$var, get_string("userdata"));
} else {
echo '<input type="hidden" name="'.$var.'" value="0" />';
}
echo "</td></tr>\n";
// if we have the backup_one_mod function, loop here.
$var = 'exists_one_'.$modname;
if (!empty($$var)) {
echo '<tr><td></td><td colspan="3"><table class="backup-form-instances">';
$instances = get_all_instances_in_course($modname,$course);
foreach ($instances as $instance) {
echo '<tr><td>';
$var = 'backup_'.$modname.'_instance_'.$instance->id;
$$var = optional_param($var,1);
print_checkbox($var,$$var,$$var,$instance->name,$instance->name,'this.form.elements[\'backup_'.$modname.'\'].checked=1;');
echo '</td><td align="right">&nbsp;';
$var = 'backup_user_info_'.$modname.'_instance_'.$instance->id;
$$var = optional_param($var,1);
if (empty($to)) {
print_checkbox($var,$$var,$$var,get_string('userdata'),'','this.form.elements[\'backup_user_info_'.$modname.'\'].checked=1;');
} else {
echo '<input type="hidden" name="'.$var.'" value="0" />';
}
echo '</td></tr>';
}
echo '</table></td></tr>';
}
}
}
//Line
@@ -276,55 +247,12 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
echo '<input type="hidden" name="backup_messages" value="0" />';
}
}
$backup_unique_code = time();
//Calculate the backup string
//Calculate the backup word
//Take off some characters in the filename !!
$takeoff = array(" ", ":", "/", "\\", "|");
$backup_word = str_replace($takeoff,"_",strtolower(get_string("backupfilename")));
//If non-translated, use "backup"
if (substr($backup_word,0,1) == "[") {
$backup_word= "backup";
}
//Calculate the date format string
$backup_date_format = str_replace(" ","_",get_string("backupnameformat"));
//If non-translated, use "%Y%m%d-%H%M"
if (substr($backup_date_format,0,1) == "[") {
$backup_date_format = "%%Y%%m%%d-%%H%%M";
}
//Calculate the shortname
$backup_shortname = clean_filename($course->shortname);
if (empty($backup_shortname) or $backup_shortname == '_' ) {
$backup_shortname = $course->id;
}
//Calculate the final backup filename
//The backup word
$backup_name = $backup_word."-";
//The shortname
$backup_name .= strtolower($backup_shortname)."-";
//The date format
$backup_name .= userdate(time(),$backup_date_format,99,false);
//The extension
$backup_name .= ".zip";
//And finally, clean everything
$backup_name = clean_filename($backup_name);
//Calculate the backup unique code to allow simultaneus backups (to define
//the temp-directory name and records in backup temp tables
?>
</table>
<br />
<center>
<input type="hidden" name="id" value="<?php p($id) ?>" />
<input type="hidden" name="to" value="<?php p($to) ?>" />
<input type="hidden" name="backup_unique_code" value="<?php p($backup_unique_code); ?>" />
<input type="hidden" name="backup_name" value="<?php p($backup_name); ?>" />
<input type="hidden" name="launch" value="check" />
<input type="submit" value="<?php print_string("continue") ?>" />
<input type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
+17 -37
View File
@@ -363,46 +363,26 @@ function schedule_backup_course_configure($course,$starttime = 0) {
$var = "exists_".$modname;
$$var = true;
$count++;
// PENNY NOTES: I have moved from here to the closing brace inside
// by two sets of ifs()
// to avoid the backup failing on a non existant backup.
// If the file/function/whatever doesn't exist, we don't want to set this
// this module in backup preferences at all.
//Check data
//Check module info
$var = "backup_".$modname;
if (!isset($$var)) {
$$var = $backup_config->backup_sche_modules;
}
//Now stores all the mods preferences into an array into preferences
$preferences->mods[$modname]->backup = $$var;
//Check include user info
$var = "backup_user_info_".$modname;
if (!isset($$var)) {
$$var = $backup_config->backup_sche_withuserdata;
}
//Now stores all the mods preferences into an array into preferences
$preferences->mods[$modname]->userinfo = $$var;
//And the name of the mod
$preferences->mods[$modname]->name = $modname;
}
}
}
}
// now set instances
if ($coursemods = get_course_mods($course->id)) {
foreach ($coursemods as $mod) {
if (array_key_exists($mod->modname,$preferences->mods)) { // we are to backup this module
if (empty($preferences->mods[$mod->modname]->instances)) {
$preferences->mods[$mod->modname]->instances = array(); // avoid warnings
}
$preferences->mods[$mod->modname]->instances[$mod->instance]->backup = $preferences->mods[$modname]->backup;
$preferences->mods[$mod->modname]->instances[$mod->instance]->userinfo = $preferences->mods[$modname]->userinfo;
// there isn't really a nice way to do this...
$preferences->mods[$mod->modname]->instances[$mod->instance]->name = get_field($mod->modname,'name','id',$mod->instance);
//Check data
//Check module info
$var = "backup_".$modname;
if (!isset($$var)) {
$$var = $backup_config->backup_sche_modules;
}
//Now stores all the mods preferences into an array into preferences
$preferences->mods[$modname]->backup = $$var;
//Check include user info
$var = "backup_user_info_".$modname;
if (!isset($$var)) {
$$var = $backup_config->backup_sche_withuserdata;
}
//Now stores all the mods preferences into an array into preferences
$preferences->mods[$modname]->userinfo = $$var;
//And the name of the mod
$preferences->mods[$modname]->name = $modname;
}
}
}
+26 -206
View File
@@ -78,7 +78,7 @@
//Insert the record id. backup_users decide it.
//When all users
$status = insert_record('backup_ids', $backupids_rec, false);
$status = insert_record("backup_ids",$backupids_rec,false,"backup_code");
$count_users++;
}
//Do some output
@@ -414,20 +414,13 @@
}
//Return the xml start tag
function start_tag($tag,$level=0,$endline=false,$attributes=null) {
function start_tag($tag,$level=0,$endline=false) {
if ($endline) {
$endchar = "\n";
} else {
$endchar = "";
}
$attrstring = '';
if (!empty($attributes) && is_array($attributes)) {
foreach ($attributes as $key => $value) {
$attrstring .= " ".xml_tag_safe_content($key)."=\"".
xml_tag_safe_content($value)."\"";
}
}
return str_repeat(" ",$level*2)."<".strtoupper($tag).$attrstring.">".$endchar;
return str_repeat(" ",$level*2)."<".strtoupper($tag).">".$endchar;
}
//Return the xml end tag
@@ -441,37 +434,30 @@
}
//Return the start tag, the contents and the end tag
function full_tag($tag,$level=0,$endline=true,$content,$attributes=null) {
function full_tag($tag,$level=0,$endline=true,$content,$to_utf=true) {
global $CFG;
//Here we encode absolute links
$content = backup_encode_absolute_links($content);
$st = start_tag($tag,$level,$endline,$attributes);
$co = xml_tag_safe_content($content);
$et = end_tag($tag,0,true);
return $st.$co.$et;
}
function xml_tag_safe_content($content) {
global $CFG;
//If enabled, we strip all the control chars from the text but tabs, newlines and returns
//because they are forbiden in XML 1.0 specs. The expression below seems to be
//UTF-8 safe too because it simply ignores the rest of characters.
$content = preg_replace("/(?(?=[[:cntrl:]])[^\n\r\t])/is","",$content);
if (!empty($CFG->unicodedb)) {
// Don't perform the conversion. Contents are Unicode.
$content = preg_replace("/\r\n|\r/", "\n", htmlspecialchars($content));
if (!empty($CFG->backup_strip_controlchars)) {
$content = preg_replace("/(?(?=[[:cntrl:]])[^\n\r\t])/is","",$content);
}
//Start to build the tag
$st = start_tag($tag,$level,$endline);
$co="";
if ($to_utf) {
$co = preg_replace("/\r\n|\r/", "\n", utf8_encode(htmlspecialchars($content)));
} else {
// Perform the conversion. Contents aren't Unicode.
$content = preg_replace("/\r\n|\r/", "\n", utf8_encode(htmlspecialchars($content)));
}
return $content;
$co = preg_replace("/\r\n|\r/", "\n", htmlspecialchars($content));
}
$et = end_tag($tag,0,true);
return $st.$co.$et;
}
//Prints General info about the course
@@ -512,39 +498,13 @@
$included = "true";
if ($element->userinfo) {
$userinfo = "true";
}
}
}
//Prints the mod start
fwrite ($bf,start_tag("MOD",3,true));
fwrite ($bf,full_tag("NAME",4,false,$element->name));
fwrite ($bf,full_tag("INCLUDED",4,false,$included));
fwrite ($bf,full_tag("USERINFO",4,false,$userinfo));
if (is_array($preferences->mods[$element->name]->instances)
&& count($preferences->mods[$element->name]->instances)) {
fwrite ($bf, start_tag("INSTANCES",4,true));
foreach ($preferences->mods[$element->name]->instances as $id => $object) {
if (!empty($object->backup)) {
//Calculate info
$included = "false";
$userinfo = "false";
if ($object->backup) {
$included = "true";
if ($object->userinfo) {
$userinfo = "true";
}
}
fwrite ($bf, start_tag("INSTANCE",5,true));
fwrite ($bf, full_tag("ID",5,false,$id));
fwrite ($bf, full_tag("NAME",5,false,$object->name));
fwrite ($bf, full_tag("INCLUDED",5,false,$included)) ;
fwrite ($bf, full_tag("USERINFO",5,false,$userinfo));
fwrite ($bf, end_tag("INSTANCE",5,true));
}
}
fwrite ($bf, end_tag("INSTANCES",4,true));
}
//Print the end
fwrite ($bf,end_tag("MOD",3,true));
@@ -649,7 +609,6 @@
fwrite ($bf,full_tag("LANG",3,false,$course->lang));
fwrite ($bf,full_tag("THEME",3,false,$course->theme));
fwrite ($bf,full_tag("COST",3,false,$course->cost));
fwrite ($bf,full_tag("CURRENCY",3,false,$course->currency));
fwrite ($bf,full_tag("MARKER",3,false,$course->marker));
fwrite ($bf,full_tag("VISIBLE",3,false,$course->visible));
fwrite ($bf,full_tag("HIDDENSECTIONS",3,false,$course->hiddensections));
@@ -986,14 +945,6 @@
fwrite ($bf,start_tag("MODS",4,true));
$first_record = false;
}
// if we're doing selected instances, check that too.
if (is_array($preferences->mods[$moduletype]->instances)
&& count($preferences->mods[$moduletype]->instances)
&& (!array_key_exists($course_module[$tok]->instance,$preferences->mods[$moduletype]->instances)
|| empty($preferences->mods[$moduletype]->instances[$course_module[$tok]->instance]->backup))) {
$tok = strtok(",");
continue;
}
//Print mod info from course_modules
fwrite ($bf,start_tag("MOD",5,true));
//Save neccesary info to backup_ids
@@ -1660,29 +1611,14 @@
$status = true;
require_once($CFG->dirroot.'/mod/'.$module.'/backuplib.php');
if (is_array($preferences->mods[$module]->instances)) {
$onemodbackup = $module.'_backup_one_mod';
if (function_exists($onemodbackup)) {
foreach ($preferences->mods[$module]->instances as $instance => $object) {
if (!empty($object->backup)) {
$status = $onemodbackup($bf,$preferences,$instance);
}
}
} else {
$status = false;
}
} else { // whole module.
//First, re-check if necessary functions exists
$modbackup = $module."_backup_mods";
if (function_exists($modbackup)) {
//Call the function
$status = $modbackup($bf,$preferences);
} else {
//Something was wrong. Function should exist.
$status = false;
}
//First, re-check if necessary functions exists
$modbackup = $module."_backup_mods";
if (function_exists($modbackup)) {
//Call the function
$status = $modbackup($bf,$preferences);
} else {
//Something was wrong. Function should exist.
$status = false;
}
return $status;
@@ -1920,120 +1856,4 @@
return $status;
}
/**
* compatibility function
* with new granular backup
* we need to know
*/
function backup_userdata_selected($preferences,$modname,$modid) {
return ((empty($preferences->mods[$modname]->instances)
&& !empty($preferences->mods[$modname]->userinfo))
|| (is_array($preferences->mods[$modname]->instances)
&& array_key_exists($modid,$preferences->mods[$modname]->instances)
&& !empty($preferences->mods[$modname]->instances[$modid]->userinfo)));
}
function backup_mod_selected($preferences,$modname,$modid) {
return ((empty($preferences->mods[$modname]->instances)
&& !empty($preferences->mods[$modname]->backup))
|| (is_array($preferences->mods[$modname]->instances)
&& array_key_exists($modid,$preferences->mods[$modname]->instances)
&& !empty($preferences->mods[$modname]->instances[$modid]->backup)));
}
/*
* Checks for the required files/functions to backup every mod
* And check if there is data about it
*/
function backup_fetch_prefs_from_request(&$preferences,&$count,$course) {
global $CFG,$SESSION;
// check to see if it's in the session already
if (!empty($SESSION->backupprefs) && array_key_exists($course->id,$SESSION->backupprefs) && !empty($SESSION->backupprefs[$course->id])) {
$sprefs = $SESSION->backupprefs[$course->id];
$preferences = $sprefs;
// refetch backup_name just in case.
$bn = optional_param('backup_name','',PARAM_FILE);
if (!empty($bn)) {
$preferences->backup_name = $bn;
}
$count = 1;
return true;
}
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = "$CFG->dirroot/mod/$modname/backuplib.php";
$modbackup = $modname."_backup_mods";
$modbackupone = $modname."_backup_one_mod";
$modcheckbackup = $modname."_check_backup_mods";
if (!file_exists($modfile)) {
continue;
}
include_once($modfile);
if (!function_exists($modbackup) || !function_exists($modcheckbackup)) {
continue;
}
$var = "exists_".$modname;
$preferences->$var = true;
$count++;
// check that there are instances and we can back them up individually
if (!count_records('course_modules','course',$course->id,'module',$mod->id) || !function_exists($modbackupone)) {
continue;
}
$var = 'exists_one_'.$modname;
$preferences->$var = true;
$varname = $modname.'_instances';
$preferences->$varname = get_all_instances_in_course($modname,$course);
foreach ($preferences->$varname as $instance) {
$preferences->mods[$modname]->instances[$instance->id]->name = $instance->name;
$var = 'backup_'.$modname.'_instance_'.$instance->id;
$$var = optional_param($var,0);
$preferences->$var = $$var;
$preferences->mods[$modname]->instances[$instance->id]->backup = $$var;
$var = 'backup_user_info_'.$modname.'_instance_'.$instance->id;
$$var = optional_param($var,0);
$preferences->$var = $$var;
$preferences->mods[$modname]->instances[$instance->id]->userinfo = $$var;
$var = 'backup_'.$modname.'_instances';
$preferences->$var = 1; // we need this later to determine what to display in modcheckbackup.
}
//Check data
//Check module info
$preferences->mods[$modname]->name = $modname;
$var = "backup_".$modname;
$$var = optional_param( $var,0);
$preferences->$var = $$var;
$preferences->mods[$modname]->backup = $$var;
//Check include user info
$var = "backup_user_info_".$modname;
$$var = optional_param( $var,0);
$preferences->$var = $$var;
$preferences->mods[$modname]->userinfo = $$var;
}
}
//Check other parameters
$preferences->backup_metacourse = optional_param('backup_metacourse',1,PARAM_INT);
$preferences->backup_users = optional_param('backup_users',1,PARAM_INT);
$preferences->backup_logs = optional_param('backup_logs',0,PARAM_INT);
$preferences->backup_user_files = optional_param('backup_user_files',1,PARAM_INT);
$preferences->backup_course_files = optional_param('backup_course_files',1,PARAM_INT);
$preferences->backup_messages = optional_param('backup_messages',1,PARAM_INT);
$preferences->backup_course = $course->id;
$preferences->backup_name = required_param('backup_name',PARAM_FILE );
$preferences->backup_unique_code = required_param('backup_unique_code');
// put it (back) in the session
$SESSION->backupprefs[$course->id] = $preferences;
}
?>
+13 -10
View File
@@ -1,9 +1,10 @@
Ziba Scott <ziba@linuxbox.com> 06/23/05
Ziba Scott <ziba@linuxbox.com> 11/19/04
This is a utility to convert Blackboard Course export zip files into
Moodle course export zip files. It has been successfully tested with
Blackboard 5.5 and Moodle 1.4.1 and Moodle CVS. There is minimal
Blackboard 6 support. It will convert:
This is a beta demonstration of a utility to convert Blackboard
Course export zip files into Moodle course export zip files. It
has been successfully tested with Blackboard 5.5 and
Moodle 1.4.1 and Moodle CVS. There is minimal Blackboard 6 support.
It will convert:
* Course Name/Title
* Forum Topics
@@ -11,14 +12,17 @@ Blackboard 6 support. It will convert:
* Assignments
* External Links
The current status of this project is
exploration/proof-of-concept. We have successfully converted
basic Blackboard course information as well as course documents
and forum topics using the XSLT methods described above.
AUTOMATED OPERATION:
REQUIREMENTS FOR WEB INTERFACE:
*Moodle 1.4.1 or greater
*PHP 4.3 compiled with --enable-xslt --with-xslt-sablot options
*PHP compiled with --enable-xslt --with-xslt-sablot options
(Check php.net for instructions on enabling xslt for your platform)
*Alternatively, PHP 5 compiled with xml and xsl support (-with-xsl)
INSTALLATION:
*Unpack this file into the "backup" directory
@@ -32,11 +36,10 @@ MANUAL OPERATION:
*An XSLT 1.0 processor (like Sablotron)
*A zipping utility
REQUIREMENTS FOR COMMAND LINE INTERFACE:
REQUIREMENTS FOR WEB INTERFACE:
*Linux/Unix
*PHP 4 compiled with --enable-xslt --with-xslt-sablot options.
*PHP 5 compiled with -with-xsl and the default xml support left in.
*PHP compiled with --enable-xslt --with-xslt-sablot options.
*Apache with write access to /tmp
*A commandline zipping utility
+6 -4
View File
@@ -1,9 +1,11 @@
<?php
<?php // $Id$
// This file facilitates the conversion of a Blackboard course export
// into a Moodle course export. It assumes an unzipped directory and makes in-place alterations.
defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
// Ziba Scott <ziba@linuxbox.com> 10-25-04
require_once('xsl_emulate_xslt.inc');
require_once($CFG->dirroot.'/backup/bb/xsl_emulate_xslt.inc');
function get_subdirs($directory){
$opendirectory = opendir( $directory );
@@ -34,7 +36,7 @@ function blackboard_convert($dir){
// Check for a Blackboard manifest file
if (is_readable($dir.'/imsmanifest.xml') && !is_readable($dir.'/moodle.xml')){
if (is_readable($dir.'/imsmanifest.xml')){
if (!function_exists('xslt_create')) { // XSLT MUST be installed for this to work
notify('You need the XSLT library installed in PHP to open this Blackboard file');
-68
View File
@@ -1,68 +0,0 @@
<?
function migrate2utf8_backup_log_info($recordid){
global $CFG;
/// Some trivial checks
if (empty($recordid)) {
log_the_problem_somewhere();
return false;
}
if (!$backuplog = get_record('backup_log', 'id', $recordid)) {
log_the_problem_somewhere();
return false;
}
$sitelang = $CFG->lang;
$courselang = get_course_lang($backuplog->courseid); //Non existing!
$userlang = get_main_teacher_lang($backuplog->courseid); //N.E.!!
$fromenc = get_original_encoding($sitelang, $courselang, $userlang);
/// We are going to use textlib facilities
$textlib = textlib_get_instance();
/// Convert the text
$result = $textlib->convert($backuplog->info, $fromenc);
$newbackuplog = new object;
$newbackuplog->id = $recordid;
$newbackuplog->info = $result;
update_record('backup_log',$newbackuplog);
/// And finally, just return the converted field
return $result;
}
function migrate2utf8_backup_ids_info($recordid){
global $CFG;
/// Some trivial checks
if (empty($recordid)) {
log_the_problem_somewhere();
return false;
}
if (!$backupids= get_record('backup_ids', 'id', $recordid)) {
log_the_problem_somewhere();
return false;
}
$sitelang = $CFG->lang;
$courselang = null;
$userlang = null; //N.E.!!
$fromenc = get_original_encoding($sitelang, $courselang, $userlang);
/// We are going to use textlib facilities
$textlib = textlib_get_instance();
/// Convert the text
$result = $textlib->convert($backupids->info, $fromenc);
$newbackupids = new object;
$newbackupids->id = $recordid;
$newbackupids->info = $result;
update_record('backup_ids',$newbackupids);
/// And finally, just return the converted field
return $result;
}
?>
-40
View File
@@ -1,40 +0,0 @@
<DBMIGRATION type="backup" VERSION="2005120100">
<TABLES>
<TABLE name="backup_config">
<FIELDS>
<FIELD name="name" method="NO_CONV" type="varchar" length="255" dropindex="name" adduniqueindex="name (name(255))"/>
<FIELD name="value" method="NO_CONV" type="varchar" length="255" />
</FIELDS>
</TABLE>
<TABLE name="backup_courses">
<FIELDS>
<FIELD name="laststatus" method="NO_CONV" type="char" length="1" />
</FIELDS>
</TABLE>
<TABLE name="backup_files">
<FIELDS>
<FIELD name="file_type" method="NO_CONV" type="varchar" length="10" dropprimary="true" />
<FIELD name="path" method="NO_CONV" type="varchar" length="255" addprimary="(backup_code, file_type(10), path(255))"/>
</FIELDS>
</TABLE>
<TABLE name="backup_ids">
<FIELDS>
<FIELD name="table_name" method="NO_CONV" type="varchar" length="30" dropprimary="true" addprimary="(backup_code, table_name(30), old_id)"/>
<FIELD name="info" method="PHP_FUNCTION" type="mediumtext" length="255">
<PHP_FUNCTION>
migrate2utf8_backup_ids_info(RECORDID)
</PHP_FUNCTION>
</FIELD>
</FIELDS>
</TABLE>
<TABLE name="backup_log">
<FIELDS>
<FIELD name="info" method="PHP_FUNCTION" type="varchar" length="255">
<PHP_FUNCTION>
migrate2utf8_backup_log_info(RECORDID)
</PHP_FUNCTION>
</FIELD>
</FIELDS>
</TABLE>
</TABLES>
</DBMIGRATION>
+1 -32
View File
@@ -1,4 +1,4 @@
<?php //$Id$
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// backup/restore utility.
@@ -104,37 +104,6 @@ function backup_upgrade($oldversion=0) {
}
}
if ($oldversion < 2006011600 and $result) {
$result = execute_sql("DROP TABLE {$CFG->prefix}backup_files");
if ($result) {
$result = execute_sql("CREATE TABLE `{$CFG->prefix}backup_files` (
`id` int(10) unsigned NOT NULL auto_increment,
`backup_code` int(10) unsigned NOT NULL default '0',
`file_type` varchar(10) NOT NULL default '',
`path` varchar(255) NOT NULL default '',
`old_id` int(10) unsigned default NULL,
`new_id` int(10) unsigned default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `backup_files_uk` (`backup_code`,`file_type`,`path`)
) TYPE=MyISAM COMMENT='To store and recode ids to user and course files.'");
}
if ($result) {
$result = execute_sql("DROP TABLE {$CFG->prefix}backup_ids");
}
if ($result) {
$result = execute_sql("CREATE TABLE `{$CFG->prefix}backup_ids` (
`id` int(10) unsigned NOT NULL auto_increment,
`backup_code` int(12) unsigned NOT NULL default '0',
`table_name` varchar(30) NOT NULL default '',
`old_id` int(10) unsigned NOT NULL default '0',
`new_id` int(10) unsigned default NULL,
`info` mediumtext,
PRIMARY KEY (`id`),
UNIQUE KEY `backup_ids_uk` (`backup_code` ,`table_name`,`old_id`)
) TYPE=MyISAM COMMENT='To store and convert ids in backup/restore'");
}
}
//Finally, return result
return $result;
+2 -6
View File
@@ -3,14 +3,12 @@
#
CREATE TABLE `prefix_backup_files` (
`id` int(10) unsigned NOT NULL auto_increment,
`backup_code` int(10) unsigned NOT NULL default '0',
`file_type` varchar(10) NOT NULL default '',
`path` varchar(255) NOT NULL default '',
`old_id` int(10) unsigned default NULL,
`new_id` int(10) unsigned default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `backup_files_uk` (`backup_code`,`file_type`,`path`)
PRIMARY KEY (`backup_code`,`file_type`,`path`)
) TYPE=MyISAM COMMENT='To store and recode ids to user and course files.';
# --------------------------------------------------------
@@ -19,14 +17,12 @@ CREATE TABLE `prefix_backup_files` (
#
CREATE TABLE `prefix_backup_ids` (
`id` int(10) unsigned NOT NULL auto_increment,
`backup_code` int(12) unsigned NOT NULL default '0',
`table_name` varchar(30) NOT NULL default '',
`old_id` int(10) unsigned NOT NULL default '0',
`new_id` int(10) unsigned default NULL,
`info` mediumtext,
PRIMARY KEY (`id`),
UNIQUE KEY `backup_ids_uk` (`backup_code` ,`table_name`,`old_id`)
PRIMARY KEY (`backup_code`,`table_name`,`old_id`)
) TYPE=MyISAM COMMENT='To store and convert ids in backup/restore';
# --------------------------------------------------------
+4 -28
View File
@@ -1,4 +1,4 @@
<?php //$Id$
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// backup/restore utility.
@@ -23,34 +23,10 @@ function backup_upgrade($oldversion=0) {
$result = true;
if ($oldversion < 2006011600 and $result) {
$result = execute_sql("DROP TABLE {$CFG->prefix}backup_files");
if ($result) {
$result = execute_sql("CREATE TABLE {$CFG->prefix}backup_files (
id SERIAL PRIMARY KEY,
backup_code integer NOT NULL default '0',
file_type varchar(10) NOT NULL default '',
path varchar(255) NOT NULL default '',
old_id integer default NULL,
new_id integer default NULL,
CONSTRAINT backup_files_uk UNIQUE (backup_code, file_type, path))");
}
if ($result) {
$result = execute_sql("DROP TABLE {$CFG->prefix}backup_ids");
}
if ($result) {
$result = execute_sql("CREATE TABLE {$CFG->prefix}backup_ids (
id SERIAL PRIMARY KEY,
backup_code integer NOT NULL default '0',
table_name varchar(30) NOT NULL default '',
old_id integer NOT NULL default '0',
new_id integer default NULL,
info text,
CONSTRAINT backup_ids_uk UNIQUE (backup_code, table_name, old_id))");
}
}
//Finally, return result
return $result;
}
+19 -19
View File
@@ -1,32 +1,35 @@
# THIS FILE IS UNTESTED!!!
# PLEASE HELP TEST/FIX IT AND CONTACT MARTIN OR ELOY!
#
# Table structure for table prefix_backup_files
#
CREATE TABLE prefix_backup_files (
id SERIAL PRIMARY KEY,
backup_code integer NOT NULL default '0',
file_type varchar(10) NOT NULL default '',
path varchar(255) NOT NULL default '',
old_id integer default NULL,
new_id integer default NULL,
CONSTRAINT backup_files_uk UNIQUE (backup_code, file_type, path)
new_id integer default NULL
);
# --------------------------------------------------------
CREATE INDEX prefix_backup_codetypepath_idx ON prefix_backup_files (backup_code,file_type,path);
#
# Table structure for table prefix_backup_ids
#
CREATE TABLE prefix_backup_ids (
id SERIAL PRIMARY KEY,
backup_code integer NOT NULL default '0',
backup_code int8 NOT NULL default '0',
table_name varchar(30) NOT NULL default '',
old_id integer NOT NULL default '0',
new_id integer default NULL,
info text,
CONSTRAINT backup_ids_uk UNIQUE (backup_code, table_name, old_id)
old_id int8 NOT NULL default '0',
new_id int8 default NULL,
info text
);
CREATE INDEX prefix_backup_codenameid_idx ON prefix_backup_ids (backup_code,table_name,old_id);
#
# Table structure for table prefix_backup_config
@@ -38,30 +41,27 @@ CREATE TABLE prefix_backup_config (
value varchar(255) NOT NULL default ''
);
#
# Table structure for table prefix_backup_courses
#
CREATE TABLE prefix_backup_courses (
id SERIAL PRIMARY KEY,
courseid integer UNIQUE NOT NULL default '0',
laststarttime integer NOT NULL default '0',
lastendtime integer NOT NULL default '0',
courseid int8 UNIQUE NOT NULL default '0',
laststarttime int8 NOT NULL default '0',
lastendtime int8 NOT NULL default '0',
laststatus varchar(1) NOT NULL default '0',
nextstarttime integer NOT NULL default '0'
nextstarttime int8 NOT NULL default '0'
);
#
# Table structure for table prefix_backup_log
#
CREATE TABLE prefix_backup_log (
id SERIAL PRIMARY KEY,
courseid integer NOT NULL default '0',
time integer NOT NULL default '0',
laststarttime integer NOT NULL default '0',
courseid int8 NOT NULL default '0',
time int8 NOT NULL default '0',
laststarttime int8 NOT NULL default '0',
info varchar(255) NOT NULL default ''
);
+4 -134
View File
@@ -1,4 +1,4 @@
<?php //$Id$
<?PHP //$Id$
//This file contains all the general function needed (file manipulation...)
//not directly part of the backup/restore utility
@@ -81,24 +81,6 @@
return $status;
}
//Function to check if a directory exists
//and, optionally, create it
function check_dir_exists($dir,$create=false) {
global $CFG;
$status = true;
if(!is_dir($dir)) {
if (!$create) {
$status = false;
} else {
umask(0000);
$status = mkdir ($dir,$CFG->directorypermissions);
}
}
return $status;
}
//Function to check and create the needed dir to
//save all the backup
function check_and_create_backup_dir($backup_unique_code) {
@@ -430,7 +412,7 @@
$rec->new_id =$new_id;
$rec->info = $info_to_save;
$status = insert_record('backup_ids', $rec, false);
$status = insert_record ("backup_ids", $rec, false,"backup_code");
}
return $status;
}
@@ -497,25 +479,17 @@
//This function is used to check that every necessary function to
//backup/restore exists in the current php installation. Thanks to
//gregb@crowncollege.edu by the idea.
function backup_required_functions($justcheck=false) {
function backup_required_functions() {
if(!function_exists('utf8_encode')) {
if (empty($justcheck)) {
error('You need to add XML support to your PHP installation');
} else {
return false;
}
error('You need to add XML support to your PHP installation');
}
return true;
}
//This function send n white characters to the browser and flush the
//output buffer. Used to avoid browser timeouts and to show the progress.
function backup_flush($n=0,$time=false) {
if (defined('RESTORE_SILENTLY_NOFLUSH')) {
return;
}
if ($time) {
$ti = strftime("%X",time());
} else {
@@ -551,108 +525,4 @@
return ($status && $status2);
}
/** this function will restore an entire backup.zip into the specified course
* using standard moodle backup/restore functions, but silently.
* @param string $pathtofile the absolute path to the backup file.
* @param int $destinationcourse the course id to restore to.
* @param boolean $emptyfirst whether to delete all coursedata first.
* @param boolean $userdata whether to include any userdata that may be in the backup file.
*/
function import_backup_file_silently($pathtofile,$destinationcourse,$emptyfirst=false,$userdata=false) {
global $CFG,$SESSION,$USER; // is there such a thing on cron? I guess so..
if (empty($USER)) {
$USER = get_admin();
$USER->admin = 1; // not sure why, but this doesn't get set
}
define('RESTORE_SILENTLY',true); // don't output all the stuff to us.
$debuginfo = 'import_backup_file_silently: ';
$cleanupafter = false;
$errorstr = ''; // passed by reference to restore_precheck to get errors from.
if (!$course = get_record('course','id',$destinationcourse)) {
mtrace($debuginfo.'Course with id $destinationcourse was not a valid course!');
return false;
}
// first check we have a valid file.
if (!file_exists($pathtofile) || !is_readable($pathtofile)) {
mtrace($debuginfo.'File '.$pathtofile.' either didn\'t exist or wasn\'t readable');
return false;
}
// now make sure it's a zip file
require_once($CFG->dirroot.'/lib/filelib.php');
$filename = substr($pathtofile,strrpos($pathtofile,'/')+1);
$mimetype = mimeinfo("type", $filename);
if ($mimetype != 'application/zip') {
mtrace($debuginfo.'File '.$pathtofile.' was of wrong mimetype ('.$mimetype.')' );
return false;
}
// restore_precheck wants this within dataroot, so lets put it there if it's not already..
if (strstr($pathtofile,$CFG->dataroot) === false) {
// first try and actually move it..
if (!check_dir_exists($CFG->dataroot.'/temp/backup/',true)) {
mtrace($debuginfo.'File '.$pathtofile.' outside of dataroot and couldn\'t move it! ');
return false;
}
if (!copy($pathtofile,$CFG->dataroot.'/temp/backup/'.$filename)) {
mtrace($debuginfo.'File '.$pathtofile.' outside of dataroot and couldn\'t move it! ');
return false;
} else {
$pathtofile = 'temp/backup/'.$filename;
$cleanupafter = true;
}
} else {
// it is within dataroot, so take it off the path for restore_precheck.
$pathtofile = substr($pathtofile,strlen($CFG->dataroot.'/'));
}
if (!backup_required_functions()) {
mtrace($debuginfo.'Required function check failed (see backup_required_functions)');
return false;
}
@ini_set("max_execution_time","3000");
raise_memory_limit("128M");
if (!$backup_unique_code = restore_precheck($destinationcourse,$pathtofile,$errorstr,true)) {
mtrace($debuginfo.'Failed restore_precheck (error was '.$errorstr.')');
return false;
}
restore_setup_for_check($SESSION->restore,$backup_unique_code);
// add on some extra stuff we need...
$SESSION->restore->restoreto = 1;
$SESSION->restore->course_id = $destinationcourse;
$SESSION->restore->deleting = $emptyfirst;
// maybe we need users (defaults to 2 in restore_setup_for_check)
if (!empty($userdata)) {
$SESSION->restore->users = 1;
}
// we also need modules...
if ($allmods = get_records("modules")) {
foreach ($allmods as $mod) {
$modname = $mod->name;
//Now check that we have that module info in the backup file
if (isset($SESSION->info->mods[$modname]) && $SESSION->info->mods[$modname]->backup == "true") {
$SESSION->restore->mods[$modname]->restore = true;
$SESSION->restore->mods[$modname]->userinfo = $userdata;
}
}
}
if (!restore_execute($SESSION->restore,$SESSION->info,$SESSION->course_header,$errorstr)) {
mtrace($debuginfo.'Failed restore_execute (error was '.$errorstr.')');
return false;
}
return true;
}
?>
+1 -1
View File
@@ -4,7 +4,7 @@
require_once("../config.php");
require_once("../backup/lib.php");
$courseid = optional_param('courseid',0,PARAM_INT);
optional_variable($courseid);
require_login();
-15
View File
@@ -42,13 +42,6 @@
$$var = optional_param( $var,0);
$var = "restore_user_info_".$modname;
$$var = optional_param( $var,0);
$instances = $info->mods[$mod->name]->instances;
foreach ($instances as $instance) {
$var = 'restore_'.$modname.'_instance_'.$instance->id;
$$var = optional_param($var,0);
$var = 'restore_user_info_'.$modname.'_instance_'.$instance->id;
$$var = optional_param($var,0);
}
}
}
//restoreto
@@ -82,14 +75,6 @@
$restore->mods[$modname]->restore=$$var;
$var = "restore_user_info_".$modname;
$restore->mods[$modname]->userinfo=$$var;
$instances = $info->mods[$mod->name]->instances;
foreach ($instances as $instance) {
$var = 'restore_'.$modname.'_instance_'.$instance->id;
$restore->mods[$modname]->instances[$instance->id]->restore = $$var;
$var = 'restore_user_info_'.$modname.'_instance_'.$instance->id;
$restore->mods[$modname]->instances[$instance->id]->userinfo = $$var;
}
}
}
$restore->restoreto=$restore_restoreto;
+344 -2
View File
@@ -41,8 +41,350 @@
if (!$site = get_site()) {
error("Site not found!");
}
$errorstr = '';
$status = restore_execute($restore,$info,$course_header,$errorstr);
//Checks for the required files/functions to restore every module
//and include them
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = "$CFG->dirroot/mod/$modname/restorelib.php";
//If file exists and we have selected to restore that type of module
if ((file_exists($modfile)) and ($restore->mods[$modname]->restore)) {
include_once($modfile);
}
}
}
//Start the main table
echo "<table cellpadding=\"5\">";
echo "<tr><td>";
//Start the main ul
echo "<ul>";
//Init status
$status = true;
//Localtion of the xml file
$xml_file = $CFG->dataroot."/temp/backup/".$restore->backup_unique_code."/moodle.xml";
//If we've selected to restore into new course
//create it (course)
//Saving conversion id variables into backup_tables
if ($restore->restoreto == 2) {
echo "<li>".get_string("creatingnewcourse");
$oldidnumber = $course_header->course_idnumber;
if (!$status = restore_create_new_course($restore,$course_header)) {
notify("Error while creating the new empty course.");
}
//Print course fullname and shortname and category
if ($status) {
echo "<ul>";
echo "<li>".$course_header->course_fullname." (".$course_header->course_shortname.")".'</li>';
echo "<li>".get_string("category").": ".$course_header->category->name.'</li>';
if (!empty($oldidnumber)) {
echo "<li>".get_string("nomoreidnumber","moodle",$oldidnumber)."</li>";
}
echo "</ul></li>";
//Put the destination course_id
$restore->course_id = $course_header->course_id;
}
} else {
$course = get_record("course","id",$restore->course_id);
if ($course) {
echo "<li>".get_string("usingexistingcourse");
echo "<ul>";
echo "<li>".get_string("from").": ".$course_header->course_fullname." (".$course_header->course_shortname.")".'</li>';
echo "<li>".get_string("to").": ".$course->fullname." (".$course->shortname.")".'</li>';
if (($restore->deleting)) {
echo "<li>".get_string("deletingexistingcoursedata").'</li>';
} else {
echo "<li>".get_string("addingdatatoexisting").'</li>';
}
echo "</ul></li>";
//If we have selected to restore deleting, we do it now.
if ($restore->deleting) {
echo "<li>".get_string("deletingolddata").'</li>';
$status = remove_course_contents($restore->course_id,false) and
delete_dir_contents($CFG->dataroot."/".$restore->course_id,"backupdata");
if ($status) {
//Now , this situation is equivalent to the "restore to new course" one (we
//have a course record and nothing more), so define it as "to new course"
$restore->restoreto = 2;
} else {
notify("An error occurred while deleting some of the course contents.");
}
}
} else {
notify("Error opening existing course.");
$status = false;
}
}
//Now create the course_sections and their associated course_modules
if ($status) {
//Into new course
if ($restore->restoreto == 2) {
echo "<li>".get_string("creatingsections").'</li>';
if (!$status = restore_create_sections($restore,$xml_file)) {
notify("Error creating sections in the existing course.");
}
//Into existing course
} else if ($restore->restoreto == 0 or $restore->restoreto == 1) {
echo "<li>".get_string("checkingsections").'</li>';
if (!$status = restore_create_sections($restore,$xml_file)) {
notify("Error creating sections in the existing course.");
}
//Error
} else {
notify("Neither a new course or an existing one was specified.");
$status = false;
}
}
//Now create users as needed
if ($status and ($restore->users == 0 or $restore->users == 1)) {
echo "<li>".get_string("creatingusers")."<br />";
if (!$status = restore_create_users($restore,$xml_file)) {
notify("Could not restore users.");
}
//Now print info about the work done
if ($status) {
$recs = get_records_sql("select old_id, new_id from {$CFG->prefix}backup_ids
where backup_code = '$restore->backup_unique_code' and
table_name = 'user'");
//We've records
if ($recs) {
$new_count = 0;
$exists_count = 0;
$student_count = 0;
$teacher_count = 0;
$counter = 0;
//Iterate, filling counters
foreach ($recs as $rec) {
//Get full record, using backup_getids
$record = backup_getid($restore->backup_unique_code,"user",$rec->old_id);
if (strpos($record->info,"new") !== false) {
$new_count++;
}
if (strpos($record->info,"exists") !== false) {
$exists_count++;
}
if (strpos($record->info,"student") !== false) {
$student_count++;
} else if (strpos($record->info,"teacher") !== false) {
$teacher_count++;
}
//Do some output
$counter++;
if ($counter % 10 == 0) {
echo ".";
if ($counter % 200 == 0) {
echo "<br />";
}
backup_flush(300);
}
}
//Now print information gathered
echo " (".get_string("new").": ".$new_count.", ".get_string("existing").": ".$exists_count.")";
echo "<ul>";
echo "<li>".get_string("students").": ".$student_count.'</li>';
echo "<li>".get_string("teachers").": ".$teacher_count.'</li>';
echo "</ul>";
} else {
notify("No users were found!");
}
}
}
//Now create metacourse info
if ($status and $restore->metacourse) {
//Only to new courses!
if ($restore->restoreto == 2) {
echo "</li><li>".get_string("creatingmetacoursedata");
if (!$status = restore_create_metacourse($restore,$xml_file)) {
notify("Error creating metacourse in the course.");
}
}
}
//Now create categories and questions as needed (STEP1)
if ($status and ($restore->mods['quiz']->restore)) {
echo "</li><li>".get_string("creatingcategoriesandquestions");
echo "<ul>";
if (!$status = restore_create_questions($restore,$xml_file)) {
notify("Could not restore categories and questions!");
}
echo "</ul></li>";
}
//Now create user_files as needed
if ($status and ($restore->user_files)) {
echo "<li>".get_string("copyinguserfiles");
if (!$status = restore_user_files($restore)) {
notify("Could not restore user files!");
}
//If all is ok (and we have a counter)
if ($status and ($status !== true)) {
//Inform about user dirs created from backup
echo "<ul>";
echo "<li>".get_string("userzones").": ".$status;
echo "</li></ul>";
}
}
//Now create course files as needed
if ($status and ($restore->course_files)) {
echo "</li><li>".get_string("copyingcoursefiles")."</li>";
if (!$status = restore_course_files($restore)) {
notify("Could not restore course files!");
}
//If all is ok (and we have a counter)
if ($status and ($status !== true)) {
//Inform about user dirs created from backup
echo "<ul>";
echo "<li>".get_string("filesfolders").": ".$status;
echo "</ul>";
}
}
//Now create messages as needed
if ($status and ($restore->messages)) {
echo "<li>".get_string("creatingmessagesinfo");
if (!$status = restore_create_messages($restore,$xml_file)) {
notify("Could not restore messages!");
}
echo "</li>";
}
//Now create scales as needed
if ($status) {
echo "<li>".get_string("creatingscales").'</li>';
if (!$status = restore_create_scales($restore,$xml_file)) {
notify("Could not restore custom scales!");
}
}
//Now create groups as needed
if ($status) {
echo "<li>".get_string("creatinggroups").'</li>';
if (!$status = restore_create_groups($restore,$xml_file)) {
notify("Could not restore groups!");
}
}
//Now create events as needed
if ($status) {
echo "<li>".get_string("creatingevents").'</li>';
if (!$status = restore_create_events($restore,$xml_file)) {
notify("Could not restore course events!");
}
}
//Now create course modules as needed
if ($status) {
echo "<li>".get_string("creatingcoursemodules");
if (!$status = restore_create_modules($restore,$xml_file)) {
notify("Could not restore modules!");
}
}
//Now create gradebook as needed -- AFTER modules!!!
if ($status) {
echo "<li>".get_string("creatinggradebook");
if (!$status = restore_create_gradebook($restore,$xml_file)) {
notify("Could not restore gradebook!");
}
}
//Bring back the course blocks -- do it AFTER the modules!!!
if($status) {
//If we are deleting and bringing into a course or making a new course, same situation
if($restore->restoreto == 0 || $restore->restoreto == 2) {
echo '<li>'.get_string('creatingblocks').'</li>';
if (!$status = restore_create_blocks($restore, $info->backup_block_format, $course_header->blockinfo, $xml_file)) {
notify('Error while creating the course blocks');
}
}
}
//Now create log entries as needed
if ($status and ($restore->logs)) {
echo "</li><li>".get_string("creatinglogentries");
if (!$status = restore_create_logs($restore,$xml_file)) {
notify("Could not restore logs!");
}
}
//Now, if all is OK, adjust the instance field in course_modules !!
if ($status) {
echo "</li><li>".get_string("checkinginstances").'</li>';
if (!$status = restore_check_instances($restore)) {
notify("Could not adjust instances in course_modules!");
}
}
//Now, if all is OK, adjust activity events
if ($status) {
echo "<li>".get_string("refreshingevents").'</li>';
if (!$status = restore_refresh_events($restore)) {
notify("Could not refresh events for activities!");
}
}
//Now, if all is OK, adjust inter-activity links
if ($status) {
echo "<li>".get_string("decodinginternallinks");
if (!$status = restore_decode_content_links($restore)) {
notify("Could not refresh events for activities!");
}
}
//Now, with backup files prior to version 2005041100,
//convert all the wiki texts in the course to markdown
if ($status && $restore->backup_version < 2005041100) {
echo "<li>".get_string("convertingwikitomarkdown");
if (!$status = restore_convert_wiki2markdown($restore)) {
notify("Could not convert wiki texts to markdown!");
}
}
//Now if all is OK, update:
// - course modinfo field
// - categories table
// - add user as teacher
if ($status) {
echo "</li><li>".get_string("checkingcourse").'</li>';
//modinfo field
rebuild_course_cache($restore->course_id);
//categories table
$course = get_record("course","id",$restore->course_id);
fix_course_sortorder();
//Make the user a teacher if the course hasn't teachers (bug 2381)
if (!isadmin()) {
if (!$checktea = get_records('user_teachers','course', $restore->course_id)) {
//Add the teacher to the course
$status = add_teacher($USER->id, $restore->course_id);
}
}
}
//Cleanup temps (files and db)
if ($status) {
echo "<li>".get_string("cleaningtempdata").'</li>';
if (!$status = clean_temp_data ($restore)) {
notify("Could not clean up temporary data from files and database");
}
}
//End the main ul
echo "</ul>";
//End the main table
echo "</td></tr>";
echo "</table>";
if (!$status) {
error ("An error has occurred and the restore could not be completed!");
+2 -22
View File
@@ -213,7 +213,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
//choose_from_menu($restore_options, $restore_var, $$restore_var, "");
//choose_from_radio($restore_options, $restore_var, $$restore_var);
//Print the checkbox
print_checkbox($restore_var, $$restore_var, $$restore_var, get_string("modulenameplural",$modname),'','selectItemInCheckboxByName(\'form1\',\'restore_'.$modname.'\',this.checked)');
print_checkbox($restore_var, $$restore_var, $$restore_var, get_string("modulenameplural",$modname));
//If backup contains user data, then show menu, else fix it to
//without user data
echo "</td><td align=\"right\">&nbsp;";
@@ -223,33 +223,13 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
$restore_user_options[0] = get_string("no");
//choose_from_menu($restore_user_options, $user_info_var, $$user_info_var, "");
//choose_from_radio($restore_user_options, $user_info_var, $$user_info_var);
print_checkbox($user_info_var, $$user_info_var, $$user_info_var, get_string("userdata"),'','selectItemInCheckboxByName(\'form1\',\'restore_user_info_'.$modname.'\',this.checked)');
print_checkbox($user_info_var, $$user_info_var, $$user_info_var, get_string("userdata"));
} else {
//Module haven't userdata
echo get_string("withoutuserdata");
echo "<input type=\"hidden\" name=\"$user_info_var\" value=\"0\" />";
}
echo "</td></tr>";
$instances = $info->mods[$modname]->instances;
if (!empty($instances) && is_array($instances)) {
echo '<tr><td></td><td colspan="3"><table class="restore-form-instances">';
foreach ($instances as $instance) {
echo '<tr><td>';
$var = 'restore_'.$modname.'_instance_'.$instance->id;
$$var = optional_param($var,1);
print_checkbox($var,$$var,$$var,$instance->name,$instance->name,'this.form.elements[\'restore_'.$modname.'\'].checked=1;');
echo '</td><td align="right">&nbsp;';
$var = 'restore_user_info_'.$modname.'_instance_'.$instance->id;
$$var = optional_param($var,1);
if ($info->mods[$modname]->instances[$instance->id]->userinfo == 'true') {
print_checkbox($var,$$var,$$var,get_string('userdata'),'','this.form.elements[\'restore_user_info_'.$modname.'\'].checked=1;');
} else {
echo '<input type="hidden" name="'.$var.'" value="0" />';
}
echo '</td></tr>';
}
echo '</table></td></tr>';
}
} else {
//Module isn't restorable
echo "<input type=\"hidden\" name=\"$restore_var\" value=\"0\" />";
+1 -5
View File
@@ -34,11 +34,7 @@
error("Site not found!");
}
$errorstr = '';
if (!empty($SESSION->restore->importing)) {
define('RESTORE_SILENTLY',true);
}
$status = restore_precheck($id,$file,$errorstr);
$status = restore_precheck($id,$file,!empty($SESSION->restore->importing));
if (!$status) {
error("An error occured");
+136 -848
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -5,6 +5,6 @@
// database (backup_version) to determine whether upgrades should
// be performed (see db/backup_*.php)
$backup_version = 2006011600; // The current version is a date (YYYYMMDDXX)
$backup_version = 2005070500; // The current version is a date (YYYYMMDDXX)
$backup_release = "1.6dev"; // User-friendly version number
$backup_release = "1.5.3"; // User-friendly version number
@@ -1,9 +1,9 @@
<?php //$Id$
<?PHP //$Id$
class block_activity_modules extends block_list {
function init() {
$this->title = get_string('activities');
$this->version = 2006011300;
$this->version = 2004041001;
}
function get_content() {
@@ -41,10 +41,6 @@ class block_activity_modules extends block_list {
return $this->content;
}
function applicable_formats() {
return array('all' => true, 'mod' => false, 'my' => false);
}
}
?>
+7 -23
View File
@@ -55,12 +55,6 @@ class block_admin extends block_list {
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/course/log.php?id='.SITEID.'">'.get_string('logs').'</a>';
$this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/log.gif" height="16" width="16" alt="" />';
if (!empty($CFG->enablestats)) {
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/course/stats.php?course='.SITEID.'">'.get_string('stats').'</a>';
$this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/stats.gif" height="16" width="16" alt="" />';
}
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/files/index.php?id='.SITEID.'">'.get_string('sitefiles').'</a>';
$this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/files.gif" height="16" width="16" alt="" />';
@@ -92,9 +86,9 @@ class block_admin extends block_list {
if ($isteacheredit) {
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/edit.gif" height="16" width="16" alt="" />';
if (isediting($this->instance->pageid)) {
$this->content->items[]='<a href="view.php?id='.$this->instance->pageid.'&amp;edit=off&amp;sesskey='.sesskey().'">'.get_string('turneditingoff').'</a>';
$this->content->items[]='<a href="view.php?id='.$this->instance->pageid.'&amp;edit=off">'.get_string('turneditingoff').'</a>';
} else {
$this->content->items[]='<a href="view.php?id='.$this->instance->pageid.'&amp;edit=on&amp;sesskey='.sesskey().'">'.get_string('turneditingon').'</a>';
$this->content->items[]='<a href="view.php?id='.$this->instance->pageid.'&amp;edit=on">'.get_string('turneditingon').'</a>';
}
$this->content->items[]='<a href="edit.php?id='.$this->instance->pageid.'">'.get_string('settings').'</a>';
@@ -126,9 +120,8 @@ class block_admin extends block_list {
$this->content->items[]='<a href="student.php?id='.$this->instance->pageid.'">'.$course->students.'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/users.gif" height="16" width="16" alt="" />';
} else {
$strchildcourses = get_string('childcourses');
$this->content->items[]='<a href="importstudents.php?id='.$this->instance->pageid.'">'.$strchildcourses.'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/course.gif" height="16" width="16" alt="" />';
$this->content->items[]='<a href="importstudents.php?id='.$this->instance->pageid.'">'.$course->students.'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/users.gif" height="16" width="16" alt="" />';
}
if ($course->groupmode || !$course->groupmodeforce) {
$strgroups = get_string('groups');
@@ -142,16 +135,11 @@ class block_admin extends block_list {
$this->content->items[]='<a href="'.$CFG->wwwroot.'/files/index.php?id='.$this->instance->pageid.'&amp;wdir=/backupdata">'.get_string('restore').'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/restore.gif" height="16" width="16" alt="" />';
$this->content->items[]='<a href="'.$CFG->wwwroot.'/course/import.php?id='.$this->instance->pageid.'">'.get_string('import').'</a>';
$this->content->items[]='<a href="'.$CFG->wwwroot.'/course/import.php?id='.$this->instance->pageid.'">'.get_string('importdata').'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/restore.gif" height="16" width="16" alt="" />';
$this->content->items[]='<a href="scales.php?id='.$this->instance->pageid.'">'.get_string('scales').'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/scales.gif" height="16" width="16" alt="" />';
if (!empty($CFG->enablestats)) {
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/course/stats.php?course='.$this->instance->pageid.'">'.get_string('stats').'</a>';
$this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/stats.gif" height="16" width="16" alt="" />';
}
}
$this->content->items[]='<a href="'.$CFG->wwwroot.'/grade/index.php?id='.$this->instance->pageid.'">'.get_string('grades').'</a>';
@@ -194,10 +182,10 @@ class block_admin extends block_list {
}
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" height="16" width="16" alt="" />';
if (is_internal_auth()) {
if (is_internal_auth() && !is_restricted_user($USER->username)) {
$this->content->items[]='<a href="'.$CFG->wwwroot.'/login/change_password.php?id='.$this->instance->pageid.'">'.get_string('changepassword').'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" height="16" width="16" alt="" />';
} else if ($CFG->changepassword) {
} else if ($CFG->changepassword && !is_restricted_user($USER->username)) {
$this->content->items[]='<a href="'.$CFG->changepassword.'">'.get_string('changepassword').'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" height="16" width="16" alt="" />';
}
@@ -207,10 +195,6 @@ class block_admin extends block_list {
}
}
}
function applicable_formats() {
return array('all' => true, 'mod' => false, 'my' => false);
}
}
?>
+23 -23
View File
@@ -12,8 +12,8 @@ class block_calendar_month extends block_base {
function get_content() {
global $USER, $CFG, $SESSION;
$cal_m = optional_param( 'cal_m', 0, PARAM_INT );
$cal_y = optional_param( 'cal_y', 0, PARAM_INT );
optional_variable($_GET['cal_m']);
optional_variable($_GET['cal_y']);
require_once($CFG->dirroot.'/calendar/lib.php');
@@ -25,24 +25,24 @@ class block_calendar_month extends block_base {
$this->content->text = '';
$this->content->footer = '';
// [pj] To me it looks like this if would never be needed, but Penny added it
// when committing the /my/ stuff. Reminder to discuss and learn what it's about.
// It definitely needs SOME comment here!
if (!empty($this->instance->pageid)) {
$courseshown = $this->instance->pageid;
}
else {
$courseshown = SITEID;
}
if (empty($this->instance)) { // Overrides: use no course at all
if($courseshown == SITEID) {
// Being displayed at site level. This will cause the filter to fall back to auto-detecting
// the list of courses it will be grabbing events from.
$filtercourse = NULL;
}
else {
// Forcibly filter events to include only those from the particular course we are in.
$filtercourse = array($courseshown => 1);
$courseshown = false;
$filtercourse = array();
} else {
$courseshown = $this->instance->pageid;
if($courseshown == SITEID) {
// Being displayed at site level. This will cause the filter to fall back to auto-detecting
// the list of courses it will be grabbing events from.
$filtercourse = NULL;
}
else {
// Forcibly filter events to include only those from the particular course we are in.
$filtercourse = array($courseshown => 1);
}
}
// We 'll need this later
@@ -54,15 +54,15 @@ class block_calendar_month extends block_base {
if ($courseshown == SITEID) {
// For the front page
$this->content->text .= calendar_overlib_html();
$this->content->text .= calendar_top_controls('frontpage', array('m' => $cal_m, 'y' => $cal_y));
$this->content->text .= calendar_get_mini($courses, $group, $user, $cal_m, $cal_y);
$this->content->text .= calendar_top_controls('frontpage', array('m' => $_GET['cal_m'], 'y' => $_GET['cal_y']));
$this->content->text .= calendar_get_mini($courses, $group, $user, $_GET['cal_m'], $_GET['cal_y']);
// No filters for now
} elseif (!empty($courseshown)) {
// For any other course
$this->content->text .= calendar_overlib_html();
$this->content->text .= calendar_top_controls('course', array('id' => $courseshown, 'm' => $cal_m, 'y' => $cal_y));
$this->content->text .= calendar_get_mini($courses, $group, $user, $cal_m, $cal_y);
$this->content->text .= calendar_top_controls('course', array('id' => $courseshown, 'm' => $_GET['cal_m'], 'y' => $_GET['cal_y']));
$this->content->text .= calendar_get_mini($courses, $group, $user, $_GET['cal_m'], $_GET['cal_y']);
$course = get_record('course', 'id', $this->instance->pageid);
$this->content->text .= '<div class="filters">'.calendar_filter_controls('course', '', $course).'</div>';
@@ -8,8 +8,8 @@ class block_calendar_upcoming extends block_base {
function get_content() {
global $USER, $CFG, $SESSION;
$cal_m = optional_param( 'cal_m', 0, PARAM_INT );
$cal_y = optional_param( 'cal_y', 0, PARAM_INT );
optional_variable($_GET['cal_m']);
optional_variable($_GET['cal_y']);
require_once($CFG->dirroot.'/calendar/lib.php');
@@ -27,12 +27,8 @@ class block_calendar_upcoming extends block_base {
$this->content->footer = '';
} else {
if (!empty($this->instance->pageid)) {
$courseshown = $this->instance->pageid;
}
else {
$courseshown = SITEID;
}
$courseshown = $this->instance->pageid;
$this->content->footer = '<br /><a href="'.$CFG->wwwroot.
'/calendar/view.php?view=upcoming&amp;course='.$courseshown.'">'.
get_string('gotocalendar', 'calendar').'</a>...';
+1 -3
View File
@@ -1,7 +1,5 @@
<?PHP //$Id$
include_once($CFG->dirroot . '/course/lib.php');
class block_course_list extends block_list {
function init() {
$this->title = get_string('courses');
@@ -55,7 +53,7 @@ class block_course_list extends block_list {
$categories = get_categories("0"); // Parent = 0 ie top-level categories only
if ($categories) { //Check we have categories
if (count($categories) > 1) { // Just print top level category links
if (count($categories) > 1 || (count($categories) == 1 && count_records('course') > 200)) { // Just print top level category links
foreach ($categories as $category) {
$linkcss = $category->visible ? "" : " class=\"dimmed\" ";
$this->content->items[]="<a $linkcss href=\"$CFG->wwwroot/course/category.php?id=$category->id\">$category->name</a>";
@@ -23,9 +23,6 @@ class block_course_summary extends block_base {
return '';
}
if (empty($this->instance->pageid)) {
$this->instance->pageid = SITEID;
}
$course = get_record('course', 'id', $this->instance->pageid);
$this->content = New stdClass;
-13
View File
@@ -1,13 +0,0 @@
<?
function migrate2utf8_block_instance_configdata($recordid){
global $CFG;
}
function migrate2utf8_block_pinned_configdata($recordid){
global $CFG;
}
?>
-31
View File
@@ -1,31 +0,0 @@
<DBMIGRATION type="blocks" VERSION="2005120100">
<TABLES>
<TABLE name="block">
<FIELDS>
<FIELD name="name" method="NO_CONV" type="varchar" length="40" />
</FIELDS>
</TABLE>
<TABLE name="block_instance">
<FIELDS>
<FIELD name="pagetype" method="NO_CONV" type="varchar" length="20" dropindex="pagetype" addindex="pagetype (pagetype(20))"/>
<FIELD name="position" method="NO_CONV" type="varchar" length="10" />
<FIELD name="configdata" method="PHP_FUNCTION" type="text" length="0">
<PHP_FUNCTION>
migrate2utf8_block_instance_configdata(RECORDID)
</PHP_FUNCTION>
</FIELD>
</FIELDS>
</TABLE>
<TABLE name="block_pinned">
<FIELDS>
<FIELD name="pagetype" method="NO_CONV" type="varchar" length="20" />
<FIELD name="position" method="NO_CONV" type="varchar" length="10" />
<FIELD name="configdata" method="PHP_FUNCTION" type="text" length="0">
<PHP_FUNCTION>
migrate2utf8_block_instance_configdata(RECORDID)
</PHP_FUNCTION>
</FIELD>
</FIELDS>
</TABLE>
</TABLES>
</DBMIGRATION>
+4 -17
View File
@@ -143,24 +143,11 @@ global $CFG;
}
}
if ($oldversion < 2005081600) {
$result = $result && modify_database('',"CREATE TABLE `prefix_block_pinned` (
`id` int(10) not null auto_increment,
`blockid` int(10) not null default '0',
`pagetype` varchar(20) not null default '',
`position` varchar(10) not null default '',
`weight` tinyint(3) not null default '0',
`visible` tinyint(1) not null default '0',
`configdata` text not null default '',
PRIMARY KEY(`id`)
) TYPE=MyISAM;");
if ($oldversion < 2005022401) {
// add an index where we really need it
modify_database('','ALTER TABLE prefix_block_instance ADD INDEX pagetype (pagetype);');
}
if ($oldversion < 2005090200) {
execute_sql("ALTER TABLE {$CFG->prefix}block_instance ADD INDEX pagetype (pagetype);",false); // do it silently, in case it's already there from 1.5
modify_database('','ALTER TABLE prefix_block_pinned ADD INDEX pagetype (pagetype);');
}
//Finally, return result
return $result;
}
-14
View File
@@ -27,18 +27,4 @@ CREATE TABLE `prefix_block_instance` (
INDEX pageid(`pageid`),
INDEX pagetype(`pagetype`)
) TYPE=MyISAM;
CREATE TABLE `prefix_block_pinned` (
`id` int(10) not null auto_increment,
`blockid` int(10) not null default '0',
`pagetype` varchar(20) not null default '',
`position` varchar(10) not null default '',
`weight` tinyint(3) not null default '0',
`visible` tinyint(1) not null default '0',
`configdata` text not null default '',
PRIMARY KEY(`id`)
) TYPE=MyISAM;
# --------------------------------------------------------
+3 -15
View File
@@ -146,21 +146,9 @@ global $CFG;
modify_database('','ALTER TABLE prefix_block_instance ALTER position SET NOT NULL');
}
if ($oldversion < 2005081600) {
$result = $result && modify_database('',"CREATE TABLE prefix_block_pinned (
id SERIAL8 PRIMARY KEY,
blockid INT8 NOT NULL default 0,
pagetype varchar(20) NOT NULL default '',
position varchar(10) NOT NULL default '',
weight INT NOT NULL default 0,
visible INT NOT NULL default 0,
configdata text NOT NULL default 0
);");
}
if ($oldversion < 2005090200) {
execute_sql("CREATE INDEX {$CFG->prefix}block_instance_pagetype_idx ON {$CFG->prefix}block_instance (pagetype);",false); // do it silently, in case it's already there from 1.5
modify_database('','CREATE INDEX prefix_block_pinned_pagetype_idx ON prefix_block_pinned (pagetype);');
if ($oldversion < 2005022401) {
// add an index where we really need it
modify_database('','CREATE INDEX prefix_block_instance_pagetype_idx ON prefix_block_instance (pagetype);');
}
//Finally, return result
+1 -12
View File
@@ -23,19 +23,8 @@ CREATE TABLE prefix_block_instance (
visible int not null default '0',
configdata text not null default ''
) ;
CREATE INDEX prefix_block_instance_pageid_idx ON prefix_block_instance (pageid);
CREATE INDEX prefix_block_instance_pagetype_idx ON prefix_block_instance (pagetype);
CREATE TABLE prefix_block_pinned (
id SERIAL8 PRIMARY KEY,
blockid INT8 NOT NULL default 0,
pagetype varchar(20) NOT NULL default '',
position varchar(10) NOT NULL default '',
weight INT NOT NULL default 0,
visible INT NOT NULL default 0,
configdata text NOT NULL default 0
) ;
CREATE INDEX prefix_block_pinned_pagetype_idx ON prefix_block_pinned (pagetype);
# --------------------------------------------------------
-206
View File
@@ -1,206 +0,0 @@
<?php
class block_loancalc extends block_base {
function init() {
$this->title = get_string('loancalc','block_loancalc');
$this->content_type = BLOCK_TYPE_TEXT;
$this->version = 2005022100;
}
function get_content() {
global $CFG;
$calc = $CFG->pixpath.'/i/calc.gif';
$this->content->text = '
<script language="JavaScript">
<!--
function Next()
{
submitScreen("Next");
document.vbankform.submit();
}
function Back()
{
submitScreen("Back");
document.vbankform.submit();
}
function num_format(x) { // format numbers with two digits
sgn = (x < 0);
x = Math.abs(x);
x = Math.floor((x * 100) + .5);
i = 3;
y = "";
while(((i--) > 0) || (x > 0)) {
y = (x % 10) + y;
x = Math.floor(x / 10);
if(i == 1) {
y = "." + y;
}
}
if(sgn) {
y = "-" + y;
}
return(y);
}
function comp(v) { // general entry point for all cases
// convert all entry fields into variables
x = document.vbankform;
pv = parseFloat(x.LOANAMOUNT.value);
lpp = parseFloat(x.LOANPAYPERIOD[x.LOANPAYPERIOD.selectedIndex].value);
if (isNaN(pv) && (v != "pv"))
{
x.LOANAMOUNT.select();
x.LOANAMOUNT.focus();
alert("Numbers only to be entered");
return;
}
fv = parseFloat("0");
yr = parseFloat(x.LOANTERM.value);
if (isNaN(yr) && (v != "np"))
{
x.LOANTERM.select();
x.LOANTERM.focus();
alert("Numbers only to be entered");
return;
}
np = lpp * yr;
pmt = -parseFloat(x.LOANREPAYMENT.value);
if (isNaN(pmt) && (v != "pmt"))
{
x.LOANREPAYMENT.select();
x.LOANREPAYMENT.focus();
alert("Numbers only to be entered");
return;
}
if(x.LOANINTRATE.value == "") {
alert("You must enter an interest rate (ir).");
}
else {
ir = parseFloat(x.LOANINTRATE.value);
if (isNaN(ir))
{
x.LOANINTRATE.select();
x.LOANINTRATE.focus();
alert("Numbers only to be entered");
return;
}
ir = ((ir / lpp) / 100);
// test and compute all cases
if (v == "pv") {
if(ir == 0) {
pv = -(fv + (pmt * np));
}
else {
q1 = Math.pow(1 + ir,-np);
q2 = Math.pow(1 + ir,np);
pv = -(q1 * (fv * ir - pmt + q2 * pmt))/ir;
}
x.LOANAMOUNT.value = num_format(pv);
}
if (v == "np") {
if(ir == 0) {
if(pmt != 0) {
np = - (fv + pv)/pmt;
}
else {
alert("Divide by zero error.");
}
}
else {
np = Math.log((-fv * ir + pmt)/(pmt + ir * pv))/ Math.log(1 + ir);
}
if(np == 0) {
alert("Can\'t compute Number of Periods for the present values.");
}
else {
np = (np / lpp)
if (isNaN(np)) {
alert("The repayment amount is less than the interest. You must increase your repayments to pay off this loan!");
} else {
x.LOANTERM.value = num_format(np);
}
}
}
if (v == "pmt") {
if(ir == 0.0) {
if(np != 0) {
pmt = (fv + pv)/np;
}
else {
alert("Divide by zero error.");
}
}
else {
q = Math.pow(1 + ir,np);
pmt = ((ir * (fv + q * pv))/(-1 + q));
}
x.LOANREPAYMENT.value = num_format(pmt);
}
}
} // function comp
//-->
</script>
<title></title>
</head>
<body>
<h1></h1>
<form method="post" id="vbankform" name="vbankform">
<table>
<tr>
<td colspan="2">'.get_string('amountofloan','block_loancalc').'</td>
</tr>
<tr>
<td><input name="LOANAMOUNT" id="LOANAMOUNT" size="17"></td>
<td><a href="JavaScript:comp(\'pv\');"><img src="'.$calc.'" alt="calculate" border="0"></a></td>
</tr>
<tr>
<td colspan="2">'.get_string('repaymentamount','block_loancalc').'</td>
</tr>
<tr>
<td><input name="LOANREPAYMENT" id="LOANREPAYMENT" size="17"></td>
<td><a href="JavaScript:comp(\'pmt\');"><img src="'.$calc.'" alt="calculate" border="0"></a></td>
</tr>
<tr>
<td colspan="2">'.get_string('loanterm','block_loancalc').'</td>
</tr>
<tr>
<td><input name="LOANTERM" id="LOANTERM" size="17"></td>
<td><a href="JavaScript:comp(\'np\');"><img src="'.$calc.'" alt="calculate" border="0"></a></td>
</tr>
<tr>
<td colspan="2">'.get_string('interestrate','block_loancalc').'</td>
</tr>
<tr>
<td><input name="LOANINTRATE" id="LOANINTRATE" size="17"></td>
<td></td>
</tr>
<tr>
<td colspan="2">'.get_string('repaymentfreq','block_loancalc').'</td>
</tr>
<td>';
$options[52] = get_string('weekly','block_loancalc');
$options[26] = get_string('fortnightly','block_loancalc');
$options[12] = get_string('monthly','block_loancalc');
$this->content->text .= choose_from_menu($options,'LOANPAYPERIOD','12',NULL,NULL,NULL,true);
$this->content->text .= '</td>
<td></td>
</tr>
</table>
</form>';
return $this->content;
}
}
?>
+1 -1
View File
@@ -32,7 +32,7 @@ class block_login extends block_base {
$forgot = $wwwroot . '/login/forgot_password.php';
} else {
if (!empty($CFG->{'auth_'.$CFG->auth.'_stdchangepassword'})
|| $CFG->changepassword
|| $CFG->changepassword
|| is_internal_auth() ) {
if (is_internal_auth() || !empty($CFG->{'auth_'.$CFG->auth.'_stdchangepassword'})) {
$forgot = $wwwroot . '/login/forgot_password.php';
+10 -1
View File
@@ -37,7 +37,16 @@ class block_messages extends block_base {
if (!empty($users)) {
foreach ($users as $user) {
$this->content->text .= '<div style="text-align: left; font-size: 0.75em; padding-top: 5px;">';
$this->content->text .= print_user_picture($user->id, $this->instance->pageid, $user->picture, 16, true).' ';
if ($user->picture) {
if ($CFG->slasharguments) {
$imgtag = '<img src="'.$CFG->wwwroot.'/user/pix.php/'.$user->id.'/f2.jpg" style="height: 16px; width:16px; vertical-align: middle;" alt="" /> ';
} else {
$imgtag = '<img src="'.$CFG->wwwroot.'/user/pix.php?file=/'.$user->id.'/f2.jpg" style="height: 16px; width:16px; vertical-align: middle;" alt="" /> ';
}
$this->content->text .= $imgtag;
} else {
$this->content->text .= '<img src="'.$CFG->pixpath.'/i/user.gif" style="height: 16px; width:16px; vertical-align: middle;" alt="" /> ';
}
$timeago = format_time(time() - $user->lastaccess);
$this->content->text .= '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$this->instance->pageid.'" title="'.$timeago.'">'.fullname($user).'</a>';
$this->content->text .= '&nbsp;<a target="message_'.$user->id.'" href="'.$CFG->wwwroot.'/message/discussion.php?id='.$user->id.'" onclick="return openpopup(\'/message/discussion.php?id='.$user->id.'\', \'message_'.$user->id.'\', \'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500\', 0);"><img height="11" width="11" src="'.$CFG->pixpath.'/t/message.gif" alt="" />&nbsp;'.$user->count.'</a>';
+11 -40
View File
@@ -279,16 +279,13 @@ class block_base {
$title = $this->str->show;
}
if (empty($this->instance->pageid)) {
$this->instance->pageid = 0;
}
$page = page_create_object($this->instance->pagetype, $this->instance->pageid);
$script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey));
$movebuttons .= '<a class="icon hide" title="'. $title .'" href="'.$script.'&amp;blockaction=toggle">' .
'<img src="'. $CFG->pixpath.$icon .'" alt="'.$title.'" /></a>';
if ($options & BLOCK_CONFIGURE && $this->user_can_edit()) {
if ($options & BLOCK_CONFIGURE) {
$movebuttons .= '<a class="icon edit" title="'. $this->str->configure .'" href="'.$script.'&amp;blockaction=config">' .
'<img src="'. $CFG->pixpath .'/t/edit.gif" alt="'. $this->str->configure .'" /></a>';
}
@@ -399,6 +396,8 @@ class block_base {
* @return boolean
*/
function config_save($data) {
// Default behavior: save all variables as $CFG properties
// You don't need to override this if you 're satisfied with the above
foreach ($data as $name => $value) {
set_config($name, $value);
}
@@ -421,6 +420,7 @@ class block_base {
* @return int
*/
function preferred_width() {
// Default case: the block wants to be 180 pixels wide
return 180;
}
@@ -429,15 +429,17 @@ class block_base {
* @return boolean
*/
function hide_header() {
//Default, false--> the header is shown
return false;
}
/**
* Default case: an id with the instance and a class with our name in it
* Default case: just an id for the block, with our name in it
* @return array
* @todo finish documenting this function
*/
function html_attributes() {
// Default case: an id with the instance and a class with our name in it
return array('id' => 'inst'.$this->instance->id, 'class' => 'block_'. $this->name());
}
@@ -527,14 +529,10 @@ class block_base {
* @return boolean
* @todo finish documenting this function
*/
function instance_config_save($data,$pinned=false) {
function instance_config_save($data) {
$data = stripslashes_recursive($data);
$this->config = $data;
$table = 'block_instance';
if (!empty($pinned)) {
$table = 'block_pinned';
}
return set_field($table, 'configdata', base64_encode(serialize($data)), 'id', $this->instance->id);
return set_field('block_instance', 'configdata', base64_encode(serialize($data)), 'id', $this->instance->id);
}
/**
@@ -542,12 +540,8 @@ class block_base {
* @return boolean
* @todo finish documenting this function
*/
function instance_config_commit($pinned=false) {
$table = 'block_instance';
if (!empty($pinned)) {
$table = 'block_pinned';
}
return set_field($table, 'configdata', base64_encode(serialize($this->config)), 'id', $this->instance->id);
function instance_config_commit() {
return set_field('block_instance', 'configdata', base64_encode(serialize($this->config)), 'id', $this->instance->id);
}
/**
@@ -568,29 +562,6 @@ class block_base {
return true;
}
/**
* Allows the block class to have a say in the user's ability to edit (i.e., configure) blocks of this type.
* The framework has first say in whether this will be allowed (e.g., no editing allowed unless in edit mode)
* but if the framework does allow it, the block can still decide to refuse.
* @return boolean
* @todo finish documenting this function
*/
function user_can_edit() {
return true;
}
/**
* Allows the block class to have a say in the user's ability to create new instances of this block.
* The framework has first say in whether this will be allowed (e.g., no adding allowed unless in edit mode)
* but if the framework does allow it, the block can still decide to refuse.
* This function has access to the complete page object, the creation related to which is being determined.
* @return boolean
* @todo finish documenting this function
*/
function user_can_addto(&$page) {
return true;
}
}
/**
-3
View File
@@ -22,9 +22,6 @@ class block_news_items extends block_base {
}
if ($this->instance->pageid == 0) {
$this->instance->pageid = SITEID;
}
$course = get_record('course', 'id', $this->instance->pageid);
if ($course->newsitems) { // Create a nice listing of recent postings
+23 -7
View File
@@ -82,14 +82,21 @@ class block_online_users extends block_base {
}
}
if ($teachers = get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.picture, u.lastaccess, s.timeaccess
$findteacherssql = "SELECT u.id, u.username, u.firstname, u.lastname, u.picture, u.lastaccess, s.timeaccess
FROM {$CFG->prefix}user u,
{$CFG->prefix}user_teachers s
$groupmembers
WHERE u.id = s.userid $courseselect $groupselect $timeselect
ORDER BY s.timeaccess DESC")) {
WHERE u.id = s.userid $courseselect $groupselect $timeselect ";
if (!isteacher($course->id)) {
// Hide hidden teachers from students.
$findteacherssql .= 'AND s.authority > 0 ';
}
$findteacherssql .= 'ORDER BY s.timeaccess DESC';
if ($teachers = get_records_sql($findteacherssql)) {
foreach ($teachers as $teacher) {
$teacher->fullname = '<b>'.fullname($teacher).'</b>';
$teacher->fullname = '<strong>'.fullname($teacher).'</strong>';
$users[$teacher->id] = $teacher;
}
}
@@ -98,7 +105,7 @@ class block_online_users extends block_base {
//Calculate minutes
$minutes = floor($timetoshowusers/60);
$this->content->text = "<div class=\"message\">(".get_string("periodnminutes","block_online_users",$minutes).")</div>";
$this->content->text = "<center><font size=\"-2\">(".get_string("periodnminutes","block_online_users",$minutes).")</font></center>";
//Now, we have in users, the list of users to show
//Because they are online
@@ -106,7 +113,16 @@ class block_online_users extends block_base {
foreach ($users as $user) {
$this->content->text .= '<div class="listentry">';
$timeago = format_time(time() - max($user->timeaccess, $user->lastaccess)); //bruno to calculate correctly on frontpage
$this->content->text .= print_user_picture($user->id, $this->instance->pageid, $user->picture, 16, true).' ';
if ($user->picture) {
if ($CFG->slasharguments) {
$imgtag = '<img src="'.$CFG->wwwroot.'/user/pix.php/'.$user->id.'/f2.jpg" style="height: 16px; width:16px; vertical-align: middle;" alt="" /> ';
} else {
$imgtag = '<img src="'.$CFG->wwwroot.'/user/pix.php?file=/'.$user->id.'/f2.jpg" style="height: 16px; width:16px; vertical-align: middle;" alt="" /> ';
}
$this->content->text .= $imgtag;
} else {
$this->content->text .= '<img src="'.$CFG->pixpath.'/i/user.gif" style="height: 16px; width:16px; vertical-align: middle;" alt="" /> ';
}
$this->content->text .= '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$this->instance->pageid.'" title="'.$timeago.'">'.$user->fullname.'</a>';
if (!empty($USER->id) and ($USER->id != $user->id) and !empty($CFG->messaging) and !isguest()) { // Only when logged in
$this->content->text .= '&nbsp;<a target="message_'.$user->id.'" href="'.$CFG->wwwroot.'/message/discussion.php?id='.$user->id.'" onclick="return openpopup(\'/message/discussion.php?id='.$user->id.'\', \'message_'.$user->id.'\', \'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500\', 0);"><img height="11" width="11" src="'.$CFG->pixpath.'/t/message.gif" alt="" /></a>';
@@ -114,7 +130,7 @@ class block_online_users extends block_base {
$this->content->text .= '</div>';
}
} else {
$this->content->text .= "<div class=\"message\">".get_string("none")."</div>";
$this->content->text .= "<center><font size=\"-1\">".get_string("none")."</font></center>";
}
return $this->content;
+12 -20
View File
@@ -121,18 +121,10 @@
// minor tweaks to display the page layout!
// Calculate the preferred width for left, right and center (both center positions will use the same)
if (empty($preferred_width_left)) {
$preferred_width_left = blocks_preferred_width($pageblocks[BLOCK_POS_LEFT]);
}
if (empty($preferred_width_right)) {
$preferred_width_right = blocks_preferred_width($pageblocks[BLOCK_POS_RIGHT]);
}
if (empty($preferred_width_centerup)) {
$preferred_width_centerup = blocks_preferred_width($pageblocks[BLOCK_POS_CENTERUP]);
}
if (empty($preferred_width_centerdown)) {
$preferred_width_centerdown = blocks_preferred_width($pageblocks[BLOCK_POS_CENTERDOWN]);
}
optional_variable($preferred_width_left, blocks_preferred_width($pageblocks[BLOCK_POS_LEFT]));
optional_variable($preferred_width_right, blocks_preferred_width($pageblocks[BLOCK_POS_RIGHT]));
optional_variable($preferred_width_centerup, blocks_preferred_width($pageblocks[BLOCK_POS_CENTERUP]));
optional_variable($preferred_width_centerdown, blocks_preferred_width($pageblocks[BLOCK_POS_CENTERDOWN]));
$preferred_width_left = min($preferred_width_left, BLOCK_L_MAX_WIDTH);
$preferred_width_left = max($preferred_width_left, BLOCK_L_MIN_WIDTH);
$preferred_width_right = min($preferred_width_right, BLOCK_R_MAX_WIDTH);
@@ -163,15 +155,15 @@
// The actual display logic is here
echo '<table style="width: 100%;"><tr>';
if(blocks_have_content($pageblocks,BLOCK_POS_LEFT) || $editing) {
if(blocks_have_content($pageblocks[BLOCK_POS_LEFT]) || $editing) {
echo '<td style="vertical-align: top; width: '.$preferred_width_left.'px;">';
blocks_print_group($PAGE, $pageblocks,BLOCK_POS_LEFT);
blocks_print_group($PAGE, $pageblocks[BLOCK_POS_LEFT]);
echo '</td>';
}
echo '<td style="border: 1px black solid; width: '.$preferred_width_center.'px;"><p style="text-align: center; padding: 10px; background: black; color: white;">Center-up position:</p>';
if(blocks_have_content($pageblocks,BLOCK_POS_CENTERUP) || $editing) {
blocks_print_group($PAGE, $pageblocks,BLOCK_POS_CENTERUP);
if(blocks_have_content($pageblocks[BLOCK_POS_CENTERUP]) || $editing) {
blocks_print_group($PAGE, $pageblocks[BLOCK_POS_CENTERUP]);
}
echo '<div style="padding: 10px; background: gold; text-align: center;">Content Here';
@@ -181,14 +173,14 @@
echo '</div>';
echo '<p style="text-align: center; padding: 10px; background: black; color: white;">Center-down position:</p>';
if(blocks_have_content($pageblocks,BLOCK_POS_CENTERDOWN) || $editing) {
blocks_print_group($PAGE, $pageblocks,BLOCK_POS_CENTERDOWN);
if(blocks_have_content($pageblocks[BLOCK_POS_CENTERDOWN]) || $editing) {
blocks_print_group($PAGE, $pageblocks[BLOCK_POS_CENTERDOWN]);
}
echo '</td>';
if(blocks_have_content($pageblocks,BLOCK_POS_RIGHT) || $editing) {
if(blocks_have_content($pageblocks[BLOCK_POS_RIGHT]) || $editing) {
echo '<td style="vertical-align: top; width: '.$preferred_width_right.'px;">';
blocks_print_group($PAGE, $pageblocks,BLOCK_POS_RIGHT);
blocks_print_group($PAGE, $pageblocks[BLOCK_POS_RIGHT]);
if ($editing) {
blocks_print_adminblock($PAGE, $pageblocks);
}
@@ -23,10 +23,6 @@ class block_participants extends block_list {
$this->content->footer = '';
if (empty($this->instance->pageid)) {
$this->instance->pageid = SITEID;
}
if ($this->instance->pageid != SITEID ||
$CFG->showsiteparticipantslist > 1 ||
($CFG->showsiteparticipantslist == 1 && isteacherinanycourse()) ||
@@ -36,25 +32,11 @@ class block_participants extends block_list {
$CFG->wwwroot.'/user/index.php?id='.$this->instance->pageid.'">'.get_string('participants').'</a>';
$this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/users.gif" height="16" width="16" alt="" />';
if (isteacher($this->instance->pageid)) {
$strparticipation = get_string('participationreport');
$this->content->items[] = '<a title="'.$strparticipation.'" href="'.
$CFG->wwwroot.'/course/participation.php?id='.$this->instance->pageid.'">'.$strparticipation.'</a>';
$this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/users.gif" height="16" width="16" alt="" />';
}
}
return $this->content;
}
// my moodle can only have SITEID and it's redundant here, so take it away
function applicable_formats() {
return array('all' => true, 'my' => false);
}
}
?>
+24 -78
View File
@@ -1,16 +1,13 @@
<?php //$Id$
define('B_QUIZRESULTS_NAME_FORMAT_FULL', 1);
define('B_QUIZRESULTS_NAME_FORMAT_ID', 2);
define('B_QUIZRESULTS_NAME_FORMAT_ANON', 3);
define('B_QUIZRESULTS_GRADE_FORMAT_PCT', 1);
define('B_QUIZRESULTS_GRADE_FORMAT_FRA', 2);
define('B_QUIZRESULTS_GRADE_FORMAT_ABS', 3);
define('GRADE_FORMAT_PCT', 1);
define('GRADE_FORMAT_FRA', 2);
define('GRADE_FORMAT_ABS', 3);
class block_quiz_results extends block_base {
function init() {
$this->title = get_string('formaltitle', 'block_quiz_results');
$this->version = 2005082300;
$this->version = 2005012600;
}
function applicable_formats() {
@@ -81,16 +78,9 @@ class block_quiz_results extends block_base {
$best = array();
$worst = array();
$nameformat = intval(empty($this->config->nameformat) ? B_QUIZRESULTS_NAME_FORMAT_FULL : $this->config->nameformat);
// If the block is configured to operate in group mode, or if the name display format
// is other than "fullname", then we need to retrieve the full course record
if(!empty($this->config->usegroups) || $nameformat != B_QUIZRESULTS_NAME_FORMAT_FULL) {
$course = get_record_select('course', 'id = '.$courseid, 'groupmode, groupmodeforce, student');
}
if(!empty($this->config->usegroups)) {
// The block was configured to operate in group mode
$course = get_record_select('course', 'id = '.$courseid, 'groupmode, groupmodeforce');
if($course->groupmodeforce) {
$groupmode = $course->groupmode;
}
@@ -173,7 +163,7 @@ class block_quiz_results extends block_base {
}
// Ready for output!
$gradeformat = intval(empty($this->config->gradeformat) ? B_QUIZRESULTS_GRADE_FORMAT_PCT : $this->config->gradeformat);
$gradeformat = intval(empty($this->config->gradeformat) ? GRADE_FORMAT_PCT : $this->config->gradeformat);
if($this->instance->pagetype != 'mod-quiz-view') {
// Don't show header and link to the quiz if we ARE at the quiz...
@@ -186,26 +176,16 @@ class block_quiz_results extends block_base {
$this->content->text .= ($numbest == 1?get_string('bestgroupgrade', 'block_quiz_results'):get_string('bestgroupgrades', 'block_quiz_results', $numbest));
$this->content->text .= '</caption><colgroup class="number" /><colgroup class="name" /><colgroup class="grade" /><tbody>';
foreach($best as $groupid => $averagegrade) {
switch($nameformat) {
case B_QUIZRESULTS_NAME_FORMAT_ANON:
case B_QUIZRESULTS_NAME_FORMAT_ID:
$thisname = get_string('group');
break;
default:
case B_QUIZRESULTS_NAME_FORMAT_FULL:
$thisname = '<a href="'.$CFG->wwwroot.'/course/group.php?group='.$groupid.'&amp;id='.$courseid.'">'.$groupgrades[$groupid]['group'].'</a>';
break;
}
$this->content->text .= '<tr><td>'.(++$rank).'.</td><td>'.$thisname.'</td><td>';
$this->content->text .= '<tr><td>'.(++$rank).'.</td><td><a href="'.$CFG->wwwroot.'/course/group.php?group='.$groupid.'&amp;id='.$courseid.'">'.$groupgrades[$groupid]['group'].'</a></td><td>';
switch($gradeformat) {
case B_QUIZRESULTS_GRADE_FORMAT_FRA:
case GRADE_FORMAT_FRA:
$this->content->text .= (format_float($averagegrade,$quiz->decimalpoints).'/'.$quiz->grade);
break;
case B_QUIZRESULTS_GRADE_FORMAT_ABS:
case GRADE_FORMAT_ABS:
$this->content->text .= format_float($averagegrade,$quiz->decimalpoints);
break;
default:
case B_QUIZRESULTS_GRADE_FORMAT_PCT:
case GRADE_FORMAT_PCT:
$this->content->text .= round((float)$averagegrade / (float)$quiz->grade * 100).'%';
break;
}
@@ -221,26 +201,16 @@ class block_quiz_results extends block_base {
$this->content->text .= ($numworst == 1?get_string('worstgroupgrade', 'block_quiz_results'):get_string('worstgroupgrades', 'block_quiz_results', $numworst));
$this->content->text .= '</caption><colgroup class="number" /><colgroup class="name" /><colgroup class="grade" /><tbody>';
foreach($worst as $groupid => $averagegrade) {
switch($nameformat) {
case B_QUIZRESULTS_NAME_FORMAT_ANON:
case B_QUIZRESULTS_NAME_FORMAT_ID:
$thisname = get_string('group');
break;
default:
case B_QUIZRESULTS_NAME_FORMAT_FULL:
$thisname = '<a href="'.$CFG->wwwroot.'/course/group.php?group='.$groupid.'&amp;id='.$courseid.'">'.$groupgrades[$groupid]['group'].'</a>';
break;
}
$this->content->text .= '<tr><td>'.(++$rank).'.</td><td>'.$thisname.'</td><td>';
$this->content->text .= '<tr><td>'.(++$rank).'.</td><td><a href="'.$CFG->wwwroot.'/course/group.php?group='.$groupid.'&amp;id='.$courseid.'">'.$groupgrades[$groupid]['group'].'</a></td><td>';
switch($gradeformat) {
case B_QUIZRESULTS_GRADE_FORMAT_FRA:
case GRADE_FORMAT_FRA:
$this->content->text .= (format_float($averagegrade,$quiz->decimalpoints).'/'.$quiz->grade);
break;
case B_QUIZRESULTS_GRADE_FORMAT_ABS:
case GRADE_FORMAT_ABS:
$this->content->text .= format_float($averagegrade,$quiz->decimalpoints);
break;
default:
case B_QUIZRESULTS_GRADE_FORMAT_PCT:
case GRADE_FORMAT_PCT:
$this->content->text .= round((float)$averagegrade / (float)$quiz->grade * 100).'%';
break;
}
@@ -301,11 +271,11 @@ class block_quiz_results extends block_base {
// Now grab all the users from the database
$userids = array_merge(array_keys($best), array_keys($worst));
$users = get_records_list('user', 'id', implode(',',$userids), '', 'id, firstname, lastname, idnumber');
$users = get_records_list('user', 'id', implode(',',$userids), '', 'id, firstname, lastname');
// Ready for output!
$gradeformat = intval(empty($this->config->gradeformat) ? B_QUIZRESULTS_GRADE_FORMAT_PCT : $this->config->gradeformat);
$gradeformat = intval(empty($this->config->gradeformat) ? GRADE_FORMAT_PCT : $this->config->gradeformat);
if($this->instance->pagetype != 'mod-quiz-view') {
// Don't show header and link to the quiz if we ARE at the quiz...
@@ -318,28 +288,16 @@ class block_quiz_results extends block_base {
$this->content->text .= ($numbest == 1?get_string('bestgrade', 'block_quiz_results'):get_string('bestgrades', 'block_quiz_results', $numbest));
$this->content->text .= '</caption><colgroup class="number" /><colgroup class="name" /><colgroup class="grade" /><tbody>';
foreach($best as $userid => $gradeid) {
switch($nameformat) {
case B_QUIZRESULTS_NAME_FORMAT_ID:
$thisname = $course->student.' '.intval($users[$userid]->idnumber);
break;
case B_QUIZRESULTS_NAME_FORMAT_ANON:
$thisname = $course->student;
break;
default:
case B_QUIZRESULTS_NAME_FORMAT_FULL:
$thisname = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$userid.'&amp;course='.$courseid.'">'.fullname($users[$userid]).'</a>';
break;
}
$this->content->text .= '<tr><td>'.(++$rank).'.</td><td>'.$thisname.'</td><td>';
$this->content->text .= '<tr><td>'.(++$rank).'.</td><td><a href="'.$CFG->wwwroot.'/user/view.php?id='.$userid.'&amp;course='.$courseid.'">'.fullname($users[$userid]).'</a></td><td>';
switch($gradeformat) {
case B_QUIZRESULTS_GRADE_FORMAT_FRA:
case GRADE_FORMAT_FRA:
$this->content->text .= (format_float($grades[$gradeid]->grade,$quiz->decimalpoints).'/'.$quiz->grade);
break;
case B_QUIZRESULTS_GRADE_FORMAT_ABS:
case GRADE_FORMAT_ABS:
$this->content->text .= format_float($grades[$gradeid]->grade,$quiz->decimalpoints);
break;
default:
case B_QUIZRESULTS_GRADE_FORMAT_PCT:
case GRADE_FORMAT_PCT:
if ($quiz->grade) {
$this->content->text .= round((float)$grades[$gradeid]->grade / (float)$quiz->grade * 100).'%';
} else {
@@ -359,28 +317,16 @@ class block_quiz_results extends block_base {
$this->content->text .= ($numworst == 1?get_string('worstgrade', 'block_quiz_results'):get_string('worstgrades', 'block_quiz_results', $numworst));
$this->content->text .= '</caption><colgroup class="number" /><colgroup class="name" /><colgroup class="grade" /><tbody>';
foreach($worst as $userid => $gradeid) {
switch($nameformat) {
case B_QUIZRESULTS_NAME_FORMAT_ID:
$thisname = $course->student.' '.intval($users[$userid]->idnumber);
break;
case B_QUIZRESULTS_NAME_FORMAT_ANON:
$thisname = $course->student;
break;
default:
case B_QUIZRESULTS_NAME_FORMAT_FULL:
$thisname = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$userid.'&amp;course='.$courseid.'">'.fullname($users[$userid]).'</a>';
break;
}
$this->content->text .= '<tr><td>'.(++$rank).'.</td><td>'.$thisname.'</td><td>';
$this->content->text .= '<tr><td>'.(++$rank).'.</td><td><a href="'.$CFG->wwwroot.'/user/view.php?id='.$userid.'&amp;course='.$courseid.'">'.fullname($users[$userid]).'</a></td><td>';
switch($gradeformat) {
case B_QUIZRESULTS_GRADE_FORMAT_FRA:
case GRADE_FORMAT_FRA:
$this->content->text .= (format_float($grades[$gradeid]->grade,$quiz->decimalpoints).'/'.$quiz->grade);
break;
case B_QUIZRESULTS_GRADE_FORMAT_ABS:
case GRADE_FORMAT_ABS:
$this->content->text .= format_float($grades[$gradeid]->grade,$quiz->decimalpoints);
break;
default:
case B_QUIZRESULTS_GRADE_FORMAT_PCT:
case GRADE_FORMAT_PCT:
$this->content->text .= round((float)$grades[$gradeid]->grade / (float)$quiz->grade * 100).'%';
break;
}
+1 -12
View File
@@ -51,24 +51,13 @@
<input name="usegroups" type="radio" id="usegroups_no" <?php if(empty($this->config->usegroups)) echo 'checked="checked"'; ?> value="0" /> <label for="usegroups_no"><?php print_string('no'); ?></label>
</td>
</tr>
<tr valign="top">
<td align="right">
<?php print_string('config_name_format', 'block_quiz_results') ?>
</td>
<td>
<?php
$usenames = array(B_QUIZRESULTS_NAME_FORMAT_FULL => get_string('config_names_full', 'block_quiz_results'), B_QUIZRESULTS_NAME_FORMAT_ID => get_string('config_names_id', 'block_quiz_results'), B_QUIZRESULTS_NAME_FORMAT_ANON => get_string('config_names_anon', 'block_quiz_results'));
choose_from_menu($usenames, 'nameformat', empty($this->config->nameformat) ? B_QUIZRESULTS_NAME_FORMAT_FULL : $this->config->nameformat, '');
?>
</td>
</tr>
<tr valign="top">
<td align="right">
<?php print_string('config_grade_format', 'block_quiz_results') ?>
</td>
<td>
<?php
$formats = array(B_QUIZRESULTS_GRADE_FORMAT_PCT => get_string('config_format_percentage', 'block_quiz_results'), B_QUIZRESULTS_GRADE_FORMAT_FRA => get_string('config_format_fraction', 'block_quiz_results'), B_QUIZRESULTS_GRADE_FORMAT_ABS => get_string('config_format_absolute', 'block_quiz_results'));
$formats = array(GRADE_FORMAT_PCT => get_string('config_format_percentage', 'block_quiz_results'), GRADE_FORMAT_FRA => get_string('config_format_fraction', 'block_quiz_results'), GRADE_FORMAT_ABS => get_string('config_format_absolute', 'block_quiz_results'));
choose_from_menu($formats, 'gradeformat', empty($this->config->gradeformat) ? 0 : $this->config->gradeformat, '');
?>
</td>
@@ -31,9 +31,6 @@ class block_recent_activity extends block_base {
return $this->content;
}
function applicable_formats() {
return array('all' => true, 'my' => false);
}
}
?>
+20 -39
View File
@@ -11,10 +11,6 @@
* @package base
******************************************************************/
// Developer's debug assistant - if true then the display string will not cache, only
// the magpie object's built in caching will be used
define('BLOCK_RSS_SECONDARY_CACHE_ENABLED', true);
/**
* This class is for a block which defines a block for display on
* any Moodle page.
@@ -23,13 +19,17 @@ define('BLOCK_RSS_SECONDARY_CACHE_ENABLED', true);
function init() {
$this->title = get_string('feedstitle', 'block_rss_client');
$this->version = 2005111400;
$this->version = 2004112001;
}
function preferred_width() {
return 210;
}
function applicable_formats() {
return array('all' => true);
}
function specialization() {
// After the block has been loaded we customize the block's title display
if (!empty($this->config) && !empty($this->config->title)) {
@@ -103,16 +103,14 @@ define('BLOCK_RSS_SECONDARY_CACHE_ENABLED', true);
if ( $userisloggedin && ($submitters == SUBMITTERS_ALL_ACCOUNT_HOLDERS || ($submitters == SUBMITTERS_ADMIN_AND_TEACHER && $isteacher)) ) {
$page = page_create_object($this->instance->pagetype, $this->instance->pageid);
if ($page->user_allowed_editing()) { // for SUBMITTERS_ALL_ACCOUNT_HOLDERS we're going to run into trouble later if we show it and then they don't have write access to the page.
if (isset($this->config)) {
// this instance is configured - show Add/Edit feeds link
$script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey, 'blockaction' => 'config', 'currentaction' => 'managefeeds', 'id' => $this->courseid));
$output .= '<div align="center"><a title="'. get_string('feedsaddedit', 'block_rss_client') .'" href="'. $script .'">'. get_string('feedsaddedit', 'block_rss_client') .'</a></div>';
} else {
// this instance has not been configured yet - show configure link
$script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey, 'blockaction' => 'config', 'currentaction' => 'configblock', 'id' => $this->courseid));
$output .= '<div align="center"><a title="'. get_string('feedsconfigurenewinstance', 'block_rss_client') .'" href="'. $script.'">'. get_string('feedsconfigurenewinstance', 'block_rss_client') .'</a></div>';
}
if (isset($this->config)) {
// this instance is configured - show Add/Edit feeds link
$script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey, 'blockaction' => 'config', 'currentaction' => 'managefeeds', 'id' => $this->courseid));
$output .= '<div align="center"><a title="'. get_string('feedsaddedit', 'block_rss_client') .'" href="'. $script .'">'. get_string('feedsaddedit', 'block_rss_client') .'</a></div>';
} else {
// this instance has not been configured yet - show configure link
$script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey, 'blockaction' => 'config', 'currentaction' => 'configblock', 'id' => $this->courseid));
$output .= '<div align="center"><a title="'. get_string('feedsconfigurenewinstance', 'block_rss_client') .'" href="'. $script.'">'. get_string('feedsconfigurenewinstance', 'block_rss_client') .'</a></div>';
}
}
@@ -161,17 +159,7 @@ define('BLOCK_RSS_SECONDARY_CACHE_ENABLED', true);
require_once($CFG->libdir .'/rsslib.php');
require_once(MAGPIE_DIR .'rss_fetch.inc');
if (!defined('MAGPIE_OUTPUT_ENCODING')) {
define('MAGPIE_OUTPUT_ENCODING', current_charset()); // see bug 3107
}
// Check if there is a cached string which has not timed out.
if (BLOCK_RSS_SECONDARY_CACHE_ENABLED &&
isset($this->config->{'rssid'. $rssid}) &&
isset($this->config->{'rssid'. $rssid .'timestamp'}) &&
$this->config->{'rssid'. $rssid .'timestamp'} >= $now - $CFG->block_rss_timeout * 60) {
// If the cached string is not too stale
// use it rather than going any further
return stripslashes_safe($this->config->{'rssid'. $rssid});
define('MAGPIE_OUTPUT_ENCODING', get_string('thischarset')); // see bug 3107
}
$rss_record = get_record('block_rss_client', 'id', $rssid);
@@ -196,9 +184,9 @@ define('BLOCK_RSS_SECONDARY_CACHE_ENABLED', true);
}
if (empty($rss_record->preferredtitle)) {
$feedtitle = $this->format_title($rss->channel['title']);
$feedtitle = $this->format_title(stripslashes_safe(rss_unhtmlentities($rss->channel['title'])));
} else {
$feedtitle = $this->format_title($rss_record->preferredtitle);
$feedtitle = $this->format_title(stripslashes_safe($rss_record->preferredtitle));
}
// print_object($rss);
if (isset($this->config) &&
@@ -221,6 +209,8 @@ define('BLOCK_RSS_SECONDARY_CACHE_ENABLED', true);
}
foreach ($rss->items as $item) {
$item['title'] = stripslashes_safe(rss_unhtmlentities($item['title']));
$item['description'] = stripslashes_safe(rss_unhtmlentities($item['description']));
if ($item['title'] == '') {
// no title present, use portion of description
$item['title'] = substr(strip_tags($item['description']), 0, 20) . '...';
@@ -262,25 +252,16 @@ define('BLOCK_RSS_SECONDARY_CACHE_ENABLED', true);
$this->title = $feedtitle;
}
}
// store config setting for this rssid so we do not need to read from file each time
$this->config->{'rssid'. $rssid} = addslashes($returnstring);
$this->config->{'rssid'. $rssid .'timestamp'} = $now;
$this->instance_config_save($this->config);
return $returnstring;
}
// just strips the title down and adds ... for excessively long titles.
function format_title($title,$max=64) {
/// Loading the textlib singleton instance. We are going to need it.
$textlib = textlib_get_instance();
if ($textlib->strlen($title,current_charset()) <= $max) {
if (strlen($title) <= $max) {
return $title;
}
else {
return $textlib->substr($title,0,$max-3,current_charset()).'...';
return substr($title,0,$max-3).'...';
}
}
}
+19 -20
View File
@@ -27,25 +27,14 @@ if (isguest()) {
error(get_string('noguestpost', 'forum'), $referrer);
}
if (!empty($url)) {
// attempting to replace feed and rss url types with http
// it appears that the rss feed validator will validate these url types but magpie will not load them $url = str_replace ("feed://", "http://", "$url");
// Shifting this forward since PARAM_URL rejects these feed types as invalid entries!
$url = str_replace ("feed://", "http://", "$url");
$url = str_replace ("FEED://", "http://", "$url");
$url = str_replace ("rss://", "http://", "$url");
$url = str_replace ("RSS://", "http://", "$url");
}
$act = optional_param('act', NULL, PARAM_ALPHA);
$rssid = optional_param('rssid', NULL, PARAM_INT);
$id = optional_param('id', SITEID, PARAM_INT);
$url = clean_param($url, PARAM_URL);
$url = optional_param('url', NULL, PARAM_URL);
$preferredtitle = optional_param('preferredtitle', '', PARAM_ALPHA);
if (!defined('MAGPIE_OUTPUT_ENCODING')) {
define('MAGPIE_OUTPUT_ENCODING', current_charset()); // see bug 3107
define('MAGPIE_OUTPUT_ENCODING', get_string('thischarset')); // see bug 3107
}
if (!empty($id)) {
@@ -111,8 +100,8 @@ if ($act == 'updfeed') {
$dataobject->title = '';
$dataobject->preferredtitle = '';
} else {
$dataobject->description = addslashes($rss->channel['description']);
$dataobject->title = addslashes($rss->channel['title']);
$dataobject->description = addslashes(rss_unhtmlentities($rss->channel['description']));
$dataobject->title = addslashes(rss_unhtmlentities($rss->channel['title']));
$dataobject->preferredtitle = addslashes($preferredtitle);
}
$dataobject->url = addslashes($url);
@@ -132,6 +121,14 @@ if ($act == 'updfeed') {
$dataobject->userid = $USER->id;
$dataobject->description = '';
$dataobject->title = '';
// attempting to replace feed and rss url types with http
// it appears that the rss feed validator will validate these url types but magpie will not load them
$url = str_replace ("feed://", "http://", "$url");
$url = str_replace ("FEED://", "http://", "$url");
$url = str_replace ("rss://", "http://", "$url");
$url = str_replace ("RSS://", "http://", "$url");
$dataobject->url = addslashes($url);
$dataobject->preferredtitle = addslashes($preferredtitle);
@@ -157,10 +154,10 @@ if ($act == 'updfeed') {
$dataobject->id = $rssid;
if (!empty($rss->channel['description'])) {
$dataobject->description = addslashes($rss->channel['description']);
$dataobject->description = addslashes(rss_unhtmlentities($rss->channel['description']));
}
if (!empty($rss->channel['title'])) {
$dataobject->title = addslashes($rss->channel['title']);
$dataobject->title = addslashes(rss_unhtmlentities($rss->channel['title']));
}
if (!update_record('block_rss_client', $dataobject)) {
error('There was an error trying to update rss feed with id:'. $rssid);
@@ -208,13 +205,15 @@ if ($act == 'updfeed') {
ob_end_clean();
if (empty($rss_record->preferredtitle)) {
$feedtitle = $rss_record->preferredtitle;
$feedtitle = stripslashes_safe($rss_record->preferredtitle);
} else {
$feedtitle = $rss->channel['title'];
$feedtitle = stripslashes_safe(rss_unhtmlentities($rss->channel['title']));
}
print '<table align="center" width="50%" cellspacing="1">'."\n";
print '<tr><td colspan="2"><strong>'. $feedtitle .'</strong></td></tr>'."\n";
for($y=0; $y < count($rss->items); $y++) {
$rss->items[$y]['title'] = stripslashes_safe(rss_unhtmlentities($rss->items[$y]['title']));
$rss->items[$y]['description'] = stripslashes_safe(rss_unhtmlentities($rss->items[$y]['description']));
if ($rss->items[$y]['link'] == '') {
$rss->items[$y]['link'] = $rss->items[$y]['guid'];
}
@@ -246,4 +245,4 @@ if ($act == 'updfeed') {
rss_print_form($act, $url, $rssid, $preferredtitle, $id);
}
print_footer();
?>
?>
+4 -6
View File
@@ -1,4 +1,4 @@
<?php //$Id$
<?php
require_once($CFG->libdir .'/rsslib.php');
?>
<table cellpadding="9" cellspacing="0">
@@ -42,15 +42,13 @@
$selected = '0';
$CFG->block_rss_client_submitters = 0;
}
// SUBMITTERS_ALL_ACCOUNT_HOLDERS => get_string('everybody')
// removed everybody option for 1.5 beta
// things are not quite working yet to allow this - revisit later
// also 'everybody' should be 'site members' or something clearer since
// it does not include guests
$options = array (
SUBMITTERS_ALL_ACCOUNT_HOLDERS => get_string('everybody'),
SUBMITTERS_ADMIN_ONLY => get_string('administrators'),
SUBMITTERS_ADMIN_AND_TEACHER => get_string('administratorsandteachers') );
$options = array ( SUBMITTERS_ADMIN_ONLY => get_string('administrators'),
SUBMITTERS_ADMIN_AND_TEACHER => get_string('administratorsandteachers') );
choose_from_menu ($options, 'block_rss_client_submitters', $selected);
?>
+4 -15
View File
@@ -74,15 +74,7 @@ if ($currentaction == 'configblock') {
$selectedarray = array($this->config->rssid);
}
}
global $USER;
$admins = get_admins();
$adminsql = '';
if (!empty($admins)) {
foreach ($admins as $admin) {
$adminsql = ' OR userid = '.$admin->id;
}
}
if ($rssfeeds = get_records_select('block_rss_client','userid = '.$USER->id . $adminsql)) {
if ($rssfeeds = get_records('block_rss_client')) {
foreach($rssfeeds as $rssfeed) {
if (!empty($rssfeed->preferredtitle)) {
$feedtitle = stripslashes_safe($rssfeed->preferredtitle);
@@ -99,10 +91,7 @@ if ($currentaction == 'configblock') {
} else {
print_string('nofeeds', 'block_rss_client');
if ( isadmin() ) {
$addrsspage = $page->url_get_full(array('instanceid' => $this->instance->id,
'sesskey' => $USER->sesskey, 'blockaction' => 'config',
'currentaction' => 'managefeeds', 'id' => $id));
print '&nbsp;<a href="'.$addrsspage.'">'. get_string('editnewsfeeds', 'block_rss_client') .'</a><br />';
print '&nbsp;<a href="'. $CFG->wwwroot .'/blocks/rss_client/block_rss_client_action.php?id='. $id .'"> '. get_string('editnewsfeeds', 'block_rss_client') .'</a><br />';
}
}
?>
@@ -166,8 +155,8 @@ if ($currentaction == 'configblock') {
global $act, $url, $rssid, $preferredtitle;
print '<table cellpadding="9" cellspacing="0" class="blockconfigtable">';
print '<tr valign="top"><td>';
rss_display_feeds($id,$USER->id);
rss_display_feeds($id);
print '</form>'; //not sure that this is needed
rss_print_form($act, $url, $rssid, $preferredtitle, $id);
print '</td></tr></table>';
} ?>
} ?>
-124
View File
@@ -1,124 +0,0 @@
<?
function migrate2utf8_block_rss_client_title($recordid){
global $CFG;
/// Some trivial checks
if (empty($recordid)) {
log_the_problem_somewhere();
return false;
}
if (!$rssclient = get_record('block_rss_client','id',$recordid)) {
log_the_problem_somewhere();
return false;
}
$user = get_record('user','id',$rssclient->userid);
$sitelang = $CFG->lang;
$courselang = NULL; //Non existing!
$userlang = $user->lang; //N.E.!!
$fromenc = get_original_encoding($sitelang, $courselang, $userlang);
/// We are going to use textlib facilities
$textlib = textlib_get_instance();
/// Convert the text
$result = $textlib->convert($rssclient->title, $fromenc);
$newrssclient = new object;
$newrssclient->id = $recordid;
$newrssclient->title = $result;
update_record('block_rss_client',$newrssclient);
/// And finally, just return the converted field
return $result;
}
function migrate2utf8_block_rss_client_preferredtitle($recordid){
global $CFG;
/// Some trivial checks
if (empty($recordid)) {
log_the_problem_somewhere();
return false;
}
$SQL = "SELECT brc.userid
FROM {$CFG->prefix}block_rss_client brc
WHERE brc.id = $recordid";
if (!$rssuserid = get_record_sql($SQL)) {
log_the_problem_somewhere();
return false;
}
if (!$rssclient = get_record('block_rss_client','id',$recordid)) {
log_the_problem_somewhere();
return false;
}
$user = get_record('user','id',$rssuserid->userid);
$sitelang = $CFG->lang;
$courselang = NULL; //Non existing!
$userlang = $user->lang; //N.E.!!
$fromenc = get_original_encoding($sitelang, $courselang, $userlang);
/// We are going to use textlib facilities
$textlib = textlib_get_instance();
/// Convert the text
$result = $textlib->convert($rssclient->preferredtitle, $fromenc);
$newrssclient = new object;
$newrssclient->id = $recordid;
$newrssclient->preferredtitle = $result;
update_record('block_rss_client',$newrssclient);
/// And finally, just return the converted field
return $result;
}
function migrate2utf_block_rss_client_description($recordid){
global $CFG;
/// Some trivial checks
if (empty($recordid)) {
log_the_problem_somewhere();
return false;
}
$SQL = "SELECT brc.userid
FROM {$CFG->prefix}block_rss_client brc
WHERE brc.id = $recordid";
if (!$rssuserid = get_record_sql($SQL)) {
log_the_problem_somewhere();
return false;
}
if (!$rssclient = get_record('block_rss_client','id',$recordid)) {
log_the_problem_somewhere();
return false;
}
$user = get_record('user','id',$rssuserid->userid);
$sitelang = $CFG->lang;
$courselang = NULL; //Non existing!
$userlang = $user->lang; //N.E.!!
$fromenc = get_original_encoding($sitelang, $courselang, $userlang);
/// We are going to use textlib facilities
$textlib = textlib_get_instance();
/// Convert the text
$result = $textlib->convert($rssclient->description, $fromenc);
$newrssclient = new object;
$newrssclient->id = $recordid;
$newrssclient->description = $result;
update_record('block_rss_client',$newrssclient);
/// And finally, just return the converted field
return $result;
}
?>
-24
View File
@@ -1,24 +0,0 @@
<DBMIGRATION type="blocks/rss_client" VERSION="2005120100">
<TABLES>
<TABLE name="block_rss_client">
<FIELDS>
<FIELD name="title" method="PHP_FUNCTION" type="text" length="0">
<PHP_FUNCTION>
migrate2utf8_block_rss_client_title(RECORDID)
</PHP_FUNCTION>
</FIELD>
<FIELD name="preferredtitle" method="PLAIN_SQL_UPDATE" type="varchar" length="64">
<PHP_FUNCTION>
migrate2utf8_block_rss_client_preferredtitle(RECORDID)
</PHP_FUNCTION>
</FIELD>
<FIELD name="description" method="PLAIN_SQL_UPDATE" type="text" length="0">
<PHP_FUNCTION>
migrate2utf8_block_rss_client_description(RECORDID)
</PHP_FUNCTION>
</FIELD>
<FIELD name="url" method="NO_CONV" type="varchar" length="255" />
</FIELDS>
</TABLE>
</TABLES>
</DBMIGRATION>
+1 -1
View File
@@ -10,7 +10,7 @@ function rss_client_upgrade($oldversion) {
# Do something ...
}
if ($oldversion < 2005111400) {
if ($oldversion < 2004112001) {
// title and description should be TEXT as we don't have control over their length.
table_column('block_rss_client','title','title','text',10,'unsigned','');
table_column('block_rss_client','description','description','text',10,'unsigned','');
-1
View File
@@ -1,4 +1,3 @@
# $Id$
# This file contains a complete database schema for all the
# tables used by this module, written in SQL
+2 -2
View File
@@ -1,4 +1,4 @@
<?php //$Id$
<?php
function rss_client_upgrade($oldversion) {
/// This function does anything necessary to upgrade
@@ -6,7 +6,7 @@ function rss_client_upgrade($oldversion) {
global $CFG;
if ($oldversion < 2005111400) {
if ($oldversion < 2004112001) {
// title and description should be TEXT as we don't have control over their length.
table_column('block_rss_client','title','title','text');
table_column('block_rss_client','description','description','text');

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