Commit graph

11271 commits

Author SHA1 Message Date
moodler
9b74055f4b Merged pathinfo fix from stable 2004-11-04 07:00:12 +00:00
moodler
d491049d2e Merged from stable 2004-11-03 02:02:15 +00:00
gustav_delius
cdef00de3e Merged from STABLE. Fixed a bug that allowed teachers to upload images of arbitrary size 2004-10-30 22:51:12 +00:00
defacer
21fca825f2 Merging Martin's removal of the <style> allowed tag to HEAD. I tagged the
other version as MERGED, too.
2004-10-29 17:17:57 +00:00
defacer
89a5baaba1 Major cleanups (removed things no longer used by the new backup).
Microsoft must surely be jealous (do more with less).

Fixed a bug: if somehow the block weights in a page become discontinuous,
moving things up and down will slowly improve the situation until it's back
to normal again. It would just fail without notice before.

Fixed a bug: you could add multiple instances from a block that didn't
allow it if, after adding the first, you just hit Refresh in your browser.

Fixed a typo: missing / inside filepath
2004-10-29 16:56:59 +00:00
gustav_delius
2f3b54ae54 Put back call to forum_add_student in enrol_student() that Martin took out by mistake in revision 1.355 2004-10-26 19:53:48 +00:00
moodler
20b57d6aac Fixed minor JS bug in printing out editor configuration 2004-10-26 08:43:41 +00:00
moodler
2a003a903c Changes in the way optgroups are handled for XHTML compatibility 2004-10-26 07:42:08 +00:00
moodler
ccc62c6e42 Fixed typo ... bug 2124 2004-10-25 15:25:58 +00:00
dhawes
a9c75a9caf fix to allow instance configuration for blocks that allow multiple but have been set by the local admin to only display one instance per page 2004-10-25 03:20:02 +00:00
dhawes
27ec21a0f6 some quote cleanup and some spacing added 2004-10-24 15:51:25 +00:00
paca70
40869b2ead Prevent errors if lang/$lang/moodle.lib does not exists 2004-10-22 11:14:42 +00:00
defacer
9b4b78fd6a Da monster-commit of blocks version 2!
Code based on the work of Daryl Hawes for the blog module. Thanks, Daryl!

Please test the hell out of it as it's sure to have issues that need to be
ironed out.
2004-10-19 21:04:28 +00:00
moodler
169fc66a15 Merged small speed improvements from STABLE 2004-10-18 06:00:26 +00:00
stronk7
76e2bc3b77 Strip control chars when unzipping.
Merged from MOODLE_14_STABLE
2004-10-17 23:44:16 +00:00
stronk7
261dac37a6 Now Editor's FileManager is using central zip and unzip functions.
NOTE: What is the courseimages.php file, I haven't tested it because
I didn't find how to do it!

Merged from MOODLE_14_STABLE
2004-10-17 23:11:14 +00:00
stronk7
a095707760 Small change in condition...
Merged from MOODLE_14_STABLE
2004-10-17 22:36:03 +00:00
stronk7
1c1520c5bb Included some filename transformations to work like info-zip.
Directory traversal protection added.

Working under Win32, MacOS X and BSD (and rest of Unix, I hope).

Patch file from Petr. Thanks!

Merger from MOODLE_14_STABLE
2004-10-17 22:28:53 +00:00
stronk7
e941292002 Now pclzip generated files are compatible with info-zip
(linux, macos x, win32, bsd...) based extractors. This
include command-line flavours, stuffit and so on...

Thanks to Petr!!

We have to remember to apply this patch when we update the
pclzip in th future (if their authors don't include it).

Merged from MOODLE_14_STABLE
2004-10-17 13:36:13 +00:00
stronk7
8d67a044b7 Added the optional showstatus parameter to unzip_file() to avoid
sending any output if desired.

Merged from MOODLE_14_STABLE
2004-10-16 16:33:40 +00:00
stronk7
7e6b7f8da2 Latest patches from skodak included in param functions.
Simple and double quotes are out now.
Full paths in unzip are now hidden too.

Please test it. It could have some pending changes yet!

And please, don't forget to move the floating tag in STABLE
when changes are done there!! It causes a lot of problems
when trying to merge later from STABLE to HEAD again.

Merged from MOODLE_14_STABLE.
2004-10-16 11:39:52 +00:00
julmis
955dbfaeef Adding hide buttons feature. 2004-10-16 09:11:00 +00:00
moodler
53f39b328c Merged prettier error from stable 2004-10-15 08:47:12 +00:00
paca70
f894a7914a auth_iscreator return now three posible values:
null = not supported (Dont change user status)
false =  user not creator
true = user is creator
2004-10-13 07:16:24 +00:00
skodak
bfce67a179 merged from 14_STABLE, the merging is getting a bit messy :-O
added sesskey to update_module_button(), error reported in moodle forum d=13835;
I made a quick fix - it seemed critical to me
2004-10-12 18:47:39 +00:00
stronk7
76dc1ad2cf Under Win32, we need backslashes in paths. Now it works!!
Merged from MOODLE_14_STABLE
2004-10-10 23:25:57 +00:00
stronk7
6cf2fe0336 Added some needed strings.
Merged from MOODLE_14_STABLE
2004-10-10 22:48:59 +00:00
stronk7
48eeac7963 Delete some debug info.
Merged from MOODLE_14_STABLE
2004-10-10 22:00:30 +00:00
stronk7
b3020784d6 Central unzip_file() function included:
- Supports both internal and external zip execution.
    - Displays the results of the execution.
    - All Petr's patched added.
    - External zip execution in Win32 supported.
Please TEST, TEST, TEST.

Merged from MOODLE_14_STABLE
2004-10-10 21:46:13 +00:00
stronk7
ef1e97c7ec Now the zip_files() function is working better:
- More checks are done
- Non existing files are out
- Both internal an external are supported and protected
- All Petr's patchs applied
- Included support to Win32 external zip.

TODO: Create a paralel unzip_file() function
      Use this functions in all the FileManager scripts

THOUGHT: External zip seems to work always adding files to
      zip file if it exists, where PclZip resets the file.
      Perhaps a rm (or delete) should be included in the
      command chain. Analyse it!!

Merged from MOODLE_14_STABLE
2004-10-10 01:07:47 +00:00
stronk7
5b224948aa course/view.php is using sesskey
(changes in blocks done, please check them)

Merged from MOODLE_14_STABLE
2004-10-09 20:16:05 +00:00
stronk7
d99ceac20f course/index.php is using sesskey.
Merged form MOODLE_14_STABLE
2004-10-09 13:22:59 +00:00
stronk7
abf45bedf0 course/category.php is using sesskey
Merged from MOODLE_14_STABLE
2004-10-08 16:52:20 +00:00
moodler
d7d21c383c Minor changes for XHTML compatibility 2004-10-08 13:58:33 +00:00
moodler
3d90760aa2 Just added support for "site" format, for completeness. 2004-10-08 13:46:55 +00:00
moodler
3af575075c Merged new stuff from stable 2004-10-08 06:11:17 +00:00
moodler
6d8f47d64f Checked in something that hadn't been 2004-10-08 06:06:03 +00:00
stronk7
230478bf5e PclZip library upgraded to 2.1 2004-10-07 14:10:03 +00:00
dhawes
761155628f Additional phpdoc comments for get_string and print_string functions - example usage added and argument types documented 2004-10-04 16:44:54 +00:00
julmis
c802303cc4 Making code more xhtml compatible 2004-10-02 17:09:39 +00:00
moodler
975a33e7e7 OK, aligning this to the same as STABLE ... there's been a bit of a mixup
about this file.  It's now standard with the single addition of a constructor
to set this->PluginDir, and this is now used for the language file includes.
2004-10-02 13:11:57 +00:00
julmis
a21daa9803 Fixed insertImage routine for gecko based browser
- use createElement instead of insertimage
- Added title automatically from alt value
2004-10-02 09:51:14 +00:00
moodler
14444c5ef0 Fixing Shane's last checkin 2004-10-02 03:20:16 +00:00
ikawhero
24c54604d3 Merged changes from stable branch 2004-10-02 00:09:24 +00:00
moodler
7228f7963f Merged sesskey stuff from stable 2004-10-01 15:06:39 +00:00
moodler
e0d346ff91 Added optional_param and required_param just to get it on the plate 2004-10-01 12:09:52 +00:00
ikawhero
5c4b19d38d Bug in path for language strings fixed 2004-10-01 04:51:05 +00:00
moodler
decec3da38 Merged parameter cleaning from stable 2004-10-01 02:43:09 +00:00
moodler
3f1d5c1182 Clean error messages (merged from stable) 2004-10-01 02:25:02 +00:00
moodler
b0542a1e20 Jump -> go on popup menus 2004-09-30 10:52:48 +00:00