Changeset 14


Ignore:
Timestamp:
Sep 12, 2005 10:31:49 PM (19 years ago)
Author:
scdev
Message:

little bits

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r13 r14  
    302302        // and is used whenever a URL need be used to the current site.
    303303        // Not available on cli scripts obviously.
    304         if (isset($_SERVER['SCRIPT_URI']) && '' != $_SERVER['SCRIPT_URI']) {
    305             $site_url = parse_url($_SERVER['SCRIPT_URI']);
    306             $this->setParam(array('site_url' => sprintf('%s://%s', $site_url['scheme'], $site_url['host'])));
     304        if (isset($_SERVER['HTTP_HOST']) && '' != $_SERVER['HTTP_HOST']) {
     305            $this->setParam(array('site_url' => sprintf('%s://%s', ('on' == getenv('HTTPS') ? 'https' : 'http'), getenv('HTTP_HOST'))));
    307306        }
    308307
  • trunk/lib/Auth_SQL.inc.php

    r13 r14  
    3636       
    3737        // If using the db_login_table feature, specify the db_login_table. The primary key must match the primary key for the db_table.
    38         'db_login_table' => 'login_tbl',
     38        'db_login_table' => 'user_login_tbl',
    3939       
    4040        // The type of encryption to use for passwords stored in the db_table. Use one of the AUTH_ENCRYPT_* types specified above.
Note: See TracChangeset for help on using the changeset viewer.