Changeset 2229


Ignore:
Timestamp:
Feb 29, 2008, 2:10:58 PM (17 years ago)
Author:
patdenice
Message:

Merge from revision 2228.
Resolved bugs:
741 and 793: Added user does not appear in listing.
769: show email address in adviser mode when editing user profil.
800: get_absolute_root_url does not work with https protocol.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_url.inc.php

    r2215 r2229  
    6161  if ($with_scheme)
    6262  {
    63     $url .= 'http://'.$_SERVER['HTTP_HOST'];
     63    if (empty($_SERVER['HTTPS']))
     64    {
     65      $url .= 'http://';
     66    }
     67    else
     68    {
     69      $url .= 'https://';
     70    }
     71    $url .= $_SERVER['HTTP_HOST'];
    6472    if ($_SERVER['SERVER_PORT'] != 80)
    6573    {
  • trunk/include/functions_user.inc.php

    r2221 r2229  
    867867  {
    868868    $user_ids = array();
    869     if (is_integer($arg_id))
     869    if (is_numeric($arg_id))
    870870    {
    871871      $user_ids[] = $arg_id;
     
    12281228  else
    12291229  {
    1230     if (is_adviser())
     1230    if (script_basename() == 'admin' and is_adviser())
    12311231    {
    12321232      return 'adviser.mode@'.$_SERVER['SERVER_NAME'];
  • trunk/profile.php

    r2124 r2229  
    229229      'USERNAME'=>$userdata['username'],
    230230      'USERID'=>$userdata['id'],
    231       'EMAIL'=>@$userdata['email'],
     231      'EMAIL'=>get_email_address_as_display_text(@$userdata['email']),
    232232      'NB_IMAGE_LINE'=>$userdata['nb_image_line'],
    233233      'NB_ROW_PAGE'=>$userdata['nb_line_page'],
Note: See TracChangeset for help on using the changeset viewer.