File: includes/ucp/ucp_zebra.php
Unmodified
Added
Modified
Removed
Line 52 | Line 52 |
---|
{ if (confirm_box(true)) {
|
{ if (confirm_box(true)) {
|
| // Remove users if (!empty($data['usernames'])) { $sql = 'DELETE FROM ' . ZEBRA_TABLE . ' WHERE user_id = ' . $user->data['user_id'] . ' AND ' . $db->sql_in_set('zebra_id', $data['usernames']); $db->sql_query($sql);
$updated = true; }
// Add users
|
if ($data['add']) { $data['add'] = array_map('trim', array_map('utf8_clean_string', explode("\n", $data['add'])));
| if ($data['add']) { $data['add'] = array_map('trim', array_map('utf8_clean_string', explode("\n", $data['add'])));
|
Line 123 | Line 135 |
---|
if ($row['user_id'] != ANONYMOUS && $row['user_type'] != USER_IGNORE) { $user_id_ary[] = $row['user_id'];
|
if ($row['user_id'] != ANONYMOUS && $row['user_type'] != USER_IGNORE) { $user_id_ary[] = $row['user_id'];
|
| } else if ($row['user_id'] != ANONYMOUS) { $error[] = $user->lang['NOT_ADDED_' . $l_mode . '_BOTS'];
|
} else {
| } else {
|
Line 182 | Line 198 |
---|
$error[] = $user->lang['USER_NOT_FOUND_OR_INACTIVE']; } }
|
$error[] = $user->lang['USER_NOT_FOUND_OR_INACTIVE']; } }
|
} else if (sizeof($data['usernames'])) { // Force integer values $data['usernames'] = array_map('intval', $data['usernames']);
$sql = 'DELETE FROM ' . ZEBRA_TABLE . ' WHERE user_id = ' . $user->data['user_id'] . ' AND ' . $db->sql_in_set('zebra_id', $data['usernames']); $db->sql_query($sql);
$updated = true;
| |
}
if ($updated)
| }
if ($updated)
|