95 Commits

Author SHA1 Message Date
moodler
5151ae66e3 Full paths when including pclzip bug 1139 2004-03-13 12:08:28 +00:00
moodler
5875b7d611 Undoing recent changes ... should be in a separate file 2004-02-20 14:16:07 +00:00
paca70
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
moodler
241f6f306b MOved the file icons into the proper place (at last) 2004-02-14 16:19:48 +00:00
moodler
ca31091b12 Uploading in course restricted by site setting ... 2004-02-10 09:00:24 +00:00
moodler
eef16119b9 Only editing teachers can see files 2004-01-17 05:39:29 +00:00
moodler
c0f2bc8462 Fixed bug 812 about editing text files with backslashes in them. 2003-12-09 08:15:34 +00:00
moodler
4511145165 Use filemtime not filectime 2003-12-08 13:31:14 +00:00
moodler
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
moodler
c79f9629ed Some extra explanation so that hitting "yes" on the restore screen isn't so scary! :-) 2003-08-23 15:47:57 +00:00
moodler
862810dc09 No need to call isteacher and isteacheredit, just isteacheredit will do. :-) 2003-08-16 16:14:25 +00:00
stronk7
3953f4bdc4 Now the "restore" option is showed to isteacheredit() teachers. 2003-08-16 11:46:54 +00:00
moodler
87002b0e9f Only creators can restore courses 2003-08-16 02:48:18 +00:00
moodler
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
moodler
1efcfce8a3 More missing strings 2003-08-05 03:25:16 +00:00
moodler
27c4094294 Fixed some missing strings that no-one picked up before! 2003-08-04 16:07:17 +00:00
stronk7
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
moodler
65c59e30b8 New restore link for admins so they can restore courses ... 2003-08-01 15:09:35 +00:00
moodler
70363f8819 Updated this link too 2003-07-09 04:56:04 +00:00
moodler
7d064d87ff Fixed a bug affecting the zipping of files within subdirectories,
patch from Robert Hetzel.
2003-06-19 13:12:34 +00:00
moodler
c4ad9158e3 More robust check for $CFG->backup_version 2003-05-25 12:14:15 +00:00
stronk7
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
moodler
fc613dff69 Directories are now made using make_upload_directory from moodlelib 2003-04-25 08:39:11 +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
70e5e91e9e Remove some old save_sessions 2003-03-04 09:01:26 +00:00
moodler
63dddf351a Better control over directory permissions: $CFG->directorypermissions 2003-01-20 14:04:06 +00:00
moodler
c897eac5e4 Some small robustness things, and a new style for quiz feedback text 2003-01-08 09:08:05 +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
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
moodler
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
moodler
fb964e0c78 Some robustness fixes. 2003-01-02 13:08:20 +00:00
moodler
04fa59d015 Use HTML editor for editing HTML files 2002-12-26 16:26:55 +00:00
moodler
62c13a2f3e Changed all references of %e to %d to fix strftime on Windows 2002-11-19 14:27:57 +00:00
martin
fedc147ef7 Moved some functions out to lib/moodlelib.php 2002-09-01 14:28:08 +00:00
martin
0c377177ed Improved header now contains directory trail, and I internationalised
all the texts (buttons etc)
2002-08-30 13:18:06 +00:00
martin
6e4c09db98 slasharguments wasn't being found (CFG not declared global) 2002-08-28 13:41:38 +00:00
martin
3f8247c2ea Changes to use a new configuration variable: CFG->slasharguments
If true, then display of user pictures or filenames will use the
method of providing arguments as "slash" arguments - this is much
better for caching, proxies, search engines etc.  Unfortunately
it doesn't seem to work on some PHP installations.

If false (the default), then a more compatible method is used
(ie usual way of passing parameters to scripts)
2002-08-26 09:48:00 +00:00
martin
8ce53f0f85 New CFG->zip and CFG->unzip valiables which specify programs to use
when zipping and unzipping files.  Unix only at this stage. (Zip interfaces
for Windows are much less standardised)
2002-08-18 15:26:04 +00:00
martin
6e40c33d32 Now properly sets and checks limits on file sizes 2002-08-07 08:24:38 +00:00
martin
6d6319c061 Upload works again ... 2002-08-07 03:45:22 +00:00
martin
6b1746806c Misc small changes while I was working on assignments 2002-08-04 16:20:30 +00:00
martin
7a302afc5f Slight changes to userdate() function. It now uses gmstrftime() instead of
gmdate to format times, thus allowing it to take advantage of locale, if set,
to print dates in the appropriate language.  Several userdate invocations
had to be changed, though, to use the different formatting specs.
2002-07-02 07:02:28 +00:00
martin
873960de8c Changes related to timezone display. Datetime display now uses userdate()
which itself uses the USER variable timezone to alter the displayed time.
2002-06-05 03:15:30 +00:00
martin
ce20f6cfb3 Removed log entry for now 2002-05-31 13:13:42 +00:00
martin
f9903ed0a4 Initial revision 2001-11-22 06:23:56 +00:00