Commit Graph

62 Commits

Author SHA1 Message Date
6f61241cfb Merged fixes from stable 2004-11-10 15:48:48 +00:00
8e73aa9705 Copied from STABLE 2004-11-02 12:45:04 +00:00
ccfdf3f2cf merged from 14_STABLE -
removed incorrect global $USER
2004-10-28 14:18:33 +00:00
e101802eb5 Added sesskey to more actions + bug fix when detecting directory traversals.
From skodak!

Merged from MOODLE_14_STABLE
2004-10-24 23:57:25 +00:00
2515cd169b Now everything in files/index.php is using sesskey.
Patch submmited by skodak.

Merged from MOODLE_14_STABLE
2004-10-24 00:26:00 +00:00
ae9f68625e Deleted some unsused strings.
Merged from MOODLE_14_STABLE
2004-10-10 22:46:57 +00:00
343fc72785 Now this script is using the new, central unzip_file() function.
TEST, TEST!!!

Merged from MOODLE_14_STABLE
2004-10-10 21:58:43 +00:00
1a11dfd14a iNow FileManager is using the new, central zip_files() function.
Only tested under MacOS X. It should support all the new
features of that function (Win32 external zip, imporved security...).

TODO: Create the unzip_file() function and use it here too!!
      Apply this changes to the rest of filemanagers (coursefiles.php...)
      TEST, TEST, TEST...!!

Merged from MOODLE_14_STABLE
2004-10-10 01:20:59 +00:00
ad4e0fcc30 New version of this. Merged from MOODLE_14_STABLE.
It won't work until moodlelib.php was merged!! Tons of conflicts!!
2004-10-07 14:18:43 +00:00
8ef1e12f74 Merged fix for unclean oldname from renaming ... from stable. 2004-09-28 08:05:18 +00:00
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
3bb4d8440b Integration of new centralised upload code with files/index.php
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-59
    2004-09-15 02:41:00 GMT
    Penny Leach <penny@catalyst.net.nz>
    upload/virus integration with course files

Full logs:

Revision: moodle--eduforge--1.3.3--patch-59
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Wed Sep 15 14:41:00 NZST 2004
Standard-date: 2004-09-15 02:41:00 GMT
Modified-files: files/index.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-59
Summary: upload/virus integration with course files
Keywords:
2004-09-15 02:43:40 +00:00
9a58f7cb85 towards XHTML compliance 2004-09-12 21:43:59 +00:00
206a507520 MErged from CVS 2004-08-30 08:44:00 +00:00
222ac91bc9 removed unnecessary calls to get_site() 2004-08-29 14:15:40 +00:00
ffae3d4615 Fixing Bug 812 and problems with slashes when editing text and HTML files
Again.
2004-08-04 16:26:44 +00:00
16a5602cd7 1. Directory Resources now support sub directories
2.  Subdirectories in File Manager now display their total size
2004-05-16 08:52:32 +00:00
5151ae66e3 Full paths when including pclzip bug 1139 2004-03-13 12:08:28 +00:00
5875b7d611 Undoing recent changes ... should be in a separate file 2004-02-20 14:16:07 +00:00
94b9a1ca02 First changes for creating help-translation system.
http://site/files/index.php?fi=lang
shows now selected language "lang" files.
2004-02-19 10:13:07 +00:00
241f6f306b MOved the file icons into the proper place (at last) 2004-02-14 16:19:48 +00:00
ca31091b12 Uploading in course restricted by site setting ... 2004-02-10 09:00:24 +00:00
eef16119b9 Only editing teachers can see files 2004-01-17 05:39:29 +00:00
c0f2bc8462 Fixed bug 812 about editing text files with backslashes in them. 2003-12-09 08:15:34 +00:00
4511145165 Use filemtime not filectime 2003-12-08 13:31:14 +00:00
fdfc6269ef Backupdata is now always created if it is needed.
Navigation is a little neater (no longer puts a link on the current folder)
2003-09-16 06:15:01 +00:00
c79f9629ed Some extra explanation so that hitting "yes" on the restore screen isn't so scary! :-) 2003-08-23 15:47:57 +00:00
862810dc09 No need to call isteacher and isteacheredit, just isteacheredit will do. :-) 2003-08-16 16:14:25 +00:00
3953f4bdc4 Now the "restore" option is showed to isteacheredit() teachers. 2003-08-16 11:46:54 +00:00
87002b0e9f Only creators can restore courses 2003-08-16 02:48:18 +00:00
55e4b5f97d Some cleanups of the admin page to make it
- more explanatory
  - more expandable

Apologies for the lost muscle memories, but I think this
will work better in the long run.
2003-08-10 08:01:14 +00:00
1efcfce8a3 More missing strings 2003-08-05 03:25:16 +00:00
27c4094294 Fixed some missing strings that no-one picked up before! 2003-08-04 16:07:17 +00:00
2bd19d60cf Restore option allowed to teachers too.
The course_id is passed to restore.php as a parameter
2003-08-02 10:08:57 +00:00
65c59e30b8 New restore link for admins so they can restore courses ... 2003-08-01 15:09:35 +00:00
70363f8819 Updated this link too 2003-07-09 04:56:04 +00:00
7d064d87ff Fixed a bug affecting the zipping of files within subdirectories,
patch from Robert Hetzel.
2003-06-19 13:12:34 +00:00
c4ad9158e3 More robust check for $CFG->backup_version 2003-05-25 12:14:15 +00:00
476fd9c716 Minor changes to support the "restore" option with zip files. Only
showed if the backup utility is installed ($CFG->backup_version exists)
and the user is an admin. Sent email to Martin to say him this !!
2003-05-14 23:09:34 +00:00
fc613dff69 Directories are now made using make_upload_directory from moodlelib 2003-04-25 08:39:11 +00:00
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
70e5e91e9e Remove some old save_sessions 2003-03-04 09:01:26 +00:00
63dddf351a Better control over directory permissions: $CFG->directorypermissions 2003-01-20 14:04:06 +00:00
c897eac5e4 Some small robustness things, and a new style for quiz feedback text 2003-01-08 09:08:05 +00:00
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
3b7c1de95e Changes to improve robustness of uploads, and make things compatible
with PHP 4.3.0.  Also some translation fixes with upload strings.
2003-01-05 04:20:32 +00:00
36b4f9852e buggy_referer is dead! Long live buggy_referer!
Should be fixed now.  As a bonus, I've removed all the uses of
HTTP_POST_VARS from all scripts.

All forms should use the new data_submitted() function to collect
form data (it does the match_referer thing internally now).

Much nicer.
2003-01-02 14:49:23 +00:00
fb964e0c78 Some robustness fixes. 2003-01-02 13:08:20 +00:00
04fa59d015 Use HTML editor for editing HTML files 2002-12-26 16:26:55 +00:00
62c13a2f3e Changed all references of %e to %d to fix strftime on Windows 2002-11-19 14:27:57 +00:00