moodler
b947c69a71
Cleaned up get_string for language strings - slicker now
...
Added new feature: if a string "parentlanguage" exists then that
language will be tried before defaulting to English.
Useful for dialects or other languages that are similar.
For example, all the Spanish translations can default to "es"
2003-06-12 03:27:24 +00:00
moodler
bb515027b5
The single quotes caused problem on the rare occasions that these
...
unset strings were being written to the database
2003-05-24 02:34:29 +00:00
moodler
3ee236820a
Some fixes for check_gd_version -- please test this for me on every server you have!
2003-05-19 03:27:13 +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
5c219ea46d
Added hyphen (-) to the list of allowed characters in a filename
2003-05-16 06:08:42 +00:00
moodler
581d7b4959
Fixes for isadmin()
2003-05-05 11:38:54 +00:00
moodler
eb347b6b68
Fixes to improve the password recovery process. There is now a
...
confirmation step required before the password is changed and sent.
Also, many of the email texts have been cleaned up.
TRANSLATORS: check your texts in moodle.php starting with "email.."
2003-05-04 03:00:52 +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
stronk7
61ae5d36ca
Modified the userdate() function. No changes needed when invoking it.
...
Added a new parameter (fixday->default true->old behavior) to avoid
formatting days when invoked with false value.
2003-05-02 09:37:41 +00:00
gregb_cc
aa0959690c
fixed isadmin so that it checks once on each page view if the user is an admin
...
fixed check_gd_version to properly identify bundled gd versions (old
check_gd_version was returning 0 instead of 2 for bundled gd).
2003-05-01 23:12:05 +00:00
moodler
f5e82bc7f4
Moved microtime_diff() to moodlelib
2003-04-27 08:13:45 +00:00
paca70
1e22bc9c04
Conver usernames to lowercase for internal use. This prevent duplicate users
...
when using external authentication and posgresql.
2003-04-24 20:06:40 +00:00
paca70
dbe0be0059
Added missing $
2003-04-24 17:21:54 +00:00
moodler
feffa4e695
chmod after mkdir (just in case)
2003-04-23 16:51:26 +00:00
paca70
7d6cac54f3
New string conversion function to help with multibyte-locales
2003-04-21 16:39:43 +00:00
moodler
bc700e6559
New function swapshuffle_assoc
2003-04-10 13:45:07 +00:00
moodler
aa6fbca550
Use the cached admin bit if it's there!
...
(saves one database access per editable activity on the course page!) :-/
2003-04-07 15:30:34 +00:00
moodler
8a205861e0
Added a robustness check for USER->id
2003-04-01 02:38:31 +00:00
moodler
ffb410df03
Sorry, Petri, but we need to undo these changes, because:
...
- they could break accounts in existing installations
- strtolower can corrupt strings in multibyte languages
Is it really a problem that usernames are case sensitive on PostgreSQL?
2003-04-01 02:14:16 +00:00
paca70
b398d5ee2a
Use always only lowercase version of username.
...
When using authentication module (ldap, smb, pop etc...) and postgres-database multiple moodle
users were created for usernames like 'Username' 'username' 'userName'
2003-03-31 17:05:52 +00:00
paca70
f5cdd4d133
Corrected typo
2003-03-24 13:15:48 +00:00
paca70
e582b65e30
Fixed logic error.
...
Now also first time users can be course creators.
2003-03-14 21:34:39 +00:00
moodler
9d5b689c8a
Added vim commands at the bottom of the file to try it out
2003-03-14 07:55:22 +00:00
moodler
08c17336a7
Fixed $USER and $SESSION to be pointers to the real $_SESSION
...
variables, so there's no longer a need for save_session (thanks,Petri)
2003-02-27 02:38:55 +00:00
moodler
d92a53d182
No need for ismainteacher() ... it's enough to check that the user is
...
a teacher in a course, and a creator.
2003-02-26 05:55:31 +00:00
moodler
0ca1825cab
Tidied up some of Petri's code :-/
2003-02-25 03:46:06 +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
moodler
ee0e5d57e2
Two new functions for randomizing arrays
2003-02-24 09:34:10 +00:00
moodler
b35e8568ff
Ignore all files and directories beginning with "."
2003-01-28 03:34:26 +00:00
moodler
9f44d972c7
Add slashes to data pulled out of external source, just in case O'Brien logs in :-)
2003-01-22 01:55:54 +00:00
moodler
2e6d42735f
Added new configuration value $CFG->directorypermissions to set the
...
permissions for new directories created in dataroot
2003-01-20 14:03:11 +00:00
moodler
c9d4e6da89
Remove old doclang variable
2003-01-19 12:37:56 +00:00
moodler
3db3acfb99
Instead of using doclang, use $SESSION->lang, and make it override other
...
language settings. This should fix documentation display, but also will
be how setting registration languages and login languages works
2003-01-19 12:32:55 +00:00
moodler
fe2874294c
If we create a directory, then chmod it to protect the contents.
2003-01-19 05:54:08 +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
2c104c0152
Fixed redirection when user not completed yet in some instances when
...
using external authentication
2003-01-14 14:54:45 +00:00
moodler
94e3411897
Slightly more robust function
2003-01-13 02:42:57 +00:00
moodler
03c17ddfec
Fix for dates (the last?)
2003-01-13 02:37:47 +00:00
moodler
3db75c62fc
Fix when making timestamps from web selector
2003-01-10 05:41:20 +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
ce78926df0
Small robustness fixes
2003-01-06 13:55:37 +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
70d4cf8267
Ah!! At last, the dreaded off-by-one date bug, squashed.
2003-01-03 16:58:37 +00:00
moodler
14217044a5
Some little fixes
2003-01-02 15:25:51 +00:00
moodler
ac5d88ebe9
Ignore guest when checking imcomplete users
2003-01-02 10:32:51 +00:00
moodler
0c106cd3ab
Don't try to display docs files if they don't exist.
2003-01-01 12:03:15 +00:00
moodler
346b1a2483
Tweaks
2003-01-01 06:40:31 +00:00
moodler
808a3baaf8
If a user has authenticated via external authentication, then FORCE them
...
to fill out the user profile form (is they can't do anything else until
this is done)
2002-12-30 15:30:05 +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
cae7436602
Use session-specified language if possible
2002-12-29 16:26:44 +00:00