From: Lo?c C. <lo...@us...> - 2001-04-15 21:19:56
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv8755/chat Modified Files: profile_reg.php3 profile_del.php3 Log Message: Some optimization work... Index: profile_reg.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_reg.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** profile_reg.php3 2001/04/13 11:21:45 1.6 --- profile_reg.php3 2001/04/15 21:19:54 1.7 *************** *** 209,215 **** --- 209,220 ---- $dbSessionVars['pwdHash'] = $pwdHash; dbSessionSave(); + // The db link should be closed but this can't be done under Apache because + // links id aren't updated :( + // $dbSessionDbLink->close(); + // unset($dbSessionDbLink); } } $dbLink->close(); + unset($dbLink); } } // end of the 'do register' work Index: profile_del.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_del.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** profile_del.php3 2001/04/13 11:21:45 1.5 --- profile_del.php3 2001/04/15 21:19:54 1.6 *************** *** 105,109 **** $dbLink->query("DELETE FROM " . C_REG_TBL . " WHERE username = '" . pmcSlashSingleQuotes($dbSessionVars['authUsername']) . "'"); $message = L_REG_21; ! $dbLink->close(); dbSessionDestroy(); } --- 105,112 ---- $dbLink->query("DELETE FROM " . C_REG_TBL . " WHERE username = '" . pmcSlashSingleQuotes($dbSessionVars['authUsername']) . "'"); $message = L_REG_21; ! // The db link should be closed but this can't be done under Apache because ! // links id aren't updated :( ! // $dbLink->close(); ! // unset($dbLink); dbSessionDestroy(); } |