Fixed bug in shell user limits and added a missing error message.
| | |
| | | $wb["uid_error_empty"] = 'UID empty.'; |
| | | $wb["uid_error_empty"] = 'GID empty.'; |
| | | $wb["directory_error_empty"] = 'Directory empty.'; |
| | | $wb["limit_shell_user_txt"] = 'The max number of shell users is reached.'; |
| | | ?> |
| | |
| | | |
| | | // Get the limits of the client |
| | | $client_group_id = $_SESSION["s"]["user"]["default_group"]; |
| | | $client = $app->db->queryOneRecord("SELECT limit_ftp_user FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); |
| | | $client = $app->db->queryOneRecord("SELECT limit_shell_user FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); |
| | | |
| | | // Check if the user may add another shell user. |
| | | if($client["limit_shell_user"] >= 0) { |