thanks @loftor-git, but I want to delete the "log" method
This commit is contained in:
祁宁 2014-05-23 14:44:05 +08:00
parent 0f572bc06e
commit 13f6adad4d

View File

@ -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