Guest User

Untitled

a guest
Sep 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. $ grep -A 5 -B 5 post.before post.lib.php
  2. $this->AttachDLCount = 0;
  3. $this->IP = $_SERVER['REMOTE_ADDR'];
  4. $this->Hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
  5. $this->SpamRating = $SpamRating;
  6.  
  7. UnbCallHook('post.beforeadd', $this);
  8.  
  9. $ok = $this->db->AddRecord(array(
  10. 'ID' => $this->ID,
  11. 'Thread' => $this->Thread,
  12. 'ReplyTo' => $this->ReplyTo,
  13. --
  14. $this->EditCount++;
  15. }
  16. $this->EditReason = $EditReason; // always store edit reason, but maybe not always show it
  17. }
  18.  
  19. UnbCallHook('post.beforechange', $this);
  20.  
  21. $arr = array('Subject' => $this->Subject,
  22. 'Msg' => $this->Msg,
  23. 'Options' => $this->Options,
  24. 'SpamRating' => $this->SpamRating);
Add Comment
Please, Sign In to add comment