mjollnir_
ea09b04bbd
Postgres bufix
2004-09-29 00:45:06 +00:00
paca70
7a5672c90c
Replaced time related "magic numbers" with constants, what are hopefully
...
more easier to read.
2004-09-28 05:53:08 +00:00
moodler
d0d56205f4
Fixed some of Daryls typos
2004-09-26 02:10:38 +00:00
moodler
f6f319f852
Merged fox for bug 1991 to head
2004-09-25 15:19:40 +00:00
dhawes
89dcb99da2
More phpdoc work
2004-09-25 05:29:21 +00:00
dhawes
c6d15803f6
Additional phpdoc compatible comments added.
2004-09-25 01:29:37 +00:00
dhawes
fbc21ae8c9
More phpdoc comments added and updated. Also a few double quote string to single quote literal changes.
2004-09-24 21:28:22 +00:00
moodler
c7fe5c6fdc
Merged new functions for get_courses and get_courses_page from STABLE
2004-09-23 07:46:41 +00:00
moodler
ae01b52a70
One line I changed
2004-09-23 02:59:12 +00:00
dhawes
7cf1c7bd2b
Additional phpdoc comments and fixes for bugs 1981 and 1984
2004-09-23 02:48:41 +00:00
dhawes
d4419d55a2
Conversion of double quoted string to single quoted literals. Also added some extra spacing around concatenated strings for easier reading.
2004-09-22 16:15:23 +00:00
gustav_delius
8f0cd6ef0f
Resolved problems with previous replacement of
...
& to & and fixed redirect() to entity encode the
inut where needed.
Julian Sedding
2004-09-21 11:41:58 +00:00
gustav_delius
dcb1bd3c9a
towards XHTML compliance
2004-09-12 13:21:01 +00:00
moodler
09f275ce55
Merged from stable
2004-09-10 06:05:29 +00:00
moodler
7d8c2ec3df
SITEID is more flexible
2004-09-09 06:59:48 +00:00
moodler
65ee9c16b3
Merged fixes for get_course_users from stable 1.4
2004-09-08 15:46:43 +00:00
paca70
7427070a50
Use get_site() to define SITEID
...
eVS: ----------------------------------------------------------------------
2004-09-07 05:15:37 +00:00
defacer
fbf5081c4a
Merging changes from MOODLE_14_STABLE
2004-08-31 12:31:59 +00:00
gustav_delius
2700d113a2
Merged from HEAD
2004-08-30 17:27:00 +00:00
gustav_delius
0475502255
got rid of update_user_in_db, see bug 1833
2004-08-29 14:24:05 +00:00
gustav_delius
222ac91bc9
removed unnecessary calls to get_site()
2004-08-29 14:15:40 +00:00
gustav_delius
540995b801
add_to_log now updates lastaccess if used on site. See bug 1821
2004-08-29 11:41:55 +00:00
gustav_delius
f950af3c43
All modules are now suitable for the site page. They now all follow the same rules, namely that any students enrolled in at least one course is considered to be a student on the site.
...
All the page headers work correctly also on the site course.
On the site page the modules don't require login unless necessary or required by $CFG->forcelogin.
2004-08-22 14:38:47 +00:00
gustav_delius
900df8b6a5
Some changes to user database functions:
...
1) get_course_students, get_course_users and count_course_students when called with course=site will now use get_site_users instead of get_users. This I believe was the consensus reached in the discussions of how front-page activities should behave.
2) all functions can handle a list of exceptions now.
3) get_site_users now returns users in the order admins, teachers, students. Similarly for get_course_users. This makes the sorting bug 1727 a bit more bearable
4) new function search_users
The whole thing is really a mess because each function has slightly different conventions for its arguments. But the beta is too close to tidy this up now.
2004-08-21 12:41:40 +00:00
moodler
d05024a72b
Added Petri's patch that allows us to finally change type of PostgreSQL columns!
...
Yay! Thanks, Petri!
Bug 1721
2004-08-09 16:00:10 +00:00
moodler
e1f3202adb
FIxed a PHP5 notice
2004-08-07 13:36:57 +00:00
moodler
1284a926f9
More mtrace statements
2004-08-07 06:05:37 +00:00
gustav_delius
09d4c9a984
postgres should use INT8 only for very large integers, see bug1590
2004-08-03 09:30:04 +00:00
moodler
b4bac9b6b6
New functions for login failure display
2004-07-25 13:47:38 +00:00
gustav_delius
2cc72e848f
made get_course_users and similar functions work also for the site course
2004-07-01 21:00:07 +00:00
moodler
ca60b03b34
The login process now uses the current enrolment plugin
2004-06-25 06:30:48 +00:00
defacer
8d24137466
Email digest feature step 2: Slight additions to datalib queries, fixed warnings in html2text
2004-06-01 07:28:14 +00:00
gustav_delius
62b8075632
Changed participants list for site couse, see http://moodle.org/mod/forum/discuss.php?d=8455
2004-05-30 18:46:42 +00:00
gustav_delius
6bc502cca7
List of courses is now always ordered according to sortorder, see http://moodle.org/mod/forum/discuss.php?d=7034
2004-05-30 00:33:45 +00:00
stronk7
4b92953150
Patched file. Bug 1425 closed.
...
(http://moodle.org/bugs/bug.php?op=show&bugid=1425 )
2004-05-19 07:12:40 +00:00
moodler
9e51847a18
Slight change to recent activity calculations in RA block.
...
Upon login, the last access to each course is stored in the USER session
variable.
The earliest date of recent activity now shown is now the earliest of:
- this last access time
- the last login time
If this value is older than two days, then just use two days instead.
2004-05-15 14:58:12 +00:00
moodler
0b0be145f9
Small sorting fix when getting site users
2004-04-27 17:31:12 +00:00
moodler
48bef97ce6
Deleted a bad line to fix bug 1237
2004-04-24 15:45:39 +00:00
moodler
149dbaf1b3
Fix for bug 1226
2004-04-09 02:24:02 +00:00
moodler
427fdf6669
Primary admin is now the lowest-numbered entry in user_admins, rather than
...
the admin with the lowest userid. This makes it easier to change the
primary admin.
2004-03-24 09:38:47 +00:00
moodler
20439c700b
Add idnumber to list of course students
2004-03-21 03:30:27 +00:00
moodler
488acd1be9
Some fixes to the functions for fetching users (some of it is backing
...
out Scott's changes, sorry Scott!) and some fixes to the interface
for the admin user page.
2004-03-20 06:58:52 +00:00
selliott
5a4aa257c1
On second thought, let's display the lastaccess in the lastaccess column of admin/user.php ;)
2004-03-19 04:39:20 +00:00
selliott
73fc8c1af7
Added search parameter to get_course_students.
...
Modified get_course_students and count_course_students to handle a request for course 0 (will get all users, even if they are in no other course).
Changes done to for admin/user.php, should be compatible with all previous function calls.
2004-03-19 04:26:35 +00:00
moodler
06b1db82d2
Decalre some globals so debugging works better
2004-03-13 16:04:52 +00:00
moodler
60b025d1cc
Function name change ... hope it doesn't break any third-party code,
...
sorry if it does!
get_users_in_group ---> get_group_users
... to be more consistent with other functions
Also a new function: get_group_students()
2004-03-13 14:25:27 +00:00
moodler
2eef791f9c
Make sure $CFG->debug is defined before using it
2004-03-10 07:59:32 +00:00
selliott
ea5d48ee8d
Modified function get_users_listing to:
...
1. also return confirmed field from user table and
2. include users in dataset who have not confirmed
(Used to display unconfirmed users in admin/user.php)
2004-03-09 21:12:54 +00:00
moodler
9c7fee6c21
Lots of error checking now on most database functions ... if debugging
...
is turned on then you get notifications printed in the web page.
Good for catching bad SQL.
Thanks to Howard Miller for the boot up the bum! :-)
2004-03-09 16:32:24 +00:00
moodler
4855286e27
Use DISTINCT instead of GROUP BY in get_site_users
2004-03-09 15:35:07 +00:00