Project

General

Profile

« Previous | Next » 

Revision 25

Added by stefan about 19 years ago

Resubmitting changeset 23.

View differences:

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
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