mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
issue 27 comment status refactoring
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8460 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
23453c0aac
commit
e56c8ee2a1
12 changed files with 106 additions and 25 deletions
|
|
@ -559,8 +559,7 @@
|
|||
if(!$obj->last_update) $obj->last_update = $obj->regdate;
|
||||
$obj->ipaddress = base64_decode($xmlDoc->post->ipaddress->body);
|
||||
$obj->list_order = $obj->update_order = $obj->document_srl*-1;
|
||||
$obj->allow_comment = base64_decode($xmlDoc->post->allow_comment->body)!='N'?'Y':'N';
|
||||
$obj->lock_comment = base64_decode($xmlDoc->post->lock_comment->body)=='Y'?'Y':'N';
|
||||
$obj->commentStatus = base64_decode($xmlDoc->post->allow_comment->body)!='N'?'ALLOW':'DENY';
|
||||
$obj->allow_trackback = base64_decode($xmlDoc->post->allow_trackback->body)!='N'?'Y':'N';
|
||||
$obj->notify_message = base64_decode($xmlDoc->post->is_notice->body);
|
||||
// Change content information (attachment)
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@
|
|||
$obj->title = $xmlDoc->post->title->body;
|
||||
$obj->content = $xmlDoc->post->content->body;
|
||||
$obj->password = md5($xmlDoc->post->password->body);
|
||||
$obj->allow_comment = $xmlDoc->post->acceptcomment->body=='1'?'Y':'N';
|
||||
$obj->commentStatus = $xmlDoc->post->acceptcomment->body=='1'?'ALLOW':'DENY';
|
||||
$obj->allow_trackback = $xmlDoc->post->accepttrackback->body=='1'?'Y':'N';
|
||||
//$obj->allow_comment = $xmlDoc->post->acceptComment->body=='1'?'Y':'N';
|
||||
//$obj->allow_trackback = $xmlDoc->post->acceptTrackback->body=='1'?'Y':'N';
|
||||
|
|
@ -144,7 +144,6 @@
|
|||
$obj->homepage = $member_info->homepage;
|
||||
$obj->ipaddress = $_REMOTE['SERVER_ADDR'];
|
||||
$obj->list_order = $obj->update_order = $obj->document_srl*-1;
|
||||
$obj->lock_comment = 'N';
|
||||
$obj->notify_message = 'N';
|
||||
// Change content information (attachment)
|
||||
$obj->content = str_replace('[##_ATTACH_PATH_##]/','',$obj->content);
|
||||
|
|
@ -282,7 +281,7 @@
|
|||
$obj->title = cut_str(strip_tags($obj->content),20,'...');
|
||||
if ($obj->title == '') $obj->title = 'Untitled';
|
||||
|
||||
$obj->allow_comment = 'Y';
|
||||
$obj->commentStatus = 'ALLOW';
|
||||
$obj->allow_trackback = 'N';
|
||||
$obj->regdate = date("YmdHis",$val->written->body);
|
||||
$obj->last_update = date("YmdHis", $val->written->body);
|
||||
|
|
@ -307,7 +306,6 @@
|
|||
}
|
||||
$obj->ipaddress = $val->commenter->ip->body;
|
||||
$obj->list_order = $obj->update_order = $obj->document_srl*-1;
|
||||
$obj->lock_comment = 'N';
|
||||
$obj->notify_message = 'N';
|
||||
$obj->trackback_count = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue