| @@ 1200-1204 (lines=5) @@ | ||
| 1197 | $oComment = $oCommentModel->getComment($comment_srl, FALSE, FALSE); |
|
| 1198 | ||
| 1199 | // failed if both ip addresses between author's and the current user are same. |
|
| 1200 | if($oComment->get('ipaddress') == $_SERVER['REMOTE_ADDR']) |
|
| 1201 | { |
|
| 1202 | $_SESSION['declared_comment'][$comment_srl] = TRUE; |
|
| 1203 | return new BaseObject(-1, 'failed_declared'); |
|
| 1204 | } |
|
| 1205 | ||
| 1206 | // if the comment author is a member |
|
| 1207 | if($oComment->get('member_srl')) |
|
| @@ 1231-1234 (lines=4) @@ | ||
| 1228 | $oDocument = $oDocumentModel->getDocument($document_srl, false, false); |
|
| 1229 | ||
| 1230 | // Pass if the author's IP address is as same as visitor's. |
|
| 1231 | if($oDocument->get('ipaddress') == $_SERVER['REMOTE_ADDR']) { |
|
| 1232 | $_SESSION['declared_document'][$document_srl] = true; |
|
| 1233 | return new BaseObject(-1, 'failed_declared'); |
|
| 1234 | } |
|
| 1235 | ||
| 1236 | // Check if document's author is a member. |
|
| 1237 | if($oDocument->get('member_srl')) |
|