basic cleaning / methods visibility
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
make sure we use an integer..
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
moved db query to subs.
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
Let's get rid of an SMF 1.1 relique
uuups....
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
Merge pull request #460 from eurich/members_overhaul

Members controller refactoring
Rework of retrieveMemberData, approveMembers and enforceReactivation to make them more flexible

Signed-off-by: emanuele <emanuele45@gmail.com>
No, this is correct like this, otherwise the last check is broken

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

I should learn read my own functions... lol

Okay, that should fix that darn function...
Fixed topic announcement, added group_name to the query in getGroups and removed the redundant query in Announce_Controller->action_selectgroup

Signed-off-by: emanuele <emanuele45@gmail.com>
Reworked retrieveMemberData to add other two conditions, allow limit and used the function in Announce_Controller->action_send to remove a query from the controller

Signed-off-by: emanuele <emanuele45@gmail.com>
getEventProperties can query only the properties from the calendar table, used getEventProperties in Calendar_Controller instead of the query

Signed-off-by: emanuele <emanuele45@gmail.com>
A function that creates a report or updates an existing one

Signed-off-by: emanuele <emanuele45@gmail.com>
splitTopic refactor, the function was already in Topics.subs.php

Signed-off-by: emanuele <emanuele45@gmail.com>
Some re-working of getBoardModerators to accomodate also the return of only the ids + created the function allBoardModerators to get the moderators of all the boards

Signed-off-by: emanuele <emanuele45@gmail.com>
Another bunch of refactoring: board moderators and membergroups

Signed-off-by: emanuele <emanuele45@gmail.com>
Another getGroupModerators

Signed-off-by: emanuele <emanuele45@gmail.com>
Fixed wrong variable name - Thanks Norv

Signed-off-by: emanuele <emanuele45@gmail.com>
A $user_info left around... Thanks Norv!

Signed-off-by: emanuele <emanuele45@gmail.com>
Created a membergroupById that retrieves only 1 group and used the new function

Signed-off-by: emanuele <emanuele45@gmail.com>
Missed separator.

Signed-off-by: Norv <a.w.norv@gmail.com>