Skip to content

Commit

Permalink
Fix to specify entire site/directory language string
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Mar 15, 2022
1 parent f5eccbb commit a7572fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion add.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ my $dirstr = [ $dir, $usersfile, 0, 0, undef ];
push(@dirs, $dirstr);
&htaccess_htpasswd::save_directories(\@dirs);

&redirect("index.cgi?dom=$in{'dom'}&added=1&type=".&urlize($tdir_escaped));
&redirect("index.cgi?dom=$in{'dom'}&added=1&site=".&urlize($in{'dir_def'})."&type=".&urlize($tdir_escaped));

2 changes: 1 addition & 1 deletion index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ my @dirs = &htaccess_htpasswd::list_directories();
$text{'index_title'}, "", "intro", 0, 1);
if ($in{'added'}) {
print &ui_alert_box(
&text("index_alert_added_desc",
&text($in{'site'} ? "index_alert_added_desc" : "index_alert_added_desc2",
"@{[&virtual_server::get_webprefix_safe()]}/virtual-server/list_users.cgi?dom=".&urlize($in{'dom'}),
$in{'type'}
),
Expand Down
1 change: 1 addition & 0 deletions lang/en
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ index_hdir=Entire website
index_find=Find Protected Directories
index_finddesc=Find other directories under $1 that have been protected manually, so that their allowed users can be managed.
index_alert_added_desc=You can control which users have access to $2 using <a href='$1'>Edit Users: Mail and FTP Users</a> page.
index_alert_added_desc2=You can control which users have access to $2 directory using <a href='$1'>Edit Users: Mail and FTP Users</a> page.
index_alert_added_title=Protection Enabled!

feat_name=Protected web directories
Expand Down

0 comments on commit a7572fb

Please sign in to comment.