# Dev-Editor's main program
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2010-12-23
+# Last modified: 2010-12-24
#
# Copyright (C) 1999-2000 Roland Bluethgen, Frank Schoenmann
# Copyright (C) 2003-2009 Patrick Canterino
my $cgi = new CGI;
my $command = $cgi->param('command') || 'show';
-my $file = $cgi->param('file') || '/';
+my $file = $cgi->param('file') || $config->{'startdir'} || '/';
my $curdir = $cgi->param('curdir') || '';
my $newfile = $cgi->param('newfile') || '';
$config->{'fileroot'} = $new_conf->{'fileroot'} if($new_conf->{'fileroot'});
$config->{'httproot'} = $new_conf->{'httproot'} if($new_conf->{'httproot'});
+ $config->{'startdir'} = $new_conf->{'startdir'} if($new_conf->{'startdir'});
$config->{'forbidden'} = $new_conf->{'forbidden'} if(defined $new_conf->{'forbidden'});
$config->{'disable_commands'} = $new_conf->{'disable_commands'} if(defined $new_conf->{'disable_commands'});