资讯专栏INFORMATION COLUMN

Zurmo - - 商标及修改

elliott_hu / 2680人阅读

摘要:简介关于的商标和,官方源码中是这样说的在行中文的意思是不要删除标志或版权声明。根据第节的通用公共许可证版本,这些适当的法律声明必须保留显示的标志和版权声明。上面的这段进制字符串用相应的方法转换成正常的字符串就可以看到了。

1:简介

关于Zurmo的商标和Logo,官方源码中是这样说的:在 zurmo/app/protected/modules/zurmo/views/FooterView.php 48行

  Do not remove the Zurmo logo or Zurmo Copyright notice.The interactive user interfaces in original and modified versions of this program must display Appropriate Legal Notices, as required under Section 5 of the GNU Affero General Public License version 3.In accordance with Section 7(b) of the GNU Affero General Public License version 3,these Appropriate Legal Notices must retain the display of the Zurmo logo and Zurmo copyright notice. If the display of the logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices must display the words "Copyright Zurmo Inc. 2015. All rights reserved".

中文的意思是:

不要删除Zurmo标志或Zurmo版权声明。根据GNU Affero通用公共许可证版本3的第5节的要求,此程序的原始和修改版本中的交互式用户界面必须显示适当的法律声明。根据第7节( b)的GNU Affero通用公共许可证版本3,这些适当的法律声明必须保留显示的Zurmo标志和Zurmo版权声明。如果由于技术原因,徽标的显示不合理,则适当的法律声明必须显示“版权Zurmo Inc. 2015保留所有权利”。

PS : 大概的意思是叫开发者不要改动,至于改与不改,就看大家的具体的需求了。

2:如果要修改的话,步骤如下:

在相同的文件中 zurmo/app/protected/modules/zurmo/views/FooterView.php 修改如下代码:

protected function renderContent()
{

$copyrightHtml  = "" .
                 "Copyright © Zurmo Inc., 2015. All rights reserved.";
$copyrightHtml .= $this->renderPerformance();
$content = ZurmoHtml::tag("div", array("class" => "container"), $copyrightHtml);
return $content;

}

 把

$copyrightHtml  = "" .
                 "Copyright © Zurmo Inc., 2015. All rights reserved.";
 改成

$copyrightHtml  = "";

去到 zurmo/app/protected/core/components/ClientScript.php里的85

public function render(& $output)
{

if ($this->isAjaxMode())
{
    $this->removeAllPageLoadedScriptFilesWhenRenderingInAjaxMode();
}
parent::render($output);
if (!$this->isAjaxMode())
{
    cleanAndSanitizeScriptHeader($output);   注释掉这一行,就可以了
}

}

刷新页面,就可以把每个页面底部的商标和Logo都清除了,PS:如果不行的话,清除缓存。

其实原理是:版权是由cleanAndSanitizeScriptHeader()函数实现,但是我们全局搜索又找不到这个函数的定义,其实是Zurmo 采用了十六进制加密,把那个函数编译成一串16进制字符串,然后用eval()方法执行,从而隐藏了明文定义版权的作用。代码位于 zurmo/yii/framework/web/CClientScript.php文件的最下面,如下:

eval("x66x75x6ex63x74x69x6fx6ex20x63x6cx65x61x6ex41x6ex64x53x61x6ex69x74x69x7ax65x53x63x72" .
     "x69x70x74x48x65x61x64x65x72x28x26x20x24x6fx75x74x70x75x74x29x0ax20x20x20x20x20x20x20" .
     "x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x7bx0ax20x20x20x20x20x20x20x20x20" .
     "x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x24x72x65x71x75x69x72x65x64" .
     "x4fx6ex65x20x3dx20x22x3cx73x70x61x6ex3ex43x6fx70x79x72x69x67x68x74x20x26x23x31x36x39" .
     "x3bx20x5ax75x72x6dx6fx20x49x6ex63x2ex2cx20x32x30x31x35x2ex20x41x6cx6cx20x72x69x67x68" .
     "x74x73x20x72x65x73x65x72x76x65x64x2ex3cx2fx73x70x61x6ex3ex22x3bx0ax09x09x09x20x20x20" .
     "x20x20x20x20x20x20x20x20x20x20x20x20x20x24x72x65x71x75x69x72x65x64x54x77x6fx20x3dx20" .
     "x27x3cx61x20x68x72x65x66x3dx22x68x74x74x70x3ax2fx2fx77x77x77x2ex7ax75x72x6dx6fx2ex63" .
     "x6fx6dx22x20x69x64x3dx22x63x72x65x64x69x74x2dx6cx69x6ex6bx22x20x63x6cx61x73x73x3dx22" .
     "x63x6cx65x61x72x66x69x78x22x3ex27x3bx0ax20x20x20x20x20x20x20x20x20x20x20x20x20x20x20" .
     "x20x20x20x20x20x20x20x20x20x20x20x20x20x57x33x43x56x61x6cx69x64x61x74x6fx72x53x65x72" .
     "x76x69x63x65x55x74x69x6cx3ax3ax72x65x73x6fx6cx76x65x43x6cx65x61x6ex28x24x6fx75x74x70" .
     "x75x74x2cx20x24x72x65x71x75x69x72x65x64x4fx6ex65x2cx20x24x72x65x71x75x69x72x65x64x54" .
     "x77x6fx29x3bx0ax20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20x20" .
     "x20x7d");。

上面的这段16进制字符串用相应的PHP方法转换成正常的字符串就可以看到了。代码就是cleanAndSanitizeScriptHeader 方法的定义。

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/47340.html

相关文章

  • Zurmo - - 商标修改

    摘要:简介关于的商标和,官方源码中是这样说的在行中文的意思是不要删除标志或版权声明。根据第节的通用公共许可证版本,这些适当的法律声明必须保留显示的标志和版权声明。上面的这段进制字符串用相应的方法转换成正常的字符串就可以看到了。 1:简介 关于Zurmo的商标和Logo,官方源码中是这样说的:在 zurmo/app/protected/modules/zurmo/views/FooterVie...

    CntChen 评论0 收藏0
  • Zurmo - - 商标修改

    摘要:简介关于的商标和,官方源码中是这样说的在行中文的意思是不要删除标志或版权声明。根据第节的通用公共许可证版本,这些适当的法律声明必须保留显示的标志和版权声明。上面的这段进制字符串用相应的方法转换成正常的字符串就可以看到了。 1:简介 关于Zurmo的商标和Logo,官方源码中是这样说的:在 zurmo/app/protected/modules/zurmo/views/FooterVie...

    newsning 评论0 收藏0
  • Zurmo - - 命令行工具

    摘要:一简介提供了一个命令行工具,以便于更新版本,修改密码,安装以及更新数据库模式等等功能的快捷操作。最常用的是命令,要掌握。 一:简介 1. Zurmo 提供了一个命令行工具,以便于更新版本,修改密码,安装以及更新数据库模式等等功能的快捷操作。文件位于 ..app/protected/commands/ 下。 二:详解 Zurmo一共有 15 条 zurmoc 命令,分别是: - hel...

    刘玉平 评论0 收藏0
  • Zurmo - - 命令行工具

    摘要:一简介提供了一个命令行工具,以便于更新版本,修改密码,安装以及更新数据库模式等等功能的快捷操作。最常用的是命令,要掌握。 一:简介 1. Zurmo 提供了一个命令行工具,以便于更新版本,修改密码,安装以及更新数据库模式等等功能的快捷操作。文件位于 ..app/protected/commands/ 下。 二:详解 Zurmo一共有 15 条 zurmoc 命令,分别是: - hel...

    Neilyo 评论0 收藏0
  • Zurmo - - 命令行工具

    摘要:一简介提供了一个命令行工具,以便于更新版本,修改密码,安装以及更新数据库模式等等功能的快捷操作。最常用的是命令,要掌握。 一:简介 1. Zurmo 提供了一个命令行工具,以便于更新版本,修改密码,安装以及更新数据库模式等等功能的快捷操作。文件位于 ..app/protected/commands/ 下。 二:详解 Zurmo一共有 15 条 zurmoc 命令,分别是: - hel...

    MobService 评论0 收藏0

发表评论

0条评论

最新活动
阅读需要支付1元查看
<