Exemplo n.º 1
0
                     post_add_edit_text($tid, 1);
                     admin_add_log_entry(THREAD_MERGE, $merge_result);
                 } else {
                     $error_msg_array[] = $error_str;
                     $valid = false;
                 }
             }
         }
     } else {
         if ($_POST['thread_merge_split'] == THREAD_TYPE_SPLIT) {
             if (isset($_POST['split_thread']) && is_numeric($_POST['split_thread']) && $_POST['split_thread'] > 1) {
                 if (isset($_POST['split_type']) && is_numeric($_POST['split_type']) && isset($_POST['split_thread_con']) && $_POST['split_thread_con'] == "Y") {
                     $error_str = '';
                     $split_start = $_POST['split_thread'];
                     $split_type = $_POST['split_type'];
                     if ($split_result = thread_split($tid, $split_start, $split_type, $error_str)) {
                         post_add_edit_text($tid, 1);
                         admin_add_log_entry(THREAD_SPLIT, $split_result);
                     } else {
                         $error_msg_array[] = $error_str;
                         $valid = false;
                     }
                 }
             }
         }
     }
 }
 if (isset($_POST['t_to_uid_in_thread']) && is_numeric($_POST['t_to_uid_in_thread']) && isset($_POST['deluser_con']) && $_POST['deluser_con'] == "Y") {
     $del_user_uid = $_POST['t_to_uid_in_thread'];
     if ($user_logon = user_get_logon($del_user_uid)) {
         if (thread_delete_by_user($tid, $del_user_uid)) {
Exemplo n.º 2
0
                     post_add_edit_text($tid, 1);
                     admin_add_log_entry(THREAD_MERGE, $merge_result);
                 } else {
                     $error_msg_array[] = $error_str;
                     $valid = false;
                 }
             }
         }
     } else {
         if ($_POST['thread_merge_split'] == THREAD_TYPE_SPLIT) {
             if (isset($_POST['split_thread']) && is_numeric($_POST['split_thread']) && $_POST['split_thread'] > 1) {
                 if (isset($_POST['split_type']) && is_numeric($_POST['split_type']) && isset($_POST['split_thread_con']) && $_POST['split_thread_con'] == "Y") {
                     $error_str = '';
                     $split_start = $_POST['split_thread'];
                     $split_type = $_POST['split_type'];
                     if (($split_result = thread_split($tid, $split_start, $split_type, $error_str)) !== false) {
                         post_add_edit_text($tid, 1);
                         admin_add_log_entry(THREAD_SPLIT, $split_result);
                     } else {
                         $error_msg_array[] = $error_str;
                         $valid = false;
                     }
                 }
             }
         }
     }
 }
 if (isset($_POST['t_to_uid_in_thread']) && is_numeric($_POST['t_to_uid_in_thread']) && isset($_POST['deluser_con']) && $_POST['deluser_con'] == "Y") {
     $del_user_uid = $_POST['t_to_uid_in_thread'];
     if (($user_logon = user_get_logon($del_user_uid)) !== false) {
         if (thread_delete_by_user($tid, $del_user_uid)) {