From: Lo?c C. <lo...@us...> - 2001-11-26 22:16:11
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv21865/chat Modified Files: setup.php3 profile_remind.php3 profile_reg.php3 profile_edit.php3 Log Message: Renamed "password" field to "passwd" in the table "pmc_reg_users" Index: setup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/setup.php3,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** setup.php3 2001/04/19 08:51:33 1.2 --- setup.php3 2001/11/26 22:16:08 1.3 *************** *** 303,307 **** $dbLink = new pmcDB; ! $dbLink->query("SELECT password FROM $cRegTbl WHERE username = '" . pmcSlashSingleQuotes($admLog) . "' AND perms != 'admin' LIMIT 1"); if (list($oldPassword) = $dbLink->nextRecord()) { --- 303,307 ---- $dbLink = new pmcDB; ! $dbLink->query("SELECT passwd FROM $cRegTbl WHERE username = '" . pmcSlashSingleQuotes($admLog) . "' AND perms != 'admin' LIMIT 1"); if (list($oldPassword) = $dbLink->nextRecord()) { *************** *** 340,344 **** $admQuery = "UPDATE $cRegTbl SET " . "username = '" . pmcSlashSingleQuotes($admLog) . "', " ! . "password = '" . $adminPwd . "', " . "firstname = '" . pmcSlashSingleQuotes($admFname) . "', " . "lastname = '" . pmcSlashSingleQuotes($admLname) . "', " --- 340,344 ---- $admQuery = "UPDATE $cRegTbl SET " . "username = '" . pmcSlashSingleQuotes($admLog) . "', " ! . "passwd = '" . $adminPwd . "', " . "firstname = '" . pmcSlashSingleQuotes($admFname) . "', " . "lastname = '" . pmcSlashSingleQuotes($admLname) . "', " Index: profile_remind.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_remind.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** profile_remind.php3 2001/06/13 17:59:44 1.4 --- profile_remind.php3 2001/11/26 22:16:08 1.5 *************** *** 117,121 **** $slashedNick = pmcSlashSingleQuotes($pmcProfNick); $dbLink = new pmcDB; ! $dbLink->query("SELECT charset, password, email FROM " . C_REG_TBL . " WHERE username = '$slashedNick'"); list($theCharset, $thePassword, $theEmail) = $dbLink->nextRecord(); $dbLink->cleanResults(); --- 117,121 ---- $slashedNick = pmcSlashSingleQuotes($pmcProfNick); $dbLink = new pmcDB; ! $dbLink->query("SELECT charset, passwd, email FROM " . C_REG_TBL . " WHERE username = '$slashedNick'"); list($theCharset, $thePassword, $theEmail) = $dbLink->nextRecord(); $dbLink->cleanResults(); Index: profile_reg.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_reg.php3,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** profile_reg.php3 2001/11/26 20:23:40 1.19 --- profile_reg.php3 2001/11/26 22:16:08 1.20 *************** *** 224,228 **** $slashedPswd = pmcSlashSingleQuotes(str_replace('\\', '\\\\', $pmcProfPassword)); $regQuery = 'INSERT INTO ' . C_REG_TBL . ' ' ! . '(username, charset, password, firstname, lastname, country, website, email, showemail, reg_time, ip, gender) ' . 'VALUES (' . "'$slashedNick', '" . L_CHARSET . "', '$slashedPswd', '" . pmcSlashSingleQuotes($pmcProfFirstName) . "', '" . pmcSlashSingleQuotes($pmcProfLastName) . "', '" . pmcSlashSingleQuotes($pmcProfSpokenLang) . "', '$pmcProfWebSite', '$pmcProfEmail', $pmcProfShowEmail, " . time() . ", '$ip', $pmcProfGender" --- 224,228 ---- $slashedPswd = pmcSlashSingleQuotes(str_replace('\\', '\\\\', $pmcProfPassword)); $regQuery = 'INSERT INTO ' . C_REG_TBL . ' ' ! . '(username, charset, passwd, firstname, lastname, country, website, email, showemail, reg_time, ip, gender) ' . 'VALUES (' . "'$slashedNick', '" . L_CHARSET . "', '$slashedPswd', '" . pmcSlashSingleQuotes($pmcProfFirstName) . "', '" . pmcSlashSingleQuotes($pmcProfLastName) . "', '" . pmcSlashSingleQuotes($pmcProfSpokenLang) . "', '$pmcProfWebSite', '$pmcProfEmail', $pmcProfShowEmail, " . time() . ", '$ip', $pmcProfGender" Index: profile_edit.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_edit.php3,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** profile_edit.php3 2001/06/13 17:59:44 1.16 --- profile_edit.php3 2001/11/26 22:16:08 1.17 *************** *** 231,235 **** // Updates the profile and the banishment and rights tables if required ! $dbLink->query("UPDATE " . C_REG_TBL . " SET username = '$slashedNick', charset = '" . L_CHARSET . "', password = '$slashedPswd', firstname='" . pmcSlashSingleQuotes($pmcProfFirstName) . "', lastname = '" . pmcSlashSingleQuotes($pmcProfLastName) . "', country = '" . pmcSlashSingleQuotes($pmcProfSpokenLang) . "', website = '$pmcProfWebSite', email = '$pmcProfEmail', showemail = $pmcProfShowEmail, reg_time = " . time() . ", ip = '$ip', gender = $pmcProfGender WHERE username = '" . pmcSlashSingleQuotes($dbSessionVars['authUsername']) . "'"); if ($pmcProfNick != $dbSessionVars['authUsername']) { --- 231,235 ---- // Updates the profile and the banishment and rights tables if required ! $dbLink->query("UPDATE " . C_REG_TBL . " SET username = '$slashedNick', charset = '" . L_CHARSET . "', passwd = '$slashedPswd', firstname='" . pmcSlashSingleQuotes($pmcProfFirstName) . "', lastname = '" . pmcSlashSingleQuotes($pmcProfLastName) . "', country = '" . pmcSlashSingleQuotes($pmcProfSpokenLang) . "', website = '$pmcProfWebSite', email = '$pmcProfEmail', showemail = $pmcProfShowEmail, reg_time = " . time() . ", ip = '$ip', gender = $pmcProfGender WHERE username = '" . pmcSlashSingleQuotes($dbSessionVars['authUsername']) . "'"); if ($pmcProfNick != $dbSessionVars['authUsername']) { |