1. Just edit the file "webadmin/admin_adduser_form2.html", before the last "</script>", add the following script:
- Code: Select all
<% if _GET["username"] == nil and _GET["domain"] == "domain1" then %>
$("protocol_ftp").checked = true;
$("protocol_http").checked = true;
$("protocol_ftps_tls").checked = false;
$("protocol_ftps_ssl").checked = false;
$("protocol_https").checked = false;
$("protocol_ssh").checked = false;
<% elseif _GET["username"] == nil and _GET["domain"] == "domain2" then %>
$("protocol_ftps_tls").checked = true;
$("protocol_ftps_ssl").checked = true;
$("protocol_https").checked = true;
$("protocol_ssh").checked = true;
$("protocol_ftp").checked = false;
$("protocol_http").checked = false;
<% end %>
2. Just edit the file "webadmin/admin_adduser_form2.html", find and replace the following line:
- Code: Select all
<input id="username" type="text" style="width:305px;" maxlength="30">
into:
- Code: Select all
<input id="username" type="text" style="width:305px;" maxlength="128">