SHARE
TWEET

Untitled

a guest Nov 20th, 2012 64 Never
  1. function bp_core_check_avatar_type($file) {
  2.         if ( ( !empty( $file['file']['type'] ) && !preg_match('/(jpe?g|gif|png)$/i', $file['file']['type'] ) ) || !preg_match( '/(jpe?g|gif|png)$/i', $file['file']['name'] ) )
  3.                 return false;
  4.  
  5.         return true;
  6. }
RAW Paste Data
Top