tbrehm
2008-08-01 12ac516c251078e060124e8219672d1cdc85fcad
Fixed bug in shell user limits and added a missing error message.
2 files modified
3 ■■■■ changed files
interface/web/sites/lib/lang/en_shell_user.lng 1 ●●●● patch | view | raw | blame | history
interface/web/sites/shell_user_edit.php 2 ●●● patch | view | raw | blame | history
interface/web/sites/lib/lang/en_shell_user.lng
@@ -19,4 +19,5 @@
$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.';
?>
interface/web/sites/shell_user_edit.php
@@ -58,7 +58,7 @@
            
            // 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) {