mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 19:44:09 +02:00
Fixes #4009 . Enhanced admin-ui to support custom filter handlers on string searches (not just drop-drop filters as was already the case)
This commit is contained in:
@@ -141,6 +141,17 @@ class banlist_ui extends e_admin_ui
|
||||
$this->fields['banlist_ip']['title']= BANLAN_5;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
/**
|
||||
* Custom filter for banlist_ip filter search.
|
||||
* @param string $srch
|
||||
*/
|
||||
function handleListBanlistIpFilter($srch)
|
||||
{
|
||||
return "banlist_ip = '".e107::getIPHandler()->ipEncode($srch)."' OR banlist_ip = '".$srch."'";
|
||||
}
|
||||
|
||||
|
||||
// optional
|
||||
public function init()
|
||||
|
Reference in New Issue
Block a user