mirror of
https://github.com/typecho/typecho.git
synced 2025-01-17 04:28:17 +01:00
parent
0f572bc06e
commit
13f6adad4d
@ -595,6 +595,7 @@ class Widget_XmlRpc extends Widget_Abstract_Contents implements Widget_Interface
|
||||
/** 开始接受数据 */
|
||||
$input['name'] = $category['name'];
|
||||
$input['slug'] = Typecho_Common::slugName(empty($category['slug']) ? $category['name'] : $category['slug']);
|
||||
$input['parent'] = isset($category['parent_id']) ? $category['parent_id'] : 0;
|
||||
$input['type'] = 'category';
|
||||
$input['description'] = isset($category['description']) ? $category['description'] : $category['name'];
|
||||
$input['do'] = 'insert';
|
||||
@ -2177,14 +2178,6 @@ class Widget_XmlRpc extends Widget_Abstract_Contents implements Widget_Interface
|
||||
}
|
||||
}
|
||||
|
||||
public function log($value = '')
|
||||
{
|
||||
$fp = fopen("log.txt", "a+");
|
||||
fwrite($fp, "[" . date('Y-m-d H:i:s') . "]\t" . $value . "\n");
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 入口执行方法
|
||||
*
|
||||
@ -2193,9 +2186,6 @@ class Widget_XmlRpc extends Widget_Abstract_Contents implements Widget_Interface
|
||||
*/
|
||||
public function action()
|
||||
{
|
||||
|
||||
//$this->log($GLOBALS['HTTP_RAW_POST_DATA']);
|
||||
|
||||
if (isset($this->request->rsd)) {
|
||||
echo
|
||||
<<<EOF
|
||||
|
Loading…
x
Reference in New Issue
Block a user