1883 Commits

Author SHA1 Message Date
martinlanghoff
66552670ba Improved performance info reporting and logging. Removed duplicate calls. 2005-04-06 07:36:10 +00:00
martinlanghoff
c2fd9e955a Improved performance info reporting and logging. Needs some work on the configuration front still. 2005-04-06 07:34:05 +00:00
moodler
ddd7a47ac1 Removed a notice from isteacheredit 2005-04-06 06:26:38 +00:00
moodler
dcc17b63b1 More improvements to isteacher() logic (and isadmin now uses $USER->admin too) 2005-04-06 06:20:59 +00:00
moodler
5e04ee0c4f More efficient logic for isteacher() 2005-04-06 05:53:24 +00:00
mjollnir_
bb2889b41d Fix postgres upgrade for deletion of course_modules.deleted flag 2005-04-06 00:22:36 +00:00
mjollnir_
9921028a3d Merged from MOODLE_14_STABLE: Fix for return id for insert_record - needs to be cast to an int 2005-04-03 21:04:02 +00:00
julmis
a2b3f884b8 Fixing Bug #2830 - HTML editor not working at all in current HEAD 2005-04-03 12:15:45 +00:00
martinlanghoff
51e565d1ad Capture some key stats for performance detail output. 2005-04-02 13:31:38 +00:00
martinlanghoff
798065253e Two minor fixes to Olson file parsing. olson_parse_at() now deals correctly with 'unsigned' AT entries. olson_simple_rule_parser() avoid a potential bug in minute-only SAVE entries. 2005-04-02 06:28:02 +00:00
moodler
b8cea9b2de Added some performance monitoring functions into the core 2005-04-01 10:00:18 +00:00
moodler
5485e65387 Remove a notice 2005-04-01 09:25:45 +00:00
moodler
fcaff7ffcd Updated formatting in getremoteaddr, and made add_to_log use it 2005-04-01 07:40:07 +00:00
ikawhero
5b2ae5848c Can provide an alternate page for the login form.
The page must contain a form with an action field set to /login/index.php
and return fields username and password

TODO
It may be worth checking the URL when it's entered at admin/auth.php
to ensure it is at least pointing to a valid page as an incorrect URL
could potentially lock all users out of a site.
2005-04-01 07:39:27 +00:00
moodler
f4cbf7f214 Just documentation / reformatting while reading the code :-) 2005-04-01 06:57:26 +00:00
martinlanghoff
455c36654f Backed out unrelated block from last commit 2005-04-01 06:01:23 +00:00
martinlanghoff
a9a9bdba55 Merged from MOODLE_14_STABLE - insert_record() - major efficiency improvements for Postgres databases on insert. Also fixed many calls to insert_record() which discard the returned record id to not ask for the record id. 2005-04-01 05:55:10 +00:00
moodler
a4a65bf6f6 Added cellspacing to sideblock 2005-04-01 02:26:28 +00:00
moodler
594ceedda1 Remove "deleted" field from course_modules table
http://moodle.org/mod/forum/discuss.php?d=20715
2005-03-31 08:46:38 +00:00
moodler
90d0ae4f76 DOn't reference soon-to-be-defunct deleted field 2005-03-31 08:34:27 +00:00
thepurpleblob
90bf11b2fd A start on wiki-like to Markdown converter.
Needs more work yet!
2005-03-30 15:13:41 +00:00
moodler
fd9d1ff316 Make the ID of textarea more unique 2005-03-30 13:32:39 +00:00
moodler
36c446cbe8 Removing excess styles 2005-03-30 12:31:00 +00:00
moodler
b3ab80aad2 Restoring extra span to navmenulist 2005-03-30 11:54:58 +00:00
moodler
cc7cd917d4 Removed some German, and added styles and icons to the navmenulist 2005-03-30 03:41:37 +00:00
urs_hunkler
143211e5da I expanded the list navmenulist for better handling with:
_ a header
_ spans for the section titles

It's still work in progress
2005-03-29 21:08:17 +00:00
moodler
2507b2f5ea OK,the navbarlist is no longer meant to be called directly ... it's
rather more efficient and useful to piggy-back it onto the navbar function.

You can control it with

$THEME->makenavmenulist = true;

/// By setting this to true, then you will have access to a
/// new variable in your header.html and footer.html called
/// $navmenulist ... this contains a simple XHTML menu of
/// all activities in the current course, mostly useful for
/// creating popup navigation menus and so on.
2005-03-29 14:22:13 +00:00
moodler
f713e27052 Forgot a tag 2005-03-29 13:48:25 +00:00
moodler
dfe6617484 Better XHTML on my new function 2005-03-29 13:46:20 +00:00
moodler
f3a74e6817 A new function navmenulist which simply returns a UL list containing
all the modules in a course.

This is so theme designers can start experimenting with popup menus etc

From header.html or footer.html, you can use code like this to get the data:

<?php  if (is_object($course)) {
           $list = navmenulist($course, 50);
           echo '<div id="floatnav">'.$list.'</div>';
       }
?>
2005-03-29 13:37:08 +00:00
mjollnir_
8a72bfa258 Tables for grades for postgres (and a fix to timezone update for postgres) 2005-03-29 03:51:14 +00:00
moodler
61c787cea2 Default theme is standardwhite, and added filterall 2005-03-29 03:36:12 +00:00
moodler
4eb25d43aa Adding the new grade tables
POSTGRES IS NOT DONE YET!!!!   DOES SOMEONE WANT TO TACKLE IT NOW?
2005-03-28 18:16:39 +00:00
stronk7
188e4dd9a3 Now print_recent_activity_note() supports filterall (in text). 2005-03-27 23:48:15 +00:00
stronk7
2a3affe991 Now format_string() uses an in-memory cache per request to make
things faster. Really noticeable in logs page!
2005-03-27 20:57:50 +00:00
moodler
a77ac3dc49 Added homelink and sitelink style distinction 2005-03-27 17:07:09 +00:00
moodler
031f8487b0 Added row classes to the tab rows 2005-03-27 15:28:35 +00:00
moodler
fae1077b2a Removed $goodStr = str_replace(chr(160), ' ', $goodStr );
as it causes bug 2794 and I can't even see what the point of it was.
2005-03-27 05:50:21 +00:00
moodler
c01f71d4a4 FIxed some XHTML compliance ... Bug 2798 2005-03-27 05:43:49 +00:00
moodler
9e0d19831b Fixed footer navigation 2005-03-27 05:23:39 +00:00
defacer
66336c5f34 Bringing in the mdl_timezone table.
DST is now kind of working, the next most important things to do are:

    1. Get the import procedure working correctly and well, so we can populate it.

    2. Provide a transparent migration procedure for all users to "Unknown location" timezones.

    3. Banish $USER->timezone for good.
2005-03-26 19:10:05 +00:00
stronk7
9870dbe5b6 Now the "jump to" menu (navmenu) supports filterall. 2005-03-26 19:02:56 +00:00
defacer
d4880eaa46 Remove redundant mdl_dst_preset table from schema. 2005-03-26 19:00:23 +00:00
defacer
b41c4f7e28 The schema for mdl_timezone looks final, so create it in new installations. 2005-03-26 18:53:01 +00:00
defacer
830a2bbd82 Yay! Major DST support progress!
1. calculate_user_dst_table() works correctly and offers many features:

Can create or extend on-the-fly a table of pre-computed timestamps on which
DST changes happen, keeps track of these changes and the current computed year
range in $USER->dstoffsets and $USER->dstrange. Initially the computation is
done in a current year +/- 3 years range, to keep the amount of serialized
data small and to make traversals of $USER->dstoffsets faster.

2. dst_offset_on() works correctly, and can dynamically instruct the above
function to extend the pre-calculated region on demand (i.e., when it's called
for a timestamp which falls outside said region).

3. Some other improvements.



I have made a few preliminary tests on my dev machine and It Works(tm!) :D
2005-03-26 18:43:58 +00:00
defacer
c2aa460fe6 Fix a notice when failing to log in. 2005-03-26 18:26:49 +00:00
defacer
45daee10f3 Fix some notices. 2005-03-26 13:38:21 +00:00
moodler
f940ee41b8 Need to rename variables in footer nav menu .... urgh, not pretty but works 2005-03-26 07:26:27 +00:00
moodler
0d741155df A slightly yucky hack where variables in the header are kept around
until the footer is shown, allowing them to be used there too
2005-03-26 06:51:33 +00:00
stronk7
3e6691eebb Added option to format_string to take out all the links in the string.
Useful because a lot of times the string itself is showed like a link
and we cannot nest links.
2005-03-26 01:07:23 +00:00