KodExplorer/config/setting.php

154 lines
7.6 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
/*
* @link http://www.kalcaddle.com/
* @author warlee | e-mail:kalcaddle@qq.com
* @copyright warlee 2014.(Shanghai)Co.,Ltd
* @license http://kalcaddle.com/tools/licenses/license.txt
*/
//配置数据,可在setting_user.php中更改覆盖
$config['settings'] = array(
'download_url_time' => 0, //下载地址生效时间按秒计算0代表不限制默认不限制
'api_login_tonken' => '', //设定则认为开启服务端api通信登陆同时作为加密密匙
'update_chunk_size' => 1024*1024, //分片上传大小设定不设定则用post_max_size;有时会受nginx的post_size限制
'param_rewrite' => false,
);
//初始化系统配置
$config['setting_system_default'] = array(
'system_password' => rand_string(20),
'system_name' => "KodExplorer",
'system_desc' => "——芒果云.资源管理器",
'path_hidden' => ".DS_Store,.gitignore,.git",//目录列表隐藏的项
'auto_login' => "0", // 是否自动登录登录用户为guest
'need_check_code' => "0", // 登陆是否开启验证码;默认关闭
'first_in' => "explorer", // 登录后默认进入[explorer desktop,editor]
'version_type' => "A",
'new_user_app' => "365日历,pptv直播,ps,qq音乐,搜狐影视,时钟,天气,水果忍者,计算器,豆瓣电台,音悦台,icloud",
'new_user_folder' => "document,desktop,pictures,music",
'new_group_folder' => "share,doc,pictures" //新建分组默认建立文件夹
);
//新用户初始化默认配置
$config['setting_default'] = array(
'list_type' => "icon", // list||icon
'list_sort_field' => "name", // name||size||ext||mtime
'list_sort_order' => "up", // asc||desc
'file_repeat' => "replace", // replace|rename|skip
'file_icon_size' => "80", // 图标大小
'animate_open' => "1", // dialog动画
'sound_open' => "0", // 操作音效
'theme' => "win10", // app theme [mac,win7,win10,metro,metro_green,alpha]
'wall' => "2", // wall picture
"file_repeat" => "replace", // rename,replace,skip
"recycle_open" => "1", // 1 | 0 代表是否开启
'resize_config' =>
'{"filename":250,"filetype":80,"filesize":80,"filetime":215,"editor_left_tree_width":200,"explorer_left_tree_width":200}'
);
$config['editor_default'] = array(
'font_size' => '14px',
'theme' => 'tomorrow',
'auto_wrap' => 1, //自适应宽度换行
'auto_complete' => 1,
'function_list' => 1,
"tab_size" => 4,
"soft_tab" => 1,
"display_char" => 0, //是否显示特殊字符
"font_family" => "Menlo", //字体
"keyboard_type" => "ace" //ace vim emacs
);
// 多选项总配置
// http://blog.sina.com.cn/s/blog_7981f91f01012wm7.html
// http://monsoongale.iteye.com/blog/1044431
$config['setting_all'] = array(
'language' => array(
"en" => array("English","英语","English"),
"zh-CN" => array("简体中文","简体中文","Simplified Chinese"),
"zh-TW" => array("繁體中文","繁體中文","Traditional Chinese"),
"ar" => array("العربية","'阿拉伯语","Arabic"),
"bg" => array("Български","保加利亚语","Bulgarian"),
"bn" => array("বাংলা","孟加拉语","Bengali"),
"ca" => array("Català","加泰罗尼亚语","Catalan"),
"cs" => array("Čeština","捷克语","Czech"),
"da" => array("Dansk","丹麦语","Danish"),
"de" => array("Deutsch","德语","German"),
"el" => array("Ελληνικά","希腊语","Greek"),
"es" => array("Español","西班牙语","Spanish"),
"et" => array("Eesti","爱沙尼亚语","Estonian"),
"fa" => array("فارسی","波斯语","Persian"),
"fi" => array("suomen","芬兰语","Finnish"),
"fr" => array("Français","法语","French"),
"gl" => array("Galego","加利西亚语","Galician"),
"hi" => array("हिन्दी","印地语","Hindi"),
"hr" => array("Hrvatski","克罗地亚语","Croatian"),
"hu" => array("Magyar","匈牙利语","Hungarian"),
"id" => array("Bahasa Indonesia","印尼语","Indonesian"),
"it" => array("Italiano","意大利语","Italian"),
"ja" => array("日本語","日语","Japanese"),
"ko" => array("한국어","韩语","Korean"),
"lt" => array("Lietuvių","立陶宛语","Lithuanian"),
"nl" => array("Nederlands","荷兰语","Dutch"),
"no" => array("Norsk","挪威语","Norwegian"),
"pl" => array("Polski","波兰语","Polish"),
"pt" => array("Português","葡萄牙语","Portuguese"),
"ro" => array("Limba Română","罗马尼亚语","Romanian"),
"ru" => array("Русский язык","俄语","Russian"),
"si" => array("සිංහල","僧伽罗语","Sinhala"),
"sk" => array("Slovenčina","捷克斯洛伐克语","Czechoslovakia"),
"sl" => array("Slovenski","斯洛文尼亚语'","Slovenian"),
"sr" => array("Српски","塞尔维亚语","Serbian"),
"sv" => array("Svenska","瑞典语","Swedish"),
"ta" => array("த‌மிழ்","泰米尔语","Tamil"),
"th" => array("ภาษาไทย","泰语","Thai"),
"tr" => array("Türkçe","土耳其语","Turkish"),
"uk" => array("Українська","乌克兰语","Ukrainian"),
"uz" => array("O'zbekiston","乌兹别克语","Uzbek-cyrillic"),
"vi" => array("Tiếng Việt","越南语","Vietnamese"),
),//de el fi fr nl pt d/m/Y H:i
'themeall' => "mac,win10,win7,metro,metro_green,metro_purple,metro_pink,metro_orange,alpha_image,alpha_image_sun,alpha_image_sky,diy",
'codethemeall' => "chrome,clouds,crimson_editor,eclipse,github,kuroir,solarized_light,tomorrow,xcode,ambiance,monokai,idle_fingers,pastel_on_dark,solarized_dark,twilight,tomorrow_night_blue,tomorrow_night_eighties",
'codefontall' => 'Consolas,Courier,DejaVu Sans Mono,Liberation Mono,Menlo,Monaco,Monospace,Source Code Pro',
'wallall' => "1,2,3,4,5,6,7,8,9,10,11,12,13"
);
//初始化默认菜单配置
$config['setting_menu_default'] = array(
array('name'=>'desktop','type'=>'system','url'=>'index.php?desktop','target'=>'_self','use'=>'1'),
array('name'=>'explorer','type'=>'system','url'=>'index.php?explorer','target'=>'_self','use'=>'1'),
array('name'=>'editor','type'=>'system','url'=>'index.php?editor','target'=>'_self','use'=>'1'),
array('name'=>'adminer','type'=>'','url'=>'./lib/plugins/adminer/','target'=>'_blank','use'=>'1')
);
//权限配置;精确到需要做权限控制的控制器和方法
//需要权限认证的Action;root组无视权限
$config['role_setting'] = array(
'explorer' => array(
'mkdir','mkfile','pathRname','pathDelete','zip','unzip','pathCopy','pathChmod',
'pathCute','pathCuteDrag','pathCopyDrag','clipboard','pathPast','pathInfo',
'serverDownload','fileUpload','search','pathDeleteRecycle',
'fileDownload','zipDownload','fileDownloadRemove','fileProxy','officeView','officeSave'),
'app' => array('user_app','init_app','add','edit','del'),//
'user' => array('changePassword','common_js'),//可以设立公用账户
'editor' => array('fileGet','fileSave'),
'userShare' => array('set','del'),
'setting' => array('set','system_setting','php_info'),
'fav' => array('add','del','edit'),
'system_member' => array('get','add','do_action','edit'),
'system_group' => array('get','add','del','edit'),
'system_role' => array('add','del','edit'),//不开放此功能设置【避免扩展名修改,导致系统安全问题】
);
//只读配置guest需要检查path的action
$config['role_guest_check'] = array(
'explorer' => array(//排除只读pathCopy、clipboard、pathInfo、search
'mkdir','mkfile','pathRname','pathDelete','zip','unzip','pathCute',
'pathCuteDrag','pathCopyDrag','pathPast','serverDownload','fileUpload'),
'app' => array('user_app','add','edit','del'),//
'editor' => array('fileSave'),
);