FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Avatar uploading - missed extensions
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Avatar uploading - missed extensions [message #31448 is a reply to message #31424] Mon, 24 April 2006 09:00 Go to previous messageGo to previous message
alexeik is currently offline  alexeik   Russian Federation
Messages: 4
Registered: April 2006
Location: SPb, Russia
Karma:
Junior Member
Ok, I've solved the problem
changing register.php code to this

if (DIRECTORY_SEPARATOR == '/')
{ /* *nix */
      $ext = array(1=>'gif', 2
=>'jpg', 3=>'png', 4=>'swf');
     $img_info = getimagesize($TMP . $common_av_name);
     $av_path = 'images/custom_avatars/'.substr($common_av_name, 0, strpos($common_av_name, '_')).$ext[$img_info[2]];
} else {



i.e. $av_path = 'images/custom_avatars/'.substr($common_av_name, 0, strpos($common_av_name, '_')).$ext[$img_info[2]];
have been missing file extensions


but now i afraid that after forum update this will not work again.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: V 2.7.4, msg error compiling pre_reg template
Next Topic: every user can delete/modify all posts, edit/delete permission set to "no"
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 10:45:52 GMT 2024

Total time taken to generate the page: 0.04460 seconds