3691 Commits

Author SHA1 Message Date
moodler
b39cadbfe7 Formatting fixes from Windows editor 2003-05-23 14:41:22 +00:00
moodler
020181047d Some hacks to stop the addition of blank lines on Windows machines during editing in the web forms. 2003-05-23 14:25:55 +00:00
moodler
0e3e960a33 New file for debugging purposes, simply shows phpinfo() 2003-05-21 09:50:17 +00:00
moodler
d805c3462e Removed the remote debugging functions.
I used to find these quite useful for helping people debug
configuration problems. I don't think they present a security
problem, but I can see there is the possibility that it can
be PERCEIVED as an issue, and I don't want to be responsible
for that, nor blamed for any break-ins (warranty or not).

So I'll find another way to do remote debugging.
2003-05-21 09:39:51 +00:00
moodler
779a4a8da4 Fixed up some of the headers during installation (remove logout links). 2003-05-19 13:12:27 +00:00
moodler
17ec8eb684 Remove unnecessary check (from a lazy copy/paste) 2003-05-19 03:03:34 +00:00
moodler
2563c5ef7b Improvements to trustworthiness of the registry form (for suspicious admins!)
Hashed password is no longer sent as a key, "secret" field is used instead.

HTML code is now more readable for the View Source crowd.  :-)
2003-05-17 05:34:49 +00:00
moodler
07b586eaa3 Use global variable for phpinfo debugging info 2003-05-17 03:10:22 +00:00
moodler
c39c66a5e8 Using new ini_get_bool function to work around a bug with ini_get where
the result is different for items set in htaccess
2003-05-17 02:05:10 +00:00
moodler
60a60432a1 Explicit casting to (bool) may help 4.2.3 2003-05-16 04:47:40 +00:00
moodler
ae384ef160 New configuration variable: secureforms (defaults to 'true')
Replaces the old $CFG->buggy_referer (reverses it, in fact) and can
now be set in the configuration page (no need for it in config.php).
2003-05-15 15:59:52 +00:00
moodler
d8eece23c9 Revamped "Assign Creators" page with the same code as admins and teachers 2003-05-14 16:27:27 +00:00
moodler
46a244605d Some little fixes (can only see them on a server with lots of users!) 2003-05-14 16:05:21 +00:00
moodler
e808d25f56 Fixed up "Assign teacher" page, and moved it to admin directory. 2003-05-14 15:58:48 +00:00
moodler
5a74165523 FIxed up function get_user() which now takes lots of parameters and
can be used all over the place.

Also, related fixes to "add admin" (MUCH better performance) and the user listings

More to come for "add teacher" and "add creator"
2003-05-14 15:19:04 +00:00
moodler
e9d3eca323 Re-order list for consistency 2003-05-13 16:37:34 +00:00
moodler
fa6a30b75c Added release and version information to registration 2003-05-13 07:35:18 +00:00
moodler
fe930cf3ca New feature - registration page. Registration should be working,
but I'm still working on the server-side stuff.

Look for the new button on the admin page.
2003-05-12 11:30:19 +00:00
moodler
be912538fa Tidy up of code, including removal of short php tags 2003-05-10 09:29:53 +00:00
moodler
232d36dffa Some minor cleanups to this page, including removal of short php tags 2003-05-10 09:21:02 +00:00
moodler
5867bfb50e New feature to manage installed code modules!
You can now hide/show individual activity modules and even delete them completely!

For example, if you hide the "choice" module, then all choice activities
will be hidden throughout the whole site, and "Choice" will not
appear on any "Add..." menu.

Deleting a module is a complete deletion of all data from the database.

If you want to try out the deletion on a real module, I suggest the
pgassignment module, since it will soon be deleted from CVS anyway
(because it's being replaced with workshop).

Look for "Manage modules" on the admin menu.
2003-05-09 17:24:17 +00:00
moodler
2fb7c49f17 Undoing an accidental check-in. These were some experiments trying to
solve a Windows problem (not successful yet).
2003-05-06 16:06:56 +00:00
moodler
1f33691c86 Cleaned up the initial setup process. It looks a bit smoother now.
Hopefully this is also the end of the occasional errors we keep
hearing about to do with never getting to setup the admin user.
(I think admin/site.php had a redirect that didn't always work).

The setup process is now much better at "trapping" you until it's all done.
2003-05-06 15:58:20 +00:00
moodler
068be67d83 Formatting fixes only 2003-05-05 08:31:04 +00:00
moodler
d7c8a46bc5 Don't throw errors when deleting old logs and unsent mail 2003-05-04 03:46:15 +00:00
moodler
984a8bf349 Two new language variables implemented.
langmenu  - turns the language menu on and off
langlist  - allows the admin to restrict and/or re-order the available language choices
2003-05-03 06:50:29 +00:00
moodler
f5e82bc7f4 Moved microtime_diff() to moodlelib 2003-04-27 08:13:45 +00:00
moodler
7aaedff8de Changed my mind about the default setting for loglifetime 2003-04-27 06:50:19 +00:00
moodler
f8bccb148a iNew configuration variable delete old logs - loglifetime 2003-04-27 06:41:53 +00:00
moodler
540bab47d4 Delete old logs is required 2003-04-27 06:21:15 +00:00
paca70
3399a22c9f Show adduser only when adding new user from moodle is posible. 2003-04-25 17:18:40 +00:00
paca70
44a334d874 Undoing needless change. 2003-04-19 19:09:01 +00:00
paca70
d61bf02f18 Works now also with $a->something 2003-04-19 17:45:50 +00:00
paca70
4dddd64b5f Hilite also empty stings. 2003-04-19 10:25:58 +00:00
moodler
bf3bc898ac Assigned $strsearchresults 2003-04-18 01:57:24 +00:00
moodler
dae73c05e9 New $CFG->admin directory can override the location of the admin
directory.

Useful because some web hosts use /admin for other things.
2003-04-10 13:46:52 +00:00
moodler
329f046798 Don't use session.path check when the server is in safe mode 2003-04-08 03:51:38 +00:00
moodler
49e16355c2 Improvements to display of users 2003-03-21 10:08:23 +00:00
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