Commit Graph

81 Commits

Author SHA1 Message Date
toyomoyo
1c45e42e3c adding capabilities 2006-09-11 08:56:23 +00:00
moodler
0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
moodler
dabfd0ed85 Removed tabs 2006-08-09 13:45:49 +00:00
moodler
bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
skodak
be933850a7 Bug #6176 - locale setting on config variables page not functioning correctly; merged from MOODLE_16_STABLE 2006-07-30 10:39:21 +00:00
stronk7
d96466d29f Moving from lastIP to lastip everywhere. Bug 5763.
(http://moodle.org/bugs/bug.php?op=show&bugid=5763)

Merged from MOODLE_16_STABLE
2006-06-09 10:04:43 +00:00
martinlanghoff
274f009184 mod/chat - fix another instance where empty $USER->lastIP was affecting us
The original commit was:

mod/chat - use empty value instead of erroring out if $USER->lastIP and getremoteaddr() don't yield any interesting value

Sometimes we can't get any useful IP for the user -- and this may even be a
valid situation. So fudge an empty value -- the DB needs it as the IP field
is NOT NULL.
2006-05-02 05:20:35 +00:00
martinlanghoff
f83edcb114 mod/chat - use empty value instead of erroring out if $USER->lastIP and getremoteaddr() don't yield any interesting value
Sometimes we can't get any useful IP for the user -- and this may even be a
valid situation. So fudge an empty value -- the DB needs it as the IP field
is NOT NULL.
2006-04-19 21:22:36 +00:00
martinlanghoff
930413b133 mod/chat: Normal method - introducing "Stream" updates.
This is an alternative version of jsupdate.php that acts
as a long-running daemon. It will feed/stall/feed JS updates
to the client. From the module configuration select "Stream"
updates.

The client connection is not forever though. Once we reach
CHAT_MAX_CLIENT_UPDATES (currently 1000), it will force
the client to re-fetch it.

This buys us all the benefits that chatd has, minus the setup,
as we are using apache to do the daemon handling.

Chat still defaults to the normal update method, which is now
optimised to take advantage of keepalives -- so this change is
safe. The instructions in the config page also indicate that this
mode may not be well supported everywhere. It hasn't been
tested on IIS for starters.

In terms of relative cost -- if each hit on jsupdate.php incurs
on ~20 db queries and delivers one update to the client, each hit
on jsupdate takes ~20 queries, and then roughly 2~3 queries to
serve each of the next 1000 updates. On busy sites, the difference
is huge.

There is still room for enhancements in both keepalive and stream
update methods. I am pretty sure we can trim DB queries more.
2006-04-19 02:20:48 +00:00
martinlanghoff
d13ef2fbdc mod/chat - cope with missing $USER->lastIP
$USER->lastIP is sometimes not set properly during login, fetch it if we can
or error out clearly -- we won't be able to login the user to the chat if
we don't have an IP address to match him/her against.
2006-04-18 22:40:56 +00:00
moodler
5379d24992 A little HTML hint since styles are not working here for me somehow 2006-04-18 07:28:44 +00:00
moodler
78c98892d1 More efficient chat listings (less database calling) 2006-04-18 07:14:21 +00:00
moodler
0eda0a46b2 Fixed a typo 2006-03-24 14:44:55 +00:00
moodler
a2a3733666 iFIx up some styles for the MyMoodle overview 2006-03-15 04:01:10 +00:00
patrickslee
9ca0187e16 Chat module support for my moodle page 2006-03-14 22:28:28 +00:00
toyomoyo
7b5aa1b725 case sensitive IP 2006-02-23 03:16:28 +00:00
mjollnir_
0f4e83c173 Fixing up a problem in chat login - ip address is lastip not lastIP - member variables are case sensitive 2006-01-13 03:09:24 +00:00
defacer
970f144ef4 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:55:21 +00:00
defacer
72989350be 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:30:56 +00:00
stronk7
aa5c32fda7 Extended theme support to the chat window. Bug 3376.
(http://moodle.org/bugs/bug.php?op=show&bugid=3376)

Merged from MOODLE_15_STABLE
2005-09-10 22:57:21 +00:00
mjollnir_
f3221af9e5 Initial checkin of stats (from processing the log table).
I will write up some information about it for the developers wiki.
2005-09-01 04:14:31 +00:00
skodak
38be9b3117 fixed compatibiltiy with PHP 4.1.0 2005-04-24 19:18:41 +00:00
moodler
494b9296e9 Renamed get_user_timezone to get_user_timezone_offset, because Jon has
plans for that function name
2005-04-08 07:42:50 +00:00
stronk7
200371e9f7 Now chat->name works under filterall. 2005-03-27 11:36:54 +00:00
moodler
a71efae327 WHen deleting a chat, delete the messages etc too. Bug 2792 2005-03-27 05:56:23 +00:00
skodak
e2a1a0fa49 SERVER_ADDR is not defined in IIS, changing initial value to 127.0.0.1 2005-03-12 21:26:54 +00:00
moodler
8f7dc7f1c7 Variety of small fixes, but mostly related to how the recent activity
block is constructed.  A new function exists to pump these notes out
in a standard way :  print_recent_activity_note.

Module dependencies also updated because of this.
2005-03-10 13:30:57 +00:00
defacer
c4d588cc24 Added require_once for pagelib.php.
Now deleting courses with these activities in works just fine once more!
2005-02-28 04:23:52 +00:00
defacer
880d86758b Each mod is responsible to deleting its own blocks; what I had in mind for
centralizing this wouldn't work out. Use the flexible page_import_types so that
we don't create one more dependency when writing new code.
2005-02-28 04:18:13 +00:00
stronk7
95e72c12d0 Now retrieving only needed fields! 2005-02-13 00:42:29 +00:00
skodak
e7fbd0b3f2 Chatd cleanup finished, from now on only bug fixing. 2005-02-12 10:54:25 +00:00
skodak
a32c7772c6 fixed deleting of old users when using chatd, other minor fixes, reverting of changes in chatmsg - found some weird problems in FF 2005-02-10 19:14:53 +00:00
moodler
89f688b6c6 Removed some THEME 2005-02-10 18:22:31 +00:00
skodak
a776c371e7 fixed typos in chat_force_language(), added encoding to message page, minor cleanup 2005-02-08 21:23:19 +00:00
skodak
3dfd307fe0 maybe fixed double posts, fixed javascript errors, solved problems with reloading 2005-02-07 20:33:44 +00:00
skodak
2ac0d13b6f reverted some unfinished changes in chatd - enter message 2005-02-04 21:14:19 +00:00
skodak
516121bd0d radical chat clean up, see forum for details 2005-02-03 20:39:27 +00:00
skodak
5c05d23b4b merged from 14_STABLE - fixed warning in Activity report/Outline 2004-10-23 19:21:30 +00:00
moodler
2defdcd7d5 Changes for XHTML and accessibility compliance 2004-10-19 10:34:02 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
gustav_delius
b4510d5333 closed some input tags 2004-09-12 22:23:51 +00:00
gustav_delius
1c61c8d6bc fixed capitalization and quoting of attribute values 2004-09-12 15:06:29 +00:00
defacer
c7756c734c Merging changes from MOODLE_14_STABLE 2004-08-31 10:47:24 +00:00
defacer
0469cccfe2 Merging latest changes from MOODLE_14_STABLE 2004-08-26 10:44:32 +00:00
defacer
96a391a5fd Merging MOODLE_14_STABLE changes. 2004-08-25 10:52:56 +00:00
moodler
fbabbd235b Miscellaneous fixes from the PJ man 2004-08-23 14:40:53 +00:00
defacer
3430873206 Making chatd more eager to update the users' status, and lib.php slightly
less eager to declare them dead. Should solve the "active users are not shown
at the chat index page" problem.

Also, fixing a notice.
2004-08-23 08:48:57 +00:00
gustav_delius
ff458eb5ad removed some notices 2004-08-21 20:59:13 +00:00
moodler
82a524ef54 Latest changes to the chat daemon ... user window now working
Needs:    - testing
            - beeps in daemon mode  (you can type "beep all" though)
2004-08-11 14:45:40 +00:00
moodler
b5de723daa Latest fixes from Jon ... it's much more stable now!
... the only thing remaining is that the user window is
still done old-style, and not yet converted over to the
new -style daemon
2004-08-10 13:50:58 +00:00