mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
자추 활성화
This commit is contained in:
parent
165e976fa3
commit
23ab7cccce
2 changed files with 4 additions and 2 deletions
|
|
@ -1612,12 +1612,13 @@ class CommentController extends Comment
|
||||||
// if the comment author is a member
|
// if the comment author is a member
|
||||||
if($oComment->get('member_srl'))
|
if($oComment->get('member_srl'))
|
||||||
{
|
{
|
||||||
// session registered if the author information matches to the current logged-in user's.
|
/* session registered if the author information matches to the current logged-in user's.
|
||||||
if($member_srl && $member_srl == abs($oComment->get('member_srl')))
|
if($member_srl && $member_srl == abs($oComment->get('member_srl')))
|
||||||
{
|
{
|
||||||
$_SESSION['voted_comment'][$comment_srl] = false;
|
$_SESSION['voted_comment'][$comment_srl] = false;
|
||||||
return new BaseObject(-1, $failed_voted . '_self');
|
return new BaseObject(-1, $failed_voted . '_self');
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
// If logged-in, use the member_srl. otherwise use the ipaddress.
|
// If logged-in, use the member_srl. otherwise use the ipaddress.
|
||||||
|
|
|
||||||
|
|
@ -1877,12 +1877,13 @@ class DocumentController extends Document
|
||||||
// Check if document's author is a member.
|
// Check if document's author is a member.
|
||||||
if($oDocument->get('member_srl'))
|
if($oDocument->get('member_srl'))
|
||||||
{
|
{
|
||||||
// Pass after registering a session if author's information is same as the currently logged-in user's.
|
/* Pass after registering a session if author's information is same as the currently logged-in user's.
|
||||||
if($member_srl && $member_srl == abs($oDocument->get('member_srl')))
|
if($member_srl && $member_srl == abs($oDocument->get('member_srl')))
|
||||||
{
|
{
|
||||||
$_SESSION['voted_document'][$document_srl] = false;
|
$_SESSION['voted_document'][$document_srl] = false;
|
||||||
return new BaseObject(-1, $failed_voted . '_self');
|
return new BaseObject(-1, $failed_voted . '_self');
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use member_srl for logged-in members and IP address for non-members.
|
// Use member_srl for logged-in members and IP address for non-members.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue