HomeHelpTrac

Ignore:
Timestamp:
08/25/09 23:08:46 (3 years ago)
Author:
Anton Lesnikov
Message:

Ticket #1022

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/profiles.inc.php

    r12360 r12362  
    439439function bx_login($iId, $sPassword, $bRememberMe = false) { 
    440440    bx_logout(); 
    441      
    442     $aUrl = parse_url($site['url']); 
     441 
     442    $aUrl = parse_url($GLOBALS['site']['url']); 
    443443    $sPath = isset($aUrl['path']) && !empty($aUrl['path']) ? $aUrl['path'] : '/'; 
    444      
     444 
    445445    $iCookieTime = $bRememberMe ? time() + 24*60*60*30 : 0;     
    446446    setcookie("memberID", $iId, $iCookieTime, $sPath); 
     
    465465    } 
    466466     
    467     $aUrl = parse_url($site['url']); 
     467    $aUrl = parse_url($GLOBALS['site']['url']); 
    468468    $sPath = isset($aUrl['path']) && !empty($aUrl['path']) ? $aUrl['path'] : '/'; 
    469469 
Note: See TracChangeset for help on using the changeset viewer.