Changeset 484 for trunk/lib/Auth_SQL.inc.php
- Timestamp:
- Jul 30, 2014 10:43:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Auth_SQL.inc.php
r479 r484 41 41 42 42 // Namespace of this auth object. 43 pr ivate$_ns;43 protected $_ns; 44 44 45 45 // Static var for test. 46 pr ivate$_authentication_tested;46 protected $_authentication_tested; 47 47 48 48 // Parameters to be configured by setParam. 49 pr ivate$_params = array();50 pr ivate$_default_params = array(49 protected $_params = array(); 50 protected $_default_params = array( 51 51 52 52 // Automatically create table and verify columns. Better set to false after site launch. … … 171 171 // The minimal columns for a table compatable with the Auth_SQL class. 172 172 $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, 174 174 " . $this->getParam('db_username_column') . " varchar(255) NOT NULL default '', 175 175 userpass VARCHAR(255) NOT NULL DEFAULT '', … … 189 189 added_datetime DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', 190 190 modified_datetime DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', 191 PRIMARY KEY (" . $this->getParam('db_primary_key') . "),192 191 KEY " . $this->getParam('db_username_column') . " (" . $this->getParam('db_username_column') . "), 193 192 KEY userpass (userpass), … … 226 225 } 227 226 $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', 229 228 login_datetime DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', 230 229 remote_ip_binary CHAR(32) NOT NULL DEFAULT '',
Note: See TracChangeset
for help on using the changeset viewer.