示例#1
0
    exit;
}
if (isset($_GET["topic_name"])) {
    topics_add();
    exit;
}
if (isset($_GET["mailman_delete_topics"])) {
    topics_delete();
    exit;
}
if (isset($_GET["topic_list"])) {
    echo topics_list();
    exit;
}
if (isset($_GET["mailman_move_topics"])) {
    topic_move();
    exit;
}
if (isset($_GET["newsg"])) {
    newsg();
    exit;
}
if (isset($_GET["autoresponder"])) {
    autoresponder();
    exit;
}
if (isset($_GET["member_moderation_notice"])) {
    member_moderation_notice_save();
    exit;
}
if (isset($_GET["nonmember_rejection_notice"])) {
示例#2
0
         }
         $net_forums = array_flip(explode(',', $bb_cfg['network_news_forum_id']));
         if (isset($net_forums[$forum_id]) && $bb_cfg['show_network_news'] && $result) {
             $datastore->enqueue('network_news');
             $datastore->update('network_news');
         }
         $msg = $result ? $lang['TOPICS_REMOVED'] : $lang['NO_TOPICS_REMOVED'];
         bb_die(return_msg_mcp($msg));
     } else {
         print_confirmation(array('QUESTION' => $lang['CONFIRM_DELETE_TOPIC'], 'ITEMS_LIST' => join("\n</li>\n<li>\n", $topic_titles), 'FORM_ACTION' => "modcp.php", 'HIDDEN_FIELDS' => build_hidden_fields($hidden_fields)));
     }
     break;
 case 'move':
     if ($confirmed) {
         $new_forum_id = (int) $_POST['new_forum'];
         $result = topic_move($req_topics, $new_forum_id, $forum_id, isset($_POST['move_leave_shadow']), isset($_POST['insert_bot_msg']));
         //Обновление кеша новостей на главной
         $news_forums = array_flip(explode(',', $bb_cfg['latest_news_forum_id']));
         if ((isset($news_forums[$forum_id]) || isset($news_forums[$new_forum_id])) && $bb_cfg['show_latest_news'] && $result) {
             $datastore->enqueue('latest_news');
             $datastore->update('latest_news');
         }
         $net_forums = array_flip(explode(',', $bb_cfg['network_news_forum_id']));
         if ((isset($net_forums[$forum_id]) || isset($net_forums[$new_forum_id])) && $bb_cfg['show_network_news'] && $result) {
             $datastore->enqueue('network_news');
             $datastore->update('network_news');
         }
         $msg = $result ? $lang['TOPICS_MOVED'] : $lang['NO_TOPICS_MOVED'];
         bb_die(return_msg_mcp($msg));
     } else {
         if (IS_ADMIN) {