Пример #1
0
     if ($board_class->board['type'] != 1 && (($board_class->board['uploadtype'] == '1' || $board_class->board['uploadtype'] == '2') && $board_class->board['embeds_allowed'] != '')) {
         if (isset($_POST['embed'])) {
             if ($_POST['embed'] == '') {
                 if ($board_class->board['uploadtype'] == '1' && $imagefile_name == '' || $board_class->board['uploadtype'] == '2') {
                     exitWithErrorPage('Please enter an embed ID.');
                 }
             }
         } else {
             exitWithErrorPage('Please enter an embed ID.');
         }
     }
     $thread_replies = 0;
     $thread_locked = 0;
     $thread_replyto = 0;
 }
 list($post_name, $post_email, $post_subject) = $posting_class->GetFields();
 $post_password = isset($_POST['postpassword']) ? $_POST['postpassword'] : '';
 if ($board_class->board['type'] == 1) {
     if ($post_isreply) {
         $post_subject = '';
     } else {
         $posting_class->CheckNotDuplicateSubject($post_subject);
     }
 }
 list($user_authority, $flags) = $posting_class->GetUserAuthority();
 $post_fileused = false;
 $post_autosticky = false;
 $post_autolock = false;
 $post_displaystaffstatus = false;
 $file_is_special = false;
 if (isset($_POST['formatting'])) {