# Execute Dev-Editor's commands
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-01-20
+# Last modified: 2005-01-24
#
use strict;
$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->parse_if_block('gmt',$config->{'use_gmt'});
+ $udtpl->fillin('DATE',encode_entities(strftime($config->{'timeformat'},($config->{'use_gmt'}) ? gmtime($stat[9]) : localtime($stat[9]))));
$dirlist .= $udtpl->get_template;
}
$dtpl->parse_if_block('readable',-r $phys_path && -x $phys_path);
$dtpl->parse_if_block('users',$users && -o $phys_path);
- $dtpl->parse_if_block('gmt',$config->{'use_gmt'});
-
$dirlist .= $dtpl->get_template;
}
$ftpl->parse_if_block('too_large',$config->{'max_file_size'} && $stat[7] > $config->{'max_file_size'});
- $ftpl->parse_if_block('gmt',$config->{'use_gmt'});
-
$ftpl->parse_if_block('users',$users && -o $phys_path);
$dirlist .= $ftpl->get_template;
$tpl->parse_if_block('dir_writeable',$dir_writeable);
$tpl->parse_if_block('filter',$filter2);
+ $tpl->parse_if_block('gmt',$config->{'use_gmt'});
}
else
{
if(file_save($physical,\$content))
{
- # Saving of the file was successful!
+ # The file was successfully saved!
return devedit_reload({command => 'show', file => $dir});
}
# exec_upload()
#
-# Upload a file
+# Process a file upload
#
# Params: 1. Reference to user input hash
# 2. Reference to config hash
$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)
{