includes/pageprocess.php
changeset 541 acb7e23b6ffa
parent 536 218a627eb53e
child 542 5841df0ab575
equal deleted inserted replaced
540:1e4b759da336 541:acb7e23b6ffa
  1305         $user_exists = false;
  1305         $user_exists = false;
  1306         unset($userdata);
  1306         unset($userdata);
  1307       }
  1307       }
  1308     }
  1308     }
  1309     
  1309     
       
  1310     // get the user's rank
       
  1311     $rank_data = $session->get_user_rank(intval($userdata['authoritative_uid']));
       
  1312     
  1310     $this->header();
  1313     $this->header();
  1311     
  1314     
  1312     // if ( $send_headers )
  1315     // if ( $send_headers )
  1313     // {
  1316     // {
  1314     //  display_page_headers();
  1317     //  display_page_headers();
  1329     //
  1332     //
  1330     
  1333     
  1331     // Basic user info
  1334     // Basic user info
  1332     
  1335     
  1333     echo '<tr><th class="subhead">' . $lang->get('userpage_heading_basics', array('username' => htmlspecialchars($target_username))) . '</th></tr>';
  1336     echo '<tr><th class="subhead">' . $lang->get('userpage_heading_basics', array('username' => htmlspecialchars($target_username))) . '</th></tr>';
       
  1337     
       
  1338     echo '<tr><td class="row1" style="text-align: center;">';
  1334     if ( $userdata['user_has_avatar'] == '1' )
  1339     if ( $userdata['user_has_avatar'] == '1' )
  1335     {
  1340     {
  1336       echo '<tr><td class="row1" style="text-align: center;"><img alt="' . $lang->get('usercp_avatar_image_alt', array('username' => $userdata['username'])) . '" src="' . make_avatar_url(intval($userdata['authoritative_uid']), $userdata['avatar_type']) . '" /></td></tr>';
  1341       echo '<img alt="' . $lang->get('usercp_avatar_image_alt', array('username' => $userdata['username'])) . '" src="' . make_avatar_url(intval($userdata['authoritative_uid']), $userdata['avatar_type']) . '" /><br />';
  1337     }
  1342     }
       
  1343     // username
       
  1344     echo '<big><span style="' . $rank_data['rank_style'] . '">' . htmlspecialchars($target_username) . '</span></big><br />';
       
  1345     // user title, if appropriate
       
  1346     if ( $rank_data['user_title'] )
       
  1347       echo htmlspecialchars($rank_data['user_title']) . '<br />';
       
  1348     // rank
       
  1349     echo htmlspecialchars($lang->get($rank_data['rank_title']));
       
  1350     echo '</td></tr>';
  1338     echo '<tr><td class="row3">' . $lang->get('userpage_lbl_joined') . ' ' . enano_date('F d, Y h:i a', $userdata['reg_time']) . '</td></tr>';
  1351     echo '<tr><td class="row3">' . $lang->get('userpage_lbl_joined') . ' ' . enano_date('F d, Y h:i a', $userdata['reg_time']) . '</td></tr>';
  1339     echo '<tr><td class="row1">' . $lang->get('userpage_lbl_num_comments') . ' ' . $userdata['n_comments'] . '</td></tr>';
  1352     echo '<tr><td class="row1">' . $lang->get('userpage_lbl_num_comments') . ' ' . $userdata['n_comments'] . '</td></tr>';
  1340     
  1353     
  1341     if ( !empty($userdata['real_name']) )
  1354     if ( !empty($userdata['real_name']) )
  1342     {
  1355     {