Moved a couple of small queries from Recent.controller

Signed-off-by: emanuele <emanuele45@gmail.com>
Some other few queries out of Recent.controller

Signed-off-by: emanuele <emanuele45@gmail.com>
Some fancy function to retrieve members informations...probably something similar already exists

Signed-off-by: emanuele <emanuele45@gmail.com>
Fix a minor kind of SQL injection and move some queries out of PersonalMessage.controller

Signed-off-by: emanuele <emanuele45@gmail.com>
 Another bit of refactoring created and decrementBoard and reworked incrementBoard to work with any integer that can logically be incremented/decremented

Signed-off-by: emanuele <emanuele45@gmail.com>
Moved the few core feature enable/disable callbacks to proper functions instead of create_function

Signed-off-by: emanuele <emanuele45@gmail.com>
Moved retrieving of body_Type to Maintenance.subs

Signed-off-by: emanuele <emanuele45@gmail.com>
ManagePaid doesn't need $db any more

Signed-off-by: emanuele <emanuele45@gmail.com>
Removed queries from Reports.controller (that's a quick one, needs review in terms of functions aggregation

Signed-off-by: emanuele <emanuele45@gmail.com>
Yes, topicAttribute should accept more things, but it should also query a since topic... :P

Signed-off-by: emanuele <emanuele45@gmail.com>
Unused globals

Signed-off-by: emanuele <emanuele45@gmail.com>
Some code docs as requested by eurich :P

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #831 from emanuele45/some_refactoring

Some refact...devastation! :P