首页 > 其他 > 详细

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

时间:2014-09-10 15:35:20      阅读:265      评论:0      收藏:0      [点我收藏+]

本文以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);

将相应的内容修改即可。

 

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

原文:http://www.cnblogs.com/dragondean/p/ecshop-powered-Generator.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!