SHARE
TWEET

Untitled

a guest Nov 20th, 2012 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top