[ Index ]
 

Code source de e107 0.7.8

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/e107_files/shortcode/ -> picture.sc (source)

   1  global $loop_uid;
   2  if($parm == "" && is_numeric($loop_uid))
   3  {
   4      $parm = $loop_uid;
   5  }
   6  if(is_numeric($parm))
   7  {
   8      if(intval($parm) == USERID)
   9      {
  10          $image = USERSESS;
  11      }
  12      else
  13      {
  14          $row = get_user_data(intval($parm));
  15          $image=$row['user_sess'];
  16      }
  17  }
  18  elseif($parm)
  19  {
  20      $image=$parm;
  21  }
  22  else
  23  {
  24      $image = USERSESS;
  25  }
  26  if($image && file_exists(e_FILE."public/avatars/".$image))
  27  {
  28       return "<img src='".e_FILE."public/avatars/{$image}' alt='' />";
  29  }
  30  else
  31  {
  32      return "";
  33  }


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7