520 Commits

Author SHA1 Message Date
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
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
2fdb54b819 Fixed bug in table creation - (it was creating a null table!) 2003-02-25 03:53:50 +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
2b051f1c8e Changes to modify_database() so it works with string input 2003-02-24 09:36:15 +00:00
moodler
ee0e5d57e2 Two new functions for randomizing arrays 2003-02-24 09:34:10 +00:00
moodler
5a4d292bca Added changes to table_column from Petri Asikainen for Postgresql 7.3 2003-02-18 07:44:26 +00:00
moodler
c2a96d6b32 Fixes for the use of LIMIT in SQL for Postgres 7.3 (from Petri Asikainen) 2003-02-18 03:16:07 +00:00
moodler
dc1dc6e973 Added function to check everything on a page 2003-02-17 17:02:56 +00:00
moodler
811c88b32f Fix short column 2003-02-16 09:24:25 +00:00
moodler
3f3960656d Fixed link to picture file in print_picture_file 2003-02-11 01:53:10 +00:00
moodler
40f1246b14 Missing semicolon 2003-02-06 18:07:31 +00:00
moodler
73f8658c36 Provide the possibility that the format of a text is not defined properly 2003-02-05 12:41:59 +00:00
moodler
bcdfe14e02 Whoops, fixed some obvious bugs when getting slash arguments 2003-02-05 10:52:55 +00:00
moodler
eaa50dbc83 Removed some redundant code when looking for slash arguments (use me() function instead) 2003-02-05 10:48:13 +00:00
moodler
fced815cd7 Improved me() function 2003-01-30 15:52:38 +00:00
moodler
db11e52dec Allow tags for embedded objects 2003-01-28 03:55:55 +00:00
moodler
b35e8568ff Ignore all files and directories beginning with "." 2003-01-28 03:34:26 +00:00
moodler
a09b86a693 Use On and Off instead of 0 and 1 2003-01-28 02:28:17 +00:00
moodler
750ab759ed Slightly better robustness for notice() when there is no referer 2003-01-26 06:04:14 +00:00