Advertisement
Guest User

Untitled

a guest
Sep 11th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <php>
  2. $link_avatar = 'http://i.imgur.com/2QCNnUm.png'; // avatar-ul default
  3.  
  4. ipsRegistry::DB()->build( array('select' => 'pp_main_photo',
  5.                                 'from'   => 'profile_portal',
  6.                                 'where'  => 'pp_member_id = ' . $stats['info']['last_mem_id'] ) );
  7. $rezultat = ipsRegistry::DB()->execute();
  8.      
  9. if(ipsRegistry::DB()->getTotalRows() > 0)
  10. {
  11.         $rand_user = ipsRegistry::DB()->fetch($rezultat);
  12.         if($rand_user['pp_main_photo'] != '')
  13.         {
  14.                 $link_avatar = $this->settings['board_url'] . '/uploads/' . $rand_user['pp_main_photo'];
  15.         }
  16. }
  17. </php>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement