kodbox可道云系统配置优化以及部分版权修改

1、官方优化教程参考下面网址

https://docs.kodcloud.com/setup/

2、修改源码PHP配置文件

./config/config.php

./app/api/KodSSO.class.php

将里面的超时和上传参数修改大一些

3、邮件模板修改,编辑 /app/template/user/email.html

<a href="<?php echo $GLOBALS['config']['pluginHome'];?>" style="text-decoration:none;display:inline-flex;">
    <img src="<?php echo $data['system']['icon']; ?>" alt="KodCloud" style="width:64px;height:64px;">
    <span style="line-height:24px; margin-left:15px; height:64px; overflow:hidden; text-align:left; max-width: 360px;">
        <span style="color:#555; font-size:20px; margin-top:12px; display:inline-block;"><?php echo $data['system']['name']; ?></span><br/>
        <span style="color:#999"><?php echo $data['system']['desc']; ?></span>
    </span>
</a>

将
<a href="<?php echo $GLOBALS['config']['pluginHome'];?>" style="text-decoration:none;display:inline-flex;">
修改为自己网站的域名,例如
<a href="https://test.test.com" style="text-decoration:none;display:inline-flex;">

将
<img src="<?php echo $data['system']['icon']; ?>" alt="KodCloud"
修改为自己网站logo的目录,例如
<img src="https://test.test.com/static/images/icon/fav.png" alt="KodCloud"
或者
<img src="./static/images/icon/fav.png" alt="KodCloud"

将
<span style="color:#555; font-size:20px; margin-top:12px; display:inline-block;"><?php echo $data['system']['name']; ?></span><br/>
<span style="color:#999"><?php echo $data['system']['desc']; ?></span>
修改为自己网站名称,例如
<span style="color:#555; font-size:20px; margin-top:12px; display:inline-block;">test</span><br/>
<span style="color:#999">test.资源管理器</span>

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div style="padding:20px 40px 40px;">
    <p><?php echo $data['system']['name']; ?></p>
    <p><?php echo $data['date']; ?></p>
</div>

将
<p><?php echo $data['system']['name']; ?></p>
修改为自己网站的名称,例如
<p>test</p>

4、部分版权修改

在后台系统设置-基础设置-其他设置-自定义全局css加入下面css代码

主要是隐藏了底部版权信息以及个人中心版权信息的一些菜单或按钮

#app.app-desktop .taskbar-right .taskbar-item{display:none;}
.activebar-bottom .dropdown-menu .dropdown-menu-main .copyright-show{display:none;}
.activebar-bottom .dropdown-menu .dropdown-menu-main .client-download{display:none;}
.activebar-bottom .dropdown-menu .dropdown-menu-main .app-download{display:none;}
.activebar-bottom .dropdown-menu .dropdown-menu-main .license-free{display:none;}
.page-model-login .common-footer .footer-content .copyright-content{display:none;}
.share-page-main .common-footer .footer-content .copyright-content{display:none;}
/*.kui-notify .kui-notify-topRight .kui-notify-item{display:none;} 这一行会隐藏版权被修改的弹出警告,但是也会隐藏压缩解压缩删除等弹出的进度条,所有注释了*/ 
#app .page-model-login .loginbox .title{height:180px;}
.page-model-login .more-login-area{display:none;}
.page-model-login .login-third-box{display:none;}
.login-form .client-download{display:none;}
.share-page-main .content .top-right .dropdown-menu .version_vip_free{display:none;}
.app-main .setting-main .third-set{display:none;}

修改网站头部版权信息需要修改下面的语言文件

./config/i18n/zh-CN/index.php
"common.copyright.powerBy"       => "Powered by kodbox", 修改这一行的内容
这里修改之后访问网站会在右上角弹出请勿修改版权的警告信息
如果需要继续隐藏这个警告信息,就继续修改
./static/style/lib/font-icon/style.css
.kui-notify .kui-notify-topRight .kui-notify-item{display:none;} 将这行css添加到文件最下面保存就好了,但是不建议这样修改或者隐藏,因为这样还会隐藏掉一些其他的重要提示。

可以将这行内容加长,以达到在浏览器标签栏隐藏的目的,但是必须要有Powered by kodbox这段内容的,
例如;
"磊大云•资源管理器•磊大网盘•磊子云•资源管理器•磊盘•磊磊云•磊大云•资源管理器•磊大网盘•磊子云•资源管理器•磊盘•磊磊云•磊大云•资源管理器•磊大网盘•磊子云•资源管理器•磊盘•磊磊云•磊大云•资源管理器•磊大网盘•磊子云•资源管理器•磊盘•磊磊云•磊大云•资源管理器•磊大网盘•磊子云•资源管理器•磊盘•磊磊云•磊大云•资源管理器•磊大网盘•磊子云•资源管理器•磊盘•磊磊云•Leida Cloud•Resource Manager•Leida Network Disk•Leide Cloud•Resource Manager•Lei Disk•Leile Cloud•Leida Cloud•Resource Manager•Leida Network Disk•Leide Cloud•Resource Manager•Lei Disk•Leile Cloud-Powered by kodbox-Leida Cloud•Resource Manager•Leida Network Disk•Leide Cloud•Resource Manager•Lei Disk•Leile Cloud•Leida Cloud•Resource Manager•Leida Network Disk•Leide Cloud•Resource Manager•Lei Disk•Leile Cloud•Leida Cloud•Resource Manager•Leida Network Disk•Leide Cloud•Resource Manager•Lei Disk•Leile Cloud•Leida Cloud•Resource Manager•Leida Network Disk•Leide Cloud•Resource Manager•Lei Disk•Leile Cloud•Leida Cloud•Resource Manager•Leida Network Disk•Leide Cloud•Resource Manager•Lei Disk•Leile Cloud•Leida Cloud•Resource Manager•Leida Network Disk•Leide Cloud•Resource Manager•Lei Disk•Leile Cloud•Leida Cloud•Resource Manager•Leida Network Disk•Leide Cloud•Resource Manager•Lei Disk•Leile Cloud"
或者;
"大锤云•资源管理器•大锤网盘•锤子云•资源管理器•锤盘•锤锤云•大锤云•资源管理器•大锤网盘•锤子云•资源管理器•锤盘•锤锤云•大锤云•资源管理器•大锤网盘•锤子云•资源管理器•锤盘•锤锤云•大锤云•资源管理器•大锤网盘•锤子云•资源管理器•锤盘•锤锤云•大锤云•资源管理器•大锤网盘•锤子云•资源管理器•锤盘•锤锤云•大锤云•资源管理器•大锤网盘•锤子云•资源管理器•锤盘•锤锤云•Sledgehammer network disk•Hammer Cloud•Explorer•hammer plate•Chui Chui Yun•Sledgehammer Cloud•Explorer•Hammer Cloud•Explorer•hammer plate•Chui Chui Yun-Powered by kodbox-Sledgehammer Cloud•Explorer•Sledgehammer network disk•Hammer Cloud•Explorer•hammer plate•Chui Chui Yun•Sledgehammer Cloud•Explorer•Sledgehammer network disk•Hammer Cloud•Explorer•hammer plate•Chui Chui Yun•Sledgehammer Cloud•Explorer•Sledgehammer network disk•Hammer Cloud•Explorer•hammer plate•Chui Chui Yun•Sledgehammer Cloud•Explorer•Sledgehammer network disk•Hammer Cloud•Explorer•hammer plate•Chui Chui Yun•Sledgehammer Cloud•Explorer•Sledgehammer network disk•Hammer Cloud•Explorer•hammer plate•Chui Chui Yun•Sledgehammer Cloud•Explorer•Sledgehammer network disk•Hammer Cloud•Explorer•hammer plate•Chui Chui Yun•Sledgehammer Cloud•Explorer•Sledgehammer network disk•Hammer Cloud•Explorer•hammer plate•Chui Chui Yun"

接下来还可以继续修改网站的logo图片,只需要将自己的logo图片替换掉对应的即可,根据实际情况查找需要替换的图片路径就行了。

可以将底部版权栏隐藏后将备案信息放到 基础设置-产品副标题 栏目里面。

sanradar
sanradar
文章: 97

一条评论

  1. Excellent article! The depth of analysis is impressive. For those wanting more information, I recommend this link: FIND OUT MORE. Keen to see what others think!

留下评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注