m (moved CKFinder/Server Side Integration/The Commands/Init to CKFinder 1.x/Server Side Integration/The Commands/Init) |
|||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{CKFinder_SSI_Warning}} | ||
== Init == | == Init == | ||
Line 4: | Line 5: | ||
=== Sample Request === | === Sample Request === | ||
− | < | + | <source lang="xml"> |
+ | ckfinder/core/connector/php/connector.php?command=Init | ||
+ | </source> | ||
=== Sample Response === | === Sample Response === | ||
− | < | + | <source lang="xml"> |
− | + | <?xml version="1.0" encoding="utf-8"?> | |
− | + | <Connector> | |
− | + | <Error number="0" /> | |
− | + | <ConnectorInfo enabled="true" s="" c="" thumbsEnabled="true" thumbsUrl="/userfiles/_thumbs/" thumbsDirectAccess="false" /> | |
− | + | <ResourceTypes> | |
− | + | <ResourceType name="Files" url="/userfiles/files/" allowedExtensions="7z,aiff,asf,avi,bmp,csv,doc,fla,flv,gif" | |
− | + | deniedExtensions="" defaultView="Thumbnails" hash="654e8f3600949355" hasChildren="true" acl="17" /> | |
− | + | <ResourceType name="Images" url="/userfiles/images/" allowedExtensions="bmp,gif,jpeg,jpg,png" | |
− | + | deniedExtensions="" defaultView="Thumbnails" hash="4d8ddfd385d0952b" hasChildren="true" acl="17" /> | |
+ | <ResourceType name="Flash" url="/userfiles/flash/" allowedExtensions="swf,flv" | ||
+ | deniedExtensions="" defaultView="Thumbnails" hash="a2d473ff04429cc5" hasChildren="true" acl="17" /> | ||
+ | </ResourceTypes> | ||
+ | </Connector> | ||
+ | </source> |
Latest revision as of 07:46, 28 May 2010
Init
This is the first command issued by CKFinder. It returns the general settings of the connector and all configured resource types.
Sample Request
ckfinder/core/connector/php/connector.php?command=Init
Sample Response
<?xml version="1.0" encoding="utf-8"?> <Connector> <Error number="0" /> <ConnectorInfo enabled="true" s="" c="" thumbsEnabled="true" thumbsUrl="/userfiles/_thumbs/" thumbsDirectAccess="false" /> <ResourceTypes> <ResourceType name="Files" url="/userfiles/files/" allowedExtensions="7z,aiff,asf,avi,bmp,csv,doc,fla,flv,gif" deniedExtensions="" defaultView="Thumbnails" hash="654e8f3600949355" hasChildren="true" acl="17" /> <ResourceType name="Images" url="/userfiles/images/" allowedExtensions="bmp,gif,jpeg,jpg,png" deniedExtensions="" defaultView="Thumbnails" hash="4d8ddfd385d0952b" hasChildren="true" acl="17" /> <ResourceType name="Flash" url="/userfiles/flash/" allowedExtensions="swf,flv" deniedExtensions="" defaultView="Thumbnails" hash="a2d473ff04429cc5" hasChildren="true" acl="17" /> </ResourceTypes> </Connector>