]> git.mjollnir.org Git - moodle.git/log
moodle.git
18 years agoStarted to separate out logic and presentation in view.php. Decided to wrap the...
mark-nielsen [Sun, 10 Sep 2006 18:19:29 +0000 (18:19 +0000)]
Started to separate out logic and presentation in view.php.  Decided to wrap the question printing with HTML templates (viewstart.html and viewend.html)
Still needs a lot of work

18 years agofixed errors when switching dbsessions from amin gui
skodak [Sun, 10 Sep 2006 11:15:31 +0000 (11:15 +0000)]
fixed errors when switching dbsessions from amin gui

18 years agofixed proper redirection url in login - missing trailing slash for directory
skodak [Sun, 10 Sep 2006 11:04:17 +0000 (11:04 +0000)]
fixed proper redirection url in login - missing trailing slash for directory

18 years agoMoving deprecated functions out of datalib.php
moodler [Sun, 10 Sep 2006 07:07:52 +0000 (07:07 +0000)]
Moving deprecated functions out of datalib.php

Many of these still need updating to remove all dependence on user_xxx tables

18 years agocorrect formatting of "Show Legend" -> "No" and added missing <p> in "Encoding" expla...
gbateson [Sun, 10 Sep 2006 05:34:02 +0000 (05:34 +0000)]
correct formatting of "Show Legend" -> "No" and added missing <p> in "Encoding" explanation

18 years agoremove reportselector.html as it was unused and has been replaced by reportcontent...
gbateson [Sun, 10 Sep 2006 05:29:24 +0000 (05:29 +0000)]
remove reportselector.html as it was unused and has been replaced by reportcontent.html and reportformat.html

18 years agoAdded better lang strings for output in view.php
mark-nielsen [Sun, 10 Sep 2006 04:35:12 +0000 (04:35 +0000)]
Added better lang strings for output in view.php

18 years agoStarted to reorganize view.php
mark-nielsen [Sun, 10 Sep 2006 02:38:09 +0000 (02:38 +0000)]
Started to reorganize view.php

18 years agoMoved teacherview (lesson editing) out of view.php into edit.php
mark-nielsen [Sun, 10 Sep 2006 02:09:14 +0000 (02:09 +0000)]
Moved teacherview (lesson editing) out of view.php into edit.php

No code improvements in edit.php as of now.  Just works ;)

18 years agoFixed sesskey problem
mark-nielsen [Sun, 10 Sep 2006 01:43:24 +0000 (01:43 +0000)]
Fixed sesskey problem

18 years agoAdded proper page comments and inform user when attempts have been deleted
mark-nielsen [Sun, 10 Sep 2006 01:40:38 +0000 (01:40 +0000)]
Added proper page comments and inform user when attempts have been deleted

18 years agoAdded page comment and lang entry for reports.php
mark-nielsen [Sun, 10 Sep 2006 01:37:50 +0000 (01:37 +0000)]
Added page comment and lang entry for reports.php

18 years agoUpdated to use new handy library functions
mark-nielsen [Sun, 10 Sep 2006 01:30:57 +0000 (01:30 +0000)]
Updated to use new handy library functions

18 years agoMoved high scores logic out of view.php into highscores.php
mark-nielsen [Sun, 10 Sep 2006 01:20:00 +0000 (01:20 +0000)]
Moved high scores logic out of view.php into highscores.php
Changed: now need to enter password on password protected lessons before being able to view high scores
Added logs to high scores and reworked logic

18 years agoChanged some lang entries for high scores feature
mark-nielsen [Sun, 10 Sep 2006 01:17:30 +0000 (01:17 +0000)]
Changed some lang entries for high scores feature

18 years agoFixed some formatting when clock is not displayed
mark-nielsen [Sat, 9 Sep 2006 22:33:34 +0000 (22:33 +0000)]
Fixed some formatting when clock is not displayed
Messages are now printed out on continue.php

18 years agoForgot the lesson_ prefix
mark-nielsen [Sat, 9 Sep 2006 22:23:50 +0000 (22:23 +0000)]
Forgot the lesson_ prefix

18 years agoImproved clock output and works when javascript is disabled
mark-nielsen [Sat, 9 Sep 2006 22:20:51 +0000 (22:20 +0000)]
Improved clock output and works when javascript is disabled

18 years agoLesson buttons should now work with javascript disabled
mark-nielsen [Sat, 9 Sep 2006 21:39:11 +0000 (21:39 +0000)]
Lesson buttons should now work with javascript disabled
Also improved the layout of action/continue.html

18 years agoNow we are using the new sql_order_by_text() function
stronk7 [Sat, 9 Sep 2006 13:53:52 +0000 (13:53 +0000)]
Now we are using the new sql_order_by_text() function
when we need to be able to order by TEXT columns in a
cross-db behaviour. More info:
http://docs.moodle.org/en/XMLDB_Problems#ORDER_BY_text_columns

18 years agoNew function sql_order_by_text() to automatically build
stronk7 [Sat, 9 Sep 2006 13:51:40 +0000 (13:51 +0000)]
New function sql_order_by_text() to automatically build
custom expresions to being used in ORDER BY clauses with
TEXT columns.

18 years agoCleaned up output to user. Still needs a lot of work.
mark-nielsen [Sat, 9 Sep 2006 02:10:40 +0000 (02:10 +0000)]
Cleaned up output to user.  Still needs a lot of work.

18 years agoRemoved essay grading code from view.php into essay.php.
mark-nielsen [Sat, 9 Sep 2006 01:58:48 +0000 (01:58 +0000)]
Removed essay grading code from view.php into essay.php.

18 years agoAdded a few lang entries and modified one or two
mark-nielsen [Sat, 9 Sep 2006 01:55:57 +0000 (01:55 +0000)]
Added a few lang entries and modified one or two

18 years agoMDL-6477: Added roles support.
mark-nielsen [Fri, 8 Sep 2006 23:17:18 +0000 (23:17 +0000)]
MDL-6477: Added roles support.

Also added lesson_set_message() and lesson_print_message() to locallib.php
Also fixed problem in continue.html with not printing nextpageid

18 years agoOnly send contexts to cache if the aren't empty. At initial installations
stronk7 [Fri, 8 Sep 2006 19:28:03 +0000 (19:28 +0000)]
Only send contexts to cache if the aren't empty. At initial installations
some empty contexts were being cached and used later, causing insertion
of null values to every DB but MySQL.

18 years agofixed wrong placement of comma
skodak [Fri, 8 Sep 2006 15:53:24 +0000 (15:53 +0000)]
fixed wrong placement of comma

18 years agofixed typo - trailing backslash
skodak [Fri, 8 Sep 2006 15:51:11 +0000 (15:51 +0000)]
fixed typo - trailing backslash

18 years agoMerged from STABLE
thepurpleblob [Fri, 8 Sep 2006 10:27:48 +0000 (10:27 +0000)]
Merged from STABLE

18 years agoadding capabilities
toyomoyo [Fri, 8 Sep 2006 08:46:26 +0000 (08:46 +0000)]
adding capabilities

18 years agoSeems that the unassign_capability function signature was changed without updating...
vyshane [Fri, 8 Sep 2006 02:33:02 +0000 (02:33 +0000)]
Seems that the unassign_capability function signature was changed without updating the call to that function in capabilities_cleanup(). Fixed.

18 years agoFixed couple bugs in query, and improved logic of querylib.
mchampan [Fri, 8 Sep 2006 01:18:48 +0000 (01:18 +0000)]
Fixed couple bugs in query, and improved logic of querylib.

18 years agoModify a bunch of INSERTs to avoid using empty fields
stronk7 [Thu, 7 Sep 2006 23:50:47 +0000 (23:50 +0000)]
Modify a bunch of INSERTs to avoid using empty fields
to allow Oracle to avoid the NULLs = empty problem.

18 years agoDIRTY HACK to convert back all the ' ' (1 space) field contents
stronk7 [Thu, 7 Sep 2006 23:48:48 +0000 (23:48 +0000)]
DIRTY HACK to convert back all the ' ' (1 space) field contents
back to '' (empty string) in order to allow Oracle to work, more
or less until all the not real NOT NULL DEFAULT '' fields were out!

TODO: Apply the same hack to some more functions...

18 years agoSolving one string concatenation typo (please, test it's ok) and
stronk7 [Thu, 7 Sep 2006 20:17:46 +0000 (20:17 +0000)]
Solving one string concatenation typo (please, test it's ok) and
stripping the AS keyword from table aliases. You cand find more at:
http://docs.moodle.org/en/XMLDB_Problems#Table_and_column_aliases_-_the_AS_keyword

18 years agodouble redirect prevention - if both 'meta http-equiv' and javascript redirects are...
skodak [Thu, 7 Sep 2006 19:40:57 +0000 (19:40 +0000)]
double redirect prevention - if both 'meta http-equiv' and javascript redirects are  used, javascript delay is 3 seconds longer to prevent accidental double redirects. The target page can still be loaded twice in case user clicks the link before the target page gets fully loaded.

18 years agoremoved redirect message, because it was sometimes breaking upgrades due to double...
skodak [Thu, 7 Sep 2006 19:18:48 +0000 (19:18 +0000)]
removed redirect message, because it was sometimes breaking upgrades due to double redirects

18 years agoTypos + drop table fully supported.
stronk7 [Thu, 7 Sep 2006 18:39:43 +0000 (18:39 +0000)]
Typos + drop table fully supported.

18 years agoInitial support for DROP TABLE adedd.
stronk7 [Thu, 7 Sep 2006 17:28:46 +0000 (17:28 +0000)]
Initial support for DROP TABLE adedd.

18 years agoIf one course, hasn't teaches, both under roles and no-roles
stronk7 [Thu, 7 Sep 2006 17:25:06 +0000 (17:25 +0000)]
If one course, hasn't teaches, both under roles and no-roles
installations, default to admin language.

18 years agoFixed bug (sectionname mismatch) similar to MDL-6475
vinkmar [Thu, 7 Sep 2006 16:15:35 +0000 (16:15 +0000)]
Fixed bug (sectionname mismatch) similar to MDL-6475

18 years agoFixed a typo (thanks Eclipse)
moodler [Thu, 7 Sep 2006 15:46:48 +0000 (15:46 +0000)]
Fixed a typo (thanks Eclipse)

18 years agoFixed MDL-6475.
vinkmar [Thu, 7 Sep 2006 14:53:07 +0000 (14:53 +0000)]
Fixed MDL-6475.

18 years agoFixes bug MDL-6478 "Unit tests (not) working.."
nfreear [Thu, 7 Sep 2006 09:11:55 +0000 (09:11 +0000)]
Fixes bug MDL-6478 "Unit tests (not) working.."

18 years agoadding capabilities
toyomoyo [Thu, 7 Sep 2006 08:57:56 +0000 (08:57 +0000)]
adding capabilities

18 years agoAdded moodle/role:unassignself which replaces $CFG->allowunenroll
moodler [Thu, 7 Sep 2006 08:35:30 +0000 (08:35 +0000)]
Added moodle/role:unassignself which replaces $CFG->allowunenroll

18 years agoInitial RenameTable caller to generators. Not ended by I needed it in CVS now.
stronk7 [Wed, 6 Sep 2006 23:05:12 +0000 (23:05 +0000)]
Initial RenameTable caller to generators. Not ended by I needed it in CVS now.

18 years agoInitial, unfinished, not working, simple version of rename_table generator.
stronk7 [Wed, 6 Sep 2006 23:04:13 +0000 (23:04 +0000)]
Initial, unfinished, not working, simple version of rename_table generator.
More coming soon, but I needed it in CVS now!

18 years agoPHP code for dropping and renaming tables added. Note that the DDL
stronk7 [Wed, 6 Sep 2006 22:34:09 +0000 (22:34 +0000)]
PHP code for dropping and renaming tables added. Note that the DDL
functions doesn't exist yet. ;-)

18 years agoThe XMLDBEditor is generating automatic PHP code for create_table
stronk7 [Wed, 6 Sep 2006 19:49:13 +0000 (19:49 +0000)]
The XMLDBEditor is generating automatic PHP code for create_table

18 years agoNow indexes are able to return their PHP specs.
stronk7 [Wed, 6 Sep 2006 19:47:50 +0000 (19:47 +0000)]
Now indexes are able to return their PHP specs.

18 years agoNow keys are able to return their PHP specs.
stronk7 [Wed, 6 Sep 2006 19:43:38 +0000 (19:43 +0000)]
Now keys are able to return their PHP specs.

18 years agoNow fields are able to return their PHP specs.
stronk7 [Wed, 6 Sep 2006 19:31:03 +0000 (19:31 +0000)]
Now fields are able to return their PHP specs.

18 years agoall static functions in enrolment_plugin_authorize moved to localfuncs.php. So, no...
ethem [Wed, 6 Sep 2006 15:39:32 +0000 (15:39 +0000)]
all static functions in enrolment_plugin_authorize moved to localfuncs.php. So, no need enrol.php.

18 years agoDisable regexp searches for MSSQL and Oracle
stronk7 [Wed, 6 Sep 2006 15:30:11 +0000 (15:30 +0000)]
Disable regexp searches for MSSQL and Oracle

18 years agoNow forum searches are working both under MSSQL and Oracle
stronk7 [Wed, 6 Sep 2006 15:29:26 +0000 (15:29 +0000)]
Now forum searches are working both under MSSQL and Oracle
(in a case-sensitive behaviour for Oracle, see code comments and
http://docs.moodle.org/en/XMLDB_Problems#Case-insensitive_searches)

18 years agofixed description of configprotectusernames
skodak [Wed, 6 Sep 2006 11:36:00 +0000 (11:36 +0000)]
fixed description of configprotectusernames

18 years agofixed missing if (!
skodak [Wed, 6 Sep 2006 10:15:05 +0000 (10:15 +0000)]
fixed missing if (!

18 years agoallow less verbose operation of forget_password.php SC#282
skodak [Wed, 6 Sep 2006 10:11:24 +0000 (10:11 +0000)]
allow less verbose operation of forget_password.php  SC#282

18 years agoadding capabilities
toyomoyo [Wed, 6 Sep 2006 08:55:23 +0000 (08:55 +0000)]
adding capabilities

18 years agoMerged fix for bug MDL-5866.
vyshane [Wed, 6 Sep 2006 08:54:56 +0000 (08:54 +0000)]
Merged fix for bug MDL-5866.

18 years agoinitial conversion of workshop to new roles and capabilities framework; groups are...
skodak [Wed, 6 Sep 2006 08:41:47 +0000 (08:41 +0000)]
initial conversion of workshop to new roles and capabilities framework; groups are not functional yet (did they ever work properly ?)

18 years agoSome tidying up of admin blocks
moodler [Wed, 6 Sep 2006 05:24:35 +0000 (05:24 +0000)]
Some tidying up of admin blocks

18 years agoAdded $Id$ to files
mark-nielsen [Wed, 6 Sep 2006 04:04:42 +0000 (04:04 +0000)]
Added $Id$ to files
Header is not printed for all actions.  Related to MDL-5403
Some redundant code removed
First attempt at separating logic and presentation in action continue (continue.html)

18 years agoAdded function for printing a standard header for lesson
mark-nielsen [Wed, 6 Sep 2006 04:02:02 +0000 (04:02 +0000)]
Added function for printing a standard header for lesson
Added function for fetching course module, course and lesson based on course module id or lesson id

18 years agoremoved pause during redirect when there are no new settings
vinkmar [Wed, 6 Sep 2006 02:36:38 +0000 (02:36 +0000)]
removed pause during redirect when there are no new settings

18 years ago* removed hard-coded language strings (MDL-6448)
vinkmar [Wed, 6 Sep 2006 02:23:23 +0000 (02:23 +0000)]
* removed hard-coded language strings (MDL-6448)
* replaced some remaining tabs with spaces

18 years agoremoved hard-coded language strings (MDL-6448)
vinkmar [Wed, 6 Sep 2006 02:20:16 +0000 (02:20 +0000)]
removed hard-coded language strings (MDL-6448)

18 years agoadded strings for MDL-6448
vinkmar [Wed, 6 Sep 2006 02:18:51 +0000 (02:18 +0000)]
added strings for MDL-6448

18 years agoA temporary icon for roles (needs work!)
moodler [Wed, 6 Sep 2006 02:16:48 +0000 (02:16 +0000)]
A temporary icon for roles (needs work!)

18 years agoreplacing isteacher with viewfullname capability
toyomoyo [Wed, 6 Sep 2006 02:14:20 +0000 (02:14 +0000)]
replacing isteacher with viewfullname capability

18 years agoRemoved some tabs
moodler [Wed, 6 Sep 2006 01:43:54 +0000 (01:43 +0000)]
Removed some tabs

18 years agotesting forced conversion to proper numeric type in _adodb_column_sql() SC#259
skodak [Tue, 5 Sep 2006 23:59:25 +0000 (23:59 +0000)]
testing forced conversion to proper numeric type in _adodb_column_sql() SC#259

18 years agoNow forum_get_discussions() is using $limitfrom and $limitnum
stronk7 [Tue, 5 Sep 2006 22:37:56 +0000 (22:37 +0000)]
Now forum_get_discussions() is using $limitfrom and $limitnum

18 years agofixed typo
skodak [Tue, 5 Sep 2006 22:34:25 +0000 (22:34 +0000)]
fixed typo

18 years agoAdding support for MSSQL and Oracle in this select. Not really sure why we need one...
stronk7 [Tue, 5 Sep 2006 22:31:13 +0000 (22:31 +0000)]
Adding support for MSSQL and Oracle in this select. Not really sure why we need one OUTER
join there, if every discussion has one usermodified but.....not time now.

18 years agoMark as deprecated the sql_paging_limit_function()
stronk7 [Tue, 5 Sep 2006 21:42:20 +0000 (21:42 +0000)]
Mark as deprecated the sql_paging_limit_function()

18 years agoOne less use of old LIMIT clause. Now logs are working properly.
stronk7 [Tue, 5 Sep 2006 21:40:17 +0000 (21:40 +0000)]
One less use of old LIMIT clause. Now logs are working properly.

18 years agoI spent 2 hours looking for this typo :-D
skodak [Tue, 5 Sep 2006 20:45:57 +0000 (20:45 +0000)]
I spent 2 hours looking for this typo :-D

18 years agoNo need to specify DISTINCT because u.* guarantees unique ids.
stronk7 [Tue, 5 Sep 2006 19:04:33 +0000 (19:04 +0000)]
No need to specify DISTINCT because u.* guarantees unique ids.
Also, DISTINCT clauses cannot be used with TEXT/BINARY columns
on MSSQL and Oracle.

18 years agoNo need to specify DISTINCT because u.* guaranties distinct by id.
stronk7 [Tue, 5 Sep 2006 19:01:41 +0000 (19:01 +0000)]
No need to specify DISTINCT because u.* guaranties distinct by id.

18 years agoModified get_users_by_capability() call to use the new limit
stronk7 [Tue, 5 Sep 2006 18:57:37 +0000 (18:57 +0000)]
Modified get_users_by_capability() call to use the new limit
parameters and cleanup a bit of code.

18 years agoChanged the get_users_by_capability() function to work with
stronk7 [Tue, 5 Sep 2006 18:55:16 +0000 (18:55 +0000)]
Changed the get_users_by_capability() function to work with
1.7 DB compatible limit sentences.

18 years agoNow get_records_sql() supports limitfrom and limitnum.
stronk7 [Tue, 5 Sep 2006 18:53:08 +0000 (18:53 +0000)]
Now get_records_sql() supports limitfrom and limitnum.
Required to kill all those hardcoded LIMIT x,y clauses.

18 years agoBoth Oracle and MSSQL don't like double quotes for literals.
stronk7 [Tue, 5 Sep 2006 18:06:53 +0000 (18:06 +0000)]
Both Oracle and MSSQL don't like double quotes for literals.

18 years agoAdded support to retrofit tables without prefix
stronk7 [Tue, 5 Sep 2006 17:55:59 +0000 (17:55 +0000)]
Added support to retrofit tables without prefix

18 years agoAdded the adodb_logsql table to the XMLDB schema. It's a bit
stronk7 [Tue, 5 Sep 2006 17:20:24 +0000 (17:20 +0000)]
Added the adodb_logsql table to the XMLDB schema. It's a bit
exceptional because it hasn't prefix and originaly it hasn't
any PK, although we have added it here to be more Moodle-like.
Tested and seems to work properly with the new field.

18 years agoAdded to the generators the ability of prevent adding prefix for some tables.
stronk7 [Tue, 5 Sep 2006 17:17:49 +0000 (17:17 +0000)]
Added to the generators the ability of prevent adding prefix for some tables.
(needed by adodb_logsql)

18 years agoDeleted duplicate table label2 from XMLDB schema
stronk7 [Tue, 5 Sep 2006 16:09:15 +0000 (16:09 +0000)]
Deleted duplicate table label2 from XMLDB schema

18 years agoNow the sessions2 table is UTF8 migrated ok.
stronk7 [Tue, 5 Sep 2006 16:04:50 +0000 (16:04 +0000)]
Now the sessions2 table is UTF8 migrated ok.

18 years agoBetter robustness and basic checking for get_parent_contexts
moodler [Tue, 5 Sep 2006 09:30:40 +0000 (09:30 +0000)]
Better robustness and basic checking for get_parent_contexts

18 years agoNew string for blocks
moodler [Tue, 5 Sep 2006 09:16:19 +0000 (09:16 +0000)]
New string for blocks

18 years agoCleaned up headers when editing roles for blocks
moodler [Tue, 5 Sep 2006 09:15:52 +0000 (09:15 +0000)]
Cleaned up headers when editing roles for blocks

18 years agoadding capabilities
toyomoyo [Tue, 5 Sep 2006 08:50:23 +0000 (08:50 +0000)]
adding capabilities

18 years agominor include cleanup
skodak [Tue, 5 Sep 2006 08:27:14 +0000 (08:27 +0000)]
minor include cleanup

18 years agoGet the block name correctly
moodler [Tue, 5 Sep 2006 06:30:12 +0000 (06:30 +0000)]
Get the block name correctly

18 years agoJust changed the order around a bit
moodler [Tue, 5 Sep 2006 06:13:53 +0000 (06:13 +0000)]
Just changed the order around a bit

18 years agoUse the new config variable as a default for paging
moodler [Tue, 5 Sep 2006 06:11:48 +0000 (06:11 +0000)]
Use the new config variable as a default for paging

18 years agoAdded coursesperpage so paging can be controlled
moodler [Tue, 5 Sep 2006 03:28:25 +0000 (03:28 +0000)]
Added coursesperpage so paging can be controlled

18 years agoUse the defaultsetting if the variable isn't set yet
moodler [Tue, 5 Sep 2006 03:27:08 +0000 (03:27 +0000)]
Use the defaultsetting if the variable isn't set yet