Ignore:
Timestamp:
Jul 30, 2014 10:43:49 PM (10 years ago)
Author:
anonymous
Message:

Changed private methods and properties to protected. A few minor bug fixes.

File:
1 edited

Legend:

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

    r479 r484  
    4141
    4242    // Namespace of this auth object.
    43     private $_ns;
     43    protected $_ns;
    4444
    4545    // Static var for test.
    46     private $_authentication_tested;
     46    protected $_authentication_tested;
    4747
    4848    // Parameters to be configured by setParam.
    49     private $_params = array();
    50     private $_default_params = array(
     49    protected $_params = array();
     50    protected $_default_params = array(
    5151
    5252        // Automatically create table and verify columns. Better set to false after site launch.
     
    171171            // The minimal columns for a table compatable with the Auth_SQL class.
    172172            $db->query("CREATE TABLE IF NOT EXISTS " . $db->escapeString($this->getParam('db_table')) . " (
    173                 " . $this->getParam('db_primary_key') . " smallint(11) NOT NULL auto_increment,
     173                " . $this->getParam('db_primary_key') . " MEDIUMINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
    174174                " . $this->getParam('db_username_column') . " varchar(255) NOT NULL default '',
    175175                userpass VARCHAR(255) NOT NULL DEFAULT '',
     
    189189                added_datetime DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
    190190                modified_datetime DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
    191                 PRIMARY KEY (" . $this->getParam('db_primary_key') . "),
    192191                KEY " . $this->getParam('db_username_column') . " (" . $this->getParam('db_username_column') . "),
    193192                KEY userpass (userpass),
     
    226225                }
    227226                $db->query("CREATE TABLE IF NOT EXISTS " . $this->getParam('db_login_table') . " (
    228                     " . $this->getParam('db_primary_key') . " SMALLINT(11) NOT NULL DEFAULT '0',
     227                    " . $this->getParam('db_primary_key') . " MEDIUMINT UNSIGNED NOT NULL DEFAULT '0',
    229228                    login_datetime DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
    230229                    remote_ip_binary CHAR(32) NOT NULL DEFAULT '',
Note: See TracChangeset for help on using the changeset viewer.