logout.php: Pull out DB code
commitf93f1a652ffec5cca0f9bdfb7895a5439382bd2a
authorcanyonknight <canyonknight@gmail.com>
Wed, 23 May 2012 19:29:02 +0000 (23 15:29 -0400)
committerLukas Fleischer <archlinux@cryptocrack.de>
Fri, 6 Jul 2012 09:26:59 +0000 (6 11:26 +0200)
tree3ae76c9ab2f545a9f1eed2924d0abecdaca41894
parentd3de6679010a1d140794305e747f1af0e7f21834
logout.php: Pull out DB code

* Move DB code for removing a session in logout.php to a new function in
acctfuncs.inc.php
* Add ability for clear_expired_sessions function to check for DB connection
* Centralization of DB code important in a future transition to PDO interface

Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
web/html/logout.php
web/lib/acctfuncs.inc.php