|
@@ 1810-1822 (lines=13) @@
|
| 1807 |
|
'reverse' => 'bi.ip_low DESC, bi.ip_high DESC', |
| 1808 |
|
); |
| 1809 |
|
} |
| 1810 |
|
elseif ($context['selected_entity'] === 'hostname') |
| 1811 |
|
{ |
| 1812 |
|
$listOptions['columns']['banned_entity']['data'] = array( |
| 1813 |
|
'function' => function($rowData) use ($smcFunc) |
| 1814 |
|
{ |
| 1815 |
|
return strtr($smcFunc['htmlspecialchars']($rowData['hostname']), array('%' => '*')); |
| 1816 |
|
}, |
| 1817 |
|
); |
| 1818 |
|
$listOptions['columns']['banned_entity']['sort'] = array( |
| 1819 |
|
'default' => 'bi.hostname', |
| 1820 |
|
'reverse' => 'bi.hostname DESC', |
| 1821 |
|
); |
| 1822 |
|
} |
| 1823 |
|
elseif ($context['selected_entity'] === 'email') |
| 1824 |
|
{ |
| 1825 |
|
$listOptions['columns']['banned_entity']['data'] = array( |
|
@@ 1823-1835 (lines=13) @@
|
| 1820 |
|
'reverse' => 'bi.hostname DESC', |
| 1821 |
|
); |
| 1822 |
|
} |
| 1823 |
|
elseif ($context['selected_entity'] === 'email') |
| 1824 |
|
{ |
| 1825 |
|
$listOptions['columns']['banned_entity']['data'] = array( |
| 1826 |
|
'function' => function($rowData) use ($smcFunc) |
| 1827 |
|
{ |
| 1828 |
|
return strtr($smcFunc['htmlspecialchars']($rowData['email_address']), array('%' => '*')); |
| 1829 |
|
}, |
| 1830 |
|
); |
| 1831 |
|
$listOptions['columns']['banned_entity']['sort'] = array( |
| 1832 |
|
'default' => 'bi.email_address', |
| 1833 |
|
'reverse' => 'bi.email_address DESC', |
| 1834 |
|
); |
| 1835 |
|
} |
| 1836 |
|
elseif ($context['selected_entity'] === 'member') |
| 1837 |
|
{ |
| 1838 |
|
$listOptions['columns']['banned_entity']['data'] = array( |