203 Commits

Author SHA1 Message Date
moodler
c750592ac4 Added a search form to the "edit users" admin page yay! 2003-03-21 09:42:42 +00:00
moodler
d4120c3d7c Added some more options for longtimenosee 2003-03-16 02:35:03 +00:00
moodler
f82c2d428a Modified Greg's work to:
- rename the main_frame variable to framename, because it
       - might have caused some confusion
       - none of the global variables have underscores
  - put the config in the config table, with a default of _top
2003-03-12 07:36:22 +00:00
gregb_cc
08b3606390 This is a first attempt to make moodle frame safe.
I've added the variable CFG->main_frame to config-dist.php, and replaced _top
targets with the variable in all the php files.  HTML files, like those in the
documentation, have not been modified, as they are not (yet) parsed.

The variable should probably get moved into the config table, and get some
documentation.

I've also included, but commented out, a slight change in weblib.php, which
would guarantee that messages would be seen before redirecting the user (unless
delay intentionally set to 0 when redirect is used).
2003-03-11 21:35:12 +00:00
moodler
45930f2db5 Add support for Taiwan Chinese 2003-02-27 12:15:00 +00:00
moodler
55271c3047 Removed save_session() - no longer needed 2003-02-27 02:43:34 +00:00
paca70
1924074c76 Added support for nonadmin course creation.
Course creators are managed by /admin/creator.php , same way that admins.
Or if authetication module have 'auth_iscreator'-function (right now only ldap-module have) ,
users are added to creators at login time.
2003-02-24 18:48:55 +00:00
paca70
652fd67246 Reverted to older version, those changes should never got to CVS. 2003-02-20 22:09:59 +00:00
paca70
f9a14cc720 Show creation option when available. 2003-02-20 21:55:14 +00:00
paca70
5f2c35db18 Added support for usercreation from Moodle to authentication module.
Works currently only with ldap-module (tested with e-directory), but
 other modules could be extended too by
adding following functions:

function auth_user_exists ($username) {
//returns true if given username  already exists on authetication database
}

function auth_user_create ($userobject,$plainpass) {
//create new user to authentication database
//in inactive state (if posible)
//returns true if user is created
}
function auth_user_activate ($username) {
//activate external user  after email-address is confirmed
//returns true if user is activated
}
2003-02-20 21:39:51 +00:00
moodler
ecc114ee3b Add better escaping for double quotes 2003-02-02 02:37:09 +00:00
moodler
498d403283 Add some timing 2003-02-01 01:36:31 +00:00
moodler
d686bf500b Added some checks for PHP server variables - warnings are printed that
prevent installation until these are fixed.
2003-01-28 02:52:13 +00:00
moodler
eb58acca4d New sessiontimeout config variable to set the timeout for sessions 2003-01-24 04:31:58 +00:00
moodler
dd98f2e261 Ignore the fonts folder 2003-01-22 12:03:22 +00:00
moodler
0f61744597 Language editor uses current language (ie even the session language) 2003-01-20 09:28:38 +00:00
moodler
207190aa87 Make sure config array is always initialised before use 2003-01-20 06:43:44 +00:00
moodler
e01b5c0e77 Small fix to make this script more usable on Multi-Byte languages like zh_hk 2003-01-19 05:25:31 +00:00
moodler
2e43b5d987 Better notification and continue button is more useful 2003-01-18 14:24:40 +00:00
moodler
8f94fbcd4a Add slashes when printing correct Windows path to problems with backslashes 2003-01-18 14:05:52 +00:00
moodler
7684f1efcc Minor fix with display of %% in language strings 2003-01-15 11:28:54 +00:00
moodler
dcde9f020a Displayed time formats are now stored in lang files
(see the new strftime* strings) so they can be customised per language
2003-01-15 10:55:54 +00:00
moodler
d98228e497 More checks to solve support requests before they happen. 2003-01-13 14:05:29 +00:00
moodler
11159c3c60 Fixed some PHP warnings 2003-01-13 12:14:47 +00:00
moodler
f978ad0acb Put in a check for the sessions directory 2003-01-10 07:33:26 +00:00
moodler
1079c8a872 More robust when dealing with a plugin module that isn't readable 2003-01-08 09:07:07 +00:00
moodler
bfe89310ce Link from admin page to docs 2003-01-06 08:23:13 +00:00
moodler
b0e3a92523 Clean sweep through all the important changing all include(), include_once()
and require() to require_once()
2003-01-05 14:19:20 +00:00
moodler
8b3235f57f Fixes to use new mysql module with frame 2003-01-05 12:00:57 +00:00
moodler
607809b3ba OK a number of small changes here.
Firstly, I'm replacing all use of old-style global variables like
$HTTY_REFERER with their new-style equivalent $_SERVER["HTTP_REFERER"]
Also using $_POST instead $HTTP_POST_VARS  etc

Secondly, if gdversion == 0 (ie GD is not installed) then:

 - users are not even allowed to upload new images
 - graphs now just print a message instead of failing.

this allows Moodle to still be used even if GD is not present
2003-01-05 06:45:20 +00:00
moodler
17e6df458d Fixed display of headers while updating modules 2003-01-03 16:35:51 +00:00
moodler
14217044a5 Some little fixes 2003-01-02 15:25:51 +00:00
moodler
36b4f9852e buggy_referer is dead! Long live buggy_referer!
Should be fixed now.  As a bonus, I've removed all the uses of
HTTP_POST_VARS from all scripts.

All forms should use the new data_submitted() function to collect
form data (it does the match_referer thing internally now).

Much nicer.
2003-01-02 14:49:23 +00:00
moodler
5b4fd9c20a Allow phpinfo() debugging to occur even if Moodle isn't configured yet
(to help with configuration problems!).
2003-01-02 07:37:28 +00:00
moodler
1c0200e074 More little robustness things 2003-01-01 08:21:19 +00:00
moodler
50c4bd4145 More robustness, and some little bug fixes.
Also, database module now supports md5 passwords
2002-12-31 08:45:37 +00:00
moodler
5eda92d0e2 Little robustness fixes 2002-12-30 15:47:54 +00:00
moodler
47f1da80d0 More little fixups for robustness 2002-12-30 05:13:43 +00:00
moodler
9c9f7d7790 Various little fixes to remove warnings (usually about empty variables)
when error_reporting is turned up to 15 or so ... more of these to come ...
2002-12-29 17:32:32 +00:00
moodler
7e5e076adf No need for forcetables hack any more. Moodle can now detect whether
it has already been installed in the current database (by looking
for all the main tables) and do the right thing.  It doesn't matter now
if there are other tables in the database or not.
2002-12-24 05:39:45 +00:00
moodler
97485d0726 More database tweaks and improved access to forum search engine 2002-12-23 15:33:40 +00:00
moodler
99988d1a87 This version installs smoothly for me on PostgreSQL 2002-12-23 14:19:45 +00:00
moodler
ebc3bd2b24 Changes throughout Moodle to remove any reserved words from the
Moodle tables.

ie user -> userid in many tables, plus in user_students
   start -> starttime and end -> endtime

I've just done all this as carefully as I could ... I don't think
I missed anything but it's pretty intensive work and I'd be fooling myself
if I didn't think I'd missed a couple.

Note that this version should pretty much be able to bootstrap itself
using PostgreSQL now ... but this is untested
2002-12-23 09:39:26 +00:00
moodler
9fa49e22ab Many many changes lumped in here ... not finished yet either.
Basically all the Database functions are in lib/datalib.php
and the web functions are all in lib/weblib.php, so
moodlelib.php is much thinner than it was.

Data functions have been extended ... most old calls will
still work, but now many more SQL commands can be performed
using the datalib functions rather than using SQL.  I'm
currently moving through the whole tree replacing SQL
calls or at least concentrating them in one section of
mod/xxx/lib.php

Still working on forums, quizzes, surveys, resources.

The tree is currently not full working ... some things are
half-completed ... will resume tomorrow.
2002-12-20 14:44:14 +00:00
moodler
d5f48b1619 Preset the FULLME variable 2002-12-18 08:08:34 +00:00
moodler
ca3cf39ee1 Turn off time limits with big SQL commands ... some databases are really slow. 2002-12-14 18:33:37 +00:00
moodler
778c28671a Added new configuration setting "country" to set a default country
for the site.  If this is set then user menus are pre-selected.
eg when signing up or filling out profile after external authentication.
2002-12-14 08:18:18 +00:00
moodler
c21f835ac3 Don't even attempt to install the template module 2002-12-12 13:35:10 +00:00
moodler
e3305cc5d9 Better checks when comparing languages. Now highlights missing or
empty strings.  Quick check mode also flags strings when they exist
but are empty.  Larger form space to edit empty strings.
2002-12-12 03:33:12 +00:00
moodler
d7facad81e Modifications from Greg Barnett at Crown College to add more admins.
See http://bugs.moodle.org/bug.php?op=show&bugid=202
2002-12-11 14:59:37 +00:00