Revision 23
Added by stefan about 19 years ago
trunk/wb/languages/EN.php | ||
---|---|---|
425 | 425 |
$MESSAGE['GROUPS']['GROUP_NAME_BLANK'] = 'Group name is blank'; |
426 | 426 |
$MESSAGE['GROUPS']['CONFIRM_DELETE'] = 'Are you sure you want to delete the selected group (and any users that belong to it)?'; |
427 | 427 |
$MESSAGE['GROUPS']['NO_GROUPS_FOUND'] = 'No groups found'; |
428 |
$MESSAGE['GROUPS']['GROUP_NAME_EXISTS'] = 'Group name already exists'; |
|
428 | 429 |
|
429 | 430 |
$MESSAGE['PREFERENCES']['DETAILS_SAVED'] = 'Details saved successfully'; |
430 | 431 |
$MESSAGE['PREFERENCES']['EMAIL_UPDATED'] = 'Email updated successfully'; |
trunk/wb/admin/groups/add.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
// $Id: add.php,v 1.4 2005/06/22 06:20:21 rdjurovich Exp $
|
|
3 |
// $Id$ |
|
4 | 4 |
|
5 | 5 |
/* |
6 | 6 |
|
... | ... | |
41 | 41 |
if($group_name == "") { |
42 | 42 |
$admin->print_error($MESSAGE['GROUPS']['GROUP_NAME_BLANK'], $js_back); |
43 | 43 |
} |
44 |
$results = $database->query("SELECT * FROM ".TABLE_PREFIX."groups WHERE name = '$group_name'"); |
|
45 |
if($results->numRows()>0) { |
|
46 |
$admin->print_error($MESSAGE['GROUPS']['GROUP_NAME_EXISTS'], $js_back); |
|
47 |
} |
|
44 | 48 |
|
45 | 49 |
// Get system and module permissions |
46 | 50 |
require(ADMIN_PATH.'/groups/get_permissions.php'); |
Also available in: Unified diff
Fixed bug where group with existing name can be added.