|
@@ 1841-1853 (lines=13) @@
|
| 1838 |
|
'reverse' => 'bi.ip_low DESC, bi.ip_high DESC', |
| 1839 |
|
); |
| 1840 |
|
} |
| 1841 |
|
elseif ($context['selected_entity'] === 'hostname') |
| 1842 |
|
{ |
| 1843 |
|
$listOptions['columns']['banned_entity']['data'] = array( |
| 1844 |
|
'function' => function($rowData) use ($smcFunc) |
| 1845 |
|
{ |
| 1846 |
|
return strtr($smcFunc['htmlspecialchars']($rowData['hostname']), array('%' => '*')); |
| 1847 |
|
}, |
| 1848 |
|
); |
| 1849 |
|
$listOptions['columns']['banned_entity']['sort'] = array( |
| 1850 |
|
'default' => 'bi.hostname', |
| 1851 |
|
'reverse' => 'bi.hostname DESC', |
| 1852 |
|
); |
| 1853 |
|
} |
| 1854 |
|
elseif ($context['selected_entity'] === 'email') |
| 1855 |
|
{ |
| 1856 |
|
$listOptions['columns']['banned_entity']['data'] = array( |
|
@@ 1854-1866 (lines=13) @@
|
| 1851 |
|
'reverse' => 'bi.hostname DESC', |
| 1852 |
|
); |
| 1853 |
|
} |
| 1854 |
|
elseif ($context['selected_entity'] === 'email') |
| 1855 |
|
{ |
| 1856 |
|
$listOptions['columns']['banned_entity']['data'] = array( |
| 1857 |
|
'function' => function($rowData) use ($smcFunc) |
| 1858 |
|
{ |
| 1859 |
|
return strtr($smcFunc['htmlspecialchars']($rowData['email_address']), array('%' => '*')); |
| 1860 |
|
}, |
| 1861 |
|
); |
| 1862 |
|
$listOptions['columns']['banned_entity']['sort'] = array( |
| 1863 |
|
'default' => 'bi.email_address', |
| 1864 |
|
'reverse' => 'bi.email_address DESC', |
| 1865 |
|
); |
| 1866 |
|
} |
| 1867 |
|
elseif ($context['selected_entity'] === 'member') |
| 1868 |
|
{ |
| 1869 |
|
$listOptions['columns']['banned_entity']['data'] = array( |