@@ 102-106 (lines=5) @@ | ||
99 | if (isset($post['moretext'])) { |
|
100 | $story->setBodytext(addslashes(trim($post['moretext']))); |
|
101 | } |
|
102 | if (!isset($post['hometext'])) { |
|
103 | $story->setHometext(addslashes(trim($this->params[3]['xoops_text']))); |
|
104 | } else { |
|
105 | $story->setHometext(addslashes(trim($post['hometext']))); |
|
106 | } |
|
107 | $story->setUid($this->user->getVar('uid')); |
|
108 | $story->setHostname($_SERVER['REMOTE_ADDR']); |
|
109 | if (!$this->_checkAdmin()) { |
|
@@ 174-178 (lines=5) @@ | ||
171 | if (isset($post['moretext'])) { |
|
172 | $story->setBodytext(addslashes(trim($post['moretext']))); |
|
173 | } |
|
174 | if (!isset($post['hometext'])) { |
|
175 | $story->setHometext(addslashes(trim($this->params[3]['xoops_text']))); |
|
176 | } else { |
|
177 | $story->setHometext(addslashes(trim($post['hometext']))); |
|
178 | } |
|
179 | if ($this->params[4]) { |
|
180 | $story->setApproved(true); |
|
181 | $story->setPublished(time()); |