有办法 去掉 浏览器标题栏的Powered by 吗?

2016-07-07 15:06 来源:www.chinab4c.com 作者:ecshop专家

有办法 去掉 浏览器标题栏的Powered by ECSHOP吗?
虽然不是很有心,但是还是希望有高人告诉我一下在那个地方可以看到这个!

回答:
打开include 下lib_main.php文件129行找到这函数


  1. function assign_ur_here($cat = 0, $str = '')
  2. {
  3. /* 取得文件名 */
  4. $filename = substr(basename(PHP_SELF), 0, -4);
  5. /* 初始化“页面标题”和“当前位置” */
  6. $page_title = $GLOBALS['_CFG']['shop_title'] . ' - ' . 'Powered by ECShop';
  7. $ur_here = '<a href=".">' . $GLOBALS['_LANG']['home'] . '</a>';
  8. /* 根据文件名分别处理中间的部分 */
  9. if ($filename != 'index')
  10. {
  11. /* 处理有分类的 */
  12. if (in_array($filename, array('category', 'goods', 'article_cat', 'article', 'brand')))
  13. {
  14. /* 商品分类或商品 */
  15. if ('category' == $filename || 'goods' == $filename || 'brand' == $filename)
  16. {
  17. if ($cat > 0)
  18. {
  19. $cat_arr = get_parent_cats($cat);
  20. $key= 'cid';
  21. $type = 'category';
  22. }
  23. else
  24. {
  25. $cat_arr = array();
  26. }
  27. }
  28. /* 文章分类或文章 */
  29. elseif ('article_cat' == $filename || 'article' == $filename)
  30. {
  31. if ($cat > 0)
  32. {
  33. $cat_arr = get_article_parent_cats($cat);
  34. $key= 'acid';
  35. $type = 'article_cat';
  36. }
  37. else
  38. {
  39. $cat_arr = array();
  40. }
  41. }
  42. /* 循环分类 */
  43. if (!empty($cat_arr))
  44. {
  45. krsort($cat_arr);
  46. foreach ($cat_arr AS $val)
  47. {
  48. $page_title = htmlspecialchars($val['cat_name']) . '_' . $page_title;
  49. $args = array($key => $val['cat_id']);
  50. $ur_here.= ' <code>&gt;</code> <a href="' . build_uri($type, $args, $val['cat_name']) . '">' .
  51. htmlspecialchars($val['cat_name']) . '</a>';
  52. }
  53. }
  54. }
  55. /* 处理无分类的 */
  56. else
  57. {
  58. /* 团购 */
  59. if ('group_buy' == $filename)
  60. {
  61. $page_title = $GLOBALS['_LANG']['group_buy_goods'] . '_' . $page_title;
  62. $args = array('gbid' => '0');
  63. $ur_here.= ' <code>&gt;</code> <a href="group_buy.php">' .
  64. $GLOBALS['_LANG']['group_buy_goods'] . '</a>';
  65. }
  66. /* 拍卖 */
  67. elseif ('auction' == $filename)
  68. {
  69. $page_title = $GLOBALS['_LANG']['auction'] . '_' . $page_title;
  70. $args = array('auid' => '0');
  71. $ur_here.= ' <code>&gt;</code> <a href="auction.php">' .
  72. $GLOBALS['_LANG']['auction'] . '</a>';
  73. }
  74. /* 批发 */
  75. elseif ('wholesale' == $filename)
  76. {
  77. $page_title = $GLOBALS['_LANG']['wholesale'] . '_' . $page_title;
  78. $args = array('wsid' => '0');
  79. $ur_here.= ' <code>&gt;</code> <a href="wholesale.php">' .
  80. $GLOBALS['_LANG']['wholesale'] . '</a>';
  81. }
  82. /* 其他的在这里补充 */
  83. }
  84. }
  85. /* 处理最后一部分 */
  86. if (!empty($str))
  87. {
  88. $page_title= $str . '_' . $page_title;
  89. $ur_here .= ' <code>&gt;</code> ' . $str;
  90. }
  91. /* 返回值 */
  92. return array('title' => $page_title, 'ur_here' => $ur_here);
  93. }

复制代码

修改
$page_title = $GLOBALS['_CFG']['shop_title'] ;
ok搞定

不赞成去除版权信息。

非常感谢!
不是为了去除,只是学习学习!
底部版权信息偶会保留的!

o(∩_∩)o...

多谢拉、、、、、

学习了!谢谢"qiyongdong"

版权要保留,但要平衡用者内容版面的洁净。找个平衡点吧。

我出错了。
Warning: Cannot modify header information - headers already sent by (output started at E:\WebSite\includes\lib_main.php:1) in E:\WebSite\includes\init.php on line 157

Warning: Cannot modify header information - headers already sent by (output started at E:\WebSite\includes\lib_main.php:1) in E:\WebSite\includes\init.php on line 158

Warning: Cannot modify header information - headers already sent by (output started at E:\WebSite\includes\lib_main.php:1) in E:\WebSite\includes\cls_template.php on line 58

Warning: Cannot modify header information - headers already sent by (output started at E:\WebSite\includes\lib_main.php:1) in E:\WebSite\includes\lib_main.php on line 1090

我在底部保留了版权