441 Commits

Author SHA1 Message Date
moodler
580f2fbc07 New function to detect visibility of a single module, and
use of this function when displaying list of forums
2003-04-25 05:24:29 +00:00
moodler
047d30d1eb MySQL code (etc) to convert all usernames to lowercase ... does a lot more
checking than it really needs to, since MySQL is not case sensitive
2003-04-25 03:54:21 +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
e40488f80c routines to convert postgeruser to lowercase. 2003-04-24 18:48:09 +00:00
paca70
1dea7ebb04 global $CFG was missing...? 2003-04-24 17:38:20 +00:00
paca70
dbe0be0059 Added missing $ 2003-04-24 17:21:54 +00:00
stronk7
7cfb83477c Modified to obtain the visible property too. To use it when showing the list
of instances of every mod (bug #364)
2003-04-24 15:17:43 +00:00
moodler
2a40936834 Mark the hidden ones for teachers 2003-04-23 17:25:20 +00:00
moodler
13df5aeef3 Rebuild course modinfo caches to include the visible variable 2003-04-23 17:02:24 +00:00
moodler
7acaa63d09 Tidy up a bit 2003-04-23 16:57:35 +00:00
moodler
feffa4e695 chmod after mkdir (just in case) 2003-04-23 16:51:26 +00:00
stronk7
cf055081ef Changed the navmenu function to show only visible-mods on the
jumpmenu. Everything is showed when the user is a teacher.
2003-04-23 16:32:11 +00:00
stronk7
00d26a208b Changed the get_course_mods function to obtain the visible property too. 2003-04-23 16:09:56 +00:00
paca70
7d6cac54f3 New string conversion function to help with multibyte-locales 2003-04-21 16:39:43 +00:00
moodler
b369ff55fe Whoops, chmod not chown 2003-04-21 07:26:23 +00:00
moodler
718ad19f47 trying to fix up old file permissions 2003-04-21 07:21:33 +00:00
paca70
cefc7e817e Fix for postgresql column adding( $oldfield is always '"$oldfield"') 2003-04-18 20:50:42 +00:00
moodler
1acfbce5b6 Hide/show individual activities in any section
Code submitted by Eloy Lafuente (thanks!) for 1.0.8 ... I hand-merged it
into 1.0.9.
2003-04-14 15:11:09 +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
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
e64984a0bb Modifications to allow Moodle files management page to use PclZip
instead of external zip programs.

To use the internal PclZip, the config variables "zip" and "unzip"
must be left blank.

Code for PclZip integration originally from Robert Hetzel, though
I've expanded it and modified it a lot.

The zip files seem compatible with itself and Windows XP, but I had a
compatibility problem trying to unzip a PclZip file using Zip 2.3 on Linux
(directories are unpacked as empty files)
2003-04-06 05:53:47 +00:00
moodler
8ef3483b60 Added Version 1.3 of PclZip to the distribution 2003-04-06 05:48:56 +00:00
moodler
ef49e5c301 addslashes to string used for javascript link 2003-04-02 07:24:42 +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
moodler
0d0baabf2c Fixed a missing global $CFG declaration. 2003-03-30 13:25:49 +00:00
moodler
2d0b30a028 What was I thinking? This is much cleaner (and no duplicates). 2003-03-29 04:08:51 +00:00
moodler
adaf39283c Changes to activate the "force subscribe" option on the Site News forum.
By default it is OFF, but if it is turned on, then site news is emailed
to ALL enrolled students and ALL current teachers.
2003-03-29 03:39:56 +00:00
moodler
075a591656 Better regular expresssion for detecting URLs at the very start of a text.
I don't know what the old one thought it was doing!  :-)
2003-03-26 07:33:26 +00:00
moodler
264d4e0b9a Added two new indexes on log table to help speed it up.
See Greg's note in bug 113
2003-03-26 02:17:46 +00:00
paca70
f5cdd4d133 Corrected typo 2003-03-24 13:15:48 +00:00
moodler
e384fb7b73 Can now count a search of users 2003-03-21 10:10:21 +00:00
moodler
c750592ac4 Added a search form to the "edit users" admin page yay! 2003-03-21 09:42:42 +00:00
paca70
509139373e Fixed incorrect comparison. Peter Paluch pointed this out. 2003-03-15 18:26:46 +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
a4ef9df2d7 Initial version from Les Kopari - les_kopari@yahoo.com 2003-03-14 08:22:37 +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
gregb_cc
c0f728ba9e code formatting change: switched from alternative syntax to using {} 2003-03-12 21:40:47 +00:00
gregb_cc
6908193151 speed improvement in smilie_replace. It is now almost as fast (within 5-10%) of
the version that used global smilie definitions.
2003-03-12 21:37:05 +00:00
gregb_cc
617778f2d3 Added benchmark and test for replace_smilies 2003-03-12 20:36:55 +00:00
moodler
c9082a8c2f Integrated the default redirect message delay from Greg B 2003-03-12 07:44:29 +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
2ea9027bc4 Small cleanup of smilie replacement.
This change removes the smilie variable assignment from the global namespace.
This change retains the original user input as the alt text.
The main reason for this change is to make it possible for me to use my
make_class function on weblib.php (still need to do something about the defines
though).
2003-03-12 03:42:44 +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
ac234d0262 Tidied up and rearranged a little 2003-03-10 14:02:12 +00:00
moodler
76a359ba93 Added something for Apache 2 (to make 'slasharguments' work)
<IfDefine APACHE2>
    AcceptPathInfo on
</IfDefine>
2003-03-10 13:39:56 +00:00
moodler
9a9a2907c2 Add a target to the "made with moodle" link to avoid confusing students 2003-03-07 15:09:12 +00:00
moodler
31ce4b538c Fixed quotes on column 2003-03-03 17:46:53 +00:00