sunhater / kcfinder

KCFinder web file manager
http://kcfinder.sunhater.com
403 stars 207 forks source link

view code source in popup #117

Open oniricosistemas opened 9 years ago

oniricosistemas commented 9 years ago

Hello, I'm having problems with my integration, when I want to upload an image in the window I see the source code of php.

http://postimg.org/image/5a0yjuulr/full/

  my config.php file has this code: // GENERAL SETTINGS

'disabled' => true,
'uploadURL' => "images",
'uploadDir' => "",
'theme' => "default",

ckeditor is configured as follows:

<script>

    if (CKEDITOR.instances['editor1']) {
        CKEDITOR.remove('editor1');
    }
    else
    {
        CKEDITOR.replace( 'editor1',{
            language: 'en',
            filebrowserBrowseUrl : "http://www.electricadegalvez.com.ar/core/js/kcfinder/browse.php?opener=ckeditor&type=files",
            filebrowserImageBrowseUrl : "http://www.electricadegalvez.com.ar/core/js/kcfinder/browse.php?opener=ckeditor&type=images",
            filebrowserFlashBrowseUrl : "http://www.electricadegalvez.com.ar/core/js/kcfinder/browse.php?opener=ckeditor&type=flash",
            filebrowserUploadUrl : "http://www.electricadegalvez.com.ar/core/js/kcfinder/upload.php?opener=ckeditor&type=files",
            filebrowserImageUploadUrl : "http://www.electricadegalvez.com.ar/core/js/kcfinder/upload.php?opener=ckeditor&type=images",
            filebrowserFlashUploadUrl : "http://www.electricadegalvez.com.ar/core/js/kcfinder/upload.php?opener=ckeditor&type=flash",
        } );
    }

    if (CKEDITOR.instances['editor2']) {
        CKEDITOR.remove('editor2');
    }
    else
    {
        CKEDITOR.replace( 'editor2',{
            language: 'en',
            filebrowserBrowseUrl : "http://www.electricadegalvez.com.ar/core/js/kcfinder/browse.php?opener=ckeditor&type=files",
            filebrowserImageBrowseUrl : "http://www.electricadegalvez.com.ar/core/js/kcfinder/browse.php?opener=ckeditor&type=images",
            filebrowserFlashBrowseUrl : "http://www.electricadegalvez.com.ar/core/js/kcfinder/browse.php?opener=ckeditor&type=flash",
            filebrowserUploadUrl : "http://www.electricadegalvez.com.ar/core/js/kcfinder/upload.php?opener=ckeditor&type=files",
            filebrowserImageUploadUrl : "http://www.electricadegalvez.com.ar/core/js/kcfinder/upload.php?opener=ckeditor&type=images",
            filebrowserFlashUploadUrl : "http://www.electricadegalvez.com.ar/core/js/kcfinder/upload.php?opener=ckeditor&type=flash",
        } );
    }

why is this happening?

sorry for my bad English

josegus commented 7 years ago

Same here. This only happen when I use a linux distribution (ubuntu, right now). I work the same code on a windows 7 pc and it's all ok, no errors.