Missing div that prevented change the page index when splitting ajaxively a topic

Signed-off-by: emanuele <emanuele45@gmail.com>
Even for xml actions we need index.template.php because in certain cases we need template_init...

Signed-off-by: emanuele <emanuele45@gmail.com>
A $db not used

Signed-off-by: emanuele <emanuele45@gmail.com>
Removed a couple of queries from SplitTopics_Controller reusing and expanding the messageAt function

Signed-off-by: emanuele <emanuele45@gmail.com>
/me thinks these functions belong to Topic.subs.php

Signed-off-by: emanuele <emanuele45@gmail.com>
changed parameter to messageAt in only_approved instead

Signed-off-by: emanuele <emanuele45@gmail.com>
Some missing "IF NOT EXISTS" in upgrades

Signed-off-by: emanuele <emanuele45@gmail.com>
Revert "A $db not used"

This reverts commit 0e5fc3534bf024360d14f00f24c55e28cf58a108.

Signed-off-by: emanuele <emanuele45@gmail.com>
Badly initialized variable... - Thanks Norv

Signed-off-by: emanuele <emanuele45@gmail.com>
 Fix some undefined indexes due to the recent changes somewhere

Signed-off-by: emanuele <emanuele45@gmail.com>
Fixed stupid error - Thanks Norv!

Signed-off-by: emanuele <emanuele45@gmail.com>
$_SESSION stored in variable and passed to countSplitMessages - Thanks
Norv for the suggestion

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

Split controller
Add abstract base class Action_Controller.

Signed-off-by: Norv <a.w.norv@gmail.com>
Derive all admin controllers from Action_Controller.
Document action_index() for each.
Rename redundant 'extra'-word logs methods. (i.e. modlog->log)

Signed-off-by: Norv <a.w.norv@gmail.com>
Make two dozen user/mod controllers extend Action_Controller.
Add index where missing.

Signed-off-by: Norv <a.w.norv@gmail.com>
Update more user controllers to extend the base class.

Signed-off-by: Norv <a.w.norv@gmail.com>
Refactor to action controller subclasses. Tweak modcenter.

Signed-off-by: Norv <a.w.norv@gmail.com>
Rework createList() callbacks in moderation center controller:
instance methods for the list, and database-working functions
for the db work involved. Wip cleaning globals from subs (tweaks
should be in list_() methods.)

Signed-off-by: Norv <a.w.norv@gmail.com>
Tweaks for list_ callbacks, add methods visibility.

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