kodexplorer开源网盘php程序配置解析
生活随笔
收集整理的這篇文章主要介紹了
kodexplorer开源网盘php程序配置解析
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
config/setting_user.php 追加內容(一下都是,注意不要使用中文引號、雙引號及分號)
//【指定多語言只保留中文】 $GLOBALS['config']['settings']['language'] = 'zh-CN'; //【自定義群組創建時自動新建的目錄】 $GLOBALS['config']['settingSystemDefault']['newGroupFolder'] = 'share,文檔,圖片,視頻'; //【自定義用戶桌面文件夾目錄】 $GLOBALS['config']['settingSystemDefault']['desktopFolder'] = 'desktop'; //【配置靜態文件CDN訪問URL】 // 步驟:先將kod下面static文件夾上傳到CDN服務器,配置到如下即可 // 例如官網demo的靜態文件cdn路徑:http://static.kodcloud.com/kod/static/4.25/ $GLOBALS['config']['settings']['staticPath'] = ""; //【配置插件靜態文件到CDN】 $GLOBALS['config']['settings']['pluginHost'] = ''; //【上傳速度優化】 $GLOBALS['config']['settings']['updloadThreads'] = 10;//多線程上傳,同時上傳線程數 $GLOBALS['config']['settings']['updloadChunkSize'] = 1024*1024*20; //分片上傳分片大小(不能大于php.ini中設置的上傳大小限制,否則文件會上傳不成功) //【nginx優化文件下載速度】 // 調用nginx直接輸出下載,提升速度 http://www.laruence.com/2012/05/02/2613.html; // https://www.lovelucy.info/x-sendfile-in-nginx.html $GLOBALS['config']['settings']['httpSendFile'] = true; //新用戶初始化默認配置 $GLOBALS['config']['settingDefault'] = array('listType' => "icon", // 文件列表模式 列表|圖標|分欄 ==> list||icon||split'listSortField' => "name", // 排序字段 文件名|文件大小|擴展名|最后修改時間 ==> name||size||ext||mtime'listSortOrder' => "up", // 升序降序 默認升序 up||down'fileIconSize' => "80", // 圖標模式圖標大小'animateOpen' => "1", // 界面動畫動畫,默認開啟'soundOpen' => "0", // 操作音效'theme' => "win10", // 默認主題; app theme [mac,win7,win10,metro,metro_green,alpha]'wall' => "8", // 默認壁紙"fileRepeat" => "replace", // 同名文件默認處理方式: 同時保留,替換,跳過 ==> rename,replace,skip"recycleOpen" => "1", // 是否開啟回收站 1 | 0 代表是否開啟'resizeConfig' => // 列表模式不同字段寬度初始值'{"filename":250,"filetype":80,"filesize":80,"filetime":215,"editorTreeWidth":200,"explorerTreeWidth":200}' ); $GLOBALS['config']['editorDefault'] = array('fontSize' => '14px','theme' => 'tomorrow','autoWrap' => 1, //自適應寬度換行'autoComplete' => 1,'functionList' => 1,"tabSize" => 4,"softTab" => 1,"displayChar" => 0, //是否顯示特殊字符"fontFamily" => "Menlo", //字體"keyboardType" => "ace" //ace vim emacs );配置apiLoginTonken
同上打開 /config/setting_user.php;追加如下行;
去除隨機壁紙
管理員登陸,右上角打開系統設置——選中『其他』tab——在自定義css中追加
#random-wallpaper,.randomImage{display:none;visibility: hidden;}
去除授權標識
系統設置右上角授權版標識 管理員登陸,右上角打開系統設置——選中『其他』tab——在自定義css中追加
.setting-page .version-vip{display:none;visibility: hidden;}
轉載于:https://blog.51cto.com/14037805/2329803
總結
以上是生活随笔為你收集整理的kodexplorer开源网盘php程序配置解析的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 浏览器拦截跨域请求处理方法(已阻止跨源请
- 下一篇: 动态规划算法php,php算法学习之动态