后台添加 百度或者cnzz站长友盟统计代码过滤

来源:互联网 发布:ubuntu 卸载jupyter 编辑:程序博客网 时间:2024/04/29 05:25
                 //百度或者cnzz站长友盟统计代码                $data['statistics_code'];                //代码过滤                $data['statistics_code'] = preg_replace('/language\s*=[\s|\'|\"]*php/is', '_', $data['statistics_code']);                $data['statistics_code'] = str_replace(array('<?', '?>'), array('&lt;?', '?&gt;'), $data['statistics_code']);