plugins/SpecialUserFuncs.php
changeset 1280 871f17a0d27d
parent 1266 f3933b355229
child 1293 83e0fcd008e1
equal deleted inserted replaced
1279:0bc945385d74 1280:871f17a0d27d
  1614 	
  1614 	
  1615 	// User search             
  1615 	// User search             
  1616 	if ( isset($_GET['finduser']) )
  1616 	if ( isset($_GET['finduser']) )
  1617 	{
  1617 	{
  1618 		$finduser = str_replace(array(  '%',   '_'),
  1618 		$finduser = str_replace(array(  '%',   '_'),
  1619 														array('\\%', '\\_'),
  1619 								array('\\%', '\\_'),
  1620 														$_GET['finduser']);
  1620 								$_GET['finduser']);
  1621 		$finduser = str_replace(array('*', '?'),
  1621 		$finduser = str_replace(array('*', '?'),
  1622 														array('%', '_'),
  1622 								array('%', '_'),
  1623 														$finduser);
  1623 								$finduser);
  1624 		$finduser = $db->escape($finduser);
  1624 		$finduser = $db->escape($finduser);
  1625 		$username_where = ENANO_SQLFUNC_LOWERCASE . '(u.username) LIKE \'%' . strtolower($finduser) . '%\'';
  1625 		$username_where = ENANO_SQLFUNC_LOWERCASE . '(u.username) LIKE \'%' . strtolower($finduser) . '%\' OR u.username LIKE \'' . $finduser . '\'';
  1626 		$finduser_url = 'finduser=' . rawurlencode($_GET['finduser']) . '&';
  1626 		$finduser_url = 'finduser=' . rawurlencode($_GET['finduser']) . '&';
  1627 	}
  1627 	}
  1628 	else
  1628 	else
  1629 	{
  1629 	{
  1630 		if ( ENANO_DBLAYER == 'MYSQL' )
  1630 		if ( ENANO_DBLAYER == 'MYSQL' )