mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
handle content for mobile
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7557 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cc21e013ab
commit
0693d8fd10
2 changed files with 8 additions and 0 deletions
|
|
@ -129,6 +129,10 @@
|
|||
|
||||
// 내용에서 XE만의 태그를 삭제
|
||||
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
|
||||
if(Mobile::isFromMobilePhone())
|
||||
{
|
||||
$obj->content = nl2br(htmlspecialchars($obj->content));
|
||||
}
|
||||
if(!$obj->regdate) $obj->regdate = date("YmdHis");
|
||||
|
||||
// 세션에서 최고 관리자가 아니면 iframe, script 제거
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue