@@ 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 BaseObject(-1, 'failed_declared'); |
|
1195 | } |
|
1196 | ||
1197 | // if the comment author is a member |
|
1198 | if($oComment->get('member_srl')) |
@@ 1222-1225 (lines=4) @@ | ||
1219 | $oDocument = $oDocumentModel->getDocument($document_srl, false, false); |
|
1220 | ||
1221 | // Pass if the author's IP address is as same as visitor's. |
|
1222 | if($oDocument->get('ipaddress') == $_SERVER['REMOTE_ADDR']) { |
|
1223 | $_SESSION['declared_document'][$document_srl] = true; |
|
1224 | return new BaseObject(-1, 'failed_declared'); |
|
1225 | } |
|
1226 | ||
1227 | // Check if document's author is a member. |
|
1228 | if($oDocument->get('member_srl')) |