Customize your theme in the Theme Customizer panel. See changes live without page reloading.   

Filecube配置参数解说

当前位置:
估计的阅读时间: 1 分钟

配置文件位于系统目录下的filecubeconfig.php
配置参数如下:

// 可选语言: chinese, chinese-zh_TW,english, french, german, persian, polish, portuguese, romanian, russian, spanish, swedish
'language' => 'chinese',
// 默认667,移动段布局断点像素,设置为99999启用仅移动端
'mobile_breakpoint' => 667,
// 用户配置文件
// 超过20用户数请启用数据库存储
'user_config_file' => getcwd().'/config/config.json',
// 启用数据库存储用户? (true/false)
'use_database' => false,
'db_host' => 'localhost',//数据库主机
'db_username' => 'myUser',//数据库用户
'db_password' => 'myPassword',//数据库密码
'db_database' => 'myDatabase',//数据库名称
// 文件根目录 更多设置参数:http://go.jupress.com/filecube-document
// 未指定目录的用户分配目录
// 该目录须支持可写入
'filecubedir' => getcwd().'/filecubedir',
// 上传文件的最大存储容量字节数
// 如需修改服务器上传参数可联系服务器提供商或者运维人员,服务器端修改配置:php.ini : upload_max_filesize / post_max_size
// 服务器端设置优先于以下配置
'max_filesize' => 2097152, // 2097152=2MB 取决您服务器的配置maximum upload file size
// 允许用户注册 (true/false)
'allow_signup' => false,
// 启用邮件激活注册 (true/false)
'signup_use_activation' => true,
// 对初始注册的用户的默认权限
// 表达方法: 'r' - 仅读, 'ru' - 读取 & 上传, 'rwu' - 读取, 写入 & 上传
'default_permissions_after_signup' => 'r',
// 对邮件激活注册的用户的默认权限
// 表达方法: 'r' - 仅读, 'ru' - 读取 & 上传, 'rwu' - 读取, 写入 & 上传
'default_permissions_after_activation' => 'rwu',
// 邮件配置
'mail_from' => 'example@jucube.com',
'mail_from_name' => 'Jucube',
'mail_signature' => "nnFilecube,nJUCUBE",
// 启用SMTP配置? (true/false)
// 设为false禁用,则使用服务器php mail(),大多情况服务器禁用可联系服务器提供上开通
'use_smtp_protocol' => false,
// SMTP邮件协议
'mail_smtp_host' => 'smtp.example.com:587',//SMTP主机地址
'mail_smtp_username' => 'info@example.com',//SMTP邮箱用户
'mail_smtp_password' => 'mypassword',//SMTP用户密码
'mail_smtp_connection_security' => 'tls', // 'tls', 'ssl' 或使用 '' 无安全配置
'mail_smtp_debug' => false,
// 恢复/激活邮件主题和链接内容
'account_email_subject' => '请点击',
'account_email_text' => '请点击下方链接进一步确认您的账户: ',
// 用户可更改密码 (true/false)
'allow_change_password' => true,
// 启用忘记密码操作 (true/false)
'enable_password_recovery' => false,
// 文件支持超链接 (true/false)
'allow_file_links' => true,
// 如果filecubedir在系统目录之外,使用以下配置
// 此处定义系统所有链接的地址/路径
// 例如:
// 'direct_links_baseurl' => 'http://demo.jupress.com/filecube',
// 'direct_links_filecubedir' => '/var/www/html/filecube',
'direct_links_baseurl' => '',
'direct_links_basedir' => '',
// 允许链接通过邮件发送 (true/false)
'allow_email_links' => true,
'mail_link_subject' => '分享给你文件',
// 使用goo.gl短网址服务 (true/false). 服务器需支持cURL.
'use_googl_shorturl' => false,
// 获取goo.gl API key: http://code.google.com/apis/console/
'googl_shorturl_api_key' => '123456789',
// 灯箱插件预览图像(true/false)
// 此处同时启用配置 allow_file_links
'use_lightbox_gallery' => true,
// 上传文件格式配置,或使用'*'不限制
// 例如: 'accept_file_extensions' => array('gif','jpg','jpeg','png'),
'accept_file_extensions' => array('*'),
// 批量上传文件数限制
'max_files' => 100,
// 时间/日期 格式 - 可参考 php date()
'time_format' => 'd/m/y',
// 启用复制-移动 替代 剪切-复制-粘贴 (true/false)
'simple_copy_move' => true,
// 启用zip打包功能 (true/false)
// 服务器端须启用 zip extension 功能 (查阅: http://php.net/manual/en/book.zip.php)
'use_zip' => true,
// 支持文件编辑 (true/false)
'allow_edit_files' => true,
// 文件/文件夹重命名 (true/false)
'allow_rename_files' => true,
// 显示顶部栏 (true/false)
'show_top_auth_bar' => true,
// 隐藏限制文件 (无通配符)
'restricted_files' => array('.htaccess'),
// 掩藏文件主目录filecubedir下的路径 (true/false)
// 如需将管理面板中的路径不全部显示设为 true
'mask_filecubedir_path' => false,
// 加密地址操作 (true/false)
'encrypt_url_actions' => true,
// 启用访客账户 (true/false)
'allow_guests' => false,
// 使用验证模块 (true/false)
// 警告: 参数设为 false 则任何人都可以更改或者删除你的文件而无需登陆
// 该配置同时将禁用 encrypt_url_actions
'use_auth' => true,
// 服务器地址和基础路径,无需修改!
'base_url' => (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']),
'base_path' => getcwd(),
// 写入用户操作到usage.log文件 (true/false)
'write_log' => false,
这篇文章有帮助吗?
浏览: 0
Call to action title here