diff --git a/add.cgi b/add.cgi index a4e8eb4..e09fee8 100755 --- a/add.cgi +++ b/add.cgi @@ -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)); diff --git a/index.cgi b/index.cgi index 35acb4e..7cfa3d9 100755 --- a/index.cgi +++ b/index.cgi @@ -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'} ), diff --git a/lang/en b/lang/en index 2c2f61b..e63d939 100644 --- a/lang/en +++ b/lang/en @@ -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 Edit Users: Mail and FTP Users page. +index_alert_added_desc2=You can control which users have access to $2 directory using Edit Users: Mail and FTP Users page. index_alert_added_title=Protection Enabled! feat_name=Protected web directories