mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改视图行为过滤
This commit is contained in:
parent
04d87df49e
commit
60a8c0ff38
@ -57,17 +57,19 @@ class FilterView
|
|||||||
{
|
{
|
||||||
if (($key = sysconf('tongji_baidu_key'))) {
|
if (($key = sysconf('tongji_baidu_key'))) {
|
||||||
$script = <<<SCRIPT
|
$script = <<<SCRIPT
|
||||||
<script>
|
\n<!-- 百度统计 开始 -->
|
||||||
var _hmt = _hmt || [];
|
<script>
|
||||||
(function() {
|
var _hmt = _hmt || [];
|
||||||
var hm = document.createElement("script");
|
(function() {
|
||||||
hm.src = "https://hm.baidu.com/hm.js?{$key}";
|
var hm = document.createElement("script");
|
||||||
var s = document.getElementsByTagName("script")[0];
|
hm.src = "https://hm.baidu.com/hm.js?{$key}";
|
||||||
s.parentNode.insertBefore(hm, s);
|
var s = document.getElementsByTagName("script")[0];
|
||||||
})();
|
s.parentNode.insertBefore(hm, s);
|
||||||
</script>
|
})();
|
||||||
|
</script>
|
||||||
|
<!-- 百度统计 结束 -->\n\n
|
||||||
SCRIPT;
|
SCRIPT;
|
||||||
$params = preg_replace('|</body>|i', "{$script}\n </body>", $params);
|
$params = preg_replace('|</body>|i', "{$script}</body>", $params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user