コード例 #1
0
ファイル: class_postbit.php プロジェクト: hungnv0789/vhtm
	/**
	* Processes miscellaneous post items at the beginning of the construction process.
	*/
	function prep_post_start()
	{
		parent::prep_post_start();
		$this->post['checkbox_value'] += ($this->post['visible'] == 0 OR ($this->thread['firstpostid'] == $this->post['postid'] AND $this->thread['visible'] == 0)) ? POST_FLAG_INVISIBLE : 0;
		$this->post['checkbox_value'] += ($this->post['visible'] == 2 OR ($this->thread['firstpostid'] == $this->post['postid'] AND $this->thread['visible'] == 2)) ? POST_FLAG_DELETED : 0;
		$this->post['checkbox_value'] += is_array($this->post['attachments']) ? POST_FLAG_ATTACH : 0;
		$this->post['checkbox_value'] += $this->post['userid'] == 0 ? POST_FLAG_GUEST : 0;
	}
コード例 #2
0
ファイル: class_postbit_alt.php プロジェクト: holandacz/nb4
 /**
  * Processes miscellaneous post items at the beginning of the construction process.
  */
 function prep_post_start()
 {
     if ($userinfo = fetch_userinfo($this->post['fromuserid'], 3)) {
         $this->post = array_merge($this->post, $userinfo);
     } else {
         // Deleted user?
         $this->post['userid'] = 0;
         $this->post['postusername'] = $this->post['fromusername'];
     }
     parent::prep_post_start();
 }