35 if (!$this->
_checkUser($this->params[2], $this->params[3])) {
43 foreach ($fields as $tag => $detail) {
45 $data = $this->
_getTagCdata($this->params[4], $maptag,
true);
46 if (trim($data) ==
''){
47 if ($detail[
'required']) {
54 if (count($missing) > 0) {
56 foreach ($missing as $m) {
63 $newparams[0] = $this->params[1];
64 $newparams[1] = $this->params[2];
65 $newparams[2] = $this->params[3];
66 foreach ($post as $key => $value) {
67 $newparams[3][$key] = $value;
70 $newparams[3][
'xoops_text'] = $this->params[4];
71 $newparams[4] = $this->params[5];
73 $xoopsapi->_setUser($this->user, $this->isadmin);
82 if (!$this->
_checkUser($this->params[2], $this->params[3])) {
89 foreach ($fields as $tag => $detail) {
90 $data = $this->
_getTagCdata($this->params[4], $tag,
true);
91 if (trim($data) ==
''){
92 if ($detail[
'required']) {
99 if (count($missing) > 0) {
101 foreach ($missing as $m) {
106 $newparams = array();
108 $newparams[0] = $this->params[1];
109 $newparams[1] = $this->params[2];
110 $newparams[2] = $this->params[3];
111 foreach ($post as $key => $value) {
112 $newparams[3][$key] = $value;
115 $newparams[3][
'xoops_text'] = $this->params[4];
116 $newparams[4] = $this->params[5];
118 $xoopsapi->_setUser($this->user, $this->isadmin);
119 $xoopsapi->editPost();
127 if (!$this->
_checkUser($this->params[2], $this->params[3])) {
131 array_shift($this->params);
133 $xoopsapi->_setUser($this->user, $this->isadmin);
134 $xoopsapi->deletePost();
140 if (!$this->
_checkUser($this->params[2], $this->params[3])) {
144 array_shift($this->params);
146 $xoopsapi->_setUser($this->user, $this->isadmin);
147 $ret = $xoopsapi->getPost(
false);
148 if (is_array($ret)) {
151 foreach ($ret as $key => $value) {
164 $content .=
'<'.$key.
'>'.trim($value).
'</'.$key.
'>';
169 $this->response->add($struct);
178 if (!$this->
_checkUser($this->params[2], $this->params[3])) {
182 array_shift($this->params);
184 $xoopsapi->_setUser($this->user, $this->isadmin);
185 $ret = $xoopsapi->getRecentPosts(
false);
186 if (is_array($ret)) {
195 foreach($ret[
$i] as $key => $value) {
208 $content .=
'<'.$key.
'>'.trim($value).
'</'.$key.
'>';
216 $this->response->add($arr);
226 if (!$this->
_checkUser($this->params[1], $this->params[2])) {
236 $this->response->add($arr);
242 if (!$this->
_checkUser($this->params[1], $this->params[2])) {
252 $this->response->add($struct);
258 if (!$this->
_checkUser($this->params[2], $this->params[3])) {
261 switch ($this->params[5]) {
277 if (!$this->
_checkUser($this->params[2], $this->params[3])) {
BloggerApi(&$params, &$response, &$module)
_getTagCdata(&$text, $tag, $remove=true)
XoopsXmlRpcApi(array &$params, XoopsXmlRpcResponse &$response, XoopsModule &$module)
_getPostFields($post_id=null, $blog_id=null)
_getXoopsTagMap($xoopstag)
_checkUser($username, $password)
_setXoopsTagMap($xoopstag, $blogtag)
if(!is_object($module)||!$module->getVar('isactive')) $msg