first
This commit is contained in:
40
modules/post/action/a.get_postData.php
Normal file
40
modules/post/action/a.get_postData.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
require_once $g['path_core'].'function/sys.class.php';
|
||||
include_once $g['dir_module'].'lib/action.func.php';
|
||||
include_once $g['dir_module'].'var/var.php';
|
||||
|
||||
if ($g['mobile']&&$_SESSION['pcmode']!='Y') {
|
||||
$theme = $d['post']['skin_mobile'];
|
||||
} else {
|
||||
$theme = $d['post']['skin_main'];
|
||||
}
|
||||
|
||||
$result=array();
|
||||
$result['error'] = false;
|
||||
|
||||
$uid = $_POST['uid']; // 포스트 고유번호
|
||||
|
||||
$R = getUidData($table[$m.'data'],$uid);
|
||||
$linkedshopArr = getArrayString($R['linkedshop']);
|
||||
|
||||
$result['featured'] = getPreviewResize(getUpImageSrc($R),'320x180');
|
||||
$result['subject'] = stripslashes($R['subject']);
|
||||
$result['goods'] = $linkedshopArr['data'][0];
|
||||
$result['article'] = getContents($R['content'],'HTML');
|
||||
$result['nic'] = getProfileInfo($R['mbruid'],'nic');
|
||||
$result['hit'] = $R['hit'];
|
||||
$result['likes'] = $R['likes']?$R['likes']:'';
|
||||
$result['dislikes'] = $R['dislikes']?$R['dislikes']:'';
|
||||
$result['comment'] = $R['comment']?($R['comment'].($R['oneline']?'+'.$R['oneline']:'')):'';
|
||||
$result['time'] = getUpImageTime($R)?getUpImageTime($R):'';
|
||||
|
||||
$markup_file = $markup_file?$markup_file:'view';
|
||||
|
||||
// 최종 결과값 추출 (sys.class.php)
|
||||
//$skin=new skin($markup_file);
|
||||
//$result['article']=$skin->make();
|
||||
echo json_encode($result);
|
||||
exit;
|
||||
?>
|
||||
Reference in New Issue
Block a user