diff --git a/developer_manual/access.rst b/developer_manual/access.rst index b2b8f31f0..5a7a3ce69 100644 --- a/developer_manual/access.rst +++ b/developer_manual/access.rst @@ -1,4 +1,36 @@ public.php and remote.php ========================= -See http://owncloud.org/dev/apps/public-php-and-remote-php/ \ No newline at end of file +public.php +---------- +The public.php is used for public sharing like public file sharing, public gallery sharing and public calendar sharing. + +Register: +~~~~~~~~~ + +To register an app for public.php you just have to put the following lines into your app’s appinfo/info.xml. + +Example from our source code: `` share.php share.php `` + +Now you can reach the file /apps/calendar/share.php through /public.php?service=calendar and through /public.php?service=caldav + +Example for syntax: `` phpfileforsharing.php `` + +Now you can reach the file */apps/appid/phpfileforsharing.php* through */public.php?service=servicename* + +remote.php +---------- +The remote.php is used for remote services like webdav, caldav, carddav and ampache. + +Register: +~~~~~~~~~ + +To register an app for remote.php you just have to put the following lines into your app’s appinfo/info.xml. + +Example from our source code: `` appinfo/remote.php appinfo/remote.php `` + +Now you can reach the file /apps/calendar/appinfo/remote.php through /remote.php/calendar and through /remote.php/caldav/ + +Example for syntax: `` phpfileforremote.php `` + +Now you can reach the file */apps/appid/phpfileforremote.php* through */remote.php/servicename/* \ No newline at end of file