コード例 #1
0
ファイル: forum.php プロジェクト: BACKUPLIB/minimanager-1
// #######################################################################################################
// Edit Post AND Do Edit Post
// #######################################################################################################
require_once './include/forum/forum_post_edit.php';
//#############################################################################
// 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) {
コード例 #2
0
ファイル: forum.php プロジェクト: BACKUPLIB/minimanager
    // update topic' s last post id
    redirect("forum.php?action=view_topic&id={$id}");
    // Queries : 1
}
if (isset($_GET['action'])) {
    $action = addslashes($_GET['action']);
} 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();