ECShop研究:去掉标题中的Powered by ECShop和meta的<meta name="Generator" content="ECSHOP v2.7.3" />

本文以ECSHOP v2.7.3为说明,其他版本可能有所不同。

标题中的Powered by ECShop去除方法:

打开includes/lib_main.php文件;
找到156行:$page_title = $GLOBALS['_CFG']['shop_title'] . ' - ' . 'Powered by ECShop';
改为:$page_title = $GLOBALS['_CFG']['shop_title'];

保存刷新即可。

<meta name="Generator" content="ECSHOP v2.7.3" />的去除方法:

打开includes/cls_template.php;
找到1100行:
$source
= preg_replace('/<head>/i', "<head>\r\n<meta name=\"Generator\" content=\"" . APPNAME .' ' . VERSION . "\" />", $source);
可以直接注释掉,也可以修改成其他的内容。

还有一个方法就是保留Generator但是显示为其他内容的修改方法为:
打开
includes/cls_ecshop.php
找到第21到第23行:
define(
'APPNAME', 'YCSHOP');
define(
'VERSION', 'v2.7.3');
define(
'RELEASE', '20141106');

将相应的内容修改即可。

 

posted @ 2014-09-10 14:08  DragonDean  阅读(587)  评论(0)    收藏  举报
CopyRight (C) 2014 By:DreagonDean 小程序公众号开发交流群:294322801