Ticket #73 (closed defect: fixed)
Check in ImageManager
| Reported by: | yermol | Owned by: | yermol |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Xinha Core | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | yml@… |
Description
The current ImageManager code I have uses a number of different PHP scripts on the backend. The urls to these scripts are all hard coded in the client side.
Modify ImageManager so all requests go to a single backend script that then routes the command to the right function.
It is probably a good idea to standardize on some communication method between client and server to make the lives of server-side integrators easier. If the URL's are not hard coded it's much easier to replace the backend code.
I'm imaginging something like
http://somesite/xinha/plugins/ImageManger/backend.php?plugin=ImageManager&func=whatever
where func is whatever the function request is (view thumbnails, raise the editor, etc.)
We could even go so far as to create a single backend entry point for all plugins
http://somesite/xinha/backend.php?plugin=whatever&func=whatever&plugin_parms=whatever
The actual URL would get passed in as a config parameter with some reasonable default.
This would make doing global things like server side permissions much easier.
What do you think?
