Exemple #1
0
//#############################################################################
// MAIN
//#############################################################################
// load language
$forum_lang = lang_forum();
// $_GET and SECURE
$action = isset($_GET['action']) ? $_GET['action'] : NULL;
// define functions to be called by actions
if ('index' == $action) {
    forum_index($sqlr, $sqlm);
} elseif ('view_forum' == $action) {
    forum_view_forum($sqlm);
} elseif ('view_topic' == $action) {
    forum_view_topic($sqlr, $sqlc, $sqlm);
} elseif ('add_topic' == $action) {
    forum_add_topic($sqlm);
} elseif ('do_add_topic' == $action) {
    forum_do_add_topic($sqlm);
} elseif ('do_edit_close' == $action) {
    forum_do_edit_close($sqlm);
} elseif ('do_edit_announce' == $action) {
    forum_do_edit_announce($sqlm);
} elseif ('do_edit_stick' == $action) {
    forum_do_edit_stick($sqlm);
} elseif ('move_topic' == $action) {
    forum_move_topic($sqlm);
} elseif ('do_move_topic' == $action) {
    forum_do_move_topic($sqlm);
} elseif ('do_add_post' == $action) {
    forum_do_add_post($sqlm);
} elseif ('delete_post' == $action) {
Exemple #2
0
} else {
    $action = NULL;
}
$forum_lang = lang_forum();
switch ($action) {
    case "index":
        forum_index();
        break;
    case "view_forum":
        forum_view_forum();
        break;
    case "view_topic":
        forum_view_topic();
        break;
    case "add_topic":
        forum_add_topic();
        break;
    case "do_add_topic":
        forum_do_add_topic();
        break;
    case "edit_post":
        forum_edit_post();
        break;
    case "do_edit_post":
        forum_do_edit_post();
        break;
    case "delete_post":
        forum_delete_post();
        break;
    case "do_delete_post":
        forum_do_delete_post();