kcfinder browse.php,KCFinder - browse.php下载而不是显示页面

I've integrated the latest version of KCFinder into CKEditor - whenever I click the 'Browse Server' button on the CKEditor toolbar it opens the KCFinder dialog box and downloads the 'browse.php' file rather than display the contents of a directory.

我已将最新版本的KCFinder集成到CKEditor中 - 每当我单击CKEditor工具栏上的“浏览服务器”按钮时,它会打开KCFinder对话框并下载“browse.php”文件而不是显示目录的内容。

It is almost as if for some reason the PHP engine stops working temporarily - i've not modified any of the htaccess files.

几乎好像由于某种原因,PHP引擎暂时停止工作 - 我没有修改任何htaccess文件。

I'm currently using the standard config.php within the kcfinder directory - would anyone know what may have caused this and how to fix it?

我目前正在使用kcfinder目录中的标准config.php - 是否有人知道可能导致此问题的原因以及如何修复它?

// kcfinder/config.php

// kcfinder / config.php

$_CONFIG = array(

'disabled' => true,

'denyZipDownload' => false,

'denyUpdateCheck' => false,

'denyExtensionRename' => false,

'theme' => "oxygen",

'uploadURL' => "",

'uploadDir' => "",

'dirPerms' => 0755,

'filePerms' => 0644,

'access' => array(

'files' => array(

'upload' => true,

'delete' => true,

'copy' => true,

'move' => true,

'rename' => true

),

'dirs' => array(

'create' => true,

'delete' => true,

'rename' => true

)

),

'deniedExts' => "exe com msi bat php phps phtml php3 php4 cgi pl",

'types' => array(

// CKEditor & FCKEditor types

'files' => "",

'flash' => "swf",

'images' => "*img",

// TinyMCE types

'file' => "",

'media' => "swf flv avi mpg mpeg qt mov wmv asf rm",

'image' => "*img",

),

'filenameChangeChars' => array(/*

' ' => "_",

':' => "."

*/),

'dirnameChangeChars' => array(/*

' ' => "_",

':' => "."

*/),

'mime_magic' => "",

'maxImageWidth' => 0,

'maxImageHeight' => 0,

'thumbWidth' => 100,

'thumbHeight' => 100,

'thumbsDir' => ".thumbs",

'jpegQuality' => 90,

'cookieDomain' => "",

'cookiePath' => "",

'cookiePrefix' => 'KCFINDER_',

// THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION CONFIGURATION

'_check4htaccess' => true,

//'_tinyMCEPath' => "/tiny_mce",

'_sessionVar' => &$_SESSION['KCFINDER'],

//'_sessionLifetime' => 30,

//'_sessionDir' => "/full/directory/path",

//'_sessionDomain' => ".mysite.com",

//'_sessionPath' => "/my/path",

);

);

?>

?>

1 个解决方案

#1

0

I got the same problem and I found that the .htaccess file in the kcfinder dir was precisely shut the php engine off. I removed the .htaccess file and then it worked. I do not understand why this shutting off was necessary. Security?? Well, I still get a problem to point at the right directory, but now I see something !!

我遇到了同样的问题,我发现kcfinder目录中的.htaccess文件正好关闭了php引擎。我删除了.htaccess文件然后它工作了。我不明白为什么这种关闭是必要的。安全??好吧,我仍然有问题指向正确的目录,但现在我看到了一些东西!

One comment here about the CONFIG array here above. The attribute disabled have to be put to false, and it is often suggested to be done through a SESSION variable (put $_SESSION['KCFINDER'] = array(); $_SESSION['KCFINDER']['disabled'] = false; after the session_start() ), and not directly in the config file.

这里有一条关于上面的CONFIG数组的评论。禁用的属性必须设置为false,并且通常建议通过SESSION变量完成(放置$ _SESSION ['KCFINDER'] = array(); $ _SESSION ['KCFINDER'] ['disabled'] = false ;在session_start()之后,而不是直接在配置文件中。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值