git.p6c8.net
/
devedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
file_read() is now able to open a file in binary mode (maybe we will need it)
[devedit.git]
/
modules
/
Command.pm
diff --git
a/modules/Command.pm
b/modules/Command.pm
index 2d46cc8146c08070d1ec6bc5a3eafa52167b1c28..8ffc7657a7d06c3ca44887281a2578feacde7201 100644
(file)
--- a/
modules/Command.pm
+++ b/
modules/Command.pm
@@
-6,7
+6,7
@@
package Command;
# Execute Dev-Editor's commands
#
# Author: Patrick Canterino <patrick@patshaping.de>
# Execute Dev-Editor's commands
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-01-2
1
+# Last modified: 2005-01-2
4
#
use strict;
#
use strict;
@@
-126,7
+126,7
@@
sub exec_show($$)
$udtpl->read_file($config->{'templates'}->{'dirlist_up'});
$udtpl->fillin('UPPER_DIR',$upper_path);
$udtpl->read_file($config->{'templates'}->{'dirlist_up'});
$udtpl->fillin('UPPER_DIR',$upper_path);
- $udtpl->fillin('DATE',encode_entities(strftime($config->{'timeformat'},localtime($stat[9]))));
+ $udtpl->fillin('DATE',encode_entities(strftime($config->{'timeformat'},
($config->{'use_gmt'}) ? gmtime($stat[9]) :
localtime($stat[9]))));
$dirlist .= $udtpl->get_template;
}
$dirlist .= $udtpl->get_template;
}
@@
-374,7
+374,7
@@
sub exec_endedit($$)
if(file_save($physical,\$content))
{
if(file_save($physical,\$content))
{
- #
Saving of the file was successful
!
+ #
The file was successfully saved
!
return devedit_reload({command => 'show', file => $dir});
}
return devedit_reload({command => 'show', file => $dir});
}
@@
-464,7
+464,7
@@
sub exec_mkdir($$)
# exec_upload()
#
# exec_upload()
#
-#
Upload a file
+#
Process a file upload
#
# Params: 1. Reference to user input hash
# 2. Reference to config hash
#
# Params: 1. Reference to user input hash
# 2. Reference to config hash
@@
-921,7
+921,8
@@
sub exec_about($$)
$tpl->fillin('PID',$$);
$tpl->fillin('PID',$$);
- # Check if the functions getpwuid() and getgrgid() are available
+ # The following information is only available on systems supporting
+ # users and groups
if($users)
{
if($users)
{
patrick-canterino.de