applications/dashboard/models/class.banmodel.php
public function BanWhere($Ban) {
      $Result = array('u.Admin' => 0, 'u.Deleted' => 0);
      $Ban['BanValue'] = str_replace('*', '%', $Ban['BanValue']);

      switch(strtolower($Ban['BanType'])) {
         case 'email':
            $Result['u.Email like'] = $Ban['BanValue'];
            break;
         case 'ipaddress':
            $Result['u.LastIPAddress like'] = $Ban['BanValue'];
            break;
         case 'name':
            $Result['u.Name like'] = $Ban['BanValue'];
            break;
      }
      return $Result;
   }
public function BanWhere($Ban) {
      $Result = array('u.Admin' => 0, 'u.Deleted' => 0);
      $Ban['BanValue'] = str_replace('*', '%', $Ban['BanValue']);

      switch(strtolower($Ban['BanType'])) {
         case 'email':
            $Result['u.Email like'] = $Ban['BanValue'];
            break;
         case 'ipaddress':
            $Result['u.LastIPAddress like'] = $Ban['BanValue'];
            break;
         case 'name':
            $Result['u.Name like'] = $Ban['BanValue'];
            break;
      }
      return $Result;
   }
public function BanWhere ( $ Ban ) { $ Result = array ( 'u.Admin' => 0 , 'u.Deleted' => 0 ) ; $ Ban [ 'BanValue' ] = str_replace ( '*' , '%' , $ Ban [ 'BanValue' ] ) ; switch ( strtolower ( $ Ban [ 'BanType' ] ) ) { case 'email' : $ Result [ 'u.Email like' ] = $ Ban [ 'BanValue' ] ; break ; case 'ipaddress' : $ Result [ 'u.LastIPAddress like' ] = $ Ban [ 'BanValue' ] ; break ; case 'name' : $ Result [ 'u.Name like' ] = $ Ban [ 'BanValue' ] ; break ; } return $ Result ; }
Ban users that meet conditions given.

@since 2.0.18
@access public
@param array $Ban Data about the ban.
Valid keys are BanType and BanValue. BanValue is what is to be banned.
Valid values for BanType are email, ipaddress or name.
Ban users that meet conditions given .