mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 17:22:20 +09:00
english comments added
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0_english@8278 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
693e215bc1
commit
4d272994dd
219 changed files with 6407 additions and 8705 deletions
|
|
@ -4,10 +4,10 @@
|
|||
/**
|
||||
* @file ./addons/blogapi/blogapi.func.php
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief blogapi구현을 위한 함수 모음집
|
||||
* @brief Function collections for the implementation of blogapi
|
||||
**/
|
||||
|
||||
// 오류 표시
|
||||
// Error messages
|
||||
function getXmlRpcFailure($error, $message) {
|
||||
return
|
||||
sprintf(
|
||||
|
|
@ -16,8 +16,7 @@
|
|||
htmlspecialchars($message)
|
||||
);
|
||||
}
|
||||
|
||||
// 결과 표시
|
||||
// Display results
|
||||
function getXmlRpcResponse($params) {
|
||||
$buff = '<?xml version="1.0" encoding="utf-8"?>'."\n<methodResponse><params>";
|
||||
$buff .= _getEncodedVal($params);
|
||||
|
|
@ -25,8 +24,7 @@
|
|||
|
||||
return $buff;
|
||||
}
|
||||
|
||||
// 인코딩 처리
|
||||
// Encoding
|
||||
function _getEncodedVal($val, $is_sub_set = false) {
|
||||
if(is_int($val)) $buff = sprintf("<value><i4>%d</i4></value>", $val);
|
||||
elseif(is_string($val)&&preg_match('/^([0-9]+)T([0-9\:]+)$/', $val)) $buff = sprintf("<value><dateTime.iso8601>%s</dateTime.iso8601></value>\n", $val);
|
||||
|
|
@ -53,8 +51,7 @@
|
|||
if(!$is_sub_set) return sprintf("<param>\n%s</param>", $buff);
|
||||
return $buff;
|
||||
}
|
||||
|
||||
// 결과 출력
|
||||
// Display the result
|
||||
function printContent($content) {
|
||||
header("Content-Type: text/xml; charset=UTF-8");
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue