X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/5a4bc87c675dd76627a0d413707139f2e0530eea..03d83644ce2d958fe3e0466fa272c67f0566f4ab:/devedit.pl?ds=sidebyside diff --git a/devedit.pl b/devedit.pl index a525ec0..7a27e58 100644 --- a/devedit.pl +++ b/devedit.pl @@ -6,7 +6,7 @@ # Dev-Editor's main program # # Author: Patrick Canterino -# Last modified: 2004-01-16 +# Last modified: 2004-02-06 # use strict; @@ -27,6 +27,7 @@ use constant CONFIGFILE => 'devedit.dat'; # Read the configuration file my $config = read_config(CONFIGFILE); +error_template($config->{'tpl_error'}); # Yes, I'm lazy... # Read the most important form data @@ -64,7 +65,7 @@ if($newfile ne '') unless(($new_physical,$new_virtual) = check_path($config->{'fileroot'},$dir)) { - abort("You aren't allowed to create files and directories above the virtual root directory."); + abort($config->{'err_creat_ar'}); } # Create the physical and the virtual path @@ -105,7 +106,7 @@ if(-e clean_path($config->{'fileroot'}."/".$file)) } else { - abort("Accessing files and directories above the virtual root directory is forbidden."); + abort($config->{'err_above_root'}); } } else