1:簡介php
關於Zurmo的商標和Logo,官方源碼中是這樣說的:在 zurmo/app/protected/modules/zurmo/views/FooterView.php 48行
web
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保留全部權利」。app
PS : 大概的意思是叫開發者不要改動,至於改與不改,就看你們的具體的需求了。yii
2:若是要修改的話,步驟以下:函數
在相同的文件中 zurmo/app/protected/modules/zurmo/views/FooterView.php
修改以下代碼:ui
protected function renderContent()
{this
$copyrightHtml = '<a href="http://www.zurmo.com" id="credit-link" class="clearfix"><span>' . 'Copyright © Zurmo Inc., 2015. All rights reserved.</span></a>'; $copyrightHtml .= $this->renderPerformance(); $content = ZurmoHtml::tag('div', array('class' => 'container'), $copyrightHtml); return $content;
}加密
把 $copyrightHtml = '<a href="http://www.zurmo.com" id="credit-link" class="clearfix"><span>' . 'Copyright © Zurmo Inc., 2015. All rights reserved.</span></a>'; 改爲 $copyrightHtml = '';
去到 zurmo/app/protected/core/components/ClientScript.php
裏的85
行spa
public function render(& $output)
{
if ($this->isAjaxMode()) { $this->removeAllPageLoadedScriptFilesWhenRenderingInAjaxMode(); } parent::render($output); if (!$this->isAjaxMode()) { cleanAndSanitizeScriptHeader($output); 註釋掉這一行,就能夠了 }
}
cleanAndSanitizeScriptHeader()
函數實現,可是咱們全局搜索又找不到這個函數的定義,實際上是Zurmo
採用了十六進制加密,把那個函數編譯成一串16進制字符串
,而後用eval()
方法執行,從而隱藏了明文定義版權的做用。代碼位於 zurmo/yii/framework/web/CClientScript.php
文件的最下面,以下:eval("\x66\x75\x6e\x63\x74\x69\x6f\x6e\x20\x63\x6c\x65\x61\x6e\x41\x6e\x64\x53\x61\x6e\x69\x74\x69\x7a\x65\x53\x63\x72" . "\x69\x70\x74\x48\x65\x61\x64\x65\x72\x28\x26\x20\x24\x6f\x75\x74\x70\x75\x74\x29\x0a\x20\x20\x20\x20\x20\x20\x20" . "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20" . "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x24\x72\x65\x71\x75\x69\x72\x65\x64" . "\x4f\x6e\x65\x20\x3d\x20\x22\x3c\x73\x70\x61\x6e\x3e\x43\x6f\x70\x79\x72\x69\x67\x68\x74\x20\x26\x23\x31\x36\x39" . "\x3b\x20\x5a\x75\x72\x6d\x6f\x20\x49\x6e\x63\x2e\x2c\x20\x32\x30\x31\x35\x2e\x20\x41\x6c\x6c\x20\x72\x69\x67\x68" . "\x74\x73\x20\x72\x65\x73\x65\x72\x76\x65\x64\x2e\x3c\x2f\x73\x70\x61\x6e\x3e\x22\x3b\x0a\x09\x09\x09\x20\x20\x20" . "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x24\x72\x65\x71\x75\x69\x72\x65\x64\x54\x77\x6f\x20\x3d\x20" . "\x27\x3c\x61\x20\x68\x72\x65\x66\x3d\x22\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x7a\x75\x72\x6d\x6f\x2e\x63" . "\x6f\x6d\x22\x20\x69\x64\x3d\x22\x63\x72\x65\x64\x69\x74\x2d\x6c\x69\x6e\x6b\x22\x20\x63\x6c\x61\x73\x73\x3d\x22" . "\x63\x6c\x65\x61\x72\x66\x69\x78\x22\x3e\x27\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" . "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x57\x33\x43\x56\x61\x6c\x69\x64\x61\x74\x6f\x72\x53\x65\x72" . "\x76\x69\x63\x65\x55\x74\x69\x6c\x3a\x3a\x72\x65\x73\x6f\x6c\x76\x65\x43\x6c\x65\x61\x6e\x28\x24\x6f\x75\x74\x70" . "\x75\x74\x2c\x20\x24\x72\x65\x71\x75\x69\x72\x65\x64\x4f\x6e\x65\x2c\x20\x24\x72\x65\x71\x75\x69\x72\x65\x64\x54" . "\x77\x6f\x29\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" . "\x20\x7d");。
上面的這段16進制字符串
用相應的PHP方法轉換成正常的字符串就能夠看到了。代碼就是cleanAndSanitizeScriptHeader
方法的定義。