action_form.php: Pull out DB code
commitc2b65f2b7bffeed46a2981f4eeb04e063c379ac0
authorcanyonknight <canyonknight@gmail.com>
Wed, 23 May 2012 19:22:51 +0000 (23 15:22 -0400)
committerLukas Fleischer <archlinux@cryptocrack.de>
Fri, 6 Jul 2012 09:26:53 +0000 (6 11:26 +0200)
treeaf11ae83d59eacbad45fc78b8b37b89a98a4daa3
parent1eea2951fbebb5bb4dfc0c09ad7622f03e4a6471
action_form.php: Pull out DB code

* Create new functions in pkgfuncs.inc.php with SQL queries from
action_form.php
* Centralization of DB code important in a future transition to PDO interface
* Flip logic of vote and notify XHTML button to use function return rather
than a more confusing NOT (!) logical operator statement

Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
web/lib/pkgfuncs.inc.php
web/template/actions_form.php