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