コード例 #1
0
ファイル: board.php プロジェクト: stormeus/Kusaba-Z
         }
     }
     $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'])) {
     if ($_POST['formatting'] == 'aa') {
         $_POST['message'] = '[aa]' . $_POST['message'] . '[/aa]';
     }
     if (isset($_POST['rememberformatting'])) {
         setcookie('kuformatting', urldecode($_POST['formatting']), time() + 31556926, '/', KU_DOMAIN);
     }
 }
 $results = $tc_db->GetAll("SELECT id FROM `" . KU_DBPREFIX . "posts` WHERE `boardid` = " . $board_class->board['id'] . " ORDER BY id DESC LIMIT 1");
 if (count($results) > 0) {