diff options
author | Matthias Grimm <matthiasgrimm@users.sourceforge.net> | 2005-11-07 22:07:40 +0100 |
---|---|---|
committer | Matthias Grimm <matthiasgrimm@users.sourceforge.net> | 2005-11-07 22:07:40 +0100 |
commit | 75bfc19c4fec0d9ec349df05c30bbd95e459a5ba (patch) | |
tree | 4726586c02800bbd3b9a3f1e6aac89b6de1048f5 /inc/auth/mysql.class.php | |
parent | fc1c55b1830fbbb13f99db0490df4f46e15dcd31 (diff) | |
download | rpg-75bfc19c4fec0d9ec349df05c30bbd95e459a5ba.tar.gz rpg-75bfc19c4fec0d9ec349df05c30bbd95e459a5ba.tar.bz2 |
MySQL auth module documentation
This patch completes the documentation of the MySQL SQL statements
that are necessary to run the mysql OO auth module in mysql.conf.php.example.
Some pattern names in the code were not in line - fixed.
darcs-hash:20051107210740-4145d-cdf140b6d14664ce9c1a85f67e1bf8feb294c17b.gz
Diffstat (limited to 'inc/auth/mysql.class.php')
-rw-r--r-- | inc/auth/mysql.class.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/auth/mysql.class.php b/inc/auth/mysql.class.php index accb650eb..ff126a0ec 100644 --- a/inc/auth/mysql.class.php +++ b/inc/auth/mysql.class.php @@ -710,16 +710,16 @@ class auth_mysql extends auth_basic { $tmp = addslashes('%'.mysql_real_escape_string($pattern, $this->dbcon).'%'); if ($item == 'user') { if ($cnt++ > 0) $SQLfilter .= " AND "; - $SQLfilter .= str_replace('%s',$tmp,$this->cnf['FilterLogin']); + $SQLfilter .= str_replace('%u',$tmp,$this->cnf['FilterLogin']); } else if ($item == 'name') { if ($cnt++ > 0) $SQLfilter .= " AND "; - $SQLfilter .= str_replace('%s',$tmp,$this->cnf['FilterName']); + $SQLfilter .= str_replace('%n',$tmp,$this->cnf['FilterName']); } else if ($item == 'mail') { if ($cnt++ > 0) $SQLfilter .= " AND "; - $SQLfilter .= str_replace('%s',$tmp,$this->cnf['FilterEmail']); + $SQLfilter .= str_replace('%e',$tmp,$this->cnf['FilterEmail']); } else if ($item == 'grps') { if ($cnt++ > 0) $SQLfilter .= " AND "; - $SQLfilter .= str_replace('%s',$tmp,$this->cnf['FilterGroup']); + $SQLfilter .= str_replace('%g',$tmp,$this->cnf['FilterGroup']); } } |