| @@ 1191-1195 (lines=5) @@ | ||
| 1188 | $oComment = $oCommentModel->getComment($comment_srl, FALSE, FALSE); |
|
| 1189 | ||
| 1190 | // failed if both ip addresses between author's and the current user are same. |
|
| 1191 | if($oComment->get('ipaddress') == $_SERVER['REMOTE_ADDR']) |
|
| 1192 | { |
|
| 1193 | $_SESSION['declared_comment'][$comment_srl] = TRUE; |
|
| 1194 | return new Object(-1, 'failed_declared'); |
|
| 1195 | } |
|
| 1196 | ||
| 1197 | // if the comment author is a member |
|
| 1198 | if($oComment->get('member_srl')) |
|
| @@ 1218-1221 (lines=4) @@ | ||
| 1215 | $oDocument = $oDocumentModel->getDocument($document_srl, false, false); |
|
| 1216 | ||
| 1217 | // Pass if the author's IP address is as same as visitor's. |
|
| 1218 | if($oDocument->get('ipaddress') == $_SERVER['REMOTE_ADDR']) { |
|
| 1219 | $_SESSION['declared_document'][$document_srl] = true; |
|
| 1220 | return new Object(-1, 'failed_declared'); |
|
| 1221 | } |
|
| 1222 | ||
| 1223 | // Check if document's author is a member. |
|
| 1224 | if($oDocument->get('member_srl')) |
|