public function removeRangeFromBlock($id, $start = NULL, $end = NULL){
        if(is_numeric($id)){
            $where = ['id' => $id];
        }
        else{
            $where = ['ip_start' => $start, 'ip_end' => $end];
        }
        return $this->db->delete($this->getBlockedRangeTable(), $where, 1);
    }
public function removeRangeFromBlock($id, $start = NULL, $end = NULL){
        if(is_numeric($id)){
            $where = ['id' => $id];
        }
        else{
            $where = ['ip_start' => $start, 'ip_end' => $end];
        }
        return $this->db->delete($this->getBlockedRangeTable(), $where, 1);
    }
public function removeRangeFromBlock ( $ id , $ start = NULL , $ end = NULL ) { if ( is_numeric ( $ id ) ) { $ where = [ 'id' => $ id ] ; } else { $ where = [ 'ip_start' => $ start , 'ip_end' => $ end ] ; } return $ this -> db -> delete ( $ this -> getBlockedRangeTable ( ) , $ where , 1 ) ; }
Removes a blocked range from the database
@param int|boolean $id If you know the ID of the range you wish to remove set this else set to false
@param NULL|string $start If you don't know the ID of the range you want to unblock enter the IP at the start of the IP range
@param NULL|string $end If you don't know the ID of the range you want to unblock enter the IP at the end of the IP range
@return boolean If the range is removed from the database will return true else return false
Removes a blocked range from the database