Revision 1883
Added by Dietmar over 11 years ago
delete.inc.php | ||
---|---|---|
27 | 27 |
*/ |
28 | 28 |
function delete_group($admin, $group_id = 0) |
29 | 29 |
{ |
30 |
global $MESSAGE; |
|
30 |
// global $MESSAGE;
|
|
31 | 31 |
$database = WbDatabase::getInstance(); |
32 |
$mLang = Translate::getInstance(); |
|
32 | 33 |
// first check form-tan |
33 | 34 |
if($admin->checkFTAN()) |
34 | 35 |
{ |
... | ... | |
42 | 43 |
if($database->query($sql) != false) |
43 | 44 |
{ |
44 | 45 |
// remove group from users groups_id |
45 |
msgQueue :: add($MESSAGE['GROUPS_DELETED'],true);
|
|
46 |
msgQueue :: add($mLang->MESSAGE_GROUPS_DELETED,true);
|
|
46 | 47 |
$sql = 'SELECT `user_id`, `groups_id`, `home_folder` FROM `'.TABLE_PREFIX.'users` WHERE user_id != 1'; |
47 | 48 |
if(($res_users = $database->query($sql)) && ($res_users->numRows() > 0) ) |
48 | 49 |
{ |
... | ... | |
64 | 65 |
$sql_info = mysql_info($database->db_handle); |
65 | 66 |
if(preg_match('/matched: *([1-9][0-9]*)/i', $sql_info) != 1) |
66 | 67 |
{ |
67 |
msgQueue :: add($MESSAGE['RECORD_MODIFIED_FAILED']);
|
|
68 |
msgQueue :: add($mLang->MESSAGE_RECORD_MODIFIED_FAILED );
|
|
68 | 69 |
} |
69 | 70 |
} else { |
70 | 71 |
|
... | ... | |
75 | 76 |
} |
76 | 77 |
// $admin->print_success($msg); |
77 | 78 |
} else { |
78 |
msgQueue :: add($MESSAGE['RECORD_MODIFIED_FAILED']);
|
|
79 |
msgQueue :: add($mLang->MESSAGE_RECORD_MODIFIED_FAILED );
|
|
79 | 80 |
} |
80 | 81 |
} |
81 | 82 |
} else { |
82 |
msgQueue :: add($MESSAGE['GENERIC_SECURITY_OFFENSE']);
|
|
83 |
msgQueue :: add($mLang->MESSAGE_GENERIC_SECURITY_OFFENSE );
|
|
83 | 84 |
} |
84 | 85 |
$admin->print_header(); |
85 | 86 |
return ; |
Also available in: Unified diff
! groups change languages class to translate class
! prepare upgrade-script for WB Version 2.8.4 (versioncompare)
! update Form modul to version 2.9.1