2015-03-22 20:54:54 +00:00
|
|
|
|
<?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
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// 配置项可选值
|
|
|
|
|
$config['setting_all'] = array(
|
|
|
|
|
'language' => "en:English,zh_CN:简体中文,zh_TW:繁體中文",
|
|
|
|
|
'themeall' => "default/:<b>areo blue</b>:default,simple/:<b>simple</b>:simple,metro/:<b>metro</b>:metro,metro/blue_:metro-blue:color,metro/leaf_:metro-green:color,metro/green_:metro-green+:color,metro/grey_:metro-grey:color,metro/purple_:metro-purple:color,metro/pink_:metro-pink:color,metro/orange_:metro-orange:color",
|
|
|
|
|
'codethemeall' => "chrome,clouds,crimson_editor,eclipse,github,solarized_light,tomorrow,xcode,ambiance,idle_fingers,monokai,pastel_on_dark,solarized_dark,tomorrow_night_blue,tomorrow_night_eighties",
|
|
|
|
|
'wallall' => "1,2,3,4,5,6,7,8,9,10,11,12,13",
|
|
|
|
|
'musicthemeall' => "ting,beveled,kuwo,manila,mp3player,qqmusic,somusic,xdj",
|
|
|
|
|
'moviethemeall' => "webplayer,qqplayer,vplayer,tvlive,youtube"
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// 默认配置
|
|
|
|
|
$config['setting_default'] = array(
|
|
|
|
|
'list_type' => "icon", // list||icon
|
|
|
|
|
'list_sort_field' => "name", // name||size||ext||mtime
|
|
|
|
|
'list_sort_order' => "up", // asc||desc
|
|
|
|
|
'theme' => "simple/", // app theme [default,simple,metro/,metro/black....]
|
|
|
|
|
'codetheme' => "clouds", // code editor theme
|
|
|
|
|
'wall' => "7", // wall picture
|
|
|
|
|
'musictheme' => "mp3player", // music player theme
|
|
|
|
|
'movietheme' => "webplayer" // movie player theme
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
//初始系统配置
|
|
|
|
|
$config['setting_system_default'] = array(
|
|
|
|
|
'system_password' => rand_string(10),
|
|
|
|
|
'system_name' => "KodExplorer",
|
|
|
|
|
'system_desc' => "——芒果云.资源管理器",
|
|
|
|
|
'path_hidden' => ".htaccess,.git,.DS_Store",//目录列表隐藏的项
|
|
|
|
|
'auto_login' => "1", // 是否自动登录;登录用户为guest
|
|
|
|
|
'first_in' => "explorer", // 登录后默认进入[explorer desktop,editor]
|
|
|
|
|
'new_user_app' => "365日历,pptv直播,ps,qq音乐,搜狐影视,时钟,天气,水果忍者,计算器,豆瓣电台,音悦台,icloud",
|
|
|
|
|
'new_user_folder' => "download,music,image,desktop"
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
//默认菜单配置
|
|
|
|
|
$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','makeFileProxy'),
|
|
|
|
|
'app' => array('user_app','init_app','add','edit','del'),//
|
|
|
|
|
'user' => array('changePassword'),//可以设立公用账户
|
2015-03-24 09:31:30 +00:00
|
|
|
|
'editor' => array('fileGet','fileSave'),
|
2015-03-22 20:54:54 +00:00
|
|
|
|
'userShare' => array('set','del'),
|
|
|
|
|
'setting' => array('set','system_setting','php_info'),
|
|
|
|
|
'fav' => array('add','del','edit'),
|
|
|
|
|
'member' => array('get','add','del','edit'),
|
|
|
|
|
'group' => array('get','add','del','edit'),
|
|
|
|
|
);
|