Add database wrapper class and new connection method
commit8e03e68d687015b5cd8c9d3857e1a1d007252afa
authorcanyonknight <canyonknight@gmail.com>
Sun, 3 Feb 2013 16:26:28 +0000 (3 16:26 +0000)
committerLukas Fleischer <archlinux@cryptocrack.de>
Sun, 10 Feb 2013 11:10:37 +0000 (10 12:10 +0100)
tree26cd5d7aa6cfac4f6fddfa1f76fdc59d2cbd4a0f
parentb3a2b6c4a59a2cd90b020120b64f16797af1b6fb
Add database wrapper class and new connection method

Uses the Singleton pattern to ensure all queries use the same
database connection that is released upon script completion.

All database connections should now be called with DB::connect() and
not db_connect().

Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
web/html/account.php
web/html/home.php
web/html/logout.php
web/html/pkgsubmit.php
web/lib/DB.class.php [new file with mode: 0644]
web/lib/acctfuncs.inc.php
web/lib/aur.inc.php
web/lib/aurjson.class.php
web/lib/pkgfuncs.inc.php
web/lib/translator.inc.php