Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File browser internal error #6

Closed
inteliclass opened this issue Nov 22, 2017 · 31 comments
Closed

File browser internal error #6

inteliclass opened this issue Nov 22, 2017 · 31 comments

Comments

@inteliclass
Copy link

we have download the project from url provided by you in email https://xdsoft.net/jodit . At same time got PHP connector from GitHub.com . I have changed the uploaded path in index.html from download php connector. After changing the path of index.php we are getting internal server error. How to use purchased License key on project. I am sharing link to check the error http://www.inteliclass.com/jodit/

@xdan
Copy link
Owner

xdan commented Nov 23, 2017

Hi, it was old version of php connector. Please download new version and try again.

@xdan
Copy link
Owner

xdan commented Dec 5, 2017

Can i close this issue?

@inteliclass
Copy link
Author

inteliclass commented Dec 5, 2017 via email

@inteliclass
Copy link
Author

inteliclass commented Dec 5, 2017 via email

@xdan
Copy link
Owner

xdan commented Dec 5, 2017

Hi, first of all download latest connector https://xdsoft.net/jodit/store/connector.zip
next, please don't remove file config.php
if you need customize config, do it in config.php, not in default.config.php
read more:
https://github.com/xdan/jodit-connectors#configuration

@inteliclass
Copy link
Author

inteliclass commented Dec 6, 2017 via email

@xdan
Copy link
Owner

xdan commented Dec 6, 2017

Do it again please, last connector release was yesterday

@inteliclass
Copy link
Author

inteliclass commented Dec 7, 2017 via email

@xdan
Copy link
Owner

xdan commented Dec 7, 2017

All right, how do you plan to verify the authenticity of the user?
For example in Yii2 it might be so:

function checkPermissions () {
    if (Yii::$app->user->isGuest) {
        throw new \ErrorException('You do not have permission to view this
directory', 403);
    }
}

it is only example. In you site you can comment this lines

function checkPermissions () {
    //if (empty($_SESSION['filebrowser'])) {
    //    throw new \ErrorException('You do not have permission to view this directory', 403);
    //}
}

But then anyone can change your photos

@inteliclass
Copy link
Author

inteliclass commented Dec 8, 2017 via email

@inteliclass
Copy link
Author

inteliclass commented Dec 11, 2017 via email

@inteliclass
Copy link
Author

inteliclass commented Dec 11, 2017 via email

@xdan
Copy link
Owner

xdan commented Dec 11, 2017

Hi, download latest version. And you can use this code https://github.com/xdan/jodit-connectors#configuration

function checkPermissions () {
    /********************************************************************************/
    if (empty($_SESSION['filebrowser'])) {
        switch ($this->action) {
        case "resize":
        case "move":
        case "create":
        case "remove":
        case "uploadremote":
        case "upload":
            throw new \ErrorException('You do not have permission to view this directory', 403);
        }
    }
    /********************************************************************************/
}

@xdan
Copy link
Owner

xdan commented Dec 11, 2017

Please, install composer https://getcomposer.org/
Then you can update Jodit-connector with just a command

composer update

@xdan
Copy link
Owner

xdan commented Dec 11, 2017

If JavaScript also hide FileBrowser buttons

var editor = new Jodit({
   filebrowser: {
       buttons: [
          // 'upload', 
         //  'remove',
           'update',
           'select',
        //   'edit', 
           'tiles',
           'list', 
           'filter',
           'sort' 
      ],
      url: ...
   }
})

@inteliclass
Copy link
Author

inteliclass commented Dec 11, 2017 via email

@xdan
Copy link
Owner

xdan commented Dec 11, 2017

I would like to clarify one thing, we are now talking about Jodit that you bought https://xdsoft.net/jodit/ but about a separate php project https://github.com/xdan/jodit-connectors it is free.
If we talk about CKEditor then you probably used CKfinder(Not CKEditor)

You can implement the functions that you need in it yourself by sending me a pull of request.

https://github.com/xdan/jodit-connectors is an open product, and I welcome any of its improvements. Send me the code that you set up your CKFinder, and I'll see how to do the same in Jodit-connector

@inteliclass
Copy link
Author

inteliclass commented Dec 11, 2017 via email

@inteliclass
Copy link
Author

inteliclass commented Dec 13, 2017 via email

@xdan
Copy link
Owner

xdan commented Dec 14, 2017

ok, i wrote new version
Update jodit and connector
And you can use https://github.com/xdan/jodit-connectors#access-control

@inteliclass
Copy link
Author

inteliclass commented Dec 15, 2017 via email

@xdan
Copy link
Owner

xdan commented Dec 15, 2017

@inteliclass
Copy link
Author

inteliclass commented Dec 18, 2017 via email

@inteliclass
Copy link
Author

inteliclass commented Dec 20, 2017 via email

@xdan
Copy link
Owner

xdan commented Dec 20, 2017

Give rights to the directory so that you can write to it
chmod 0777 ./files

@inteliclass
Copy link
Author

inteliclass commented Dec 20, 2017 via email

@xdan
Copy link
Owner

xdan commented Dec 21, 2017

Wait please, today will be new version connector

@inteliclass
Copy link
Author

inteliclass commented Dec 22, 2017 via email

@inteliclass
Copy link
Author

inteliclass commented Dec 28, 2017 via email

@inteliclass
Copy link
Author

Happy New year to all the participant on this forum.

We have not got any reply in this matter for last 15 days. we will appreciate all of your help in solving ongoing problem. we expecting solution from this group.

thanks

@xdan
Copy link
Owner

xdan commented Feb 28, 2018

I will close this issue, because this about jodit-application product. Please create issue in right repository.

@xdan xdan closed this as completed Feb 28, 2018
xdan added a commit that referenced this issue Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants