[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-forums/bbpress/ -> profile.php (source)

   1  <?php
   2  require_once ('./bb-load.php');
   3  
   4  bb_repermalink(); // The magic happens here.
   5  
   6  if ( $self ) {
   7      if ( strpos($self, '.php') !== false ) {
   8          require($self);
   9      } else {
  10          require ( BB_PATH . 'profile-base.php' );
  11      }
  12      return;
  13  }
  14  
  15  $reg_time = bb_gmtstrtotime( $user->user_registered );
  16  $profile_info_keys = bb_get_profile_info_keys();
  17  
  18  if ( !isset( $_GET['updated'] ) )
  19      $updated = false;
  20  else
  21      $updated = true;
  22  
  23  do_action( 'bb_profile.php_pre_db', $user_id );
  24  
  25  if ( isset($user->is_bozo) && $user->is_bozo && $user->ID != bb_get_current_user_info( 'id' ) && !bb_current_user_can( 'moderate' ) )
  26      $profile_info_keys = array();
  27  
  28  $posts = bb_get_recent_user_replies( $user_id );
  29  $topics = get_recent_user_threads( $user_id );
  30  
  31  bb_load_template( 'profile.php', array('reg_time', 'profile_info_keys', 'updated', 'threads'), $user_id );


Generated: Thu Dec 7 01:01:35 2017 Cross-referenced by PHPXref 0.7.1